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:
- geometry
Curve
Underlying mathematical representation of the curve.
- start
Point3D
Original start point of the curve.
- end
Point3D
Original end point of the curve.
- interval
Interval
Parametric interval that bounds the curve.
- length
Quantity
Length of the curve.
- grpc_client
GrpcClient
, default:None
gRPC client that is required for advanced functions such as intersect_curve().
- geometry
Overview#
Evaluate the curve at a proportional value. |
Import detail#
from ansys.geometry.core.shapes.curves.trimmed_curve import ReversedTrimmedCurve
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 of1
corresponds to the end of the curve.- Parameters:
- param
Real
Parameter in the proportional range [0,1].
- param
- Returns:
CurveEvaluation
Resulting curve evaluation.