Method TryChamferAt
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
TryChamferAt(GeoPolyline3, int, double, double, out GeoPolyline3)
Cuts one corner of a straight chain back.
public static bool TryChamferAt(GeoPolyline3 polyline, int index, double distance1, double distance2, out GeoPolyline3 result)
Parameters
polylineGeoPolyline3indexintdistance1doubledistance2doubleresultGeoPolyline3
Returns
TryChamferAt(GeoPolyline3, int, double, double, out GeoPolyline3, Tolerance)
Cuts one corner of a straight chain back, within a tolerance.
public static bool TryChamferAt(GeoPolyline3 polyline, int index, double distance1, double distance2, out GeoPolyline3 result, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
indexintWhich vertex to cut; the two ends of a chain are not corners.
distance1doubleHow far back along the leg arriving there to start the cut.
distance2doubleHow far along the leg leaving it to finish.
resultGeoPolyline3The cut chain, or the chain unchanged where the corner would not take it.
toleranceToleranceThe tolerance.
Returns
- bool
true when the corner was cut; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
- ArgumentOutOfRangeException
Thrown when the index is outside the chain, or either distance is not positive.
TryChamferAt(GeoPolygon3, int, double, double, out GeoPolygon3)
Cuts one corner of a straight loop back.
public static bool TryChamferAt(GeoPolygon3 polygon, int index, double distance1, double distance2, out GeoPolygon3 result)
Parameters
polygonGeoPolygon3indexintdistance1doubledistance2doubleresultGeoPolygon3
Returns
TryChamferAt(GeoPolygon3, int, double, double, out GeoPolygon3, Tolerance)
Cuts one corner of a straight loop back, within a tolerance.
public static bool TryChamferAt(GeoPolygon3 polygon, int index, double distance1, double distance2, out GeoPolygon3 result, Tolerance tolerance)
Parameters
polygonGeoPolygon3The loop.
indexintWhich vertex to cut; every vertex of a loop is a corner.
distance1doubleHow far back along the leg arriving there to start the cut.
distance2doubleHow far along the leg leaving it to finish.
resultGeoPolygon3The cut loop, or the loop unchanged where the corner would not take it.
toleranceToleranceThe tolerance.
Returns
- bool
true when the corner was cut; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the loop is null.
- ArgumentOutOfRangeException
Thrown when the index is outside the loop, or either distance is not positive.
TryChamferAt(GeoPolylineArc3, int, double, double, out GeoPolylineArc3)
Cuts one corner of a curved chain back.
public static bool TryChamferAt(GeoPolylineArc3 chain, int index, double distance1, double distance2, out GeoPolylineArc3 result)
Parameters
chainGeoPolylineArc3indexintdistance1doubledistance2doubleresultGeoPolylineArc3
Returns
TryChamferAt(GeoPolylineArc3, int, double, double, out GeoPolylineArc3, Tolerance)
Cuts one corner of a curved chain back, within a tolerance.
public static bool TryChamferAt(GeoPolylineArc3 chain, int index, double distance1, double distance2, out GeoPolylineArc3 result, Tolerance tolerance)
Parameters
chainGeoPolylineArc3The chain.
indexintWhich vertex to cut; the two ends of a chain are not corners.
distance1doubleHow far back along the leg arriving there to start the cut.
distance2doubleHow far along the leg leaving it to finish.
resultGeoPolylineArc3The cut chain, or the chain unchanged where the corner would not take it.
toleranceToleranceThe tolerance.
Returns
- bool
true when the corner was cut; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
- ArgumentOutOfRangeException
Thrown when the index is outside the chain, or either distance is not positive.