Plane#
- class Plane[source]#
Bases:
objectBase class for Axonometry and ReferencePlane.
Mangaing the adding of
PointandLineto the various planes.Methods
Attributes
Class attribute set by
Axonometry.All lines contained in the current plane.
Collection of points and lines in current plane.
All points contained in the current plane.
Methods#
- Plane.draw_line(line: Line, layer_nr: int | None = None, ref_plane_keys: list[Literal['xy', 'yz', 'zx']] = ['xy', 'yz', 'zx']) Line[source]#
Add a
Lineto the current plane.By inheritence, two main cases occur, each handled by a set of operations:
Adding a line into the axonometric picture plane.
Adding the line into one of the three reference planes.
- Parameters:
- Returns:
The newly added line. If an identical line already exists in the planes’ objects, the existing line is returned instead of a new object.
- Return type:
- Plane.draw_point(point: Point, ref_plane_keys: list[Literal['xy', 'yz', 'zx']] = ['xy', 'yz', 'zx']) Point[source]#
Add a
Pointto the current plane.Note
The
Lineobject operations are basically performed on its points, this method is extensively called indraw_line()andproject(), withLine.startandLine.endas parameters.
Attributes#
- Plane.drawing: Drawing | None = None#
Class attribute set by
Axonometry.
- Plane.lines#
All lines contained in the current plane.
- Plane.objects#
Collection of points and lines in current plane.
- Plane.points#
All points contained in the current plane.