Click or drag to resize
SoCSGShapeSetMaxAttempt Method

If the CSG Operation failed for any reason, it will be retried by applying a small random transformation to the operand vertices.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public void SetMaxAttempt(
	int maxAttempt
)

Parameters

maxAttempt
Type: SystemInt32
Remarks

This can solve the problem if the geometries are well formed, but for example 2 faces are coplanar. This method sets the max number of times OIV.Inventor.Nodes.SoCSGShape will retry before giving up and using the rescueOperation (see OIV.Inventor.Nodes.SoCSGShape.SetRescueOperation(OIV.Inventor.Nodes.SoCSGShape.CsgOperationTypes)). A max attempt of 5 is enough. If CSG Operation fails after 5 attempts, it will probably fail all the time.

Default is 5.

Caution note Caution

A value > 0 may change the coordinates of geometries as they will be transformed a little bit to apply the CSG operation. This transformation is normally not visible to the naked eye (it's about 0.01%), but may cause issues if you need precise values.

See Also