SketchEllipse#
- class ansys.geometry.core.sketch.ellipse.SketchEllipse(center: ansys.geometry.core.math.point.Point2D, major_radius: pint.Quantity | ansys.geometry.core.misc.measurements.Distance | ansys.geometry.core.typing.Real, minor_radius: pint.Quantity | ansys.geometry.core.misc.measurements.Distance | ansys.geometry.core.typing.Real, angle: pint.Quantity | ansys.geometry.core.misc.measurements.Angle | ansys.geometry.core.typing.Real = 0, plane: ansys.geometry.core.math.plane.Plane = Plane())#
Bases:
ansys.geometry.core.sketch.face.SketchFace,ansys.geometry.core.shapes.curves.ellipse.EllipseProvides for modeling an ellipse.
- Parameters:
- center: Point2D
Center point of the ellipse.
- major_radius
Quantity|Distance|Real Major radius of the ellipse.
- minor_radius
Quantity|Distance|Real Minor radius of the ellipse.
- angle
Quantity|Angle|Real, default: 0 Placement angle for orientation alignment.
- plane
Plane,optional Plane containing the sketched ellipse, which is the global XY plane by default.
Overview#
Redefine the plane containing |
Center point of the ellipse. |
|
Orientation angle of the ellipse. |
|
Perimeter of the circle. |
|
VTK polydata representation for PyVista visualization. |
Import detail#
from ansys.geometry.core.sketch.ellipse import SketchEllipse
Property detail#
- property SketchEllipse.center: ansys.geometry.core.math.point.Point2D#
Center point of the ellipse.
- property SketchEllipse.angle: pint.Quantity#
Orientation angle of the ellipse.
- property SketchEllipse.perimeter: pint.Quantity#
Perimeter of the circle.
Notes
This property resolves the dilemma between using the
SkethFace.perimeterproperty and theEllipse.perimeterproperty.
- property SketchEllipse.visualization_polydata: pyvista.PolyData#
VTK polydata representation for PyVista visualization.
The representation lies in the X/Y plane within the standard global Cartesian coordinate system.
- Returns:
pyvista.PolyDataVTK pyvista.Polydata configuration.
Method detail#
- SketchEllipse.plane_change(plane: ansys.geometry.core.math.plane.Plane) None#
Redefine the plane containing
SketchEllipseobjects.- Parameters:
- plane
Plane Desired new plane that is to contain the sketched ellipse.
- plane
Notes
This implies that their 3D definition might suffer changes.