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 MpHeModel_v1002 Create(HeModel model)
        {
            MpHeModel_v1002 ret = new MpHeModel_v1002();

            ret.VertexStore = MpUtil_v1002.VertexListToMp(model.VertexStore);

            ret.NormalStore = MpUtil_v1002.Vector3dListToMp(model.NormalStore);

            ret.FaceStore = MpUtil_v1002.HeFaceListToMp(model.FaceStore);

            ret.HeIdCount = model.HeIdProvider.Counter;

            ret.FaceIdCount = model.FaceIdProvider.Counter;

            List <HalfEdge> heList = model.GetHalfEdgeList();

            ret.HalfEdgeList = MpUtil_v1002.HalfEdgeListToMp(heList);

            return(ret);
        }