OCCCurve
- class compas_occ.geometry.OCCCurve(*args, **kwargs)
Bases:
Curve
Class representing a general curve object.
- Parameters:
- namestr, optional
The name of the curve.
- Attributes:
- dimensionint, read-only
The dimension of the curve.
- domaintuple[float, float], read-only
The domain of the parameter space of the curve.
- end
Point
, read-only The end point of the curve.
- is_closedbool, read-only
Flag indicating that the curve is closed.
- is_periodicbool, read-only
Flag indicating that the curve is periodic.
- start
Point
, read-only The start point of the 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.
Divide the curve into segments of a given length.
Return a new curve embedded in the parameter space of the surface.
Compute the local frame at a curve parameter.
Construct a curve from an existing OCC BSplineCurve.
Construct a curve from an existing OCC BSplineCurve.
Compute the length of the curve.
Return a new curve that is the offset of this curve over the specified distance in the given direction.
Compute the parameter of a point on the curve at a given distance along the curve from a point at a given parameter.
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.
Compute the axis-aligned bounding box of the geometry.
Compute the oriented bounding box of the geometry.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Load a curve from an OBJ file.
Load a curve from a STP file.
Compute the normal of the curve at a parameter.
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.
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.
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.