mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
Added plane_symbol() and better var names and typing to resolve #899
This commit is contained in:
parent
1b63aa3469
commit
f87cee3134
1 changed files with 7 additions and 2 deletions
|
|
@ -11,8 +11,13 @@ For the following use the helper function:
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
def location_symbol(self, l=1) -> Compound:
|
||||
return Compound.make_triad(axes_scale=l).locate(self)
|
||||
def location_symbol(location: Location, scale: float = 1) -> Compound:
|
||||
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**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue