static DB.XYZ[] ToXYZArray(NurbsCurvePointList list, double factor) { var count = list.Count; var points = new DB.XYZ[count]; int p = 0; if (factor == 1.0) { while (p < count) { var location = list[p].Location; points[p++] = new DB::XYZ(location.X, location.Y, location.Z); } } else { while (p < count) { var location = list[p].Location; points[p++] = new DB::XYZ(location.X * factor, location.Y * factor, location.Z * factor); } } return(points); }
public static DB.XYZ[] ToHost(NurbsCurvePointList list) { var count = list.Count; var points = new DB.XYZ[count]; for (int p = 0; p < count; ++p) { var location = list[p].Location; points[p] = new DB::XYZ(location.X, location.Y, location.Z); } return(points); }
public static DB.XYZ[] ToHost(NurbsSurfacePointList list) { var count = list.CountU * list.CountV; var points = new DB.XYZ[count]; int p = 0; foreach (var point in list) { var location = point.Location; points[p++] = new DB::XYZ(location.X, location.Y, location.Z); } return(points); }