VolumeViz/vvizCoordinates_frag.h File Reference

This file function relative to rectilinear coordinate support. More...

Go to the source code of this file.

Functions

vec3 VVizComputeCoordinates (const vec3 dataCoord)

Detailed Description

This file function relative to rectilinear coordinate support.

Definition in file vvizCoordinates_frag.h.


Function Documentation

vec3 VVizComputeCoordinates ( const vec3  dataCoord  ) 

Compute new coordinates from input coordinates.


This method is used to support rectilinear coordinates or custom projection. It computes voxel coordinates and must be used instead of gl_TexCoord[0].xyz. If not used, texture coordinates may not be clamped, scaled, etc... as necessary in order to have correct rendering.

The parameter usually is gl_TexCoord[0].xyz (in slicing mode only). The returned coordinate is in general directly passed to VVizCombineData method.

Parameters:
dataCoord Coordinates of point, in normalized dataset space.
Returns:
Projected coord if requested, returns dataCoord by default.

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