Skip to content

Commit 4ecd5bf

Browse files
committed
fix mistakes in "using solid node" documentation
1 parent 802508d commit 4ecd5bf

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

docs/using-solid-node.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,16 @@ There is also `solid_node.test.TestCaseMixin`, which allows you to write tests
155155
in your node class instead of using a separate file.
156156

157157
To demonstrate testing, let's make a pin holding the pointer and base together.
158-
First, to create a hole at the base, edit `root/clock_base.py`
158+
First, to create a 6mm hole at the base, edit `root/clock_base.py`
159159

160160
.. code-block:: python
161161
162162
class ClockBase(CadQueryNode):
163163
164164
def render(self):
165165
wp = cq.Workplane("XY")
166-
return wp.circle(100).extrude(2)
166+
return wp.circle(100).extrude(2) \
167+
.faces(">Z").workplane().hole(6)
167168
168169
And a hole in the pointer, at `root/pointer.py`
169170

@@ -225,7 +226,7 @@ it to the base classes of the root node at `root/__init__.py`:
225226
...
226227
from solid_node.test import TestCaseMixin
227228
228-
class SimpleClock(AssemblyNode, TestCaseMixin)
229+
class SimpleClock(AssemblyNode, TestCaseMixin):
229230
230231
TestCaseMixin
231232
.............

0 commit comments

Comments
 (0)