public static Polygon3d ToPolygon3d(this Polygon2d polygon, Func <V2d, int, V3d> point_index_copyFun) => new Polygon3d(polygon.GetPointArray(point_index_copyFun));
/// <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)))); }
public static Polygon3d ToPolygon3d( this Polygon2d polygon, Func <V2d, V3d> point_copyFun) { return(new Polygon3d(polygon.GetPointArray(point_copyFun))); }