public static RevSurface ToRhino(this DB.RevolvedSurface surface, DB.BoundingBoxUV bboxUV) => FromRevolvedSurface ( surface.Origin, surface.XDir, surface.YDir, surface.Axis, surface.GetProfileCurve(), bboxUV );
public static RevSurface ToRhino(this DB.RevolvedSurface surface, DB.BoundingBoxUV bboxUV) { var ctol = Revit.ShortCurveTolerance; var atol = Revit.AngleTolerance; var uu = new Interval(bboxUV.Min.U - atol, bboxUV.Max.U + atol); var axis = new Line ( surface.Origin.ToRhino(), surface.Origin.ToRhino() + (Vector3d)surface.Axis.ToRhino() ); var curve = surface.GetProfileCurveInWorldCoordinates().ToRhino(); curve = curve.Extend(CurveEnd.Both, ctol, CurveExtensionStyle.Line); return(RevSurface.Create(curve, axis, uu.Min, uu.Max)); }
public static RevSurface ToRhino(this DB.RevolvedSurface surface, DB.BoundingBoxUV bboxUV) => RawDecoder.ToRhino(surface, bboxUV);