Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
Multi-instance with buffered shapes

VSG extension MultiInstancingBufferedShapes - 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/Features/MultiInstancing/BufferedShapes/main.cxx
    • Inventor/Features/MultiInstancing/BufferedShapes/BufferObjectMapper.h
    • Inventor/Features/MultiInstancing/BufferedShapes/Instancing.iv
    • Inventor/Features/MultiInstancing/BufferedShapes/screw_buffered_shape.iv