RhinoNurbsCurve
- class compas_rhino.geometry.RhinoNurbsCurve(*args, **kwargs)[source]
Bases:
compas.geometry.curves.nurbs.NurbsCurveClass representing a NURBS curve based on the NurbsCurve of Rhino.Geometry.
- Attributes
points (list of
compas.geometry.Point) – The control points of the curve.weights (list of float) – The weights of the control points.
knots (list of float) – The knot vector, without duplicates.
multiplicities (list of int) – The multiplicities of the knots in the knot vector.
knotsequence (list of float) – The knot vector, with repeating values according to the multiplicities.
degree (int) – The degree of the polynomials.
order (int) – The order of the curve.
domain (tuple of float) – The parameter domain.
start (
compas.geometry.Point) – The point corresponding to the start of the parameter domain.end (
compas.geometry.Point) – The point corresponding to the end of the parameter domain.is_closed (bool) – True if the curve is closed.
is_periodic (bool) – True if the curve is periodic.
is_rational (bool) – True is the curve is rational.
References
- 2
https://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_Geometry_NurbsCurve.htm
- 3
- 4
https://developer.rhino3d.com/guides/opennurbs/nurbs-geometry-overview/
Attributes
dataThe representation of the object as native Python data.
degreeThe degree of the curve (degree = order - 1).
dimensionThe dimension of the curve.
domainThe parameter domain of the curve.
endThe point at the end of the curve.
is_closedbool
is_periodicbool
is_rationalbool
knotsKnots without repeating elements.
knotsequenceKnots with multiplicities.
multiplicitiesMultiplicities of the knots.
orderThe order of the curve (order = degree + 1).
pointsThe control points.
startThe point at the start of the curve.
weightsThe weights of the control points.
Inherited Attributes
DATASCHEMAThe schema of the data of this object.
JSONSCHEMAThe schema of the JSON representation of the data of this object.
JSONSCHEMANAMEbounding_boxdtypeThe type of the object in the form of a '2-level' import and a class name.
guidThe globally unique identifier of the object.
jsondefinitionsReusable schema definitions.
jsonstringThe representation of the object data in JSON format.
jsonvalidatorJSON schema validator for draft 7.
nameThe name of the object.
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 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.
Construct a NURBS curve from an existing Rhino curve.
Load a NURBS curve from an STP file.
Compute the length of the curve.
Compute the locus of the curve.
Compute the oriented bounding box of the curve.
Compute a point on the curve.
Reverse the parametrisation of the curve.
Modifies this curve by segmenting it between the parameters u and v.
Returns a copy of this curve by segmenting it between the parameters u and v.
Compute evenly spaced parameters over the curve domain.
Compute the tangent vector at a point on the curve.
Convert the NURBS curve to a line.
Convert the NURBS curve to a polyline.
Write the curve geometry to a STP file.
Transform this curve.
Transform a copy of the curve.
Compute point locations corresponding to evenly spaced parameters over the curve domain.
Inherited Methods
Construct a NURBS curve from its data representation.
Construct an object from serialized data contained in a JSON file.
Construct an object from serialized data contained in a JSON string.
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.
Validate the object's data against its data schema (self.DATASCHEMA).
Validate the object's data against its json schema (self.JSONSCHEMA).