OCCCurve2d
¤
Class representing a general 2D curve, usually generated through an embedding in a surface.
Parameters:
-
native_curve(Geom2dCurve) –An existing OCC 2D curve handle wrapper.
-
name(str, default:None) –The name of the curve.
Attributes:
-
dimension(int) –The dimension of the curve is always 2.
-
domain(tuple[float, float]) –The domain of the parameter space of the curve.
-
end(Point) –The end point of the curve.
-
is_closed(bool) –Flag indicating that the curve is closed.
-
is_periodic(bool) –Flag indicating that the curve is periodic.
-
start(Point) –The start point of the curve.
- API Geometry
-
API
Brep
OCCBrepEdge Methods:from_curve2d_and_surface
Methods:¤
curvature_at
¤
Compute the curvature vector at a curve parameter.
Raises:
-
ValueError–If the parameter is not in the curve domain.
frame_at
¤
Compute the local frame at a curve parameter.
Raises:
-
ValueError–If the parameter is not in the curve domain.
from_native
classmethod
¤
from_native(native_curve) -> OCCCurve2d
Construct a 2D curve from an existing OCC Geom2d curve handle.
from_occ
classmethod
¤
from_occ(native_curve) -> OCCCurve2d
Construct a 2D curve from an existing OCC Geom2d curve handle.
.. deprecated:: 1.3
Use from_native instead.
point_at
¤
Compute the point at a curve parameter.
Raises:
-
ValueError–If the parameter is not in the curve domain.
tangent_at
¤
Compute the tangent vector at a curve parameter.
Raises:
-
ValueError–If the parameter is not in the curve domain.