This commit is contained in:
Scott Barlow 2023-11-10 00:05:11 -08:00
parent cdd00771f5
commit 25cfc9ecf1
5 changed files with 13 additions and 20 deletions

View file

@ -12,7 +12,7 @@ Objects and arithmetic
:math:`C^2` is the set of all ``Sketch`` objects ``s`` with ``s._dim = 2``
:math:`C^1` is the set of all ``Curve`` objects ``c`` with ``c._dim = 3``
:math:`C^1` is the set of all ``Curve`` objects ``c`` with ``c._dim = 1``
**Neutral elements:**

View file

@ -662,7 +662,7 @@ example.
* **Algebra mode**
Use the operator ``*`` to relocate the plane (post-mulitplication!).
Use the operator ``*`` to relocate the plane (post-multiplication!).
.. literalinclude:: general_examples_algebra.py
:start-after: [Ex. 22]

View file

@ -27,7 +27,6 @@ For the following use the helper function:
show_object(face, name="face")
show_object(location_symbol(loc), name="location")
.. image:: assets/location-example-01.png
2) **Positioning on a plane**
@ -41,7 +40,6 @@ For the following use the helper function:
show_object(face, name="face")
show_object(plane_symbol(plane), name="plane")
.. 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)
@ -66,7 +64,6 @@ Relative positioning to a plane
show_object(location_symbol(loc), name="location")
show_object(box, name="box")
.. 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
@ -88,7 +85,6 @@ Relative positioning to a plane
show_object(location_symbol(loc), name="location")
show_object(box, name="box")
.. image:: assets/location-example-03.png
The box is rotated via ``Rot(z=80)`` around the ``z``-axis of the underlying location
@ -108,7 +104,6 @@ Relative positioning to a plane
show_object(location_symbol(loc), name="location")
show_object(box, name="box")
.. image:: assets/location-example-04.png
The box is rotated via ``Rot(20, 40, 80)`` around all three axes relative to the plane.
@ -128,10 +123,9 @@ Relative positioning to a plane
show_object(box, name="box")
show_object(location_symbol(loc * Rot(20, 40, 80), 0.5), options={"color":(0, 255, 255)}, name="local_location")
.. image:: assets/location-example-05.png
The box is positioned via ``Pos(0.2, 0.4, 0.1)`` relativce to the location ``loc * Rot(20, 40, 80)``
The box is positioned via ``Pos(0.2, 0.4, 0.1)`` relative to the location ``loc * Rot(20, 40, 80)``
4. **Position and rotate an object relative to a location**
@ -148,7 +142,6 @@ Relative positioning to a plane
show_object(box, name="box")
show_object(location_symbol(loc * Pos(0.2, 0.4, 0.1), 0.5), options={"color":(0, 255, 255)}, name="local_location")
.. 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)`

View file

@ -22,7 +22,7 @@ with BuildPart() as latch:
offset(amount=-2)
fillet(slide_hole.vertices(), 1)
extrude(amount=-68, mode=Mode.SUBTRACT)
# Slot for the hangle to slide in
# Slot for the handle to slide in
with BuildSketch(latch.faces().sort_by(Axis.Z)[-1]):
SlotOverall(32, 8)
extrude(amount=-2, mode=Mode.SUBTRACT)

View file

@ -131,7 +131,7 @@ interchange objects between the two systems by transferring the ``wrapped`` obje
Self Intersection
*****************
Avoid creating objects that intersect themselves - even if at a single vertex - as these topoplogies
Avoid creating objects that intersect themselves - even if at a single vertex - as these topologies
will almost certainly be invalid (even if :meth:`~topology.Shape.is_valid` reports a ``True`` value).
An example of where this my arise is with the thread of a screw (or any helical shape) where after
one complete revolution the part may contact itself. One is likely be more successful if the part