Click or drag to resize
SoPointLightManipReplaceNode Method

Replaces the tail of the path with this manipulator.

Namespace: OIV.Inventor.Manips
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public bool ReplaceNode(
	SoPath p
)

Parameters

p
Type: OIV.InventorSoPath

Return Value

Type: Boolean
Remarks

The tail of the path must be an OIV.Inventor.Nodes.SoPointLight node (or subclass thereof). If the path has a nodekit, this will try to use setPart() to insert the manipulator. Otherwise, the manipulator requires that the next to last node in the path chain be a group.

The field values from the point light node will be copied to this manipulator, and the light node will be replaced.

The old node will disappear if it has no references other than from the input path p and its parent, since this manipulator will be replacing it in both of those places. Nor will the manipulator make any changes to field connections of the old node. The calling process is thus responsible for keeping track of its own nodes and field connections.

See Also