OCCCurve
- class compas_occ.geometry.OCCCurve(name=None)[source]
Bases:
compas.geometry.curves.curve.Curve
Class representing a general curve object.
- Parameters
name (str, optional) – The name of the curve.
- Attributes
continuity (int, read-only) – The degree of continuity of the curve.
degree (int, read-only) – The degree of the curve.
dimension (int, read-only) – The dimension of the curve.
order (int, read-only) – The order of the curve (= degree + 1).
domain (tuple[float, float], read-only) – The domain of the parameter space of the curve.
start (
Point
, read-only) – The start point of the curve.end (
Point
, read-only) – The end point of the curve.is_closed (bool, read-only) – Flag indicating that the curve is closed.
is_periodic (bool, read-only) – Flag indicating that the curve is periodic.
- Other Attributes
occ_curve (
Geom_Curve
) – The underlying OCC curve.
Methods
Compute the axis aligned bounding box of the curve.
Compute the curvature vector at a curve parameter.
Compute the local frame at a curve parameter.
Construct a NURBS curve from an existing OCC BSplineCurve.
Compute the length of the curve.
Compute the point at a curve parameter.
Reverse the parametrisation of the curve.
Compute the tangent vector at a curve parameter.
Transform this curve.
Inherited Methods
Make an independent copy of the data object.
Construct an object of this type from the provided data.
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).