Method GetProjectedCurve
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
GetProjectedCurve(GeoPlane3, GeoVector3)
Gets the curve projected onto a plane along a direction, as AutoCAD's GetProjectedCurve: a new curve of the
same look in no file, each point of it moved along the direction until it meets the plane. A line, ray, xline, 3D
polyline and spline stay of their kind, their points projected (a spline's fit data taken out, as the projected
control points are its curve exactly); an arc, circle or ellipse in a plane parallel to the plane stays of its kind,
moved, and otherwise becomes the part of the ellipse it projects to (a circle of radius 10 on the floor projected
along (0, 0, 1) onto the plane y + z = 0 is an ellipse of radii 14.14 and 10); a polyline of the plane stays one where
its plane is parallel or it has no arc, its vertices taken into the new plane, and otherwise becomes the
DxfSpline of its projected Spline, its arcs being parts of ellipses there. A curve that
projects to a point, its length there within the point tolerance (a 3D polyline standing along the direction), is
refused, and so is a conic seen edge on, or so nearly that its minor axis is within the point tolerance or 1E-6 of its
major one, AutoCAD's least ratio of an ellipse's axes: it projects to a line.
public virtual DxfCurve GetProjectedCurve(GeoPlane3 planeToProjectOn, GeoVector3 projectionDirection)
Parameters
planeToProjectOnGeoPlane3The plane.
projectionDirectionGeoVector3The direction to project along, not in the plane.
Returns
- DxfCurve
The projected curve.
Exceptions
- ArgumentException
Thrown when the direction has no length, is not finite, or runs along the plane within the vector tolerance.
- InvalidOperationException
Thrown when the curve projects to a point or, for a conic seen edge on, to a line, or has no shape the library reads.