Click or drag to resize
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
Assembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public override int EditSurfaceShape(
	SoNode surfaceShape,
	float thickness,
	double newValue
)

Parameters

surfaceShape
Type: OIV.Inventor.NodesSoNode
thickness
Type: SystemSingle
newValue
Type: SystemDouble

Return Value

Type: Int32
Remarks

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.

See Also