ReversedTrimmedCurve#

class ansys.geometry.core.shapes.curves.trimmed_curve.ReversedTrimmedCurve(geometry: ansys.geometry.core.shapes.curves.curve.Curve, start: ansys.geometry.core.math.point.Point3D, end: ansys.geometry.core.math.point.Point3D, interval: ansys.geometry.core.shapes.parameterization.Interval, length: pint.Quantity, grpc_client: ansys.geometry.core.connection.client.GrpcClient = None)#

Bases: TrimmedCurve

Represents a reversed trimmed curve.

When a curve is reversed, its start and end points are swapped, and parameters for evaluations are handled to provide expected results conforming to the direction of the curve. For example, evaluating a trimmed curve proportionally at 0 evaluates at the start point of the curve, but evaluating a reversed trimmed curve proportionally at 0 evaluates at what was previously the end point of the curve but is now the start point.

Parameters:
geometryCurve

Underlying mathematical representation of the curve.

startPoint3D

Original start point of the curve.

endPoint3D

Original end point of the curve.

intervalInterval

Parametric interval that bounds the curve.

lengthQuantity

Length of the curve.

grpc_clientGrpcClient, default: None

gRPC client that is required for advanced functions such as intersect_curve().

Overview#

evaluate_proportion

Evaluate the curve at a proportional value.

Import detail#

from ansys.geometry.core.shapes.curves.trimmed_curve import ReversedTrimmedCurve

Attribute detail#

ReversedTrimmedCurve.temp#

Method detail#

ReversedTrimmedCurve.evaluate_proportion(param: ansys.geometry.core.typing.Real) ansys.geometry.core.shapes.curves.curve_evaluation.CurveEvaluation#

Evaluate the curve at a proportional value.

A parameter of 0 corresponds to the start of the curve, while a parameter of 1 corresponds to the end of the curve.

Parameters:
paramReal

Parameter in the proportional range [0,1].

Returns:
CurveEvaluation

Resulting curve evaluation.