cfobel / storage-boxes

A CadQuery fork of the awesome assortment boxes by Alexandre Chappel.
MIT License
0 stars 1 forks source link

Include sample jupyter notebooks #3

Open ryanfobel opened 3 years ago

ryanfobel commented 3 years ago

Would be a nice feature to include sample notebooks using the jupyter-cadquery extension, e.g.:

from storage_boxes.models import make_storage_box
from storage_boxes.types import Dimensions, BoxParameters

# Force usage of one CAD view on the right
set_sidecar("CadQuery")

# Set default values
set_defaults(axes=False, grid=True, axes0=True, ortho=True, transparent=True)

# Create a storage box
params = BoxParameters(
                columns=3,
                rows=2,
            )
box = make_storage_box(params, cq.Workplane("XY"))

# overwrite grid default value
show(box, grid=False)

storage-boxes-jupyter-cadquery