Class Corner2
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
Reshapes the corners of a chain or a polygon, as AutoCAD's CHAMFER does.
A chamfer replaces a corner with one straight cut across it, measured back along each of the two edges that meet there. What comes back is the kind of shape that went in, because cutting a corner square adds no curvature: a polygon gives a polygon, a chain gives a chain.
TryTrimExtendToCorner(GeoLine2, GeoLine2, out GeoLine2, out GeoLine2) is the other end of the same family: it builds a corner where two loose segments would meet, rather than cutting one that already exists.
public static class Corner2
- Inheritance
-
Corner2
- Inherited Members
Remarks
Chamfering a GeoPolyline2 or a GeoPolygon2 was offered and rounding them was not, though a straight chain is exactly what a fillet is usually asked of and space had it all along through Fillet(GeoPolyline3, double). The plane was behind space here, the reverse of everywhere else.
A rounded corner is an arc, so a straight chain cannot hold the answer and the return type is the curved one — GeoPolylineArc2 for a chain, GeoPolygonArc2 for a loop — which is the same shape of answer space gives. Nothing new is worked out here: the chain is read as a curved one with every bulge at nought, and the rounding that already exists does the rest.
Methods
- Chamfer(GeoPolygon2, double)
Chamfers every corner of a polygon that has room for it, cutting the same distance along both edges, using the default tolerance.
- Chamfer(GeoPolygon2, double, Tolerance)
Chamfers every corner of a polygon that has room for it, cutting the same distance along both edges, within a tolerance.
- Chamfer(GeoPolygon2, double, double)
Chamfers every corner of a polygon that has room for it, using the default tolerance.
- Chamfer(GeoPolygon2, double, double, Tolerance)
Chamfers every corner of a polygon that has room for it, within a tolerance.
- Chamfer(GeoPolygonArc2, double, double, Tolerance)
Chamfers every corner of a loop that has room for it, within a tolerance.
- Chamfer(GeoPolyline2, double)
Chamfers every corner of a chain that has room for it, cutting the same distance along both edges, using the default tolerance.
- Chamfer(GeoPolyline2, double, Tolerance)
Chamfers every corner of a chain that has room for it, cutting the same distance along both edges, within a tolerance.
- Chamfer(GeoPolyline2, double, double)
Chamfers every corner of a chain that has room for it, using the default tolerance.
- Chamfer(GeoPolyline2, double, double, Tolerance)
Chamfers every corner of a chain that has room for it, within a tolerance.
- Chamfer(GeoPolylineArc2, double, double, Tolerance)
Chamfers every corner of a chain that has room for it, within a tolerance.
- Fillet(GeoPolygon2, IReadOnlyList<double>)
Rounds the corners of a straight loop, one radius each.
- Fillet(GeoPolygon2, IReadOnlyList<double>, Tolerance)
Rounds the corners of a straight loop, one radius each, within a tolerance.
- Fillet(GeoPolygon2, double)
Rounds every corner of a straight loop by the same radius.
- Fillet(GeoPolygon2, double, Tolerance)
Rounds every corner of a straight loop by the same radius, within a tolerance.
- Fillet(GeoPolygonArc2, IReadOnlyList<double>)
Rounds the corners of a loop, each by its own radius, using the default tolerance.
- Fillet(GeoPolygonArc2, IReadOnlyList<double>, Tolerance)
Rounds the corners of a loop, each by its own radius, within a tolerance.
- Fillet(GeoPolygonArc2, double, Tolerance)
Rounds every corner of a loop that has room for it with an arc of a given radius, within a tolerance.
- Fillet(GeoPolyline2, IReadOnlyList<double>)
Rounds the corners of a straight chain, one radius each.
- Fillet(GeoPolyline2, IReadOnlyList<double>, Tolerance)
Rounds the corners of a straight chain, one radius each, within a tolerance.
- Fillet(GeoPolyline2, double)
Rounds every corner of a straight chain by the same radius.
- Fillet(GeoPolyline2, double, Tolerance)
Rounds every corner of a straight chain by the same radius, within a tolerance.
- Fillet(GeoPolylineArc2, IReadOnlyList<double>)
Rounds the corners of a chain, each by its own radius, using the default tolerance.
- Fillet(GeoPolylineArc2, IReadOnlyList<double>, Tolerance)
Rounds the corners of a chain, each by its own radius, within a tolerance.
- Fillet(GeoPolylineArc2, double, Tolerance)
Rounds every corner of a chain that has room for it with an arc of a given radius, within a tolerance.
- TryChamferAt(GeoPolygon2, int, double, double, out GeoPolygon2)
Chamfers one corner of a polygon, using the default tolerance.
- TryChamferAt(GeoPolygon2, int, double, double, out GeoPolygon2, Tolerance)
Chamfers one corner of a polygon, within a tolerance.
- TryChamferAt(GeoPolygonArc2, int, double, double, out GeoPolygonArc2)
Chamfers one corner of a loop that may curve, using the default tolerance.
- TryChamferAt(GeoPolygonArc2, int, double, double, out GeoPolygonArc2, Tolerance)
Chamfers one corner of a loop that may curve, within a tolerance.
- TryChamferAt(GeoPolyline2, int, double, double, out GeoPolyline2)
Chamfers one corner of a chain, using the default tolerance.
- TryChamferAt(GeoPolyline2, int, double, double, out GeoPolyline2, Tolerance)
Chamfers one corner of a chain, within a tolerance.
- TryChamferAt(GeoPolylineArc2, int, double, double, out GeoPolylineArc2)
Chamfers one corner of a chain that may curve, using the default tolerance.
- TryChamferAt(GeoPolylineArc2, int, double, double, out GeoPolylineArc2, Tolerance)
Chamfers one corner of a chain that may curve, within a tolerance.
- TryFilletAt(GeoPolygon2, int, double, out GeoPolygonArc2)
Rounds one corner of a straight loop.
- TryFilletAt(GeoPolygon2, int, double, out GeoPolygonArc2, Tolerance)
Rounds one corner of a straight loop, within a tolerance.
- TryFilletAt(GeoPolygonArc2, int, double, out GeoPolygonArc2)
Rounds one corner of a loop, using the default tolerance.
- TryFilletAt(GeoPolygonArc2, int, double, out GeoPolygonArc2, Tolerance)
Rounds one corner of a loop, within a tolerance.
- TryFilletAt(GeoPolyline2, int, double, out GeoPolylineArc2)
Rounds one corner of a straight chain.
- TryFilletAt(GeoPolyline2, int, double, out GeoPolylineArc2, Tolerance)
Rounds one corner of a straight chain, within a tolerance.
- TryFilletAt(GeoPolylineArc2, int, double, out GeoPolylineArc2)
Rounds one corner of a chain, using the default tolerance.
- TryFilletAt(GeoPolylineArc2, int, double, out GeoPolylineArc2, Tolerance)
Rounds one corner of a chain, within a tolerance.