Method InsertControlPointAt
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
InsertControlPointAt(double, GeoPoint3, double)
Puts a control point in, as AutoCAD's InsertControlPointAt: the knot added to the knots, and the point with its
weight put in among the control points where that knot works most, the middle of the points the span of the knot
moves (for a cubic the second of the three, so that a cubic of 4 points from (0, 0) to (30, 0) given (15, 10) at 0.5
has it as its third point of 5). The curve changes with the point, as AutoCAD's; the fit data are taken out.
public void InsertControlPointAt(double knotParam, GeoPoint3 controlPoint, double weight)
Parameters
knotParamdoubleThe knot, inside the spline's domain; it may stand already, but not as many times as the degree.
controlPointGeoPoint3The point, in the world.
weightdoubleIts weight, above nought; a spline not rational is made so where it is not 1.
Exceptions
- ArgumentOutOfRangeException
Thrown when the knot is outside the domain or stands as many times as the degree already, or a number is not finite, or the weight not above nought.
- ArgumentException
Thrown when a coordinate is not finite.
- InvalidOperationException
Thrown when the spline has no data that make a spline, or is erased.