Пример #1
0
 public sg_line(sg_Vector3 pt1, sg_Vector3 pt2)
 {
     _pt1     = pt1;
     _pt2     = pt2;
     _box     = new SGBox3D(_pt1, _pt2);
     _needCal = true;
 }
Пример #2
0
        public void appendPoint(sg_Vector3 pt)
        {
            sg_line line = new sg_line(_lastpt, pt);

            _lines.Add(line);
            _lastpt = pt;
            _box    = _box + line.Box;
        }
Пример #3
0
 public sg_polyline(sg_Vector3 pt1, sg_Vector3 pt2)
 {
     _lines.Clear();
     _box    = new SGBox3D(pt1, pt1);
     _lastpt = pt1;
     _l      = -1;
     appendPoint(pt2);
 }
Пример #4
0
 public SGBox3D(SGBox3D box)
 {
     _pt1 = box._pt1;
     _pt2 = box._pt2;
 }