Table of Contents

Class ClashBar

Namespace
GeometryHelper.Clash
Assembly
GeometryHelper.dll

A round bar to check for clashes by its centre line and its radius, without building its body.

public sealed class ClashBar
Inheritance
ClashBar
Inherited Members

Remarks

Checked as a body, a bar is the body Pipe(GeoPolylineArc3, double, double) builds: a polygon swept along the centre line, a few hundred faces for a bar with two bends, lying a chord tolerance inside the round bar it stands for, and a boolean for every part it runs into. Checked by its centre line, a bar runs into a part where the part comes nearer the centre line than the radius: found exactly on the straight runs and within the chord tolerance on the bends, and measured by how deep the part reaches into the bar (Depth) and how much of the centre line runs inside it (LengthInside) instead of by a volume, with nothing built.

The ends are read rounded. A ball rolled along the centre line reaches a radius past each end, where a real bar ends flat, so right at an end a part up to a radius beyond it is found to clash: the check errs on the side of reporting.

Constructors

ClashBar(GeoPolyline3, double)

Initializes a straight-run bar from its centre line and its radius.

ClashBar(GeoPolylineArc3, double)

Initializes a bar from its centre line and its radius, its bends followed to a thousandth of the radius.

ClashBar(GeoPolylineArc3, double, double)

Initializes a bar from its centre line and its radius, its bends followed to a chord tolerance.

Properties

CentreLine

Gets the centre line, with its bends as arcs.

ChordTolerance

Gets how far the straight pieces the bends are followed by may stray from them.

Radius

Gets the radius of the bar itself.