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

Replace the contents of a subvolume with the given data.

Namespace: OIV.VolumeViz.Nodes
Assembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public override int EditSubVolume(
	SbBox3i32 subVolume,
	SoBufferObject userData
)

Parameters

subVolume
Type: OIV.InventorSbBox3i32
userData
Type: OIV.Inventor.DevicesSoBufferObject

Return Value

Type: Int32
Remarks

Returns 0 if successful.

  • The subvolume is specified in voxel/cell coordinates.

  • The buffer size (in bytes) must match the subvolume size (in bytes) exactly.

  • Only an OIV.VolumeViz.Nodes.SoVolumeMask with data size of 1 (ie. byte or unsigned byte) can be edited. This implies that dataType of userData must be byte or unsigned byte.

  • warning : userData must be an OIV.LDM.Tiles.SoCpuBufferBitSet.

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

See Also