NurbCurve2d Class

This class represents non-uniform rational B-splines (NURBS) in 2D space. For more information, see Working with NURBS Curves.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    Teigha.RuntimeDisposableWrapper
      Teigha.GeometryEntity2d
        Teigha.GeometryCurve2d
          Teigha.GeometrySplineEntity2d
            Teigha.GeometryNurbCurve2d

Namespace: Teigha.Geometry
Assembly: TD_Mgd (in TD_Mgd.dll) Version: 26.9.0.0
Syntax
public sealed class NurbCurve2d : SplineEntity2d

The NurbCurve2d type exposes the following members.

Constructors
  Name Description
Public method NurbCurve2d Default constructor for the NurbCurve2d class. With this constructor no actual data is stored in the object.
Public method NurbCurve2d(EllipticalArc2d) Constructor for the NurbCurve2d class. Constructs a 2D curve from a passed 2D elliptical arc.
Public method NurbCurve2d(LineSegment2d) Constructor for the NurbCurve2d class. Constructs a 2D curve from a passed 2D line segment.
Public method NurbCurve2d(Point2dCollection) Constructor for the NurbCurve2d class. Constructs a 2D curve interpolating a given array of 2D points.
Public method NurbCurve2d(Point2dCollection, Tolerance) Constructor for the NurbCurve2d class. Constructs a 2D curve interpolating a given array of 2D points within a given tolerance.
Public method NurbCurve2d(Int32, PolylineCurve2d, Boolean) Constructor for the NurbCurve2d class. Constructs a NURBS curve with a specified degree value, fit polyline, and a flag specifying whether to make a closed curve.
Public method NurbCurve2d(Point2dCollection, Vector2dCollection, Boolean) Constructor for the NurbCurve2d class. Constructs a 2D polynomial curve interpolating a given array of 2D points.
Public method NurbCurve2d(Int32, KnotCollection, Point2dCollection, Boolean) Constructor for the NurbCurve2d class. Constructs a 2D curve according to the passed parameters.
Public method NurbCurve2d(Point2dCollection, Vector2dCollection, Tolerance, Boolean) Constructor for the NurbCurve2d class. Constructs a 2D polynomial curve interpolating a given array of 2D points according to the specified tolerance.
Public method NurbCurve2d(Int32, KnotCollection, Point2dCollection, DoubleCollection, Boolean) Constructor for the NurbCurve2d class. Constructs a 2D curve according to the passed parameters.
Public method NurbCurve2d(Point2dCollection, Vector2d, Vector2d, Boolean, Boolean) Constructor for the NurbCurve2d class. Constructs a 2D curve interpolating a given array of 2D points and using given derivatives at the start point and endpoint.
Public method NurbCurve2d(Point2dCollection, Vector2d, Vector2d, Boolean, Boolean, KnotParameterizationEnum) Constructor for the NurbCurve2d class. Constructs a 2D curve interpolating a given array of 2D points, knot parameterization, and using given derivatives at the start point and endpoint.
Public method NurbCurve2d(Point2dCollection, Vector2d, Vector2d, Boolean, Boolean, Tolerance) Constructor for the NurbCurve2d class. Constructs a 2D curve interpolating a given array of 2D points according to the specified tolerance and using given derivatives at the start point and endpoint.
Public method NurbCurve2d(Point2dCollection, Vector2d, Vector2d, Boolean, Boolean, KnotParameterizationEnum, Tolerance) Constructor for the NurbCurve2d class. Constructs a 2D curve interpolating a given array of 2D points, knot parameterization, and using given derivatives at the start point and endpoint.
Top
Properties
  Name Description
