Added plane_symbol() and better var names and typing to resolve #899

This commit is contained in:
Jonathan Wagenet 2025-03-10 00:21:09 -04:00
parent 1b63aa3469
commit f87cee3134

View file

@ -11,8 +11,13 @@ For the following use the helper function:
.. code-block:: python .. code-block:: python
def location_symbol(self, l=1) -> Compound: def location_symbol(location: Location, scale: float = 1) -> Compound:
return Compound.make_triad(axes_scale=l).locate(self) return Compound.make_triad(axes_scale=scale).locate(location)
def plane_symbol(plane: Plane, scale: float = 1) -> Compound:
triad = Compound.make_triad(axes_scale=scale)
circle = Circle(scale * .8).edge()
return (triad + circle).locate(plane.location)
1. **Positioning at a location** 1. **Positioning at a location**