Exemplo n.º 1
0
        public static MpNurbsLine_v1001 Create(NurbsLine src)
        {
            MpNurbsLine_v1001 ret = new MpNurbsLine_v1001();

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

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

            return(ret);
        }
Exemplo n.º 2
0
        public static MpBSplineParam_v1001 Create(BSplineParam src)
        {
            MpBSplineParam_v1001 ret = new MpBSplineParam_v1001();

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

            return(ret);
        }