Inventor/oivInstancing.h File Reference

This file contains fonction to access instancing parameters. More...

Go to the source code of this file.

Functions

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

Detailed Description

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 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/