public class SoComputeBoundingBox extends SoEngine
If the path
input is not NULL, the bounding box of the graph defined by the path will be computed. If path
is NULL, but the node
input is not NULL, the bounding box is computed on the graph rooted by the node. By default, the two inputs are NULL. If both the inputs are NULL, the outputs are disabled.
The engine uses a default viewport region. If the graph includes screen-based objects (such as SoText2
) you can call setViewportRegion()
on the engine instance to set up the correct viewport region to use.
File format/default:
ComputeBoundingBox {
node | NULL |
path | NULL |
See also:
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoEngineOutput |
boxCenter
(
SoSFVec3f ) Center of the computed bounding box. |
SoEngineOutput |
max
(
SoSFVec3f ) Maximum point of the computed bounding box. |
SoEngineOutput |
min
(
SoSFVec3f ) Minimum point of the computed bounding box. |
SoSFNode |
node
Defines the graph for which the bounding box is computed.
|
SoEngineOutput |
objectCenter
(
SoSFVec3f ) Center of the objects in the graph. |
SoSFPath |
path
Alternatively, defines the graph for which the bounding box is computed.
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoComputeBoundingBox()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SbViewportRegion |
getViewportRegion()
Returns the viewport region to use for the bounding box computation.
|
void |
setViewportRegion(SbViewportRegion vpReg)
Sets the viewport region to use for the bounding box computation.
|
copy, getByName, getOutput, getOutputName
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public final SoSFNode node
public final SoSFPath path
public final SoEngineOutput min
SoSFVec3f
) Minimum point of the computed bounding box.public final SoEngineOutput max
SoSFVec3f
) Maximum point of the computed bounding box.public final SoEngineOutput boxCenter
SoSFVec3f
) Center of the computed bounding box.public final SoEngineOutput objectCenter
SoSFVec3f
) Center of the objects in the graph.public SbViewportRegion getViewportRegion()
public void setViewportRegion(SbViewportRegion vpReg)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com