Class BoundingBoxRenderer
Hierarchy
- BoundingBoxRenderer
Implements
Index
Constructors
constructor
-
Instantiates a new bounding box renderer in a scene.
Parameters
-
scene: Scene
the scene the renderer renders in
Returns BoundingBoxRenderer
-
Properties
back ColorSearch playground for backColor
Color of the bounding box lines placed behind an object
enabledSearch playground for enabled
When false, no bounding boxes will be rendered
front ColorSearch playground for frontColor
Color of the bounding box lines placed in front of an object
Readonly nameSearch playground for name
The component name helpfull to identify the component in the list of scene components.
on After Box Rendering ObservableSearch playground for onAfterBoxRenderingObservable
Observable raised after rendering a bounding box
on Before Box Rendering ObservableSearch playground for onBeforeBoxRenderingObservable
Observable raised before rendering a bounding box
on Resources Ready ObservableSearch playground for onResourcesReadyObservable
Observable raised after resources are created
sceneSearch playground for scene
The scene the component belongs to.
show Back LinesSearch playground for showBackLines
Defines if the renderer should show the back lines or not
Methods
disposeSearch playground for dispose
-
Dispose and release the resources attached to this renderer.
Returns void
rebuildSearch playground for rebuild
-
Rebuilds the elements related to this component in case of context lost for instance.
Returns void
registerSearch playground for register
-
Registers the component in a given scene
Returns void
renderSearch playground for render
-
Render the bounding boxes of a specific rendering group
Parameters
-
renderingGroupId: number
defines the rendering group to render
Returns void
-
render Occlusion Bounding BoxSearch playground for renderOcclusionBoundingBox
-
In case of occlusion queries, we can render the occlusion bounding box through this method
Parameters
-
mesh: AbstractMesh
Define the mesh to render the occlusion bounding box for
Returns void
-
Component responsible of rendering the bounding box of the meshes in a scene. This is usually used through the mesh.showBoundingBox or the scene.forceShowBoundingBoxes properties