Click or drag to resize
SoDualSceneColliderEnableMultiThread Method

Use multiple threads to compute intersections.

Namespace: OIV.Inventor.Collision
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public void EnableMultiThread(
	bool enable
)

Parameters

enable
Type: SystemBoolean
Remarks

This is faster when testing for collision against a large number of triangles. The computation will use the maximum number of threads supported on the processor.

IMPORTANT: When multithreaded computation is enabled, the OIV.Inventor.Collision.SoDualSceneCollider.SearchNextIntersection(), is not necessarily called from the main thread. Therefore the code in OIV.Inventor.Collision.SoDualSceneCollider.SearchNextIntersection() (and any methods called from it) must be thread-safe. As an example, GUI update calls outside the main thread are often not allowed.

Default is false.

Note Note

Member available since Open Inventor 9.6

See Also