Method ToGeoPolygonArc3
- Namespace
- GeometryHelper.TeklaConvert
- Assembly
- GeometryHelper.TeklaConvert.dll
ToGeoPolygonArc3(Polygon, double)
Converts a Tekla polygon to a closed loop that may curve, bending it at each corner.
public static GeoPolygonArc3 ToGeoPolygonArc3(this Polygon polygon, double bendingRadius)
Parameters
polygonPolygonbendingRadiusdouble
Returns
ToGeoPolygonArc3(Polygon, double, Tolerance)
Converts a Tekla polygon to a closed loop that may curve, bending it at each corner, within a tolerance.
public static GeoPolygonArc3 ToGeoPolygonArc3(this Polygon polygon, double bendingRadius, Tolerance tolerance)
Parameters
polygonPolygonThe Tekla polygon the loop is set out by.
bendingRadiusdoubleThe radius of every corner; nought leaves them all square.
toleranceToleranceThe tolerance.
Returns
- GeoPolygonArc3
The loop with its corners rounded.
Remarks
This is the shape a closed tie is: set out by its corners, bent to a radius. The corner closing the loop is rounded like every other, which is what tells a loop from a chain whose ends happen to meet.
Exceptions
- ArgumentNullException
Thrown when
polygonis null.- ArgumentException
Thrown when the points are not flat, since a loop encloses an area.