SoVolumeMaskEditSurfaceShape Method |
Replace all voxels intersecting the polygons or lines defined by the surfaceShape and given thickness with the specified value.
Namespace: OIV.VolumeViz.Nodes
public override int EditSurfaceShape( SoNode surfaceShape, float thickness, double newValue )
Returns 0 if successful.
surfaceShape is defined in the same 3D space as the dataSet.
thickness is defined in voxels. The surfaceShape can be deleted after calling this function.
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.