Method Chamfer
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
Chamfer(GeoPolyline3, double)
Cuts every corner of a straight chain back by the same distance.
public static GeoPolyline3 Chamfer(GeoPolyline3 polyline, double distance)
Parameters
polylineGeoPolyline3distancedouble
Returns
Chamfer(GeoPolyline3, double, Tolerance)
Cuts every corner of a straight chain back by the same distance, within a tolerance.
public static GeoPolyline3 Chamfer(GeoPolyline3 polyline, double distance, Tolerance tolerance)
Parameters
polylineGeoPolyline3distancedoubletoleranceTolerance
Returns
Chamfer(GeoPolyline3, double, double)
Cuts every corner of a straight chain back, by one distance along the way in and another along the way out.
public static GeoPolyline3 Chamfer(GeoPolyline3 polyline, double distance1, double distance2)
Parameters
polylineGeoPolyline3distance1doubledistance2double
Returns
Chamfer(GeoPolyline3, double, double, Tolerance)
Cuts every corner of a straight chain back, by one distance along the way in and another along the way out, within a tolerance.
public static GeoPolyline3 Chamfer(GeoPolyline3 polyline, double distance1, double distance2, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
distance1doubleHow far back along the leg arriving at each corner to start the cut.
distance2doubleHow far along the leg leaving it to finish.
toleranceToleranceThe tolerance.
Returns
- GeoPolyline3
The chain with its corners cut; a corner with too little leg to give is left alone.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
- ArgumentOutOfRangeException
Thrown when either distance is not a positive number.
Chamfer(GeoPolygon3, double)
Cuts every corner of a straight loop back by the same distance.
public static GeoPolygon3 Chamfer(GeoPolygon3 polygon, double distance)
Parameters
polygonGeoPolygon3distancedouble
Returns
Chamfer(GeoPolygon3, double, Tolerance)
Cuts every corner of a straight loop back by the same distance, within a tolerance.
public static GeoPolygon3 Chamfer(GeoPolygon3 polygon, double distance, Tolerance tolerance)
Parameters
polygonGeoPolygon3distancedoubletoleranceTolerance
Returns
Chamfer(GeoPolygon3, double, double)
Cuts every corner of a straight loop back, by one distance along the way in and another along the way out.
public static GeoPolygon3 Chamfer(GeoPolygon3 polygon, double distance1, double distance2)
Parameters
polygonGeoPolygon3distance1doubledistance2double
Returns
Chamfer(GeoPolygon3, double, double, Tolerance)
Cuts every corner of a straight loop back, by one distance along the way in and another along the way out, within a tolerance.
public static GeoPolygon3 Chamfer(GeoPolygon3 polygon, double distance1, double distance2, Tolerance tolerance)
Parameters
polygonGeoPolygon3The loop.
distance1doubleHow far back along the leg arriving at each corner to start the cut.
distance2doubleHow far along the leg leaving it to finish.
toleranceToleranceThe tolerance.
Returns
- GeoPolygon3
The loop with its corners cut; a corner with too little leg to give is left alone.
Remarks
A loop is flat, so cutting its corners keeps it flat and the answer is a loop of the same sort. Every vertex of a loop is a corner, the last one included.
Exceptions
- ArgumentNullException
Thrown when the loop is null.
- ArgumentOutOfRangeException
Thrown when either distance is not a positive number.
Chamfer(GeoPolylineArc3, double)
Cuts every corner of a curved chain back by the same distance.
public static GeoPolylineArc3 Chamfer(GeoPolylineArc3 chain, double distance)
Parameters
chainGeoPolylineArc3distancedouble
Returns
Chamfer(GeoPolylineArc3, double, Tolerance)
Cuts every corner of a curved chain back by the same distance, within a tolerance.
public static GeoPolylineArc3 Chamfer(GeoPolylineArc3 chain, double distance, Tolerance tolerance)
Parameters
chainGeoPolylineArc3distancedoubletoleranceTolerance
Returns
Chamfer(GeoPolylineArc3, double, double)
Cuts every corner of a curved chain back, by one distance along the way in and another along the way out.
public static GeoPolylineArc3 Chamfer(GeoPolylineArc3 chain, double distance1, double distance2)
Parameters
chainGeoPolylineArc3distance1doubledistance2double
Returns
Chamfer(GeoPolylineArc3, double, double, Tolerance)
Cuts every corner of a curved chain back, by one distance along the way in and another along the way out, within a tolerance.
public static GeoPolylineArc3 Chamfer(GeoPolylineArc3 chain, double distance1, double distance2, Tolerance tolerance)
Parameters
chainGeoPolylineArc3The chain.
distance1doubleHow far back along the leg arriving at each corner to start the cut.
distance2doubleHow far along the leg leaving it to finish.
toleranceToleranceThe tolerance.
Returns
- GeoPolylineArc3
The chain with the corners between straight legs cut; the rest are left alone.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
- ArgumentOutOfRangeException
Thrown when either distance is not a positive number.