volumesample expression function

Returns the value of a volume at a specified position.

All Usage Examples

See also: volumeindex, volumegradient

Usage

volumesample(surface_node, prim_id, x, y, z)

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

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

Examples

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