Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tweaks
  • Loading branch information
adam-urbanczyk committed Dec 15, 2024
commit f5db2342f2d34f7ec4a9c11d79ecff948d2694cd
Binary file modified doc/_static/show.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/_static/show_demo.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 5 additions & 6 deletions doc/vis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ and are not tied to any external tool.
from cadquery import *
from cadquery.vis import show

w = Workplane().sphere(1).split(keepTop=True) - Workplane().sphere(0.5)
w = Workplane().sphere(1).split(keepBottom=True) - Workplane().sphere(0.5)
r = w.faces('>Z').fillet(0.1)

# Show the result
show(w, alpha=0.5)
show(r, alpha=0.5)


.. image:: _static/show.PNG
Expand All @@ -31,7 +32,7 @@ One can visualize objects of type :class:`~cadquery.Workplane`, :class:`~cadquer

.. code-block:: python

adquery import *
from cadquery import *
from cadquery.occ_impl.shapes import *
from cadquery.vis import show

Expand Down Expand Up @@ -87,9 +88,7 @@ There is also more limited support for displaying :class:`~cadquery.Workplane`,

from cadquery import *

w = Workplane().sphere(1).split(keepTop=True)

w
Workplane().sphere(1).split(keepTop=True)

.. image:: _static/show_jupyter.PNG