mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
Change kwarg capitalization to fix #1026. Unindent code blocks, fix doublespace + formatting
This commit is contained in:
parent
fed77612c0
commit
f4c79db263
1 changed files with 66 additions and 70 deletions
|
|
@ -3,7 +3,6 @@
|
|||
Location arithmetic for algebra mode
|
||||
======================================
|
||||
|
||||
|
||||
Position a shape relative to the XY plane
|
||||
---------------------------------------------
|
||||
|
||||
|
|
@ -19,7 +18,6 @@ For the following use the helper function:
|
|||
circle = Circle(scale * .8).edge()
|
||||
return (triad + circle).locate(plane.location)
|
||||
|
||||
|
||||
1. **Positioning at a location**
|
||||
|
||||
.. code-block:: python
|
||||
|
|
@ -46,8 +44,7 @@ For the following use the helper function:
|
|||
|
||||
.. image:: assets/location-example-07.png
|
||||
|
||||
Note that the ``x``-axis and the ``y``-axis of the plane are on the ``x``-axis and the ``z``-axis of the world coordinate system (red and blue axis)
|
||||
|
||||
Note: The ``x``-axis and the ``y``-axis of the plane are on the ``x``-axis and the ``z``-axis of the world coordinate system (red and blue axis).
|
||||
|
||||
Relative positioning to a plane
|
||||
------------------------------------
|
||||
|
|
@ -70,7 +67,7 @@ Relative positioning to a plane
|
|||
|
||||
.. image:: assets/location-example-02.png
|
||||
|
||||
The ``x``, ``y``, ``z`` components of ``Pos(0.2, 0.4, 0.1)`` are relative to the ``x``-axis, ``y``-axis or
|
||||
The ``X``, ``Y``, ``Z`` components of ``Pos(0.2, 0.4, 0.1)`` are relative to the ``x``-axis, ``y``-axis or
|
||||
``z``-axis of the underlying location ``loc``.
|
||||
|
||||
Note: ``Plane(loc) *``, ``Plane(face.location) *`` and ``loc *`` are equivalent in this example.
|
||||
|
|
@ -83,7 +80,7 @@ Relative positioning to a plane
|
|||
|
||||
face = loc * Rectangle(1,2)
|
||||
|
||||
box = Plane(loc) * Rot(z=80) * Box(0.2, 0.2, 0.2)
|
||||
box = Plane(loc) * Rot(Z=80) * Box(0.2, 0.2, 0.2)
|
||||
|
||||
show_object(face, name="face")
|
||||
show_object(location_symbol(loc), name="location")
|
||||
|
|
@ -91,7 +88,7 @@ Relative positioning to a plane
|
|||
|
||||
.. image:: assets/location-example-03.png
|
||||
|
||||
The box is rotated via ``Rot(z=80)`` around the ``z``-axis of the underlying location
|
||||
The box is rotated via ``Rot(Z=80)`` around the ``z``-axis of the underlying location
|
||||
(and not of the z-axis of the world).
|
||||
|
||||
More general:
|
||||
|
|
@ -148,5 +145,4 @@ Relative positioning to a plane
|
|||
|
||||
.. image:: assets/location-example-06.png
|
||||
|
||||
Note: This is the same as `box = loc * Location((0.2, 0.4, 0.1), (20, 40, 80)) * Box(0.2, 0.2, 0.2)`
|
||||
|
||||
Note: This is the same as ``box = loc * Location((0.2, 0.4, 0.1), (20, 40, 80)) * Box(0.2, 0.2, 0.2)``
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue