Share

AcDbExtents

Class Hierarchy

AcHeapOperators
    AcDbExtents

C++

class AcDbExtents : public AcHeapOperators;

File

dbmain.h

Description

This class was designed to be used with the getGeomExtents() function of AcDbEntity-derived classes. It embodies a box in 3D space whose edges are parallel to the axes of the WCS. This box is represented in the private data of an AcDbExtents object as a minimum point (minPoint) and a maximum point (maxPoint). At all times except immediately after an AcDbExtents object has been instantiated with the default constructor (see below), each of the X, Y, and Z values of minPoint must be <= the corresponding values of maxPoint.

Remarks

The intended use of an AcDbExtents object is to store the "tight bounding box" of an entity or collection of entities. A typical way to compute it is to instantiate it with the default constructor, then to iterate through all the points of the geometry in question and feed them to the addPoint() member function. This accumulates a bounding box with the smallest values encountered for X, Y, and Z in minPoint and the largest values in maxPoint.

Links

AcDbExtents Constructor, AcDbExtents Methods, AcDbExtents Operators

See Also

AcDbEntity::getGeomExtents

Was this information helpful?