示例#1
0
 public static Polygon3d ToPolygon3d(this Polygon2d polygon, Func <V2d, int, V3d> point_index_copyFun)
 => new Polygon3d(polygon.GetPointArray(point_index_copyFun));
示例#2
0
 /// <summary>
 /// Transforms a 2d polygon into 3d.
 /// The z-coordinate is assumed to be zero.
 /// </summary>
 public static Polygon3d Transformed(this Polygon2d polygon, M44d transform)
 {
     return(new Polygon3d(polygon.GetPointArray(p => transform.TransformPos(p.XYO))));
 }
示例#3
0
 public static Polygon3d ToPolygon3d(
     this Polygon2d polygon, Func <V2d, V3d> point_copyFun)
 {
     return(new Polygon3d(polygon.GetPointArray(point_copyFun)));
 }