Esempio n. 1
0
 public static RevSurface ToRhino(this DB.RevolvedSurface surface, DB.BoundingBoxUV bboxUV) => FromRevolvedSurface
 (
     surface.Origin,
     surface.XDir,
     surface.YDir,
     surface.Axis,
     surface.GetProfileCurve(),
     bboxUV
 );
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
 public static RevSurface ToRhino(this DB.RevolvedSurface surface, DB.BoundingBoxUV bboxUV) => RawDecoder.ToRhino(surface, bboxUV);