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: 2023.1.3.0 (2023.1.3)
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