CSharpGL.GeometryTypesHelper.ToDrawMode C# (CSharp) Method

ToDrawMode() public static method

public static ToDrawMode ( this type ) : DrawMode
type this
return DrawMode
        public static DrawMode ToDrawMode(this PickingGeometryType type)
        {
            DrawMode mode = DrawMode.Points;
            switch (type)
            {
                case PickingGeometryType.Point:
                    mode = DrawMode.Points;
                    break;

                case PickingGeometryType.Line:
                    mode = DrawMode.Lines;
                    break;

                case PickingGeometryType.Triangle:
                    mode = DrawMode.Triangles;
                    break;

                case PickingGeometryType.Quad:
                    mode = DrawMode.Quads;
                    break;

                case PickingGeometryType.Polygon:
                    mode = DrawMode.Polygon;
                    break;

                default:
                    throw new NotImplementedException();
            }

            return mode;
        }
    }
GeometryTypesHelper