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
polylineGeoPolyline3indexintradiusdoubleresultGeoPolylineArc3
Returns
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
polylineGeoPolyline3indexintradiusdoubleresultGeoPolylineArc3toleranceTolerance
Returns
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
chainGeoPolylineArc3indexintradiusdoubleresultGeoPolylineArc3
Returns
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
chainGeoPolylineArc3The chain.
indexintWhich vertex to round; the two ends have no corner and are refused.
radiusdoubleThe radius of the corner.
resultGeoPolylineArc3The rounded chain, or the chain unchanged when the method returns false.
toleranceToleranceThe 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
polygonGeoPolygon3indexintradiusdoubleresultGeoPolygonArc3
Returns
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
polygonGeoPolygon3The loop.
indexintWhich vertex to round; every vertex of a loop is a corner.
radiusdoubleThe radius.
resultGeoPolygonArc3The rounded loop, or the loop unchanged where the corner would not take it.
toleranceToleranceThe tolerance.
Returns
- bool
true when the corner was rounded; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the loop is null.