IBox Interface
- GetRange
- SetRange
IBox represents a 3D box defined by its range in three axes. By default the
box is axis - aligned with the global axes. Some of boxes can be moved freely in
3D. Such boxes have a local frame assigned to it, in which case location and
orientation of the object can be manipulated by moving its local frame. Methods
in this case take local (related to the attached frame) coordinates.
Query IFrame
from IBox to access the local frame. If the query fails the object does not have
the local frame and is normally considered as aligned with the global axes.
If the object implements IFrame
normally it also implements IFrame2 and
IMetrics.
See also: Bounding
Box of a entity
HRESULT GetRange(int axis, double *min, double *max)
Parameters
axis - index of the axis (0, 1, or 2)
min, max -[out] the
returned minimum and maximum of axis coordinate of the box
HRESULT SetRange(int axis, double min, double max)
Parameters
axis - index of the axis (0, 1, or 2)
min, max - [in] new minimum and maximum of axis coordinate of the box.
|