Creates a new 3D box at the given position with the given size.
A 3D box is an axis aligned box, consisting of 12 lines, and 6 faces.
The width of the lines, the color of the lines, the color of the faces are set by the user.
The box is assigned a strictly positive id that will represent this box from now on. 0 is an invalid box id. Please note that this id
will be reused if the box is removed and another created again.
Before creating a box, materials to render this box must be created in the PrimitiveManagerMaterialInterface.
primitive material id).primitive material id).The id of the created box.
Gets the position of the center of the given box.
If found, pBoxCenterOut is updated.
Returns true if the box is found and therefore pBoxCenterOut is updated.
true if pBoxCenterOut is updated.
Gets the half extents of the given box.
If found, pBoxExtentOut is updated.
Returns true if the box is found and therefore pBoxExtentOut is updated.
true if pBoxExtentOut was updated.
Tells if the given box is visible.
Returns false if the box does not exists or is setBoxVisible with false has been called.
true if the box exists and is visible.
Updates the rendering of the given box, by changing the colors of the lines and the faces.
Returns true if the box was updated.
primitive material id to be used to draw the lines of the box.primitive material id to be used to draw the faces of the box.true if the box was found, if the materials exist and therefore the box rendering is updated.
The PrimitiveManagerBoxInterface is used to display 3D boxes on top of the DMU, with a rendering hint depending on the relative depth between the 3D boxes and the geometries.
The PrimitiveManagerBoxInterface is accessed through the PrimitiveManagerInterface.getBoxManager function (the PrimitiveManagerInterface is accessed through InfiniteEngineInterface.getPrimitiveManager).
A 3D box is an axis aligned box, consisting of 12 lines, and 6 faces. Rendered 3D boxes are manipulated through their ids (and not a dedicated object), indeed each box is assigned a strictly positive integer id that will represent it. 0 is an invalid box id.
The colors of the 3D boxes are handled by the PrimitiveManagerMaterialInterface, accessed through PrimitiveManagerInterface.getPrimitiveMaterialManager. Materials are accessed by their ids, and modified by their ids. 3D primitives are rendered colored with their
primitive material id, and not directly from a color.WARNING : do not confuse the PrimitiveManagerMaterialInterface and the MaterialManagerInterface, these two interfaces are separated, do not use MaterialManagerInterface ids to draw boxes !!!
Creating a 3D box may be done with the following :
You may create also lines, points, etc with PrimitiveManagerLineInterface, PrimitiveManagerPointInterface, etc.
See