Table of Contents

Method TryFilletAt

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

TryFilletAt(GeoPolyline3, int, double, out GeoPolylineArc3)

Rounds one named corner of a straight chain.

public static bool TryFilletAt(GeoPolyline3 polyline, int index, double radius, out GeoPolylineArc3 result)

Parameters

polyline GeoPolyline3
index int
radius double
result GeoPolylineArc3

Returns

bool

TryFilletAt(GeoPolyline3, int, double, out GeoPolylineArc3, Tolerance)

Rounds one named corner of a straight chain, within a tolerance.

public static bool TryFilletAt(GeoPolyline3 polyline, int index, double radius, out GeoPolylineArc3 result, Tolerance tolerance)

Parameters

polyline GeoPolyline3
index int
radius double
result GeoPolylineArc3
tolerance Tolerance

Returns

bool

TryFilletAt(GeoPolylineArc3, int, double, out GeoPolylineArc3)

Rounds one named corner of a chain that may curve.

public static bool TryFilletAt(GeoPolylineArc3 chain, int index, double radius, out GeoPolylineArc3 result)

Parameters

chain GeoPolylineArc3
index int
radius double
result GeoPolylineArc3

Returns

bool

TryFilletAt(GeoPolylineArc3, int, double, out GeoPolylineArc3, Tolerance)

Rounds one named corner of a chain that may curve, within a tolerance.

public static bool TryFilletAt(GeoPolylineArc3 chain, int index, double radius, out GeoPolylineArc3 result, Tolerance tolerance)

Parameters

chain GeoPolylineArc3

The chain.

index int

Which vertex to round; the two ends have no corner and are refused.

radius double

The radius of the corner.

result GeoPolylineArc3

The rounded chain, or the chain unchanged when the method returns false.

tolerance Tolerance

The tolerance.

Returns

bool

true if the corner had room to be rounded; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

ArgumentOutOfRangeException

Thrown when the index is outside the chain or the radius is not a positive number.

TryFilletAt(GeoPolygon3, int, double, out GeoPolygonArc3)

Rounds one corner of a straight loop.

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

Parameters

polygon GeoPolygon3
index int
radius double
result GeoPolygonArc3

Returns

bool

TryFilletAt(GeoPolygon3, int, double, out GeoPolygonArc3, Tolerance)

Rounds one corner of a straight loop, within a tolerance.

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

Parameters

polygon GeoPolygon3

The loop.

index int

Which vertex to round; every vertex of a loop is a corner.

radius double

The radius.

result GeoPolygonArc3

The rounded loop, or the loop unchanged where the corner would not take it.

tolerance Tolerance

The tolerance.

Returns

bool

true when the corner was rounded; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the loop is null.