DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Collapse DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Search Documentation


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.