image
imagewidth (px) 448
448
| deepcad_id
stringlengths 13
13
| cadquery
stringlengths 283
8.1k
| token_count
int64 807
6.5k
| prompt
stringclasses 1
value | hundred_subset
bool 1
class |
|---|---|---|---|---|---|
0003/00037450
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.75, 0.0).lineTo(0.75, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.125)
solid=solid0
| 838
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00033805
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0859375, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.08684210526315789, 0.0).circle(0.08684210526315789)
solid0=wp_sketch0.add(loop0).extrude(0.734375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.03125, 0.0, 0.734375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.031578947368421054, 0.0).circle(0.031578947368421054)
solid1=wp_sketch1.add(loop1).extrude(0.015625)
solid=solid.union(solid1)
| 1,043
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00039482
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0546875, 0.0, 0.6953125), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.05921052631578947, 0.0).circle(0.05797697368421052)
loop1=wp_sketch0.moveTo(0.05921052631578947, 0.0).circle(0.019736842105263157)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.015625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.09375, 0.0, 0.3984375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop2=wp_sketch1.moveTo(0.0, 0.0).threePointArc((0.0962171052631579, 0.08507893764914959), (0.1924342105263158, 0.0)).lineTo(0.15394736842105264, 0.3046875).threePointArc((0.0962171052631579, 0.23939943975130132), (0.03848684210526316, 0.3046875)).lineTo(0.0, 0.0).close()
loop3=wp_sketch1.moveTo(0.07697368421052632, 0.20847039473684212).circle(0.01924342105263158)
solid1=wp_sketch1.add(loop2).add(loop3).extrude(0.015625)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.09375, 0.0, 0.3828125), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop4=wp_sketch2.moveTo(0.09868421052631579, 0.0).circle(0.09868421052631579)
loop5=wp_sketch2.moveTo(0.09868421052631579, 0.0).circle(0.020559210526315787)
solid2=wp_sketch2.add(loop4).add(loop5).extrude(0.015625)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.09375, 0.0, 0.375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop6=wp_sketch3.moveTo(0.03618421052631579, -0.3799342105263158).threePointArc((0.13117563507998142, -0.3242087311900714), (0.09950657894736842, -0.4296875)).lineTo(0.3663651315789474, -0.4206414473684211).threePointArc((0.3170919265813337, -0.37314967105263164), (0.3663651315789474, -0.32565789473684215)).lineTo(0.2080592105263158, -0.31661184210526316).threePointArc((0.17459916093575675, -0.30159421374261347), (0.16282894736842107, -0.266858552631579)).lineTo(0.1899671052631579, 0.004523026315789474).threePointArc((0.09700813264413546, -0.08277084736948065), (0.0, 0.0)).close()
solid3=wp_sketch3.add(loop6).extrude(0.015625)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(-0.0546875, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop7=wp_sketch4.moveTo(0.05921052631578947, 0.0).circle(0.05797697368421052)
loop8=wp_sketch4.moveTo(0.05921052631578947, 0.0).circle(0.019736842105263157)
solid4=wp_sketch4.add(loop7).add(loop8).extrude(0.015625)
solid=solid.union(solid4)
# Generating a workplane for sketch 5
wp_sketch5 = cq.Workplane(cq.Plane(cq.Vector(0.21875, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop9=wp_sketch5.moveTo(0.04736842105263158, 0.0).circle(0.04736842105263158)
loop10=wp_sketch5.moveTo(0.04736842105263158, 0.0).circle(0.01875)
solid5=wp_sketch5.add(loop9).add(loop10).extrude(0.015625)
solid=solid.union(solid5)
| 3,182
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00032070
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.546875, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.0, 0.0).threePointArc((0.24176111517181983, -0.20289157887071904), (0.5460526315789473, -0.2866776315789474)).lineTo(0.6143092105263158, -0.2866776315789474).threePointArc((0.7112876136136121, -0.1877528862862815), (0.8463815789473684, -0.21842105263157896)).lineTo(1.2013157894736843, -0.13651315789473684).lineTo(1.296875, -0.05460526315789474).lineTo(1.2149671052631579, 0.0).lineTo(0.5460526315789473, 0.0).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0234375, both=True)
solid=solid0
| 1,238
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00030667
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.2109375, 0.0, -0.6015625), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.06842105263157895, 0.0).lineTo(0.06842105263157895, 0.6072368421052632).threePointArc((0.20526315789473687, 0.7440789473684211), (0.34210526315789475, 0.6072368421052632)).lineTo(0.34210526315789475, 0.5901315789473685).lineTo(0.3592105263157895, 0.5901315789473685).lineTo(0.3592105263157895, 0.7440789473684211).threePointArc((0.1326631480100882, 0.7988809469998338), (0.0, 0.6072368421052632)).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.015625)
solid=solid0
| 1,238
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00033420
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0703125, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.06710526315789474, 0.0).circle(0.06710526315789474)
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 839
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00031223
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.296875, -0.75, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.5842105263157895, 0.0).lineTo(0.5842105263157895, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.265625)
solid=solid0
| 873
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035910
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.75, 0.0).lineTo(0.75, 0.24473684210526317).threePointArc((0.6274706816435421, 0.18727116474002822), (0.49736842105263157, 0.15)).lineTo(0.49736842105263157, 0.10263157894736842).lineTo(0.0, 0.10263157894736842).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.25, both=True)
solid=solid0
| 1,060
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035904
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.3046875, 0.0, -0.6875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.0, 0.0).threePointArc((0.3101973684210526, 1.465257386905595), (0.6203947368421052, 0.0)).lineTo(0.6203947368421052, 0.680921052631579).threePointArc((0.3101973684210526, 0.9911184210526316), (0.0, 0.680921052631579)).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(-0.2723684210526316, 0.680921052631579).circle(0.09078947368421053)
loop2=wp_sketch0.moveTo(0.3026315789473684, 1.2710526315789474).circle(0.09078947368421053)
loop3=wp_sketch0.moveTo(0.8927631578947368, 0.680921052631579).circle(0.09078947368421053)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).extrude(0.0703125, both=True)
solid=solid0
| 1,311
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00039680
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5546875, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.5565789473684211, 0.0).circle(0.5565789473684211)
loop1=wp_sketch0.moveTo(0.0, 0.0).threePointArc((0.4699833898789143, -0.14575044427655168), (0.37105263157894736, 0.33626644736842104)).lineTo(0.37105263157894736, -0.33626644736842104).close()
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.3203125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch1.moveTo(0.7578947368421053, 0.0).circle(0.7578947368421053)
loop3=wp_sketch1.moveTo(0.7578947368421053, 0.0).circle(0.5526315789473685)
solid1=wp_sketch1.add(loop2).add(loop3).extrude(0.5625)
solid=solid.union(solid1)
| 1,251
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00039858
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.6789473684210526, 0.0).lineTo(0.6789473684210526, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.4375)
solid=solid0
| 939
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035092
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.125, 0.0, 0.2265625), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.3003289473684211, -0.020476973684210528).lineTo(0.2525493421052632, -0.6279605263157895).lineTo(0.5528782894736842, -0.6484375).lineTo(0.6279605263157895, 0.2525493421052632).lineTo(0.020476973684210528, 0.3003289473684211).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.296875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.4296875, 0.0, 0.203125), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.2967105263157895, -0.023601973684210527).lineTo(0.3203125, 0.27310855263157896).lineTo(0.023601973684210527, 0.2967105263157895).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.296875)
solid=solid.union(solid1)
| 1,444
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00032931
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.609375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.0, 0.0).threePointArc((0.0416216679366486, -0.10048359522124614), (0.14210526315789473, -0.14210526315789473)).lineTo(1.3578947368421053, -0.14210526315789473).threePointArc((1.4583783320633514, -0.10048359522124614), (1.5, 0.0)).lineTo(1.5, 1.2157894736842105).threePointArc((1.4583783320633514, 1.3162730689054567), (1.3578947368421053, 1.3578947368421053)).lineTo(0.14210526315789473, 1.3578947368421053).threePointArc((0.0416216679366486, 1.3162730689054567), (0.0, 1.2157894736842105)).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.3315789473684211, 0.18947368421052632).circle(0.04736842105263158)
loop2=wp_sketch0.moveTo(0.3315789473684211, 1.0263157894736843).circle(0.04736842105263158)
loop3=wp_sketch0.moveTo(1.168421052631579, 0.18947368421052632).circle(0.04736842105263158)
loop4=wp_sketch0.moveTo(1.168421052631579, 1.0263157894736843).circle(0.04736842105263158)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).add(loop4).extrude(0.0859375)
solid=solid0
| 1,544
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00032928
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6171875, 0.453125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.30394736842105263, 0.0).circle(0.30394736842105263)
loop1=wp_sketch0.moveTo(0.30394736842105263, 0.0).circle(0.2912828947368421)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.140625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.4921875, 0.6796875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch1.moveTo(0.3515625, -0.007401315789473684).threePointArc((0.34605692934268756, -0.003632533617547667), (0.34046052631578944, 0.0)).lineTo(0.011101973684210526, 0.007401315789473684).threePointArc((0.0055055706573124445, 0.003768782171926017), (0.0, 0.0)).close()
solid1=wp_sketch1.add(loop2).extrude(0.0703125)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.46875, 0.203125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch2.moveTo(0.0, 0.0).threePointArc((0.0024822434214415785, -0.0024519671048742107), (0.004934210526315789, -0.004934210526315789)).lineTo(0.34539473684210525, 0.4638157894736842).threePointArc((0.34294276973723103, 0.4662980328951258), (0.34046052631578944, 0.46875)).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop3).extrude(0.0703125)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.4921875, 0.6796875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch3.moveTo(0.014802631578947368, -0.4638157894736842).threePointArc((0.019721703946979474, -0.46631317105340936), (0.024671052631578948, -0.46875)).lineTo(0.004934210526315789, 0.004934210526315789).threePointArc((0.0024519671048742107, 0.0024822434214415785), (0.0, 0.0)).close()
solid3=wp_sketch3.add(loop4).extrude(0.0703125)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(-0.4921875, 0.6796875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop5=wp_sketch4.moveTo(0.015049342105263158, -0.4765625).lineTo(0.3561677631578947, -0.010032894736842105).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop5).extrude(0.015625)
solid=solid.union(solid4)
# Generating a workplane for sketch 5
wp_sketch5 = cq.Workplane(cq.Plane(cq.Vector(-0.4765625, 0.6875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop6=wp_sketch5.moveTo(0.3359375, -0.007072368421052632).threePointArc((0.16908900794892778, 0.0496760683635438), (0.0, 0.0)).close()
solid5=wp_sketch5.add(loop6).extrude(0.015625)
solid=solid.union(solid5)
# Generating a workplane for sketch 6
wp_sketch6 = cq.Workplane(cq.Plane(cq.Vector(-0.46875, 0.203125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop7=wp_sketch6.moveTo(0.0, 0.0).threePointArc((0.38528952497918717, 0.0781740624666403), (0.34046052631578944, 0.46875)).lineTo(0.0, 0.0).close()
solid6=wp_sketch6.add(loop7).extrude(0.015625)
solid=solid.union(solid6)
# Generating a workplane for sketch 7
wp_sketch7 = cq.Workplane(cq.Plane(cq.Vector(-0.4921875, 0.6796875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop8=wp_sketch7.moveTo(0.0, 0.0).threePointArc((-0.11238123086191734, -0.23815760673635974), (0.014802631578947368, -0.46875)).lineTo(0.0, 0.0).close()
solid7=wp_sketch7.add(loop8).extrude(0.015625)
solid=solid.union(solid7)
| 3,036
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00039869
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5234375, 0.0, -0.0625), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.45592105263157895, 0.0).threePointArc((0.6838815789473685, 0.22796052631578947), (0.45592105263157895, 0.45592105263157895)).lineTo(0.0, 0.45592105263157895).threePointArc((-0.22796052631578947, 0.22796052631578947), (0.0, 0.0)).close()
loop1=wp_sketch0.moveTo(0.0, 0.23157894736842105).circle(0.11578947368421053)
loop2=wp_sketch0.moveTo(0.45592105263157895, 0.23157894736842105).circle(0.07960526315789473)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).extrude(0.2265625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.3203125, -0.1171875, 0.3984375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch1.moveTo(0.027631578947368417, 0.0).circle(0.027631578947368417)
solid1=wp_sketch1.add(loop3).extrude(-0.2265625)
solid=solid.cut(solid1)
| 1,427
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00038593
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.7578947368421053, 0.0).circle(0.7578947368421053)
solid0=wp_sketch0.add(loop0).extrude(0.375)
solid=solid0
| 833
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00034430
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1484375, -0.2109375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.8984375, 0.0).lineTo(0.8984375, 0.5579769736842105).lineTo(0.0, 0.5579769736842105).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.5625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.078125, -0.2109375, 0.5625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.671875, 0.0).lineTo(0.671875, 0.5587171052631579).lineTo(0.0, 0.5587171052631579).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.3359375)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.4140625, -0.2109375, 0.2265625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.3359375, 0.0).lineTo(0.3359375, 0.2227796052631579).lineTo(0.0, 0.2227796052631579).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(-0.2265625)
solid=solid.cut(solid2)
| 1,383
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00037887
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.375, -0.5859375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.16118421052631582, 0.0).lineTo(0.16118421052631582, -0.16118421052631582).lineTo(0.7656250000000001, -0.16118421052631582).lineTo(0.7656250000000001, 0.43519736842105267).lineTo(0.6044407894736843, 0.43519736842105267).lineTo(0.6044407894736843, 0.6044407894736843).lineTo(0.0, 0.6044407894736843).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.18536184210526319, 0.01611842105263158).lineTo(0.18536184210526319, -0.14506578947368423).lineTo(0.37072368421052637, -0.14506578947368423).lineTo(0.37072368421052637, 0.20953947368421055).lineTo(0.01611842105263158, 0.20953947368421055).lineTo(0.01611842105263158, 0.01611842105263158).close()
loop2=wp_sketch0.moveTo(0.37072368421052637, 0.2256578947368421).lineTo(0.37072368421052637, 0.5802631578947369).lineTo(0.01611842105263158, 0.5802631578947369).lineTo(0.01611842105263158, 0.2256578947368421).close()
loop3=wp_sketch0.moveTo(0.7495065789473685, -0.14506578947368423).lineTo(0.7495065789473685, 0.20953947368421055).lineTo(0.39490131578947374, 0.20953947368421055).lineTo(0.39490131578947374, -0.14506578947368423).close()
loop4=wp_sketch0.moveTo(0.7495065789473685, 0.2256578947368421).lineTo(0.7495065789473685, 0.4190789473684211).lineTo(0.5802631578947369, 0.4190789473684211).lineTo(0.5802631578947369, 0.5802631578947369).lineTo(0.39490131578947374, 0.5802631578947369).lineTo(0.39490131578947374, 0.2256578947368421).close()
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).add(loop4).extrude(0.0703125)
solid=solid0
| 2,012
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00036569
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6796875, -0.0703125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.3544407894736843, 0.0).threePointArc((1.4221628289473685, 0.06772203947368421), (1.3544407894736843, 0.13544407894736843)).lineTo(0.0, 0.13544407894736843).threePointArc((-0.06772203947368421, 0.06772203947368421), (0.0, 0.0)).close()
loop1=wp_sketch0.moveTo(0.0, 0.07524671052631579).circle(0.04514802631578947)
loop2=wp_sketch0.moveTo(1.3544407894736843, 0.07524671052631579).circle(0.04514802631578947)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).extrude(0.078125)
solid=solid0
| 1,144
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00039882
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.7421875, -0.7421875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.4921875, 0.0).lineTo(1.4921875, 1.4921875).lineTo(0.0, 1.4921875).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.125)
solid=solid0
| 870
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00034197
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.75), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(1.5, 0.0).lineTo(1.5, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75, both=True)
solid=solid0
| 911
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00033820
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.046875, 0.0, -0.1015625), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.02565789473684211, 0.0).lineTo(0.02565789473684211, 0.1015625).lineTo(0.0, 0.1015625).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.1015625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.078125, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.02368421052631579, 0.0).lineTo(0.04736842105263158, 0.0).lineTo(0.07894736842105263, 0.0).lineTo(0.07894736842105263, 0.75).lineTo(0.04736842105263158, 0.75).lineTo(0.04736842105263158, 0.6473684210526316).lineTo(0.02368421052631579, 0.6473684210526316).lineTo(0.02368421052631579, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.1015625)
solid=solid.union(solid1)
| 1,466
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00036031
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0234375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.1450657894736842, -0.06513157894736843).lineTo(0.053289473684210525, -0.17763157894736842).lineTo(0.28125, -0.10065789473684211).lineTo(0.28125, 0.053289473684210525).lineTo(0.10065789473684211, 0.11842105263157895).lineTo(0.1480263157894737, 0.035526315789473684).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0234375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.46875, -0.078125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.2116776315789474, -0.06513157894736843).lineTo(0.11669407894736843, 0.04342105263157895).lineTo(0.2578125, 0.1058388157894737).lineTo(0.11940789473684212, 0.14383223684210528).lineTo(0.14925986842105265, 0.2523848684210527).lineTo(0.0, 0.14925986842105265).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.0234375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.46875, -0.1328125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.0, 0.0).threePointArc((0.02040136154070665, -0.0492532437224511), (0.06965460526315789, -0.06965460526315789)).lineTo(0.8756578947368421, -0.06965460526315789).threePointArc((0.9249111384592933, -0.0492532437224511), (0.9453125, 0.0)).lineTo(0.9453125, 0.05970394736842105).lineTo(0.9453125, 0.20896381578947368).lineTo(0.9453125, 0.26866776315789476).threePointArc((0.9249111384592933, 0.31792100688034597), (0.8756578947368421, 0.3383223684210526)).lineTo(0.06965460526315789, 0.3383223684210526).threePointArc((0.02040136154070665, 0.31792100688034597), (0.0, 0.26866776315789476)).lineTo(0.0, 0.20896381578947368).lineTo(0.0, 0.05970394736842105).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.0234375)
solid=solid.union(solid2)
| 2,172
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035538
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.3671875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(1.5, 0.0).lineTo(1.5, 1.0105263157894737).lineTo(0.0, 1.0105263157894737).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.03125)
solid=solid0
| 945
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035504
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5, -0.75, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.9947368421052631, 0.0).lineTo(0.9947368421052631, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.03125)
solid=solid0
| 867
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00033607
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.46875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.5, 0.0).lineTo(1.5, 0.9315789473684211).lineTo(0.0, 0.9315789473684211).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0546875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.078125, 0.0, 0.0546875), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.07894736842105263, 0.0).circle(0.07894736842105263)
solid1=wp_sketch1.add(loop1).extrude(-0.09375)
solid=solid.cut(solid1)
| 1,072
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00038752
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.2890625, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.12031249999999999, 0.0).lineTo(0.12031249999999999, 0.41562499999999997).lineTo(0.91875, 0.41562499999999997).lineTo(0.91875, 0.0).lineTo(1.0390625, 0.0).lineTo(1.0390625, 0.0546875).lineTo(0.9624999999999999, 0.0546875).lineTo(0.9624999999999999, 0.459375).lineTo(0.07656249999999999, 0.459375).lineTo(0.07656249999999999, 0.0546875).lineTo(0.0, 0.0546875).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.1875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.2265625, 0.046875, 0.09375), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.0, 0.0).threePointArc((0.027343749999999997, -0.027343749999999997), (0.05468749999999999, 0.0)).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.3125)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.2265625, 0.046875, 0.09375), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.0, 0.0).threePointArc((0.027343749999999997, -0.027343749999999997), (0.05468749999999999, 0.0)).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(-0.3125)
solid=solid.cut(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.7421875, 0.046875, 0.09375), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop3=wp_sketch3.moveTo(0.0, 0.0).threePointArc((0.027343749999999997, -0.027343749999999997), (0.05468749999999999, 0.0)).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(-0.3125)
solid=solid.cut(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(0.7421875, 0.046875, 0.09375), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop4=wp_sketch4.moveTo(0.0, 0.0).threePointArc((0.027343749999999997, -0.027343749999999997), (0.05468749999999999, 0.0)).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(-0.3125)
solid=solid.cut(solid4)
| 2,413
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00031010
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.09375, 0.0, -0.09375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.1953125, 0.0).lineTo(0.1953125, 0.1953125).lineTo(0.0, 0.1953125).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.09375, -0.75, -0.09375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.1796875, 0.0).lineTo(0.1796875, 0.1796875).lineTo(0.0, 0.1796875).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.75)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.09375, 0.0, -0.09375), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.15008223684210525, 0.0).lineTo(0.15008223684210525, 0.1953125).lineTo(0.0, 0.1953125).lineTo(0.0, 0.0).close()
loop3=wp_sketch2.moveTo(0.07606907894736842, 0.09868421052631579).circle(0.03700657894736842)
solid2=wp_sketch2.add(loop2).add(loop3).extrude(-0.1953125)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.09375, 0.1484375, -0.09375), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop4=wp_sketch3.moveTo(0.18092105263157893, 0.0).lineTo(0.18092105263157893, 0.1953125).lineTo(0.0, 0.1953125).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop4).extrude(-0.1484375)
solid=solid.cut(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(0.09375, -0.1484375, -0.171875), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop5=wp_sketch4.moveTo(0.078125, 0.0).lineTo(0.078125, 0.078125).lineTo(0.0, 0.078125).lineTo(0.0, 0.0).close()
loop6=wp_sketch4.moveTo(0.039473684210526314, 0.039473684210526314).circle(0.019736842105263157)
solid4=wp_sketch4.add(loop5).add(loop6).extrude(-0.1953125)
solid=solid.union(solid4)
# Generating a workplane for sketch 5
wp_sketch5 = cq.Workplane(cq.Plane(cq.Vector(-0.078125, -0.078125, -0.171875), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop7=wp_sketch5.moveTo(0.15625, 0.0).lineTo(0.15625, 0.0756578947368421).lineTo(0.0, 0.0756578947368421).lineTo(0.0, 0.0).close()
solid5=wp_sketch5.add(loop7).extrude(-0.078125)
solid=solid.cut(solid5)
| 2,610
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00033161
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.21875, -0.75, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.4421052631578948, 0.0).lineTo(0.4421052631578948, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.09473684210526316, 0.8368421052631579).circle(0.015789473684210527)
loop2=wp_sketch0.moveTo(0.09473684210526316, 1.0263157894736843).circle(0.015789473684210527)
loop3=wp_sketch0.moveTo(0.3473684210526316, 0.8368421052631579).circle(0.015789473684210527)
loop4=wp_sketch0.moveTo(0.3473684210526316, 1.0263157894736843).circle(0.015789473684210527)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).add(loop4).extrude(0.0390625)
solid=solid0
| 1,195
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00037298
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.6015625), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(1.2588815789473684, 0.0).lineTo(1.2588815789473684, 0.2546052631578947).lineTo(0.26875, 1.34375).lineTo(0.0, 1.34375).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.4296875)
solid=solid0
| 986
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00036838
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.328125), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(1.5, 0.0).lineTo(1.5, 0.6631578947368422).lineTo(0.0, 0.6631578947368422).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.1875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.3125, -0.1875, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.3157894736842105, 0.0).circle(0.3157894736842105)
solid1=wp_sketch1.add(loop1).extrude(-0.1484375)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.328125, -0.1875, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.19736842105263158, 0.0).circle(0.19325657894736842)
solid2=wp_sketch2.add(loop2).extrude(-0.109375)
solid=solid.cut(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.6171875, -0.1875, -0.21875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop3=wp_sketch3.moveTo(0.1888157894736842, 0.0).lineTo(0.1888157894736842, 0.43749999999999994).lineTo(0.0, 0.43749999999999994).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(-0.109375)
solid=solid.cut(solid3)
| 1,814
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00033954
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.125, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.13026315789473686, 0.0).circle(0.12754934210526317)
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 835
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00039289
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0234375, 0.0, 0.5390625), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.0, 0.0).threePointArc((-0.31350206888597193, -1.0102792970596608), (0.45723684210526316, -0.2857730263157895)).threePointArc((0.1185126936420414, -0.31905567701483867), (0.0, 0.0)).close()
solid0=wp_sketch0.add(loop0).extrude(0.265625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0234375, 0.0, 0.5390625), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.0, 0.0).threePointArc((0.2653163573046756, -0.08398272124808606), (0.45476973684210525, -0.287828947368421)).threePointArc((0.4141457011342166, 0.15116764200258878), (0.0, 0.0)).close()
solid1=wp_sketch1.add(loop1).extrude(0.265625)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0234375, 0.0, 0.5390625), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.0, 0.0).threePointArc((0.11629834708234452, -0.3176770140494459), (0.453125, -0.2861842105263158)).threePointArc((0.26427723751857385, -0.08337710419208264), (0.0, 0.0)).close()
solid2=wp_sketch2.add(loop2).extrude(0.265625)
solid=solid.union(solid2)
| 1,772
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00032337
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.21957236842105263, 0.0).lineTo(0.21957236842105263, 0.08881578947368421).lineTo(0.15049342105263158, 0.08881578947368421).lineTo(0.15049342105263158, 0.234375).lineTo(0.0, 0.234375).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.75)
solid=solid0
| 1,035
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035470
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.015625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.5210526315789474, -0.06315789473684211).lineTo(0.75, -0.06315789473684211).threePointArc((0.6710526315789473, 0.015789473684210527), (0.75, 0.09473684210526316)).lineTo(0.5210526315789474, 0.09473684210526316).lineTo(0.0, 0.031578947368421054).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0234375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.078125, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.08289473684210526, 0.0).circle(0.08289473684210526)
loop2=wp_sketch1.moveTo(0.08289473684210526, 0.0).circle(0.05180921052631579)
solid1=wp_sketch1.add(loop1).add(loop2).extrude(0.0234375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.0546875, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch2.moveTo(0.05131578947368422, 0.0).circle(0.05131578947368422)
solid2=wp_sketch2.add(loop3).extrude(0.0078125)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.0078125, 0.0234375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch3.moveTo(0.125, 0.0).lineTo(0.125, 0.013157894736842105).lineTo(0.0, 0.013157894736842105).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop4).extrude(-0.015625)
solid=solid.cut(solid3)
| 1,721
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00037267
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.078125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.5, 0.0).lineTo(1.5, 0.15789473684210525).lineTo(0.0, 0.15789473684210525).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.25)
solid=solid0
| 871
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00038140
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.4765625, -0.0390625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.4765625, 0.0).lineTo(0.4765625, 0.34111842105263157).lineTo(0.4765625, 0.4765625).lineTo(0.3160361842105263, 0.4765625).lineTo(0.0, 0.4765625).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.2265625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.4765625, 0.4375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.3125, 0.0).lineTo(0.3125, 0.3125).lineTo(0.0, 0.3125).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.2265625)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.0390625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.3359375, 0.0).lineTo(0.3359375, 0.3359375).lineTo(0.0, 0.3359375).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.2265625)
solid=solid.union(solid2)
| 1,372
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00039909
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.4375, 0.1328125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.1643092105263158, -0.5568256578947369).lineTo(0.7028782894736842, -0.5568256578947369).lineTo(0.8671875000000001, 0.0).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.109375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.4375, 0.1328125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.8671875000000001, 0.0).lineTo(0.43815789473684214, 0.3286184210526316).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.109375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.2734375, -0.53125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.5390625, 0.0).lineTo(0.5390625, 0.1078125).lineTo(0.0, 0.1078125).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.109375)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.2734375, -0.75, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.5390625, 0.0).lineTo(0.5390625, 0.215625).lineTo(0.0, 0.215625).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(0.109375)
solid=solid.union(solid3)
| 1,594
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00030093
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.453125, 0.0), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.013980263157894737, 0.0).lineTo(0.6640625, 0.0).lineTo(0.10485197368421052, 0.08388157894736842).threePointArc((0.051443898166961516, 0.07742099532363961), (0.027960526315789474, 0.12582236842105263)).lineTo(0.0, 0.12582236842105263).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.75)
solid=solid0
| 1,065
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00031428
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.2734375, 0.0, -0.6953125), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.05814144736842105, -0.024917763157894735).threePointArc((0.6226545498201539, 0.29211648440467647), (0.20764802631578946, 0.7890625)).lineTo(0.06644736842105263, 0.7890625).threePointArc((0.12043585526315789, 0.7350740131578947), (0.06644736842105263, 0.6810855263157894)).lineTo(0.09136513157894736, 0.6810855263157894).lineTo(0.16611842105263158, 0.6810855263157894).lineTo(0.09136513157894736, 0.7143092105263158).lineTo(0.06644736842105263, 0.7143092105263158).threePointArc((0.08721217105263157, 0.7350740131578947), (0.06644736842105263, 0.7558388157894737)).lineTo(0.20764802631578946, 0.7558388157894737).threePointArc((0.5918246665623236, 0.2929610729903814), (0.06644736842105263, 0.0)).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0625)
solid=solid0
| 1,496
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00037059
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.25, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.25263157894736843, 0.0).circle(0.25263157894736843)
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.25, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.25263157894736843, 0.0).circle(0.25263157894736843)
solid1=wp_sketch1.add(loop1).extrude(0.75)
solid=solid.union(solid1)
| 1,020
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035882
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.75, -0.3671875), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.031578947368421054, 0.0).lineTo(0.031578947368421054, 0.0625).lineTo(0.0, 0.0625).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.4921875)
solid=solid0
| 939
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00032135
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.40625), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.253125, 0.0).lineTo(1.3359375, 0.0).lineTo(1.3359375, 0.28125).lineTo(0.253125, 0.28125).lineTo(0.253125, 1.0828125).lineTo(0.0, 1.0828125).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.4375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0390625, -0.2421875, -0.125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.11052631578947367, 0.0).circle(0.11052631578947367)
solid1=wp_sketch1.add(loop1).extrude(-0.4375)
solid=solid.cut(solid1)
| 1,196
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00032653
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.75, 0.0).lineTo(0.75, 0.3631578947368421).lineTo(0.0, 0.3631578947368421).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.3473684210526316, 0.06315789473684211).lineTo(0.3473684210526316, 0.3078947368421053).lineTo(0.06315789473684211, 0.3078947368421053).lineTo(0.06315789473684211, 0.06315789473684211).close()
loop2=wp_sketch0.moveTo(0.6868421052631579, 0.06315789473684211).lineTo(0.6868421052631579, 0.3078947368421053).lineTo(0.40263157894736845, 0.3078947368421053).lineTo(0.40263157894736845, 0.06315789473684211).close()
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).extrude(0.3671875)
solid=solid0
| 1,320
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00039706
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.75, 0.0), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.7578947368421053, 0.0).circle(0.7578947368421053)
loop1=wp_sketch0.moveTo(0.7578947368421053, 0.0).circle(0.39473684210526316)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.171875)
solid=solid0
| 954
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035114
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.5, 0.0).lineTo(0.5, 0.25263157894736843).lineTo(0.0, 0.25263157894736843).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.25)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.25, 0.0, 0.25), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.25, 0.0).lineTo(0.25, 0.25).lineTo(0.0, 0.25).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.5)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.5, 0.25, 0.5), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.25, 0.0).lineTo(0.25, 0.25).lineTo(0.0, 0.25).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.25)
solid=solid.union(solid2)
| 1,317
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00032109
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.171875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(1.5, 0.0).lineTo(1.5, 0.3473684210526316).lineTo(0.0, 0.3473684210526316).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.03125)
solid=solid0
| 944
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00037071
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.0546875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.0, 0.0).threePointArc((0.0039085209517519745, 5.14417910120401e-05), (0.0078125, 0.0002467105263157895)).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.015625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.0546875, 0.0, 0.6953125), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.05921052631578947, 0.0).circle(0.05797697368421052)
loop2=wp_sketch1.moveTo(0.05921052631578947, 0.0).circle(0.019736842105263157)
solid1=wp_sketch1.add(loop1).add(loop2).extrude(0.015625)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.21875, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop3=wp_sketch2.moveTo(0.04736842105263158, 0.0).circle(0.04736842105263158)
loop4=wp_sketch2.moveTo(0.04736842105263158, 0.0).circle(0.01875)
solid2=wp_sketch2.add(loop3).add(loop4).extrude(0.015625)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.09375, 0.0, 0.3984375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop5=wp_sketch3.moveTo(0.0, 0.0).threePointArc((0.0962171052631579, 0.08507893764914959), (0.1924342105263158, 0.0)).lineTo(0.15394736842105264, 0.3046875).threePointArc((0.0962171052631579, 0.23939943975130132), (0.03848684210526316, 0.3046875)).lineTo(0.0, 0.0).close()
loop6=wp_sketch3.moveTo(0.06414473684210527, 0.21167763157894737).circle(0.01924342105263158)
solid3=wp_sketch3.add(loop5).add(loop6).extrude(0.015625)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(-0.09375, 0.0, 0.3828125), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop7=wp_sketch4.moveTo(0.09868421052631579, 0.0).circle(0.09868421052631579)
loop8=wp_sketch4.moveTo(0.09868421052631579, 0.0).circle(0.020559210526315787)
solid4=wp_sketch4.add(loop7).add(loop8).extrude(0.015625)
solid=solid.union(solid4)
# Generating a workplane for sketch 5
wp_sketch5 = cq.Workplane(cq.Plane(cq.Vector(-0.09375, 0.0, 0.375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop9=wp_sketch5.moveTo(0.03618421052631579, -0.3799342105263158).threePointArc((0.12896091268401655, -0.3270274687849359), (0.09950657894736842, -0.4296875)).lineTo(0.3663651315789474, -0.4206414473684211).threePointArc((0.3170919265813337, -0.37314967105263164), (0.3663651315789474, -0.32565789473684215)).lineTo(0.2080592105263158, -0.32113486842105265).threePointArc((0.1736132592983376, -0.3038557269005082), (0.16282894736842107, -0.266858552631579)).lineTo(0.1899671052631579, 0.0).threePointArc((0.09498355263157895, -0.0860880740310127), (0.0, 0.0)).close()
solid5=wp_sketch5.add(loop9).extrude(0.015625)
solid=solid.union(solid5)
# Generating a workplane for sketch 6
wp_sketch6 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.0546875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop10=wp_sketch6.moveTo(0.003700657894736842, 0.0).threePointArc((0.001850328947368421, 0.10050755769375384), (0.0, 0.0)).close()
loop11=wp_sketch6.moveTo(0.0, 0.05921052631578947).circle(0.0234375)
solid6=wp_sketch6.add(loop10).add(loop11).extrude(0.015625)
solid=solid.union(solid6)
| 3,517
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00038424
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.390625, -0.25, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.78125, 0.0).lineTo(0.78125, 0.5016447368421052).lineTo(0.0, 0.5016447368421052).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.015625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.390625, -0.25, 0.015625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.015789473684210527, 0.0).lineTo(0.015789473684210527, 0.5).lineTo(0.0, 0.5).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.734375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.375, -0.25, 0.015625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.015789473684210527, 0.0).lineTo(0.015789473684210527, 0.5).lineTo(0.0, 0.5).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.734375)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.375, -0.25, 0.734375), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop3=wp_sketch3.moveTo(0.5, 0.0).lineTo(0.5, 0.015789473684210527).lineTo(0.0, 0.015789473684210527).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(0.75)
solid=solid.union(solid3)
| 1,627
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00031366
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6328125, 0.0, 0.109375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.6368421052631579, -0.8539473684210527).lineTo(1.2592105263157896, 0.0).threePointArc((1.1695374133027114, 0.6055440267376321), (0.6368421052631579, 0.30394736842105263)).threePointArc((0.09690995511834113, 0.6160921742382629), (0.0, 0.0)).close()
solid0=wp_sketch0.add(loop0).extrude(0.421875)
solid=solid0
| 1,081
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00032108
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.515625, -0.75, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.0263157894736843, 0.0).lineTo(1.0263157894736843, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0234375)
solid=solid0
| 874
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00030079
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.0234375, 0.0), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.027631578947368417, 0.0).circle(0.027631578947368417)
solid0=wp_sketch0.add(loop0).extrude(0.75, both=True)
solid=solid0
| 899
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00031373
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6171875, 0.0, -0.2421875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.6171875, 0.0).lineTo(0.6171875, 0.14292763157894736).lineTo(0.4417763157894737, 0.14292763157894736).lineTo(0.17541118421052632, 0.14292763157894736).lineTo(0.0, 0.14292763157894736).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.5625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.3515625, 0.1953125, -0.1015625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.08289473684210527, 0.0).lineTo(0.08289473684210527, 0.1875).lineTo(0.0, 0.1875).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.8515625)
solid=solid.union(solid1)
| 1,296
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035115
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.25263157894736843, 0.0).lineTo(0.25263157894736843, 0.5).lineTo(0.0, 0.5).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.25)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.25, 0.25), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.25, 0.0).lineTo(0.25, 0.25).lineTo(0.0, 0.25).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.25)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.25, 0.25, 0.25), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.25, 0.0).lineTo(0.25, 0.25).lineTo(0.0, 0.25).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.25)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.5), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.25, 0.0).lineTo(0.25, 0.25).lineTo(0.0, 0.25).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(0.25)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.25, 0.5), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch4.moveTo(0.25, 0.0).lineTo(0.25, 0.25).lineTo(0.0, 0.25).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(0.25)
solid=solid.union(solid4)
| 1,627
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00034545
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6640625, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.675, 0.0).circle(0.675)
loop1=wp_sketch0.moveTo(0.675, 0.0).circle(0.5906250000000001)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.4140625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.5859375, 0.0, 0.4140625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch1.moveTo(0.5881578947368421, 0.0).circle(0.5881578947368421)
solid1=wp_sketch1.add(loop2).extrude(0.0859375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.6640625, -0.3515625, 0.4140625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch2.moveTo(0.0, 0.0).threePointArc((0.6640625, -0.4035827198561831), (1.328125, 0.0)).lineTo(1.328125, 0.2935855263157895).threePointArc((0.6640625, -0.3157490488445391), (0.0, 0.2935855263157895)).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop3).extrude(0.0859375)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.6640625, 0.0546875, 0.4140625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch3.moveTo(0.0, 0.0).threePointArc((0.6640625, 0.6093345751603285), (1.328125, 0.0)).lineTo(1.328125, 0.2935855263157895).threePointArc((0.6640625, 0.6971682461719726), (0.0, 0.2935855263157895)).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop4).extrude(0.0859375)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(-0.6640625, -0.0546875, 0.4140625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop5=wp_sketch4.moveTo(0.0, 0.0).threePointArc((0.6640625, -0.6093345751603285), (1.328125, 0.0)).lineTo(1.328125, 0.1118421052631579).threePointArc((0.6640625, 0.7211766804234865), (0.0, 0.1118421052631579)).lineTo(0.0, 0.04194078947368421).lineTo(0.0, 0.0).close()
loop6=wp_sketch4.moveTo(0.6710526315789473, 0.05592105263157895).circle(0.587171052631579)
solid4=wp_sketch4.add(loop5).add(loop6).extrude(0.0859375)
solid=solid.union(solid4)
| 2,150
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00034237
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.0625, -0.03125), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.05921052631578947, -0.033305921052631575).lineTo(0.1171875, 0.0).lineTo(0.1171875, 0.0678453947368421).lineTo(0.05921052631578947, 0.10115131578947367).lineTo(0.0, 0.0678453947368421).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.53125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.53125, -0.0234375, 0.0), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.027631578947368417, 0.0).circle(0.027631578947368417)
solid1=wp_sketch1.add(loop1).extrude(0.21875)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.0234375, 0.0), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.027631578947368417, 0.0).circle(0.027631578947368417)
solid2=wp_sketch2.add(loop2).extrude(0.421875)
solid=solid.union(solid2)
| 1,533
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00038380
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.25, 0.0).lineTo(0.25, 0.25).lineTo(0.0, 0.25).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.25)
solid=solid0
| 837
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035868
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.10937499999999999, 0.0).lineTo(0.10937499999999999, 0.055263157894736833).lineTo(0.0, 0.055263157894736833).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.640625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.75, 0.0).lineTo(0.75, 0.06315789473684211).lineTo(0.0, 0.06315789473684211).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.640625)
solid=solid.union(solid1)
| 1,270
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00036391
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.71875, 0.0, 0.359375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.38651315789473684, -0.5875).threePointArc((0.7189144736842105, -0.7651722048941695), (1.0513157894736842, -0.5875)).lineTo(1.437828947368421, 0.0).threePointArc((1.4516567246537677, 0.18084480969530492), (1.2986842105263157, 0.27828947368421053)).lineTo(0.13914473684210527, 0.27828947368421053).threePointArc((-0.01382777728534668, 0.18084480969530492), (0.0, 0.0)).close()
loop1=wp_sketch0.moveTo(0.3246710526315789, 0.030921052631578946).threePointArc((0.38651315789473684, 0.09276315789473684), (0.3246710526315789, 0.15460526315789475)).lineTo(0.13914473684210527, 0.15460526315789475).threePointArc((0.07730263157894737, 0.09276315789473684), (0.13914473684210527, 0.030921052631578946)).close()
loop2=wp_sketch0.moveTo(0.7266447368421053, -0.3555921052631579).circle(0.1700657894736842)
loop3=wp_sketch0.moveTo(1.2986842105263157, 0.030921052631578946).threePointArc((1.3605263157894736, 0.09276315789473684), (1.2986842105263157, 0.15460526315789475)).lineTo(1.1131578947368421, 0.15460526315789475).threePointArc((1.0513157894736842, 0.09276315789473684), (1.1131578947368421, 0.030921052631578946)).close()
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).extrude(0.21875)
solid=solid0
| 1,821
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00030938
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.3, 0.0).lineTo(0.75, 0.5763157894736842).lineTo(0.7342105263157895, 0.5842105263157895).lineTo(0.29210526315789476, 0.015789473684210527).lineTo(0.0, 0.015789473684210527).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.421875)
solid=solid0
| 957
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00039908
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.75), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(1.4921875, -1.4921875).lineTo(1.4921875, 0.0).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.25)
solid=solid0
| 913
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00030092
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.25, 0.0).lineTo(0.25, 0.12631578947368421).lineTo(0.0, 0.12631578947368421).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.75)
solid=solid0
| 939
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035471
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.078125, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.08289473684210526, 0.0).circle(0.08289473684210526)
loop1=wp_sketch0.moveTo(0.08289473684210526, 0.0).circle(0.05180921052631579)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.0234375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.078125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch1.moveTo(0.22894736842105265, 0.0).lineTo(0.75, 0.06315789473684211).lineTo(0.75, 0.09473684210526316).lineTo(0.22894736842105265, 0.15789473684210525).lineTo(0.0, 0.15789473684210525).threePointArc((0.07894736842105263, 0.07894736842105263), (0.0, 0.0)).close()
solid1=wp_sketch1.add(loop2).extrude(0.0234375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.078125, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch2.moveTo(0.08289473684210526, 0.0).circle(0.08289473684210526)
loop4=wp_sketch2.moveTo(0.08289473684210526, 0.0).circle(0.05180921052631579)
solid2=wp_sketch2.add(loop3).add(loop4).extrude(0.03125)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.625, -0.0078125, 0.0234375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop5=wp_sketch3.moveTo(0.125, 0.0).lineTo(0.125, 0.013157894736842105).lineTo(0.0, 0.013157894736842105).lineTo(0.0, 0.006578947368421052).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop5).extrude(-0.0078125)
solid=solid.cut(solid3)
| 1,798
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00034021
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.578125, -0.25, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.24325657894736843, 0.0).lineTo(0.24325657894736843, 0.796875).lineTo(0.0, 0.796875).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.13421052631578947, 0.13421052631578947).circle(0.050328947368421056)
loop2=wp_sketch0.moveTo(0.13421052631578947, 0.40263157894736845).circle(0.050328947368421056)
loop3=wp_sketch0.moveTo(0.13421052631578947, 0.6626644736842106).circle(0.050328947368421056)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).extrude(0.53125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.5, -0.25, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch1.moveTo(0.24325657894736843, 0.0).lineTo(0.24325657894736843, 0.796875).lineTo(0.0, 0.796875).lineTo(0.0, 0.0).close()
loop5=wp_sketch1.moveTo(0.1174342105263158, 0.13421052631578947).circle(0.050328947368421056)
loop6=wp_sketch1.moveTo(0.1174342105263158, 0.40263157894736845).circle(0.050328947368421056)
loop7=wp_sketch1.moveTo(0.1174342105263158, 0.6626644736842106).circle(0.050328947368421056)
solid1=wp_sketch1.add(loop4).add(loop5).add(loop6).add(loop7).extrude(0.53125)
solid=solid.union(solid1)
| 1,602
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00034747
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.7265625, -0.71875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.4765625, 0.0).lineTo(1.4765625, 1.3988486842105263).lineTo(0.0, 1.3988486842105263).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.2421875)
solid=solid0
| 890
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035459
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.5, 0.0).lineTo(0.5, 0.5).lineTo(0.0, 0.5).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.5)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.25, 0.0), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.25, 0.0).lineTo(0.25, 0.25).lineTo(0.0, 0.25).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.25)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.5, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.25, 0.0).lineTo(0.25, 0.25).lineTo(0.0, 0.25).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.25)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.5, 0.25, 0.5), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.25, 0.0).lineTo(0.25, 0.25).lineTo(0.0, 0.25).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(0.25)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(-0.4375, 0.375, 0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch4.moveTo(0.06710526315789474, 0.0).circle(0.06710526315789474)
solid4=wp_sketch4.add(loop4).extrude(-1.0)
solid=solid.cut(solid4)
| 1,717
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00034753
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.75), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(1.5, 0.0).lineTo(1.5, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75, both=True)
solid=solid0
| 911
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00034035
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.2890625, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.12031249999999999, 0.0).lineTo(0.12031249999999999, 0.41562499999999997).lineTo(0.91875, 0.41562499999999997).lineTo(0.91875, 0.0).lineTo(1.0390625, 0.0).lineTo(1.0390625, 0.0546875).lineTo(0.9624999999999999, 0.0546875).lineTo(0.9624999999999999, 0.459375).lineTo(0.07656249999999999, 0.459375).lineTo(0.07656249999999999, 0.0546875).lineTo(0.0, 0.0546875).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.1875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.2265625, 0.046875, 0.09375), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.0, 0.0).threePointArc((0.027343749999999997, -0.027343749999999997), (0.05468749999999999, 0.0)).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.3125)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.2265625, 0.046875, 0.09375), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.0, 0.0).threePointArc((0.027343749999999997, -0.027343749999999997), (0.05468749999999999, 0.0)).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(-0.3125)
solid=solid.cut(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.7421875, 0.046875, 0.09375), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop3=wp_sketch3.moveTo(0.0, 0.0).threePointArc((0.027343749999999997, -0.027343749999999997), (0.05468749999999999, 0.0)).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(-0.3125)
solid=solid.cut(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(0.7421875, 0.046875, 0.09375), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop4=wp_sketch4.moveTo(0.0, 0.0).threePointArc((0.027343749999999997, -0.027343749999999997), (0.05468749999999999, 0.0)).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(-0.3125)
solid=solid.cut(solid4)
| 2,413
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00033969
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.171875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.1484375, 0.0).lineTo(1.1484375, 0.6407072368421052).lineTo(0.0, 0.6407072368421052).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.21875)
solid=solid0
| 884
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00034960
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0390625, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.039473684210526314, 0.0).circle(0.039473684210526314)
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.0234375, 0.0, 0.0), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop1=wp_sketch1.moveTo(0.02368421052631579, 0.0).circle(0.02368421052631579)
solid1=wp_sketch1.add(loop1).extrude(-0.09375)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.0234375, 0.0, 0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.02368421052631579, 0.0).circle(0.02319078947368421)
solid2=wp_sketch2.add(loop2).extrude(0.0859375)
solid=solid.union(solid2)
| 1,313
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00034974
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.2421875, -0.25, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.9921875, 0.0).lineTo(0.9921875, 0.5013157894736842).lineTo(0.0, 0.5013157894736842).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.6171875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.2421875, -0.25, 0.375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.24473684210526314, 0.25).lineTo(0.0, 0.25).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.5)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.125, -0.25, 0.25), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.24868421052631579, 0.0).lineTo(0.24868421052631579, 0.375).lineTo(0.0, 0.375).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(-0.5)
solid=solid.cut(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.5, -0.25, 0.6171875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop3=wp_sketch3.moveTo(0.25, -0.25).lineTo(0.25, 0.0).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(-0.5)
solid=solid.cut(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(0.0078125, -0.25, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop4=wp_sketch4.moveTo(0.5, 0.0).lineTo(0.5, 0.12631578947368421).lineTo(0.0, 0.12631578947368421).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(-0.5)
solid=solid.cut(solid4)
| 2,003
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00031011
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1171875, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.11447368421052631, 0.0).circle(0.11447368421052631)
solid0=wp_sketch0.add(loop0).extrude(0.59375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.4921875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.11447368421052631, 0.0).circle(0.11208881578947369)
solid1=wp_sketch1.add(loop1).extrude(0.59375)
solid=solid.union(solid1)
| 1,181
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00038753
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.49736842105263157, 0.0).lineTo(0.49736842105263157, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.296875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.296875), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.15, 0.0).lineTo(0.15, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.1484375)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.2265625, 0.375, 0.296875), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.10263157894736843, 0.0).circle(0.10263157894736843)
solid2=wp_sketch2.add(loop2).extrude(-1.0)
solid=solid.cut(solid2)
| 1,267
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00038021
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.3515625, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.35131578947368425, 0.0).circle(0.35131578947368425)
loop1=wp_sketch0.moveTo(0.35131578947368425, 0.0).circle(0.19761513157894736)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.609375)
solid=solid0
| 908
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00036742
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.7265625, 0.015625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.4765625, 0.0).lineTo(1.4765625, 0.4196546052631579).lineTo(0.0, 0.4196546052631579).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.015625)
solid=solid0
| 890
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035539
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.7109375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.6435855263157895, 0.0).lineTo(0.6435855263157895, 1.421875).lineTo(0.0, 1.421875).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.015625)
solid=solid0
| 956
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00034627
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.49736842105263157, 0.0).lineTo(0.49736842105263157, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.25263157894736843, 0.19736842105263158).circle(0.15)
loop2=wp_sketch0.moveTo(0.25263157894736843, 0.6).circle(0.07894736842105263)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).extrude(0.1015625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.1015625, 0.203125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch1.moveTo(0.15000000000000002, 0.0).circle(0.15000000000000002)
solid1=wp_sketch1.add(loop3).extrude(0.75)
solid=solid.union(solid1)
| 1,199
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00033809
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.2421875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.046875, 0.0).lineTo(0.046875, 0.044901315789473685).lineTo(0.0, 0.044901315789473685).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.1328125)
solid=solid0
| 961
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00033821
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.421875, 0.0, -0.375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.09473684210526316, 0.0).lineTo(0.09473684210526316, 0.375).lineTo(0.0, 0.375).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.5625, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.14210526315789473, 0.0).lineTo(0.2368421052631579, 0.0).lineTo(0.3730263157894737, 0.0).threePointArc((0.5595394736842105, 0.18651315789473685), (0.3730263157894737, 0.3730263157894737)).lineTo(0.0, 0.3730263157894737).threePointArc((-0.18651315789473685, 0.18651315789473685), (0.0, 0.0)).close()
solid1=wp_sketch1.add(loop1).extrude(0.375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.421875, -0.28125, -0.1875), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.09473684210526316, 0.0).circle(0.09473684210526316)
solid2=wp_sketch2.add(loop2).extrude(0.09375)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.421875, -0.28125, -0.1875), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop3=wp_sketch3.moveTo(0.09473684210526316, 0.0).circle(0.09473684210526316)
solid3=wp_sketch3.add(loop3).extrude(-0.1875)
solid=solid.union(solid3)
| 1,920
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035075
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.15625, -0.1640625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.46184210526315794, 0.0).lineTo(0.46184210526315794, 0.9140625).lineTo(0.0, 0.9140625).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.2265625)
solid=solid0
| 946
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00030119
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.546875, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.5526315789473684, 0.0).circle(0.5526315789473684)
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 836
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00036568
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.609375, -0.140625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.216282894736842, 0.0).threePointArc((1.352220394736842, 0.1359375), (1.216282894736842, 0.271875)).lineTo(0.0, 0.271875).threePointArc((-0.1359375, 0.1359375), (0.0, 0.0)).close()
loop1=wp_sketch0.moveTo(0.0, 0.14309210526315788).circle(0.10016447368421053)
loop2=wp_sketch0.moveTo(1.216282894736842, 0.14309210526315788).circle(0.10016447368421053)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).extrude(0.1640625)
solid=solid0
| 1,087
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00030131
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.5390625, 0.0), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.10657894736842105, 0.0).circle(0.10435855263157895)
solid0=wp_sketch0.add(loop0).extrude(0.2109375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.109375, -0.3046875), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.5773026315789473, 0.20526315789473684).threePointArc((0.4361309126377995, 0.3046875), (0.5773026315789473, 0.40411184210526313)).lineTo(0.0, 0.609375).threePointArc((0.2145851482323183, 0.3046875), (0.0, 0.0)).close()
solid1=wp_sketch1.add(loop1).extrude(0.2109375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.3203125, 0.0), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.3236842105263158, 0.0).circle(0.3169407894736842)
solid2=wp_sketch2.add(loop2).extrude(0.2109375)
solid=solid.union(solid2)
| 1,534
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00039673
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.7578947368421053, 0.0).circle(0.7578947368421053)
solid0=wp_sketch0.add(loop0).extrude(-0.046875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.7109375, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.7144736842105263, 0.0).circle(0.7144736842105263)
solid1=wp_sketch1.add(loop1).extrude(-0.09375)
solid=solid.union(solid1)
| 1,028
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00034343
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.375, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.0, 0.0).threePointArc((0.375, -0.375), (0.75, 0.0)).lineTo(0.6552631578947369, 0.0).threePointArc((0.375, -0.2802631578947368), (0.09473684210526316, 0.0)).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 924
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00038579
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.375, 0.0).lineTo(0.375, 0.375).lineTo(0.0, 0.375).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.375, 0.0), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.375, 0.0).lineTo(0.375, 0.375).lineTo(0.0, 0.375).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.375, 0.0), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.375, 0.0).lineTo(0.375, 0.375).lineTo(0.0, 0.375).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(-0.375)
solid=solid.union(solid2)
| 1,343
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035908
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5859375, 0.0, 0.75), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.15000000000000002, -0.8250000000000001).threePointArc((0.58125, -1.1833685096091942), (1.0125, -0.8250000000000001)).lineTo(1.1625, 0.0).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.5875, -0.75).circle(0.1875)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.0859375, both=True)
solid=solid0
| 1,044
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00039854
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1875, -0.3515625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.0, 0.3592105263157895).lineTo(0.0, 0.7109375).threePointArc((-0.21305976939474625, 0.35546875), (0.0, 0.0)).close()
solid0=wp_sketch0.add(loop0).extrude(0.5390625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.1875, -0.53125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.0, 0.17894736842105263).threePointArc((-0.21116207104386192, 0.53125), (0.0, 0.8835526315789474)).lineTo(0.0, 1.0625).threePointArc((-0.37414846358455484, 0.53125), (0.0, 0.0)).close()
solid1=wp_sketch1.add(loop1).extrude(0.5390625)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.7578947368421053, 0.0).circle(0.7578947368421053)
loop3=wp_sketch2.moveTo(0.7578947368421053, 0.0).circle(0.5684210526315789)
solid2=wp_sketch2.add(loop2).add(loop3).extrude(0.5390625)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.1875, -0.53125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch3.moveTo(0.0, 0.0).threePointArc((0.7519816956004894, 0.5296052631578947), (0.0, 1.0592105263157894)).lineTo(0.0, 0.8865131578947368).threePointArc((0.5954648480454291, 0.529605263157895), (0.0, 0.17269736842105263)).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop4).extrude(0.3203125)
solid=solid.union(solid3)
| 1,779
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00030864
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.453125, 0.0, -0.7109375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.9129934210526316, 0.0).lineTo(0.9129934210526316, 1.421875).lineTo(0.0, 1.421875).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.265625, both=True)
solid=solid0
| 964
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00035934
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.390625, 0.0, -0.09375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.6015625, 0.0).lineTo(0.6015625, 0.4052631578947368).lineTo(0.0, 0.4052631578947368).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.1484375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.3359375, -0.1484375, 0.1640625), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.10657894736842105, 0.0).circle(0.10435855263157895)
solid1=wp_sketch1.add(loop1).extrude(0.6015625)
solid=solid.union(solid1)
| 1,241
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00037853
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.390625, -0.2734375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.78125, 0.0).lineTo(0.78125, 0.5509868421052632).lineTo(0.0, 0.5509868421052632).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.171875)
solid=solid0
| 886
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00032903
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.296875, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.30394736842105263, 0.0).circle(0.30394736842105263)
loop1=wp_sketch0.moveTo(0.30394736842105263, 0.0).circle(0.26595394736842104)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.75)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.015625, 0.1484375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch1.moveTo(0.03569078947368421, 0.0).lineTo(0.03569078947368421, 0.1082236842105263).threePointArc((0.017845394736842105, 0.10888096901939814), (0.0, 0.1082236842105263)).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop2).extrude(0.6015625)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.015625, 0.1484375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch2.moveTo(0.03922697368421052, 0.0).lineTo(0.03922697368421052, 0.11332236842105262).threePointArc((0.01961348684210526, -0.41918714669155843), (0.0, 0.11332236842105262)).lineTo(0.0, 0.0).close()
loop4=wp_sketch2.moveTo(0.017434210526315788, -0.1481907894736842).circle(0.004358552631578947)
solid2=wp_sketch2.add(loop3).add(loop4).extrude(0.078125)
solid=solid.union(solid2)
| 1,601
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00039856
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.7578947368421053, 0.0).circle(0.7578947368421053)
loop1=wp_sketch0.moveTo(0.7578947368421053, 0.0).circle(0.5684210526315789)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.5390625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.1875, -0.53125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch1.moveTo(0.0, 0.0).threePointArc((0.7519816956004894, 0.5296052631578947), (0.0, 1.0592105263157894)).lineTo(0.0, 0.8865131578947368).threePointArc((0.5954648480454291, 0.529605263157895), (0.0, 0.17269736842105263)).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop2).extrude(0.3203125)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.1875, -0.53125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch2.moveTo(0.0, 0.17894736842105263).threePointArc((-0.21116207104386192, 0.53125), (0.0, 0.8835526315789474)).lineTo(0.0, 1.0625).threePointArc((-0.37414846358455484, 0.53125), (0.0, 0.0)).close()
solid2=wp_sketch2.add(loop3).extrude(0.3203125)
solid=solid.union(solid2)
| 1,535
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00038584
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.09473684210526316, 0.0).lineTo(0.09473684210526316, 0.02368421052631579).lineTo(0.6552631578947369, 0.02368421052631579).lineTo(0.6552631578947369, 0.0).lineTo(0.75, 0.0).threePointArc((0.375, 0.375), (0.0, 0.0)).close()
solid0=wp_sketch0.add(loop0).extrude(0.328125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.65625, 0.0234375, 0.3046875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.5625, 0.0).lineTo(0.5625, 0.02368421052631579).lineTo(0.0, 0.02368421052631579).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.0234375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.65625, 0.0234375, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.5625, 0.0).lineTo(0.5625, 0.02368421052631579).lineTo(0.0, 0.02368421052631579).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.0234375)
solid=solid.union(solid2)
| 1,599
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00036230
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.3125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.3828125, 0.0).lineTo(1.3828125, 0.6404605263157894).lineTo(0.0, 0.6404605263157894).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.6015625)
solid=solid0
| 884
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00031239
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.01611842105263158, 0.0).lineTo(0.01611842105263158, 0.7495065789473685).lineTo(0.27401315789473685, 0.7495065789473685).lineTo(0.27401315789473685, 0.0).lineTo(0.28207236842105265, 0.0).lineTo(0.28207236842105265, 0.7656250000000001).lineTo(0.0, 0.7656250000000001).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.2421875)
solid=solid0
| 1,114
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00039895
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.15625, 0.0234375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.3125, 0.0).lineTo(0.3125, 0.3125).lineTo(0.0, 0.3125).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.1953125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.5703125, 0.4375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.3125, 0.0).lineTo(0.3125, 0.3125).lineTo(0.0, 0.3125).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.1953125)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.5703125, 0.0234375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.41406249999999994, 0.0).lineTo(0.41406249999999994, 0.31381578947368416).lineTo(0.41406249999999994, 0.41406249999999994).lineTo(0.31381578947368416, 0.41406249999999994).lineTo(0.0, 0.41406249999999994).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.1953125)
solid=solid.union(solid2)
| 1,425
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00038235
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.28125, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.28421052631578947, 0.0).circle(0.27828947368421053)
loop1=wp_sketch0.moveTo(0.28421052631578947, 0.0).circle(0.09473684210526316)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.75)
solid=solid0
| 974
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00033823
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.3125, 0.75, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.12631578947368421, -0.12631578947368421).lineTo(0.375, -0.12631578947368421).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.25, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.25, 0.0).lineTo(0.25, 0.25).lineTo(0.0, 0.25).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.24868421052631579, 0.0).lineTo(0.24868421052631579, 0.375).lineTo(0.0, 0.375).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.375)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.1875, 0.625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.1888157894736842, -0.24868421052631576).lineTo(0.43749999999999994, -0.24868421052631576).lineTo(0.24868421052631576, 0.0).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(0.375)
solid=solid.union(solid3)
| 1,559
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0003/00036026
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.546875, 0.0, 0.1328125), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.45789473684210524, 0.0).circle(0.45789473684210524)
solid0=wp_sketch0.add(loop0).extrude(-0.75)
solid=solid0
| 916
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.