public sg_line(sg_Vector3 pt1, sg_Vector3 pt2) { _pt1 = pt1; _pt2 = pt2; _box = new SGBox3D(_pt1, _pt2); _needCal = true; }
public void appendPoint(sg_Vector3 pt) { sg_line line = new sg_line(_lastpt, pt); _lines.Add(line); _lastpt = pt; _box = _box + line.Box; }
public sg_polyline(sg_Vector3 pt1, sg_Vector3 pt2) { _lines.Clear(); _box = new SGBox3D(pt1, pt1); _lastpt = pt1; _l = -1; appendPoint(pt2); }
public SGBox3D(SGBox3D box) { _pt1 = box._pt1; _pt2 = box._pt2; }