Property Depth
- Namespace
- GeometryHelper.Clash
- Assembly
- GeometryHelper.dll
Depth
Gets how deep the two run into each other, for a Hard clash; nought otherwise.
public double Depth { get; }
Property Value
Remarks
For two bodies it is the least thickness of the region they share, the smallest side of the least box round it (Fit(IEnumerable<GeoPoint3>)), and of the deepest region where they share more than one: a bar grazing a flange by half a millimetre is half a millimetre deep however long the graze, and a bar through a plate as deep as the thinner of the two. For a region of no simple shape it is an estimate, a close one.
For a bar checked by its centre line (ClashBar) it is how far the part reaches into the bar, across it. Where the centre line stays outside the part it is the radius less the centre line's nearest approach, exactly. Where the centre line runs inside, it is the radius and as far again as the centre line runs beneath the part's surface, at most the diameter, measured at points an eighth of a radius apart and so to within a sixteenth of the radius (on a stretch inside over 512 radii long, the points are spread wider). A plate thinner than the bar that the bar passes through is the radius and half the plate deep, where two bodies read the least thickness of what they share, the plate's own: however thin, the plate cuts the bar through.
A clash reported as touching for being shallower than MinimumDepth or smaller than MinimumVolume keeps the depth it was found with.