예제 #1
0
        public static Curve ToRhino(this NXOpen.Curve value)
        {
            Curve rhino = RawDecoder.ToRhinoCurve(value);

            UnitConverter.Scale(rhino, UnitConverter.NXToRhinoUnitsRatio);

            return(rhino);
        }
예제 #2
0
        public static Curve ToRhinoCurve(NXOpen.Curve curve)
        {
            switch (curve)
            {
            case null: return(null);

            case NXOpen.Line line: return(ToRhinoCurve(line));

            case NXOpen.Arc arc: return(ToRhinoCurve(arc));

            case NXOpen.Ellipse ellipse: return(ToRhinoCurve(ellipse));

            case NXOpen.Spline nurb: return(ToRhinoCurve(nurb));

            default: throw new NotImplementedException();
            }
        }