Ejemplo n.º 1
0
        public NurbsLine Restore()
        {
            NurbsLine nurbs = new NurbsLine();

            nurbs.CtrlCnt     = CtrlCnt;
            nurbs.CtrlDataCnt = CtrlDataCnt;
            nurbs.Weights     = MpUtil_v1002.ArrayClone <double>(Weights);
            nurbs.CtrlPoints  = MpUtil_v1002.VertexListFromMp(CtrlPoints);
            nurbs.CtrlOrder   = MpUtil_v1002.ArrayClone <int>(CtrlOrder);

            nurbs.BSplineP = BSplineP.Restore();

            return(nurbs);
        }
Ejemplo n.º 2
0
        public NurbsSurface Restore()
        {
            NurbsSurface nurbs = new NurbsSurface();

            nurbs.UCtrlCnt = UCtrlCnt;
            nurbs.VCtrlCnt = VCtrlCnt;

            nurbs.UCtrlDataCnt = UCtrlDataCnt;
            nurbs.VCtrlDataCnt = VCtrlDataCnt;

            nurbs.CtrlPoints = MpUtil_v1002.VertexListFromMp(CtrlPoints);

            nurbs.Weights   = MpUtil_v1002.ArrayClone <double>(Weights);
            nurbs.CtrlOrder = MpUtil_v1002.ArrayClone <int>(CtrlOrder);

            nurbs.UBSpline = UBSpline.Restore();
            nurbs.VBSpline = VBSpline.Restore();

            return(nurbs);
        }