No, you don't refrain from using the constructor,
you use the overloaded constructor that takes
two Point3d arguments (min and max point),
which sets the initial extents to those points.
For example, to compute the geometric extents
of a Point3dCollection with at least two elements:
Point3dCollection points = // ....
Extents3d extents = new Extents3d(points[0], points[1]);
for(int i = 2; i < points.Count; i++)
extents.AddPoint(points
);
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
wrote in message news:5563520@discussion.autodesk.com...
When you construct an Extents3d object, its MinPoint and MaxPoint are both at (0,0,0). So, when you add extents to it (or points), if these are over and to the right of (0,0,0), the MinPoint remains (0,0,0). You have to refrain from using a constructor for Extents3d. Instead try something like:
if (extents) extents.AddExtent(...)
else extents = ...