TrimmedCurve
#
- class ansys.geometry.core.shapes.curves.trimmed_curve.TrimmedCurve(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)#
Represents a trimmed curve.
A trimmed curve is a curve that has a boundary. This boundary comes in the form of an interval.
- Parameters:
- geometry
Curve
Underlying mathematical representation of the curve.
- start
Point3D
Start point of the curve.
- end
Point3D
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. |
|
Get the intersect points of this trimmed curve with another one. |
Represent the trimmed curve as a string. |
Import detail#
from ansys.geometry.core.shapes.curves.trimmed_curve import TrimmedCurve
Property detail#
- property TrimmedCurve.geometry: ansys.geometry.core.shapes.curves.curve.Curve#
Underlying mathematical curve.
- property TrimmedCurve.start: ansys.geometry.core.math.point.Point3D#
Start point of the curve.
- property TrimmedCurve.end: ansys.geometry.core.math.point.Point3D#
End point of the curve.
- property TrimmedCurve.length: pint.Quantity#
Calculated length of the edge.
- property TrimmedCurve.interval: ansys.geometry.core.shapes.parameterization.Interval#
Interval of the curve that provides its boundary.
Method detail#
- TrimmedCurve.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.
- TrimmedCurve.intersect_curve(other: TrimmedCurve) list[ansys.geometry.core.math.point.Point3D] #
Get the intersect points of this trimmed curve with another one.
If the two trimmed curves do not intersect, an empty list is returned.
- Parameters:
- other
TrimmedCurve
Trimmed curve to intersect with.
- other
- Returns:
list
[Point3D
]All points of intersection between the curves.