Table of Contents

Class PlanarMap

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

Carries geometry that curves between the plane and space.

public static class PlanarMap
Inheritance
PlanarMap
Inherited Members

Remarks

The rest of PlanarMap carries points, segments, polylines, polygons and faces. Arcs were missing, and that left the round trip half open: a curved edge of a plate could be brought into the plane to be worked on, but the answer could only be put back by flattening it and losing the curves.

A bulge in the plane is read counter-clockwise about the Z axis, so lifting one keeps the bulge as it is and hands the frame's Z axis to the edge as the plane it bulges in. Bringing one back is the same step in reverse, with one thing to watch: an arc whose normal runs against the frame is the same arc seen from behind, so its bulge changes sign on the way down. An arc whose normal is not along the frame at all does not lie in that plane, and the Try forms say so rather than flattening it.

Methods

FrameOf(GeoFace3)

Gets the frame of a face: the frame of its boundary, so its holes are laid out with it.

FrameOf(GeoPlane3)

Gets a frame of a plane, with the origin at the plane origin and the axes the plane itself fixes.

FrameOf(GeoPolygon3)

Gets the frame of a polygon: its plane, with the origin at the first vertex and the first axis along the first edge that has a direction, so the frame turns with the polygon.

ProjectToArc2(GeoCoordinateSystem3, GeoArc3)

Lays an arc out in a frame, by projecting it onto the plane of that frame.

ProjectToFace2(GeoCoordinateSystem3, GeoFace3)

Lays a face and its holes out in a frame, dropping each vertex's distance from the plane.

ProjectToLine2(GeoCoordinateSystem3, GeoLine3)

Lays a segment out in a frame, dropping each end's distance from the plane.

ProjectToPoint2(GeoCoordinateSystem3, GeoPoint3)

Lays a point out in a frame, dropping its distance from the plane.

ProjectToPolygon2(GeoCoordinateSystem3, GeoPolygon3)

Lays a polygon out in a frame, dropping each vertex's distance from the plane.

ProjectToPolyline2(GeoCoordinateSystem3, GeoPolyline3)

Lays a chain out in a frame, dropping each vertex's distance from the plane.

ProjectToTriangle2(GeoCoordinateSystem3, GeoTriangle3)

Lays a triangle out in a frame, dropping each vertex's distance from the plane of that frame.

ProjectToVector2(GeoCoordinateSystem3, GeoVector3)

Lays a vector out in a frame, dropping the part square to the plane.

ToArc3(GeoCoordinateSystem3, GeoArc2)

Lifts an arc out of a frame into the plane of that frame in space.

ToEdge3(GeoCoordinateSystem3, GeoEdge2)

Lifts an edge out of a frame into the plane of that frame in space.

ToFace3(GeoCoordinateSystem3, GeoFace2)

Puts a face of the plane back into space, holes and all.

ToLine3(GeoCoordinateSystem3, GeoLine2)

Puts a segment of the plane back into space.

ToPoint3(GeoCoordinateSystem3, GeoPoint2)

Puts a point of the plane back into space.

ToPolygon3(GeoCoordinateSystem3, GeoPolygon2)

Puts a polygon of the plane back into space.

ToPolyline3(GeoCoordinateSystem3, GeoPolyline2)

Puts a chain of the plane back into space.

ToPolylineArc3(GeoCoordinateSystem3, GeoPolylineArc2)

Lifts a chain that may curve out of a frame into the plane of that frame in space.

ToTriangle3(GeoCoordinateSystem3, GeoTriangle2)

Puts a triangle of the plane back into space.

ToVector3(GeoCoordinateSystem3, GeoVector2)

Puts a vector of the plane back into space.

TryToArc2(GeoCoordinateSystem3, GeoArc3, out GeoArc2)

Lays an arc out in a frame when it lies in the plane of that frame.

TryToArc2(GeoCoordinateSystem3, GeoArc3, out GeoArc2, Tolerance)

Lays an arc out in a frame when it lies in the plane of that frame, within a tolerance.

TryToEdge2(GeoCoordinateSystem3, GeoEdge3, out GeoEdge2)

Lays an edge out in a frame when it lies in the plane of that frame.

TryToEdge2(GeoCoordinateSystem3, GeoEdge3, out GeoEdge2, Tolerance)

Lays an edge out in a frame when it lies in the plane of that frame, within a tolerance.

TryToPoint2(GeoCoordinateSystem3, GeoPoint3, out GeoPoint2)

Lays a point out in a frame when it lies on the plane of that frame, using the default tolerance.

TryToPoint2(GeoCoordinateSystem3, GeoPoint3, out GeoPoint2, Tolerance)

Lays a point out in a frame when it lies on the plane of that frame, within a tolerance.

TryToPolylineArc2(GeoCoordinateSystem3, GeoPolylineArc3, out GeoPolylineArc2)

Lays a chain that may curve out in a frame when the whole of it lies in the plane of that frame.

TryToPolylineArc2(GeoCoordinateSystem3, GeoPolylineArc3, out GeoPolylineArc2, Tolerance)

Lays a chain that may curve out in a frame when the whole of it lies in the plane of that frame, within a tolerance.