RhinoNurbsCurve
- class compas_rhino.geometry.RhinoNurbsCurve[source]
Bases:
NurbsCurve
,RhinoCurve
Class representing a NURBS curve based on the NurbsCurve of Rhino.Geometry.
- Parameters:
- namestr, optional
Name of the curve.
References
https://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_Geometry_NurbsCurve.htm
https://developer.rhino3d.com/guides/opennurbs/nurbs-geometry-overview/
- Attributes:
- pointslist[
compas.geometry.Point
], read-only The control points of the curve.
- weightslist[float], read-only
The weights of the control points.
- knotslist[float], read-only
The knot vector, without duplicates.
- multiplicitieslist[int], read-only
The multiplicities of the knots in the knot vector.
- knotsequencelist[float], read-only
The knot vector, with repeating values according to the multiplicities.
- continuityint, read-only
The degree of continuity of the curve.
- degreeint, read-only
The degree of the curve.
- orderint, read-only
The order of the curve (degree + 1).
- is_rationalbool, read-only
True is the curve is rational.
- pointslist[
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
Converts the instance to a string.
Compute the axis aligned bounding box of the curve.
Compute the closest point on the curve to a given point.
Compute the axis-aligned bounding box of the geometry.
Compute the oriented bounding box of the geometry.
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 an ellipse.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Construct a NURBS curve from a curve object.
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 normal of the curve at a parameter.
Compute the length of the curve.
Compute a point on the curve.
Reverse the parametrisation of the curve.
Reverse a copy of the curve.
Rotate the geometry.
Returns a rotated copy of this geometry.
Scale the geometry.
Returns a scaled copy of this geometry.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Compute the tangent vector at a point on the curve.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Write the curve geometry to an OBJ file.
Convert the curve to a list of points.
Convert the curve to a polygon.
Convert the curve to a polyline.
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.
Translate the geometry.
Returns a translated copy of this geometry.
Validate the data against the object's data schema.