Table of Contents

Method Fillet

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

Fillet(GeoPolyline3, double)

Rounds every corner of a straight chain by the same radius.

public static GeoPolylineArc3 Fillet(GeoPolyline3 polyline, double radius)

Parameters

polyline GeoPolyline3
radius double

Returns

GeoPolylineArc3

Fillet(GeoPolyline3, double, Tolerance)

Rounds every corner of a straight chain by the same radius, within a tolerance.

public static GeoPolylineArc3 Fillet(GeoPolyline3 polyline, double radius, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The chain.

radius double

The radius of every corner; a bending radius, in the language of a bar.

tolerance Tolerance

The tolerance.

Returns

GeoPolylineArc3

The chain with its corners rounded; a corner with too little edge, or none to turn, is left as it was.

Exceptions

ArgumentNullException

Thrown when the chain is null.

ArgumentOutOfRangeException

Thrown when the radius is not a positive number.

Fillet(GeoPolylineArc3, double)

Rounds every corner of a chain that may curve by the same radius.

public static GeoPolylineArc3 Fillet(GeoPolylineArc3 chain, double radius)

Parameters

chain GeoPolylineArc3
radius double

Returns

GeoPolylineArc3

Fillet(GeoPolylineArc3, double, Tolerance)

Rounds every corner of a chain that may curve by the same radius, within a tolerance.

public static GeoPolylineArc3 Fillet(GeoPolylineArc3 chain, double radius, Tolerance tolerance)

Parameters

chain GeoPolylineArc3
radius double
tolerance Tolerance

Returns

GeoPolylineArc3

Fillet(GeoPolyline3, IReadOnlyList<double>)

Rounds the corners of a straight chain, each by its own radius.

public static GeoPolylineArc3 Fillet(GeoPolyline3 polyline, IReadOnlyList<double> radii)

Parameters

polyline GeoPolyline3
radii IReadOnlyList<double>

Returns

GeoPolylineArc3

Fillet(GeoPolyline3, IReadOnlyList<double>, Tolerance)

Rounds the corners of a straight chain, each by its own radius, within a tolerance.

public static GeoPolylineArc3 Fillet(GeoPolyline3 polyline, IReadOnlyList<double> radii, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The chain.

radii IReadOnlyList<double>

The radius wanted at each vertex, read the way the bulges are read: the entry at an index belongs to the vertex at that index. A radius of nought leaves that corner alone, and a list shorter than the chain leaves the rest of it alone.

tolerance Tolerance

The tolerance.

Returns

GeoPolylineArc3

Exceptions

ArgumentNullException

Thrown when the chain or the radii are null.

ArgumentOutOfRangeException

Thrown when a radius is negative or not a number.

Fillet(GeoPolylineArc3, IReadOnlyList<double>)

Rounds the corners of a chain that may curve, each by its own radius.

public static GeoPolylineArc3 Fillet(GeoPolylineArc3 chain, IReadOnlyList<double> radii)

Parameters

chain GeoPolylineArc3
radii IReadOnlyList<double>

Returns

GeoPolylineArc3

Fillet(GeoPolylineArc3, IReadOnlyList<double>, Tolerance)

Rounds the corners of a chain that may curve, each by its own radius, within a tolerance.

public static GeoPolylineArc3 Fillet(GeoPolylineArc3 chain, IReadOnlyList<double> radii, Tolerance tolerance)

Parameters

chain GeoPolylineArc3
radii IReadOnlyList<double>
tolerance Tolerance

Returns

GeoPolylineArc3

Fillet(GeoPolygon3, double)

Rounds every corner of a straight loop by the same radius.

public static GeoPolygonArc3 Fillet(GeoPolygon3 polygon, double radius)

Parameters

polygon GeoPolygon3
radius double

Returns

GeoPolygonArc3

Fillet(GeoPolygon3, double, Tolerance)

Rounds every corner of a straight loop by the same radius, within a tolerance.

public static GeoPolygonArc3 Fillet(GeoPolygon3 polygon, double radius, Tolerance tolerance)

Parameters

polygon GeoPolygon3

The loop.

radius double

The radius to round every corner by.

tolerance Tolerance

The tolerance.

Returns

GeoPolygonArc3

The loop with its corners rounded; a corner with too little edge to give is left alone.

Remarks

A rounded corner is an arc, so a straight loop cannot hold the answer and the return type is GeoPolygonArc3. A loop is flat, so this is the coplanar lift and not the per-corner frame an open chain needs.

Exceptions

ArgumentNullException

Thrown when the loop is null.

Fillet(GeoPolygon3, IReadOnlyList<double>)

Rounds the corners of a straight loop, one radius each.

public static GeoPolygonArc3 Fillet(GeoPolygon3 polygon, IReadOnlyList<double> radii)

Parameters

polygon GeoPolygon3
radii IReadOnlyList<double>

Returns

GeoPolygonArc3

Fillet(GeoPolygon3, IReadOnlyList<double>, Tolerance)

Rounds the corners of a straight loop, one radius each, within a tolerance.

public static GeoPolygonArc3 Fillet(GeoPolygon3 polygon, IReadOnlyList<double> radii, Tolerance tolerance)

Parameters

polygon GeoPolygon3

The loop.

radii IReadOnlyList<double>

A radius per corner; nought leaves that corner square.

tolerance Tolerance

The tolerance.

Returns

GeoPolygonArc3

The loop with the corners the radii asked for rounded.

Exceptions

ArgumentNullException

Thrown when the loop or the list of radii is null.