Table of Contents

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

polyline GeoPolyline3
index int
distance1 double
distance2 double
result GeoPolyline3

Returns

bool

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

polyline GeoPolyline3

The chain.

index int

Which vertex to cut; the two ends of a chain are not corners.

distance1 double

How far back along the leg arriving there to start the cut.

distance2 double

How far along the leg leaving it to finish.

result GeoPolyline3

The cut chain, or the chain unchanged where the corner would not take it.

tolerance Tolerance

The 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

polygon GeoPolygon3
index int
distance1 double
distance2 double
result GeoPolygon3

Returns

bool

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

polygon GeoPolygon3

The loop.

index int

Which vertex to cut; every vertex of a loop is a corner.

distance1 double

How far back along the leg arriving there to start the cut.

distance2 double

How far along the leg leaving it to finish.

result GeoPolygon3

The cut loop, or the loop unchanged where the corner would not take it.

tolerance Tolerance

The 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

chain GeoPolylineArc3
index int
distance1 double
distance2 double
result GeoPolylineArc3

Returns

bool

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

chain GeoPolylineArc3

The chain.

index int

Which vertex to cut; the two ends of a chain are not corners.

distance1 double

How far back along the leg arriving there to start the cut.

distance2 double

How far along the leg leaving it to finish.

result GeoPolylineArc3

The cut chain, or the chain unchanged where the corner would not take it.

tolerance Tolerance

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