Example #1
0
 public void SetPlane(RectPlane p)
 {
     Points[0].SetPoint(p.Points[0]);
     Points[1].SetPoint(p.Points[1]);
     Points[2].SetPoint(p.Points[2]);
     Points[3].SetPoint(p.Points[3]);
 }
Example #2
0
        public DesignElementRect()
        {
            int tmpndx;

            ElementType      = ElementTypes.Rect;
            Points           = new Point3D[8];
            TempFigurePoints = new Point3D[8];
            ProjectedPoints  = new Point3D[8];
            lPlanes          = new RectPlane[6];
            lProjectedPlanes = new RectPlane[6];

            for (tmpndx = 0; tmpndx < Points.Length; tmpndx++)
            {
                Points[tmpndx]           = new Point3D();
                TempFigurePoints[tmpndx] = new Point3D();
                ProjectedPoints[tmpndx]  = new Point3D();
            }

            for (tmpndx = 0; tmpndx < lPlanes.Length; tmpndx++)
            {
                lPlanes[tmpndx]          = new RectPlane();
                lProjectedPlanes[tmpndx] = new RectPlane();
            }
        }