RhinoNurbsCurve
- class compas_rhino.geometry.RhinoNurbsCurve(*args, **kwargs)[source]
Bases:
NurbsCurve
,RhinoCurve
Class representing a NURBS curve based on the NurbsCurve of Rhino.Geometry.
- Parameters
name (str, optional) – Name of the curve.
- Attributes
points (list[
Point
], read-only) – The control points of the curve.weights (list[float], read-only) – The weights of the control points.
knots (list[float], read-only) – The knot vector, without duplicates.
multiplicities (list[int], read-only) – The multiplicities of the knots in the knot vector.
knotsequence (list[float], read-only) – The knot vector, with repeating values according to the multiplicities.
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).
is_rational (bool, read-only) – True is the curve is rational.
References
https://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_Geometry_NurbsCurve.htm
https://developer.rhino3d.com/guides/opennurbs/nurbs-geometry-overview/
Methods
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.
Inherited Methods
Compute the axis aligned bounding box of the curve.
Compute the closest point on the curve to a given point.
Make an independent copy of the current curve.
Compute the curvature at a point on the curve.
Divide the curve into a specific number of equal length segments.
Divide the curve into segments of specified length.
Compute the local frame at a point on the 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 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.
Construct a curve from an existing Rhino curve.
Load a NURBS curve from an STP file.
Compute the length of the curve.
Compute the locus of points on the curve.
Compute a point on the curve.
Reverse the parametrisation of the curve.
Reverse a copy of the curve.
Compute evenly spaced parameters over the curve domain.
Compute the tangent vector at a point on the curve.
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 this curve.
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.