OCCCurve
- class compas_occ.geometry.OCCCurve(*args, **kwargs)[source]
Bases:
compas.geometry.curves.curve.Curve
Class representing a general curve object.
- Parameters
name (str, optional) – The name of the curve.
- Attributes
dimension (int, read-only) – The dimension of the curve.
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.
Computes the curve parameters where the curve is the closest to another given curve.
Compute the closest point on the curve to a given point.
Computes the points on curves where the curve is the closest to another given curve.
Make an independent copy of the current curve.
Compute the curvature vector at a curve parameter.
Divide the curve into a specific number of equal length segments.
Divide the curve into a specific number of equal length segments.
Return a copy of the curve embedded in the parameter space of the surface.
Compute the local frame at a curve parameter.
Construct a NURBS curve from an existing OCC BSplineCurve.
Compute the length of the curve.
Offset the curve over the specified distance in the given direction.
Compute the point at a curve parameter.
Return a copy of the curve projected onto a surface.
Reverse the parametrisation of the curve.
Compute the tangent vector at a curve parameter.
Convert the curve to a polyline.
Write the curve geometry to a STP file.
Transform this curve.
Inherited Methods
Converts the instance to a string.
Construct a 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.
Load a curve from an OBJ file.
Load a curve from a STP file.
Compute the locus of points on the curve.
Reverse a copy of the curve.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Compute evenly spaced parameters over the curve domain.
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.
Compute the torsion of the curve at a parameter.
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.