예제 #1
0
        public static MpVector3d_v1002 Create(Vector3d v)
        {
            MpVector3d_v1002 ret = new MpVector3d_v1002();

            ret.X = v.X;
            ret.Y = v.Y;
            ret.Z = v.Z;

            return(ret);
        }
예제 #2
0
        public static List <MpVector3d_v1002> Vector3dListToMp(Vector3dList v)
        {
            List <MpVector3d_v1002> ret = new List <MpVector3d_v1002>();

            for (int i = 0; i < v.Count; i++)
            {
                ret.Add(MpVector3d_v1002.Create(v[i]));
            }

            return(ret);
        }
예제 #3
0
        public void StoreCommon(CadFigure fig)
        {
            ID     = fig.ID;
            Type   = (byte)fig.Type;
            Locked = fig.Locked;
            IsLoop = fig.IsLoop;
            Normal = MpVector3d_v1002.Create(fig.Normal);

            GeoData = fig.GeometricDataToMp_v1002();

            Name = fig.Name;
        }