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. |
|
Return a copy of the trimmed curve transformed by the given matrix. |
|
Translate the trimmed curve by a given vector and distance. |
|
Rotate the trimmed curve around a given axis centered at a given point. |
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
0corresponds to the start of the curve, while a parameter of1corresponds to the end of the curve.- Parameters:
- param
Real Parameter in the proportional range [0,1].
- param
- Returns:
CurveEvaluationResulting 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.
- TrimmedCurve.transformed_copy(matrix: ansys.geometry.core.math.matrix.Matrix44) TrimmedCurve#
Return a copy of the trimmed curve transformed by the given matrix.
- Parameters:
- matrix
Matrix44 Transformation matrix to apply to the curve.
- matrix
- Returns:
TrimmedCurveA new trimmed curve with the transformation applied.
- TrimmedCurve.translate(direction: ansys.geometry.core.math.vector.UnitVector3D, distance: ansys.geometry.core.typing.Real | pint.Quantity | ansys.geometry.core.misc.measurements.Distance) None#
Translate the trimmed curve by a given vector and distance.
- Parameters:
- direction
UnitVector3D Direction of translation.
- distance
Real|Quantity|Distance Distance to translate.
- direction
- TrimmedCurve.rotate(origin: ansys.geometry.core.math.point.Point3D, axis: ansys.geometry.core.math.vector.UnitVector3D, angle: ansys.geometry.core.typing.Real | pint.Quantity | ansys.geometry.core.misc.measurements.Angle) None#
Rotate the trimmed curve around a given axis centered at a given point.
- Parameters:
- origin
Point3D Origin point of the rotation.
- axis
UnitVector3D Axis of rotation.
- angle
Real|Quantity|Angle Angle to rotate in radians.
- origin