MultiInstancingBufferedShape - This example shows
SoMultipleInstance with buffered shapes.
DESCRIPTION:
MultiInstancingBufferedShapes displays a scene containing a set of NumXxNumYxNumZ SoBufferedShape representing a CAD standard part containing about 34000 triangles and loaded from an external .iv file: screw_buffered_shape.iv. A GUI is set up with three sliders connected to the number of instances created along the X, the Y and Z world axes. The instances are disposed with a regular geometrical pattern in space, inside a cube, with scale factors applied and rotations applied in a cycle.
Commands on user interface, three sliders available;
NumX | Instances number along X axis. |
NumY | Instances number along Y axis. |
NumZ | Instances number along Z axis. |
EXAMPLES
SEE ALSO
SoMultipleInstance, SoInstanceParameter, SoBufferObject
SCREENSHOT:
FILES:
-
Inventor/examples/Features/MultiInstancing/BufferedShapes/main.cxx
-
Inventor/examples/Features/MultiInstancing/BufferedShapes/BufferObjectMapper.h
-
Inventor/examples/Features/MultiInstancing/BufferedShapes/Instancing.iv
-
Inventor/examples/Features/MultiInstancing/BufferedShapes/screw_buffered_shape.iv