SoVolumeMaskEditSubVolume Method (SbBox3i32, SoBufferObject) |
Replace the contents of a subvolume with the given data.
Namespace: OIV.VolumeViz.NodesAssembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 9.9.13.0 (9.9.13.0)
Syntaxpublic override int EditSubVolume(
SbBox3i32 subVolume,
SoBufferObject userData
)
Public Overrides Function EditSubVolume (
subVolume As SbBox3i32,
userData As SoBufferObject
) As Integer
public:
virtual int EditSubVolume(
SbBox3i32 subVolume,
SoBufferObject^ userData
) override
abstract EditSubVolume :
subVolume : SbBox3i32 *
userData : SoBufferObject -> int
override EditSubVolume :
subVolume : SbBox3i32 *
userData : SoBufferObject -> int
Parameters
- subVolume
- Type: OIV.InventorSbBox3i32
- userData
- Type: OIV.Inventor.DevicesSoBufferObject
Return Value
Type:
Int32
RemarksReturns 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 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 SoCpuBufferBitSet.
Call startEditing() before calling this method.
See Also