Constructor ClashOptions
- Namespace
- GeometryHelper.Clash
- Assembly
- GeometryHelper.dll
ClashOptions(double, bool, int)
Initializes the options with no minimum depth or volume: every overlap is a Hard clash.
public ClashOptions(double clearance, bool includeTouching, int maxDegreeOfParallelism)
Parameters
clearancedoubleHow far apart two parts have to stay; two nearer than this are reported as Clearance. Nought asks only for parts running into or touching each other.
includeTouchingboolWhether parts that touch without sharing volume are reported.
maxDegreeOfParallelismintHow many threads may check pairs at once; -1 for every processor.
Remarks
The constructor as it was before the minimums, kept so that code built against it runs as it did.
Exceptions
- ArgumentOutOfRangeException
Thrown when the clearance is negative, NaN or infinite, or the parallelism is neither -1 nor positive.
ClashOptions(double, bool, int, double, double)
Initializes the options.
public ClashOptions(double clearance = 0, bool includeTouching = true, int maxDegreeOfParallelism = -1, double minimumDepth = 0, double minimumVolume = 0)
Parameters
clearancedoubleHow far apart two parts have to stay; two nearer than this are reported as Clearance. Nought asks only for parts running into or touching each other.
includeTouchingboolWhether parts that touch without sharing volume are reported.
maxDegreeOfParallelismintHow many threads may check pairs at once; -1 for every processor.
minimumDepthdoubleHow deep two parts have to run into each other for a Hard clash; see MinimumDepth. Nought reports every overlap.
minimumVolumedoubleHow much volume two bodies have to share for a Hard clash; see MinimumVolume. Nought reports every overlap.
Exceptions
- ArgumentOutOfRangeException
Thrown when the clearance, the minimum depth or the minimum volume is negative, NaN or infinite, or the parallelism is neither -1 nor positive.