volumeres expression function

Returns the resolution of a volume.

All Usage Examples

See also: volumesample

Usage

volumeres(surface_node, prim_id, axis)

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 resolution is returned:

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

Examples

volumeres("/obj/geo1/isooffset1", 0, 1)