Public property AutoDelete Property that indicates whether the object should be automatically deleted by the Garbage Collector.
(Inherited from DisposableWrapper)
Public property BoundBlock Property that represents an oriented bounding box of curve.
(Inherited from Curve2d)
Public property DefinitionData Property that represents a nurb curve definition data including degree, control points, knots, weights and information about whether the spline is rational and whether it is periodic.
Public property Degree Property that represents the degree of the spline.
(Inherited from SplineEntity2d)
Public property EndParameter Property that represents the parameter corresponding to the end point of this spline.
(Inherited from SplineEntity2d)
Public property EndPoint Property that represents the end point of this spline.
(Inherited from SplineEntity2d)
Public property EvalMode Property that indicates whether the evaluator optimization is turned on.
Public property FitData Property that represents a nurb curve definition fit data including degree, information about whether tangents exist, start and end tangents, fit points, knot parameterization, fit tolerance.
Public property FitKnotParameterization Property that represents parameterization of knot values.
Public property FitTolerance Property that represents tolerance for fit data.
Public property HasEndPoint Property that indicates whether the parametric interval of the curve has an upper bound.
(Inherited from Curve2d)
Public property HasFitData Property that indicates whether the spline is constructed using fit points.
(Inherited from SplineEntity2d)
Public property HasStartPoint Property that indicates whether the parametric interval of the curve has a lower bound.
(Inherited from Curve2d)
Public property IsDisposed Property that indicates whether pointer to native code unmanaged object == IntPtr::Zero.
(Inherited from DisposableWrapper)
Public property IsRational Property that indicates whether the spline is rational or a polynomial.
(Inherited from SplineEntity2d)
Public property Knots Property that represents the knot collection.
(Inherited from SplineEntity2d)
Public property NumControlPoints Property that represents the number of points in the control point array.
(Inherited from SplineEntity2d)
Public property NumFitPoints Property that represents a number of fit points in a spline.
Public property NumKnots Property that represents the number of knots in the knot vector.
(Inherited from SplineEntity2d)
Public property NumWeights Property that represents the number of weights in the spline.
Public property Order Property that represents the order of the spline.
(Inherited from SplineEntity2d)
Public property OrthoBoundBlock Property that represents a bounding box whose edges are aligned with the coordinate axes.
(Inherited from Curve2d)
Public property StartParameter Property that represents the parameter corresponding to the start point of this spline.
(Inherited from SplineEntity2d)
Public property StartPoint Property that represents the start point of this spline.
(Inherited from SplineEntity2d)
Public property UnmanagedObject Property that represents a pointer to an unmanaged object.
(Inherited from DisposableWrapper)
Top
Methods
  Name Description
