Click or drag to resize
SoDataSetEditSolidShape Method

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

Namespace: OIV.LDM.Nodes
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public virtual 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.LDM.Nodes.SoDataSet.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.LDM.Nodes.SoDataSet.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