BoundingBoxListener¶
- MacroModule¶
genre
authors
package
definition
see also
keywords
Purpose¶
Notifies changes of the scene bounding box. Optionally an object selection is used. Can be used to trigger viewAll() on a SoExaminerViewer on scene change for example
Usage¶
Connect scene below.
Windows¶
Default Panel¶
Input Fields¶
scene¶
- name: scene, type: SoNode¶
Input inventor scene.
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visible Fields¶
On¶
- name: on, type: Bool, default: TRUE¶
Turns module on/off
Epsilon¶
- name: epsilon, type: Float, default: 9.9999997e-05¶
Used to compute bounding box validity. max must at least be min + epsilon.
Allow2DBounding Box¶
- name: allow2DBoundingBox, type: Bool, default: FALSE¶
If true, it is sufficient if the bounding box has a size larger 0 in one dimension. If false, a size larger 0 is required in all dimensions for validity.
Min¶
- name: min, type: Vector3, persistent: no¶
Output of minimal bounding box coordinates
Max¶
- name: max, type: Vector3, persistent: no¶
Output of maximal bounding box coordinates
Center¶
- name: center, type: Vector3, persistent: no¶
Output of bounding box center
Object Center¶
- name: objectCenter, type: Vector3, persistent: no¶
Output of object center
Size¶
- name: size, type: Vector3, persistent: no¶
Output of bounding box size
Valid¶
- name: valid, type: Bool, persistent: no¶
Is true if max is larger then man by at least epsilon.
Bounding Box Changed¶
- name: boundingBoxChanged, type: Trigger¶
Triggered on any change of the bounding box
Listen To Object Center¶
- name: inListenToObjectCenter, type: Bool, default: FALSE¶
If active, the modules listens to changes of the object center that do not modify the bounding box as well.