Table of Contents

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

polyline GeoPolyline3
distance double

Returns

GeoPolyline3

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

polyline GeoPolyline3
distance double
tolerance Tolerance

Returns

GeoPolyline3

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

polyline GeoPolyline3
distance1 double
distance2 double

Returns

GeoPolyline3

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

polyline GeoPolyline3

The chain.

distance1 double

How far back along the leg arriving at each corner to start the cut.

distance2 double

How far along the leg leaving it to finish.

tolerance Tolerance

The 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

polygon GeoPolygon3
distance double

Returns

GeoPolygon3

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

polygon GeoPolygon3
distance double
tolerance Tolerance

Returns

GeoPolygon3

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

polygon GeoPolygon3
distance1 double
distance2 double

Returns

GeoPolygon3

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

polygon GeoPolygon3

The loop.

distance1 double

How far back along the leg arriving at each corner to start the cut.

distance2 double

How far along the leg leaving it to finish.

tolerance Tolerance

The 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

chain GeoPolylineArc3
distance double

Returns

GeoPolylineArc3

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

chain GeoPolylineArc3
distance double
tolerance Tolerance

Returns

GeoPolylineArc3

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

chain GeoPolylineArc3
distance1 double
distance2 double

Returns

GeoPolylineArc3

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

chain GeoPolylineArc3

The chain.

distance1 double

How far back along the leg arriving at each corner to start the cut.

distance2 double

How far along the leg leaving it to finish.

tolerance Tolerance

The 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.