Click or drag to resize
SoVolumeDataEditSolidShape Method

Replaces all voxels intersecting the given shape with the specified value.

Namespace: OIV.VolumeViz.Nodes
Assembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public override int EditSolidShape(
	SoNode solidShape,
	double value
)

Parameters

solidShape
Type: OIV.Inventor.NodesSoNode
value
Type: SystemDouble

Return Value

Type: Int32
Remarks

The geometry defined under solidShape must represent a list of closed surfaces otherwise the result is unpredictable. solidShape must not contain any lines or open polyhedrons (polyhedron with shapes). The result is based on the odd-winding rule, so the result is not necessarily the union or the intersection of the closed surfaces. If you want to voxelize lines or single polygons, see also the OIV.VolumeViz.Nodes.SoVolumeData.EditSurfaceShape(OIV.Inventor.Nodes.SoNode, System.Single, System.Double) method.

If the goal is to define a shape which is the result of the intersection/union of multiple closed surfaces, see the OIV.Inventor.Nodes.SoCSGShape node.

solidShape is defined in the same 3D space as the dataSet. The solidShape can be deleted after calling this function.

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

Caution note Caution

The modification may be postponed until the tiles are really needed. Therefore the surfaceShape node (and children if any) must not be modified until after saveEditing() is called.

See Also