Inventor/oivInstancing.h File Reference

oiv_include <Inventor/oivShapeInstanceMatrix.h> More...

Go to the source code of this file.

Functions

void OivInstancingInit ()
int OivInstanceID ()
vec3 OivInstanceTranslation ()
vec3 OivInstanceScale ()
vec4 OivInstanceRotation ()
mat4 OivInstanceMatrix ()

Detailed Description

oiv_include <Inventor/oivShapeInstanceMatrix.h>

This file contains fonction to access instancing parameters.

Definition in file oivInstancing.h.


Function Documentation

int OivInstanceID (  ) 

Get the current instance ID when using multiple instance.

Returns:
the shape instance ID.
mat4 OivInstanceMatrix (  ) 

Get the transformation matrix to apply to the current geometry instance, i.e., the combination of instance rotation, scale and translation.

Returns:
the shape instance transformation matrix.
vec4 OivInstanceRotation (  ) 

Get the rotation (i.e.

a quaternion) to apply to the current geometry instance.

Returns:
the shape instance rotation
vec3 OivInstanceScale (  ) 

Get the scale vector to apply to the current geometry instance.

Returns:
the shape instance scale.
vec3 OivInstanceTranslation (  ) 

Get the translation vector to apply to the current geometry instance.

Returns:
the shape instance translation.
void OivInstancingInit (  ) 

Initialize instancing.

Must be called when doing instancing.


Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/