Circle
#
- class ansys.geometry.core.shapes.curves.circle.Circle(origin: numpy.ndarray | ansys.geometry.core.typing.RealSequence | ansys.geometry.core.math.point.Point3D, radius: pint.Quantity | ansys.geometry.core.misc.measurements.Distance | ansys.geometry.core.typing.Real, reference: numpy.ndarray | ansys.geometry.core.typing.RealSequence | ansys.geometry.core.math.vector.UnitVector3D | ansys.geometry.core.math.vector.Vector3D = UNITVECTOR3D_X, axis: numpy.ndarray | ansys.geometry.core.typing.RealSequence | ansys.geometry.core.math.vector.UnitVector3D | ansys.geometry.core.math.vector.Vector3D = UNITVECTOR3D_Z)#
Bases:
ansys.geometry.core.shapes.curves.curve.Curve
Provides 3D circle representation.
Overview#
Check a parameter is within the parametric range of the curve. |
|
Check a point is contained by the curve. |
Evaluate the circle at a given parameter. |
|
Create a transformed copy of the circle from a transformation matrix. |
|
Create a mirrored copy of the circle along the y-axis. |
|
Project a point onto the circle and evauate the circle. |
|
Determine if the circle is coincident with another. |
|
Get the parametrization of the circle. |
Equals operator for the |
Import detail#
from ansys.geometry.core.shapes.curves.circle import Circle
Property detail#
- property Circle.origin: ansys.geometry.core.math.point.Point3D#
Origin of the circle.
- property Circle.radius: pint.Quantity#
Radius of the circle.
- property Circle.diameter: pint.Quantity#
Diameter of the circle.
- property Circle.perimeter: pint.Quantity#
Perimeter of the circle.
- property Circle.area: pint.Quantity#
Area of the circle.
- property Circle.dir_x: ansys.geometry.core.math.vector.UnitVector3D#
X-direction of the circle.
- property Circle.dir_y: ansys.geometry.core.math.vector.UnitVector3D#
Y-direction of the circle.
- property Circle.dir_z: ansys.geometry.core.math.vector.UnitVector3D#
Z-direction of the circle.
Method detail#
- Circle.evaluate(parameter: ansys.geometry.core.typing.Real) CircleEvaluation #
Evaluate the circle at a given parameter.
- Parameters:
- parameter
Real
Parameter to evaluate the circle at.
- parameter
- Returns:
CircleEvaluation
Resulting evaluation.
- Circle.transformed_copy(matrix: ansys.geometry.core.math.matrix.Matrix44) Circle #
Create a transformed copy of the circle from a transformation matrix.
- Parameters:
- matrix
Matrix44
4x4 transformation matrix to apply to the circle.
- matrix
- Returns:
Circle
New circle that is the transformed copy of the original circle.
- Circle.mirrored_copy() Circle #
Create a mirrored copy of the circle along the y-axis.
- Returns:
Circle
A new circle that is a mirrored copy of the original circle.
- Circle.project_point(point: ansys.geometry.core.math.point.Point3D) CircleEvaluation #
Project a point onto the circle and evauate the circle.
- Parameters:
- point
Point3D
Point to project onto the circle.
- point
- Returns:
CircleEvaluation
Resulting evaluation.
- Circle.is_coincident_circle(other: Circle) bool #
Determine if the circle is coincident with another.
- Parameters:
- other
Circle
Circle to determine coincidence with.
- other
- Returns:
- bool
True
if this circle is coincident with the other,False
otherwise.
- Circle.parameterization() ansys.geometry.core.shapes.parameterization.Parameterization #
Get the parametrization of the circle.
The parameter of a circle specifies the clockwise angle around the axis (right-hand corkscrew law), with a zero parameter at
dir_x
and a period of 2*pi.- Returns:
Parameterization
Information about how the circle is parameterized.
- abstract Circle.contains_param(param: ansys.geometry.core.typing.Real) bool #
Check a parameter is within the parametric range of the curve.
- abstract Circle.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.