Public method AddControlPointAt Adds a control point at the specified knot.
Public method AddFitPointAt Inserts a fit point at the specified index.
Public method AddKnot Adds a new knot to the spline knot array.
Public method Clone Clones this entity and returns a handle to the cloned entity.
(Inherited from Entity2d)
Public methodStatic member Create Creates an object based on the passed pointer and returns a handle to the created object.
Public method CreateObjRef
(Inherited from MarshalByRefObject)
Public method DeleteControlPointAt Deletes a control point at the specified index.
Public method DeleteFitPointAt Removes a fit point with the specified index.
Public method Dispose
(Inherited from DisposableWrapper)
Public method ElevateDegree Increases the spline degree by the specified value.
Public method Equals Checks objects for equality.
(Inherited from DisposableWrapper)
Public method EvaluatePoint Retrieves the point on the curve corresponding to the specified parameter value.
(Inherited from Curve2d)
Public method Explode Explodes the curve into its component sub-curves.
(Inherited from Curve2d)
Public method GetArea(Double, Double) Retrieves the area of the parametric interval defined by the passed start and end parameters.
(Inherited from Curve2d)
Public method GetArea(Double, Double, Tolerance) Retrieves the area of the parametric interval defined by the passed start and end parameters within the specified tolerance.
(Inherited from Curve2d)
Public method GetBoundBlockOf Retrieves the oriented bounding box of the specified parametric interval of this curve.
(Inherited from Curve2d)
Public method GetClosestPointTo(Curve2d) Retrieves the closest points between this curve and the passed curve.
(Inherited from Curve2d)
Public method GetClosestPointTo(Point2d) Retrieves the closest point on this curve to the specified point.
(Inherited from Curve2d)
Public method GetClosestPointTo(Curve2d, Tolerance) Retrieves the closest points between this curve and the passed curve within a specified tolerance.
(Inherited from Curve2d)
Public method GetClosestPointTo(Point2d, Tolerance) Retrieves the closest point on this curve to the specified point within the specified tolerance.
(Inherited from Curve2d)
Public method GetContinuityAtKnot(Int32) Returns the degree of the highest derivative that is defined at a specified knot. Currently not implemented.
(Inherited from SplineEntity2d)
Public method GetContinuityAtKnot(Int32, Tolerance) Returns the degree of the highest derivative that is defined at a specified knot. Currently not implemented.
(Inherited from SplineEntity2d)
Public method GetControlPointAt Returns control point in the control point array at the specified index. Currently not implemented.
(Inherited from SplineEntity2d)
Public method GetDistanceTo(Curve2d) Retrieves the distance of the closest points between this curve and the passed curve.
(Inherited from Curve2d)
Public method GetDistanceTo(Point2d) Retrieves the distance of the closest point on this curve and the specified point.
(Inherited from Curve2d)
Public method GetDistanceTo(Curve2d, Tolerance) Retrieves the distance of the closest points between this curve and the passed curve within a specified tolerance.
(Inherited from Curve2d)
Public method GetDistanceTo(Point2d, Tolerance) Retrieves the distance of the closest point on this curve and the specified point within a specified tolerance.
(Inherited from Curve2d)
Public method GetFitPointAt Retrieves the fit point at the specified index.
Public method GetFitTangents Retrieves the start and end tangents if this spline was constructed with fit data.
Public method GetHashCode Retrieves the object hash code.
(Inherited from DisposableWrapper)
Public method GetInterval Retrieves the parametric interval of this curve.
(Inherited from Curve2d)
Public method GetKnotAt Returns a knot value at the specified knot index. Currently not implemented.
(Inherited from SplineEntity2d)
Public method GetLength(Double, Double) Retrieves the arc length of the curve between the two parameter values.
(Inherited from Curve2d)
Public method GetLength(Double, Double, Tolerance) Retrieves the arc length of the curve between the two parameter values within a specified tolerance.
(Inherited from Curve2d)
Public method GetLifetimeService
(Inherited from MarshalByRefObject)
Public method GetNormalPoint(Point2d) Retrieves the point on this curve where normal extends through the passed point.
(Inherited from Curve2d)
Public method GetNormalPoint(Point2d, Tolerance) Retrieves the point on this curve where normal extends through the passed point within the specified tolerance.
(Inherited from Curve2d)
Public method GetOrthoBoundBlockOf Retrieves the bounding box of the specified parametric range of this curve. Bounding box sides are parallel to the coordinate axes.
(Inherited from Curve2d)
Public method GetParameterAtLength(Double, Double, Boolean) Retrieves the parameter value of the point whose arc length distance is the input length.
(Inherited from Curve2d)
Public method GetParameterAtLength(Double, Double, Boolean, Tolerance) Retrieves the parameter value of the point whose arc length distance is the input length.
(Inherited from Curve2d)
Public method GetParameterOf(Point2d) Retrieves the parameter value of a point.
(Inherited from Curve2d)
Public method GetParameterOf(Point2d, Tolerance) Retrieves the parameter value of a point within a specified tolerance.
(Inherited from Curve2d)
Public method GetParametersOfC1Discontinuity Returns parameter values of all points on the spline where the tangent vector is not continuous. The returned array contains points where the tangent vector to the left of the point is not equal to the tangent vector to the right of the point.
Public method GetParametersOfC1Discontinuity(Tolerance) Returns parameter values of all points on the spline where the tangent vector is not continuous according to the specified tolerance. The returned array contains points where the tangent vector to the left of the point is not equal to the tangent vector to the right of the point.
Public method GetParametersOfG1Discontinuity Returns parameter values of all points on the spline where the tangent vector is not continuous. The returned array contains points where the tangent vector to the left of the point does not have the same direction as the tangent vector to the right of the point.
Public method GetParametersOfG1Discontinuity(Tolerance) Returns parameter values of all points on the spline where the tangent vector is not continuous according to the specified tolerance. The returned array contains points where the tangent vector to the left of the point does not have the same direction as the tangent vector to the right of the point.
Public method GetReverseParameterCurve Reverses the parameter direction for this curve.
(Inherited from Curve2d)
Public method GetSamplePoints(Int32) Retrieves an array of sample points along this curve.
(Inherited from Curve2d)
Public method GetSamplePoints(Double, Double, Double) Retrieves specified arrays of sample points along this curve and their parameter values.
(Inherited from Curve2d)
Public method GetSplitCurves Retrieves two segments of this curve split at the specified parameter value.
(Inherited from Curve2d)
Public method GetTrimmedOffset(Double, OffsetCurveExtensionType) Retrieves offset curves that represent the trimmed offset of the curve.
(Inherited from Curve2d)
Public method GetTrimmedOffset(Double, OffsetCurveExtensionType, Tolerance) Retrieves one or more offset curves that represent the trimmed offset of the curve.
(Inherited from Curve2d)
Public method GetType
(Inherited from Object)
Public method GetWeightAt Returns the weight at the specified index.
Public method HardTrimByParams Trims this NURBS curve by the new start and end parameters.
Public method InitializeLifetimeService
(Inherited from MarshalByRefObject)
Public method InsertKnot Inserts a new knot to the spline knot array.
Public method IsClosed Checks whether the curve is closed.
(Inherited from Curve2d)
Public method IsClosed(Tolerance) Checks whether the curve is closed within a specified tolerance.
(Inherited from Curve2d)
Public method IsDegenerate(Entity2d) Checks whether this curve is degenerate and returns the type of entity that the curve degenerates to (if degenerate).
(Inherited from Curve2d)
Public method IsDegenerate(Entity2d, Tolerance) Checks whether this curve is degenerate and returns the type of entity that the curve degenerates to (if degenerate).
(Inherited from Curve2d)
Public method IsEqualTo(Entity2d) Checks whether this entity is equal to the specified entity.
(Inherited from Entity2d)
Public method IsEqualTo(Entity2d, Tolerance) Checks whether this entity is equal to the specified entity within a geometric tolerance.
(Inherited from Entity2d)
Public method IsLinear(Line2d) Checks whether this curve is linear.
(Inherited from Curve2d)
Public method IsLinear(Line2d, Tolerance) Checks whether this curve is linear within a specified tolerance.
(Inherited from Curve2d)
Public method IsOn(Double) Checks whether a specified parameter value is within a valid parametric range of the curve.
(Inherited from Curve2d)
Public method IsOn(Point2d) Checks whether a specified point lies on this curve.
(Inherited from Curve2d)
Public method IsOn(Double, Tolerance) Checks whether a specified parameter value is within a parametric range of the curve.
(Inherited from Curve2d)
Public method IsOn(Point2d, Double) Checks whether a specified point lies on this curve.
(Inherited from Curve2d)
Public method IsOn(Point2d, Tolerance) Checks whether a specified point lies on this curve within specified tolerance.
(Inherited from Curve2d)
Public method IsOn(Point2d, Double, Tolerance) Checks whether a specified point lies on this curve.
(Inherited from Curve2d)
Public method IsPeriodic Checks whether the curve is periodic.
(Inherited from Curve2d)
Public method JoinWith Joins the specified OdGeNurbCurve2d with this spline and returns a reference to the recomputed spline.
Public method MakeClosed Makes an open spline closed, and returns a reference to this spline.
Public method MakeNonPeriodic Makes this spline non-periodic (if it is not).
Public method MakeOpen Makes a closed spline open.
Public method MakePeriodic Makes this spline periodic (if it is not).
Public method MakeRational Makes this spline rational (if it is not).
Public method Mirror Mirrors this entity about the specified 2D line.
(Inherited from Entity2d)
Public method PurgeFitData Purges the fit data that defines this spline. The fit data consists of fit points, fit tolerance, start tangent, and end tangent. The definition of the spline is unchanged.
Public method RotateBy Rotates this entity about the specified point by the specified angle.
(Inherited from Entity2d)
Public method ScaleBy Scales this entity by the specified scale factor about the specified point.
(Inherited from Entity2d)
Public method SetControlPointAt Sets the specified control point in the control point array. Currently not implemented.
(Inherited from SplineEntity2d)
Public method SetEvaluateMode Sets the evaluation mode.
Public method SetFitData(Int32, Point2dCollection) Sets the fit data for this spline.
Public method SetFitData(Int32, Point2dCollection, Tolerance) Sets the fit data for this spline.
Public method SetFitData(Point2dCollection, Vector2d, Vector2d) Sets the fit data for this spline.
Public method SetFitData(Point2dCollection, Vector2d, Vector2d, Tolerance) Sets the fit data for this spline.
Public method SetFitData(KnotCollection, Point2dCollection, Vector2d, Vector2d, Boolean) Sets the fit data for this spline.
Public method SetFitData(Point2dCollection, Vector2d, Vector2d, KnotParameterizationEnum, Tolerance) Sets the fit data for this spline.
Public method SetFitData(KnotCollection, Point2dCollection, Vector2d, Vector2d, Tolerance, Boolean) Sets the fit data for this spline.
Public method SetFitPointAt Sets the fit point at the specified index.
Public method SetFitTangents Sets the fit tangents for this spline.
Public method SetInterval Sets the parametric range of this curve.
(Inherited from Curve2d)
Public method SetKnotAt Sets the knot value for the specified knot. Currently not implemented.
(Inherited from SplineEntity2d)
Public method SetWeightAt Sets the weight at the specified index.
Public method ToString
(Inherited from Object)
Public method TransformBy Applies the specified 2D transformation matrix to this entity.
(Inherited from Entity2d)
Public method TranslateBy Translates this entity by applying a 2D translation vector.
(Inherited from Entity2d)
Top
See Also

©  Bricsys NV. All rights reserved.