Inventor/oivShapeInstanceMatrix.h File Reference

This file contains utilities fonction when using SoMultipleInstance node. More...

Go to the source code of this file.

Functions

int OivGetShapeInstanceID ()
vec3 OivGetShapeInstanceTranslation ()
vec3 OivGetShapeInstanceScale ()
vec4 OivGetShapeInstanceRotation ()
vec4 OivGetDiffuse ()
mat4 OivGetShapeInstanceMatrix ()
mat4 OivGetModelViewMatrix ()
mat3 OivGetNormalMatrix ()
mat3 OivGetNormalMatrix (in mat4 modelViewMatrix)

Detailed Description

This file contains utilities fonction when using SoMultipleInstance node.

Definition in file oivShapeInstanceMatrix.h.


Function Documentation

vec4 OivGetDiffuse (  ) 

Return the curent material according to given color material mode Inventor supports diffuse color material only.

mat4 OivGetModelViewMatrix (  ) 

Returns the model matrix to apply to the current geometry vertex.

This matrix contains instance and local transformations.

mat3 OivGetNormalMatrix ( in mat4  modelViewMatrix  ) 

Returns the normal matrix to apply to the current geometry normal with precomputed model view matrix.

This matrix contains instance and local transformations.

mat3 OivGetNormalMatrix (  ) 

Returns the normal matrix to apply to the current geometry normal.

This matrix contains instance and local transformations.

int OivGetShapeInstanceID (  ) 

Returns the current instanceID when using multi instancing.

see SoShapeInstanceProperty

mat4 OivGetShapeInstanceMatrix (  ) 

Returns the model matrix to apply to the current geometry instance.

vec4 OivGetShapeInstanceRotation (  ) 

Returns the rotation (i.e.

a quaternion) to apply to the current geometry instance.

vec3 OivGetShapeInstanceScale (  ) 

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

vec3 OivGetShapeInstanceTranslation (  ) 

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


Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/