volumeindextopos expression function

Converts volume voxel coordinates to world-space coordinates.

All Usage Examples

See also: volumepostoindex, volumesample

Usage

volumeindextopos(surface_node, prim_id, ix, iy, iz, axis)

Returns the world-space coordinates of the center of the given voxel.

surface_node is the full path of the surface node. The prim_id is the primitive number of the volume primitive within the surface node.

axis controls which component of the voxel index is returned:

Returns 0 if out of bound values are specified, or the given primitive is not a volume.

Examples

volumeindextopos("/obj/geo1/isooffset1", 0, $TX, $TY, $TZ, 0)