NurbsCurve
- class compas.geometry.NurbsCurve(*args, **kwargs)[source]
Bases:
Curve
A NURBS curve is defined by control points, weights, knots, and a degree.
- Parameters
name (str, optional) – The name of the curve.
- Attributes
points (list[
compas.geometry.Point
], read-only) – The control points.weights (list[float], read-only) – The weights of the control points.
knots (list[float], read-only) – The knots, without multiplicity.
knotsequence (list[float], read-only) – The complete knot vector.
multiplicity (list[int], read-only) – The multiplicities of the knots.
continuity (int, read-only) – The degree of continuity of the curve.
degree (int, read-only) – The degree of the curve.
order (int, read-only) – The order of the curve (degree + 1).
Methods
Make an independent copy of the current curve.
Construct a NURBS curve from an arc.
Construct a NURBS curve from a circle.
Construct a NURBS curve from its data representation.
Construct a NURBS curve from an ellipse.
Construct a NURBS curve by interpolating a set of points.
Construct a NURBS curve from a line.
Construct a NURBS curve from explicit curve parameters.
Construct a NURBS curve from control points.
Load a NURBS curve from an STP file.
Inherited Methods
Compute the axis aligned bounding box of the curve.
Compute the closest point on the curve to a given point.
Compute the curvature of the curve at a parameter.
Divide the curve into a specific number of equal length segments.
Divide the curve into segments of specified length.
Compute the local frame of the curve at a parameter.
Construct an object from serialized data contained in a JSON file.
Construct an object from serialized data contained in a JSON string.
Load a curve from an OBJ file.
Compute the length of the curve.
Compute the locus of points on the curve.
Compute a point of the curve at a parameter.
Reverse the parametrisation of the curve.
Reverse a copy of the curve.
Compute evenly spaced parameters over the curve domain.
Compute the tangent vector of the curve at a parameter.
Convert an object to its native data representation.
Serialize the data representation of an object to a JSON file.
Serialize the data representation of an object to a JSON string.
Write the curve geometry to an OBJ file.
Write the curve geometry to a STP file.
Compute the torsion of the curve at a parameter.
Transform the geometry.
Returns a transformed copy of this geometry.
Validate the object's data against its data schema.
Validate the object's data against its json schema.