Click or drag to resize
SoLDMDataAccessXYZToVoxel Method (SbVec3f)

Converts a geometry coordinate (X,Y,Z) to a voxel coordinate (I,J,K).

Namespace: OIV.LDM
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public SbVec3i32 XYZToVoxel(
	SbVec3f dataPosition
)

Parameters

dataPosition
Type: OIV.InventorSbVec3f

Return Value

Type: SbVec3i32
Remarks

The geometric coordinates are expressed in "extent" space, where voxel coordinates are mapped to the box defined by the volume extent.

Correctly converts coordinates that are outside the volume extent, but the resulting voxel coordinate is outside the volume dimensions.

See Also