Table of Contents

Property Global

Namespace
GeometryHelper
Assembly
GeometryHelper.dll

Global

Tolerance applied for overloads without explicit tolerance. It starts as Default.

public static Tolerance Global { get; set; }

Property Value

Tolerance

Remarks

This is one setting for the process, read by the plane and by space alike. Setting it replaces it whole, so a thread reading it while another sets it sees the old tolerance or the new one, never a mix; but an operation already under way may read it more than once, so set it while starting up, before geometry is built.

Where a tolerance has to vary for a while on one thread — one drawing, one model — open a scope with Use(Tolerance): this property returns the scope's tolerance on that thread until the scope is disposed, and every other thread keeps the process-wide one. Where it has to vary per call, pass it: every affected method takes one, and that overload touches nothing shared.