Click or drag to resize
SoVolumeMaskEditSubVolume Method (SbBox3i32, Double)

Replace the contents of a subvolume with the specified value.

Namespace: OIV.VolumeViz.Nodes
Assembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public override int EditSubVolume(
	SbBox3i32 subVolume,
	double value
)

Parameters

subVolume
Type: OIV.InventorSbBox3i32
value
Type: SystemDouble

Return Value

Type: Int32
Remarks

Returns 0 if successful.

  • The subvolume is specified in voxel/cell coordinates.

  • Only an OIV.VolumeViz.Nodes.SoVolumeMask with data size of 1 (ie. byte or unsigned byte) can be edited.

  • All zero values are set to zero and all non-zero values are set to 1.

Call OIV.VolumeViz.Nodes.SoVolumeData.StartEditing(System.Int32@) before calling this method.

See Also