Arc
#
- class ansys.geometry.core.sketch.arc.Arc(start: ansys.geometry.core.math.point.Point2D, end: ansys.geometry.core.math.point.Point2D, center: ansys.geometry.core.math.point.Point2D, clockwise: bool = False)#
Bases:
ansys.geometry.core.sketch.edge.SketchEdge
Provides for modeling an arc.
- Parameters:
- start
Point2D
Starting point of the arc.
- end
Point2D
Ending point of the arc.
- center
Point2D
Center point of the arc.
- clockwisebool, default:
False
Whether the arc spans the clockwise angle between the start and end points. When
False
(default), the arc spans the counter-clockwise angle. WhenTrue
, the arc spands the clockwise angle.
- start
Overview#
Create an arc from three given points. |
|
Create an arc from a starting point, an ending point, and a radius. |
|
Create an arc from a starting point, a center point, and an angle. |
Starting point of the arc line. |
|
Ending point of the arc line. |
|
Center point of the arc. |
|
Length of the arc. |
|
Radius of the arc. |
|
Angle of the arc. |
|
Flag indicating whether the rotation of the angle is clockwise. |
|
Area of the sector of the arc. |
|
VTK polydata representation for PyVista visualization. |
Import detail#
from ansys.geometry.core.sketch.arc import Arc
Property detail#
- property Arc.start: ansys.geometry.core.math.point.Point2D#
Starting point of the arc line.
- property Arc.end: ansys.geometry.core.math.point.Point2D#
Ending point of the arc line.
- property Arc.center: ansys.geometry.core.math.point.Point2D#
Center point of the arc.
- property Arc.length: pint.Quantity#
Length of the arc.
- property Arc.radius: pint.Quantity#
Radius of the arc.
- property Arc.angle: pint.Quantity#
Angle of the arc.
- property Arc.is_clockwise: bool#
Flag indicating whether the rotation of the angle is clockwise.
- Returns:
- bool
True
if the sense of rotation is clockwise.False
if the sense of rotation is counter-clockwise.
- property Arc.sector_area: pint.Quantity#
Area of the sector of the arc.
- property Arc.visualization_polydata: pyvista.PolyData#
VTK polydata representation for PyVista visualization.
- Returns:
pyvista.PolyData
VTK pyvista.Polydata configuration.
Notes
The representation lies in the X/Y plane within the standard global Cartesian coordinate system.
Attribute detail#
- Arc.to_start_vector#
- Arc.to_end_vector#
Method detail#
- classmethod Arc.from_three_points(start: ansys.geometry.core.math.point.Point2D, inter: ansys.geometry.core.math.point.Point2D, end: ansys.geometry.core.math.point.Point2D)#
Create an arc from three given points.
- Parameters:
- start
Point2D
Starting point of the arc.
- inter
Point2D
Intermediate point (location) of the arc.
- end
Point2D
Ending point of the arc.
- start
- Returns:
Arc
Arc generated from the three points.
- classmethod Arc.from_start_end_and_radius(start: ansys.geometry.core.math.point.Point2D, end: ansys.geometry.core.math.point.Point2D, radius: pint.Quantity | ansys.geometry.core.misc.measurements.Distance | ansys.geometry.core.typing.Real, convex_arc: bool = False, clockwise: bool = False)#
Create an arc from a starting point, an ending point, and a radius.
- Parameters:
- start
Point2D
Starting point of the arc.
- end
Point2D
Ending point of the arc.
- radius
Quantity
|Distance
|Real
Radius of the arc.
- convex_arcbool, default:
False
Whether the arc is convex. The default is
False
. WhenFalse
, the arc is concave. WhenTrue
, the arc is convex.- clockwisebool, default:
False
Whether the arc spans the clockwise angle between the start and end points. When
False
, the arc spans the counter-clockwise angle. WhenTrue
, the arc spands the clockwise angle.
- start
- Returns:
Arc
Arc generated from the three points.
- classmethod Arc.from_start_center_and_angle(start: ansys.geometry.core.math.point.Point2D, center: ansys.geometry.core.math.point.Point2D, angle: ansys.geometry.core.misc.measurements.Angle | pint.Quantity | ansys.geometry.core.typing.Real, clockwise: bool = False)#
Create an arc from a starting point, a center point, and an angle.
- Parameters:
- start
Point2D
Starting point of the arc.
- center
Point2D
Center point of the arc.
- angle
Angle
|Quantity
|Real
Angle of the arc.
- clockwisebool, default:
False
Whether the provided angle should be considered clockwise. When
False
, the angle is considered counter-clockwise. WhenTrue
, the angle is considered clockwise.
- start
- Returns:
Arc
Arc generated from the three points.