Esempio n. 1
0
        public static MpNurbsLine_v1002 Create(NurbsLine src)
        {
            MpNurbsLine_v1002 ret = new MpNurbsLine_v1002();

            ret.CtrlCnt     = src.CtrlCnt;
            ret.CtrlDataCnt = src.CtrlDataCnt;
            ret.Weights     = MpUtil_v1002.ArrayClone <double>(src.Weights);
            ret.CtrlPoints  = MpUtil_v1002.VertexListToMp(src.CtrlPoints);
            ret.CtrlOrder   = MpUtil_v1002.ArrayClone <int>(src.CtrlOrder);

            ret.BSplineP = MpBSplineParam_v1002.Create(src.BSplineP);

            return(ret);
        }
Esempio n. 2
0
        public static MpBSplineParam_v1002 Create(BSplineParam src)
        {
            MpBSplineParam_v1002 ret = new MpBSplineParam_v1002();

            ret.Degree    = src.Degree;
            ret.DivCnt    = src.DivCnt;
            ret.OutputCnt = src.OutputCnt;
            ret.KnotCnt   = src.KnotCnt;
            ret.Knots     = MpUtil_v1002.ArrayClone <double>(src.Knots);
            ret.LowKnot   = src.LowKnot;
            ret.HighKnot  = src.HighKnot;
            ret.Step      = src.Step;

            return(ret);
        }