Table of Contents

Method TryFilletAt

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TryFilletAt(int, double, out GeoPolygonArc3)

Rounds one named corner of the loop and reports whether it had room.

public bool TryFilletAt(int index, double radius, out GeoPolygonArc3 result)

Parameters

index int
radius double
result GeoPolygonArc3

Returns

bool

TryFilletAt(int, double, out GeoPolygonArc3, Tolerance)

Rounds one named corner of the loop and reports whether it had room, within a tolerance.

public bool TryFilletAt(int index, double radius, out GeoPolygonArc3 result, Tolerance tolerance)

Parameters

index int

Which corner to round.

radius double

The radius to round it by.

result GeoPolygonArc3

The loop with that corner rounded, when it fitted.

tolerance Tolerance

The tolerance.

Returns

bool

true when the corner had room for the radius; otherwise, false, and the loop is unchanged.

Remarks

The loop is read corner for corner, a side shorter than the global tolerance and all, so the corner rounded is the vertex at the index: at a millionth, the loop (0, 0, 0), (10, 0, 0), (10.0004, 0.0004, 0), (10.0004, 10, 0), (0, 10, 0) rounded by 1 at vertex 3 turns at (10.0004, 10, 0), where it was laid out within the global tolerance of a thousandth, lost its side 0.00057 long, and was rounded at (0, 10, 0).