Curve#

class ansys.geometry.core.shapes.curves.curve.Curve#

Bases: abc.ABC

Provides the abstract base class representing a 3D curve.

Overview#

parameterization

Parameterize the curve.

contains_param

Check a parameter is within the parametric range of the curve.

contains_point

Check a point is contained by the curve.

transformed_copy

Create a transformed copy of the curve.

__eq__

Determine if two curves are equal.

evaluate

Evaluate the curve at the given parameter.

project_point

Project a point to the curve.

trim

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.__eq__(other: Curve) bool#

Determine if two curves are equal.

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.