CADability dotNET
The Curves2D type exposes the following members.
Methods
Name | Description | |
---|---|---|
Connect |
Connect two curves: the endpoint of the first curve with the startpoint of the second curve.
| |
ConnectByTwoArcs |
Constructs two arcs that connect p1 and p2 and are tangential to
dir1 and dir2 respectively.
| |
DistanceAtDirection |
Calculates the distance of the two curves in the provided direction. In other words this means how far con you
move the first curve in the direction dir so that it touches the second curve?
The result may be double.MaxValue if the curves will never touch eac other, or it might be negative if you would have to
move first in the opposite direction of dir to touch second.
.
| |
NearestPoint | ||
SimpleMinimumDistance(ICurve2D, ICurve2D) | ||
SimpleMinimumDistance(ICurve2D, ICurve2D, GeoPoint2D%, GeoPoint2D%) |
Returns the minimum distance of the two given curves.
| |
SimpleMinimumDistance(ICurve2D, ICurve2D, GeoPoint2D, GeoPoint2D%, GeoPoint2D%) |
Returns the minimum distance of the two given curves. If the curves are parallel,
the connection of p1 and p2 will go through preferredPosition.
| |
TangentCircle(ICurve2D, ICurve2D, Double) |
Calculates the center points and the tangential points of the circles that are tangential to the given
curves and have the given radius. There may be any number of solutions, including
no solution. Each solution consists of three points: 1.: the center, 2.: the tangential
point to the first curve, 3.: the tangential point to the second curve. The length of
the returned array is a multiple of 3 (or 0)
| |
TangentCircle(ICurve2D, GeoPoint2D, Double) |
Calculates the center points and the tangential point of the circles that are tangential to a given
curve with a given circlepoint and have the given radius. There may be any number of solutions, including
no solution. Each solution consists of two points: 1.: the center, 2.: the tangential
point to the curve. The length of
the returned array is a multiple of 2 (or 0)
| |
TangentCircle(ICurve2D, ICurve2D, ICurve2D, GeoPoint2D, GeoPoint2D, GeoPoint2D) |
Calculates the center points and the tangential points of the circles that are tangential to the given
curves. If the curves are lines or circles all possible solutions are revealed. If the curves
are more complex, only the solution that is closest to the given points is revealed.
Each solution consists of 4 points: 1.: the center, 2.: the tangential point to c1,
3.: the tangential point to c2, 4.: the tangential point to c3. The radius mus be calculated
by the distance of the center to one of the tangential points. The length of
the returned array is a multiple of 4 (or 0)
| |
TangentLines(ICurve2D, ICurve2D) |
Calculates lines that are tangential to both the first and the second curve. Returns
an array of 2D points, where each pair of points represent a line. The number of
points is always even. Implemented for circles or arcs only.
| |
TangentLines(ICurve2D, ICurve2D, GeoPoint2D, GeoPoint2D) |
Calculates the start- and endpoints of lines that are tangential to the given
curves. There may be any number of solutions, including
no solution. Each solution consists of two points: 1.: the startpoint, 2.: the endpoint
of the Line. the startpoint lies on the first curve, the endpoint on the second. The length of
the returned array is a multiple of 2 (or 0).
If both curves are circles or arcs, all possible solutions are returned. If a curve is
mor complex than a circle (e.g. bspline, ellipse) only the solution closest to the
points p1 and p2 is returned.
|