Datasets:
ArXiv:
License:
Download train/batch_02/20002.py from filapro/cad-recode-v1.5: direct link, hf CLI and curl.
- Browser
- Download file 435 Bytes
-
https://huggingface.co/datasets/filapro/cad-recode-v1.5/resolve/main/train/batch_02/20002.py
- Command line
-
hf download hf://datasets/filapro/cad-recode-v1.5/train/batch_02/20002.py
-
curl -L -o 20002.py https://huggingface.co/datasets/filapro/cad-recode-v1.5/resolve/main/train/batch_02/20002.py
435 Bytes
| import cadquery as cq | |
| w0=cq.Workplane('YZ',origin=(0,0,0)) | |
| r=w0.workplane(offset=-100/2).moveTo(-9,-14).cylinder(100,53).union(w0.workplane(offset=-22/2).moveTo(59,44.5).box(6,45,22)).union(w0.sketch().segment((-48,-47),(29,-47)).segment((29,19)).segment((-48,19)).segment((-48,-7)).segment((-38,6)).segment((-20,-8)).segment((-31,-22)).segment((-48,-9)).close().assemble().push([(-9,-14)]).rect(6,30,mode='s').finalize().extrude(100)) |