Curve
#
- class ansys.geometry.core.shapes.curves.curve.Curve#
Bases:
abc.ABC
Provides the abstract base class representing a 3D curve.
Overview#
Parameterize the curve. |
|
Check a parameter is within the parametric range of the curve. |
|
Check a point is contained by the curve. |
|
Create a transformed copy of the curve. |
|
Determine if two curves are equal. |
|
Evaluate the curve at the given parameter. |
|
Project a point to the curve. |
Trim this curve by bounding it with an interval. |
Import detail#
from ansys.geometry.core.shapes.curves.curve import Curve
Method detail#
- abstract Curve.parameterization() ansys.geometry.core.shapes.parameterization.Parameterization #
Parameterize the curve.
- abstract Curve.contains_param(param: ansys.geometry.core.typing.Real) bool #
Check a parameter is within the parametric range of the curve.
- abstract Curve.contains_point(point: ansys.geometry.core.math.point.Point3D) bool #
Check a point is contained by the curve.
The point can either lie within the curve or on its boundary.
- abstract Curve.transformed_copy(matrix: ansys.geometry.core.math.matrix.Matrix44) Curve #
Create a transformed copy of the curve.
- abstract Curve.evaluate(parameter: ansys.geometry.core.typing.Real) ansys.geometry.core.shapes.curves.curve_evaluation.CurveEvaluation #
Evaluate the curve at the given parameter.
- abstract Curve.project_point(point: ansys.geometry.core.math.point.Point3D) ansys.geometry.core.shapes.curves.curve_evaluation.CurveEvaluation #
Project a point to the curve.
This method returns the evaluation at the closest point.
- Curve.trim(interval: ansys.geometry.core.shapes.parameterization.Interval) ansys.geometry.core.shapes.curves.trimmed_curve.TrimmedCurve #
Trim this curve by bounding it with an interval.
- Returns:
TrimmedCurve
The resulting bounded curve.