Esempio n. 1
0
        public MassFactory(Document projectDoc, Shape shape)
        {
            _ProjectDoc = projectDoc;
            _Name = shape.Name;
            _Count = shape.Count;
            _Side = shape.Side;
            _Y = _Side + FormFile.yPad;
            _IsDefaultArea = shape.IsDefaultArea;
            _IsDefaultCount = shape.IsDefaultCount;

            for (int i = 0; i < 4; ++i)
            {
                _Vertices[i] = new XYZ(shape.Points[i].X, shape.Points[i].Y, 0.0);
            }

            if (!Directory.Exists(_TempLocation)) Directory.CreateDirectory(_TempLocation);
        }
Esempio n. 2
0
        public ModelFactory(Document projectDoc, Shape shape)
        {
            _projectDoc = projectDoc;
            _name = shape.Name;
            _count = shape.Count;
            _side = shape.Side;
            _Y = _side + FormFile.yPad;
            _isDefaultArea = shape.IsDefaultArea;
            _isDefaultCount = shape.IsDefaultCount;

            for (int i = 0; i < 4; ++i)
            {
                _vert[i] = new XYZ(shape.Points[i].X, shape.Points[i].Y, 0.0);
            }

            _area = shape.Area;

            if (!Directory.Exists(_tempfile)) Directory.CreateDirectory(_tempfile);
        }