Datasets:
ArXiv:
License:
Download train/batch_39/390010.py from filapro/cad-recode-v1.5: direct link, hf CLI and curl.
- Browser
- Download file 591 Bytes
-
https://huggingface.co/datasets/filapro/cad-recode-v1.5/resolve/main/train/batch_39/390010.py
- Command line
-
hf download hf://datasets/filapro/cad-recode-v1.5/train/batch_39/390010.py
-
curl -L -o 390010.py https://huggingface.co/datasets/filapro/cad-recode-v1.5/resolve/main/train/batch_39/390010.py
591 Bytes
| import cadquery as cq | |
| w0=cq.Workplane('ZX',origin=(0,-83,0)) | |
| w1=cq.Workplane('XY',origin=(0,0,-25)) | |
| r=w0.sketch().arc((-56,49),(1,45),(-42,7)).arc((53,62),(-56,49)).assemble().finalize().extrude(33).union(w0.sketch().segment((-31,-51),(-7,-51)).segment((-7,-60)).segment((-1,-60)).segment((-1,-100)).segment((1,-100)).segment((1,-60)).segment((6,-60)).segment((6,-51)).segment((30,-51)).segment((30,12)).segment((6,12)).segment((6,21)).segment((-7,21)).segment((-7,12)).segment((-31,12)).close().assemble().finalize().extrude(37)).union(w1.workplane(offset=6/2).moveTo(35,53).cylinder(6,30)) |