public Topology(Point Minpt, Point Maxpt) : this() { this.Max = Maxpt; this.Min = Minpt; Modspace = new MS_AABB(Min, Max); }
public Topology(Point[][] T, int Precision) : this(Precision) { double Minx = double.MaxValue, Miny = double.MaxValue, Minz = double.MaxValue; double Maxx = double.MinValue, Maxy = double.MinValue, Maxz = double.MinValue; foreach (Point[] parr in T) { foreach (Point p in parr) { if (Minx > p.x) { Minx = p.x; } if (Miny > p.y) { Miny = p.y; } if (Minz > p.z) { Minz = p.z; } if (Maxx < p.x) { Maxx = p.x; } if (Maxy < p.y) { Maxy = p.y; } if (Maxz < p.z) { Maxz = p.z; } } } Min = new Point(Minx, Miny, Minz); Max = new Point(Maxx, Maxy, Maxz); Modspace = new MS_AABB(Min, Max); Build_Topology(T); }