SketchEdge
#
- class ansys.geometry.core.sketch.edge.SketchEdge#
Provides for modeling edges forming sketched shapes.
Overview#
Redefine the plane containing |
Starting point of the edge. |
|
Ending point of the edge. |
|
Length of the edge. |
|
VTK polydata representation for PyVista visualization. |
Import detail#
from ansys.geometry.core.sketch.edge import SketchEdge
Property detail#
- property SketchEdge.start: ansys.geometry.core.math.point.Point2D#
- Abstractmethod:
Starting point of the edge.
- property SketchEdge.end: ansys.geometry.core.math.point.Point2D#
- Abstractmethod:
Ending point of the edge.
- property SketchEdge.length: pint.Quantity#
- Abstractmethod:
Length of the edge.
- property SketchEdge.visualization_polydata: pyvista.PolyData#
- Abstractmethod:
VTK polydata representation for PyVista visualization.
The representation lies in the X/Y plane within the standard global Cartesian coordinate system.
- Returns:
pyvista.PolyData
VTK pyvista.Polydata configuration.
Method detail#
- SketchEdge.plane_change(plane: ansys.geometry.core.math.plane.Plane) None #
Redefine the plane containing
SketchEdge
objects.- Parameters:
- plane
Plane
Desired new plane that is to contain the sketched edge.
- plane
Notes
This implies that their 3D definition might suffer changes. By default, this metho does nothing. It is required to be implemented in child
SketchEdge
classes.