public static Autodesk.DesignScript.Geometry.Point ToDSGeo(this SketchUpNET.Vertex v, Transform t) { if (t == null) { return(Autodesk.DesignScript.Geometry.Point.ByCoordinates(v.X, v.Y, v.Z)); } else { Vertex transformed = t.GetTransformed(v); return(Autodesk.DesignScript.Geometry.Point.ByCoordinates(transformed.X, transformed.Y, transformed.Z)); } }
/// <summary> /// Converts a SketchUp Vertex to a Rhino Point /// </summary> public static Rhino.Geometry.Point3d ToRhinoGeo(this SketchUpNET.Vertex v, Transform t = null) { if (t == null) { return(new Rhino.Geometry.Point3d(v.X, v.Y, v.Z)); } else { Vertex transformed = t.GetTransformed(v); return(new Rhino.Geometry.Point3d(transformed.X, transformed.Y, transformed.Z)); } }