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 |
|---|---|---|---|---|---|
0000/00006975
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5546875, -0.265625, 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.5562088815789473, -0.0859969650585715), (1.1124177631578946, 0.0)).threePointArc((1.3084993819692468, 0.26780427631578946), (1.1124177631578946, 0.5356085526315789)).threePointArc((0.5562088815789473, 0.6216055176901504), (0.0, 0.5356085526315789)).threePointArc((-0.19608161881135217, 0.26780427631578946), (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.546875, -0.25, 0.0234375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.0, 0.0).threePointArc((0.5462171052631579, -0.0844521093988367), (1.0924342105263158, 0.0)).threePointArc((1.2751185745593707, 0.24950657894736844), (1.0924342105263158, 0.4990131578947369)).threePointArc((0.5462171052631579, 0.5834652672935735), (0.0, 0.4990131578947369)).threePointArc((-0.18268436403305488, 0.24950657894736844), (0.0, 0.0)).close()
solid1=wp_sketch1.add(loop1).extrude(0.015625)
solid=solid.union(solid1)
| 1,538
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00008964
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.28125, 0.0).lineTo(0.28125, 0.23388157894736844).lineTo(0.0, 0.23388157894736844).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.328125)
solid=solid0
| 880
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00007114
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6171875, 0.5546875, 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.3203125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.265625, 0.5546875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.1618421052631579, 0.0).circle(0.1618421052631579)
solid1=wp_sketch1.add(loop1).extrude(0.3203125)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.1953125, 0.5546875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.19736842105263158, 0.0).circle(0.19736842105263158)
solid2=wp_sketch2.add(loop2).extrude(0.3203125)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.0390625, 0.1015625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.2605263157894737, 0.0).circle(0.25509868421052634)
solid3=wp_sketch3.add(loop3).extrude(0.3203125)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(-0.421875, -0.4609375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch4.moveTo(0.29210526315789476, 0.0).circle(0.29210526315789476)
solid4=wp_sketch4.add(loop4).extrude(0.3203125)
solid=solid.union(solid4)
# Generating a workplane for sketch 5
wp_sketch5 = cq.Workplane(cq.Plane(cq.Vector(-0.6171875, 0.1015625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop5=wp_sketch5.moveTo(0.22894736842105262, 0.0).circle(0.22894736842105262)
solid5=wp_sketch5.add(loop5).extrude(0.3203125)
solid=solid.union(solid5)
| 1,855
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00004409
|
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.7578947368421053, 0.0).circle(0.7578947368421053)
loop1=wp_sketch0.moveTo(0.3, 0.0).circle(0.12631578947368421)
loop2=wp_sketch0.moveTo(0.7578947368421053, 0.0).circle(0.2210526315789474)
loop3=wp_sketch0.moveTo(0.7578947368421053, -0.4421052631578948).circle(0.12631578947368421)
loop4=wp_sketch0.moveTo(0.7578947368421053, 0.4421052631578948).circle(0.12631578947368421)
loop5=wp_sketch0.moveTo(1.2, 0.0).circle(0.12631578947368421)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).add(loop4).add(loop5).extrude(0.2265625)
solid=solid0
| 1,228
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00006578
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.515625, 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, 1.0263157894736843).lineTo(0.0, 1.0263157894736843).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.3157894736842105, 0.26842105263157895).circle(0.04736842105263158)
loop2=wp_sketch0.moveTo(0.3157894736842105, 0.7578947368421053).circle(0.04736842105263158)
loop3=wp_sketch0.moveTo(1.1842105263157896, 0.26842105263157895).circle(0.04736842105263158)
loop4=wp_sketch0.moveTo(1.1842105263157896, 0.7578947368421053).circle(0.04736842105263158)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).add(loop4).extrude(0.171875)
solid=solid0
| 1,191
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00003428
|
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(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.5605263157894737, 0.0).lineTo(0.5605263157894737, 0.75).lineTo(0.0, 0.75).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.5, 0.125, 0.125), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.3131578947368421, 0.0).lineTo(0.3131578947368421, 0.43749999999999994).lineTo(0.0, 0.43749999999999994).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.375)
solid=solid.cut(solid1)
| 1,224
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00009663
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.5, 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.9947368421052631).lineTo(0.0, 0.9947368421052631).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.2109375)
solid=solid0
| 869
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00009105
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1796875, 0.0, -0.7265625), 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.17874177631578947, -0.020933093609911385), (0.35748355263157894, 0.0)).threePointArc((0.44758335128311255, 0.7305098684210526), (0.35748355263157894, 1.4610197368421052)).threePointArc((0.17874177631578947, 1.4819528304520166), (0.0, 1.4610197368421052)).threePointArc((-0.09009979865153359, 0.7305098684210526), (0.0, 0.0)).close()
loop1=wp_sketch0.moveTo(0.1709703947368421, 0.7305098684210526).circle(0.062171052631578946)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.046875)
solid=solid0
| 1,250
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00004435
|
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.07500000000000001, 0.0).circle(0.07500000000000001)
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.0078125, 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.011842105263157895, 0.0).circle(0.011842105263157895)
solid1=wp_sketch1.add(loop1).extrude(-0.09375)
solid=solid.cut(solid1)
| 1,115
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00006222
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.015625, 0.0, -0.0234375), 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.025164473684210528, 0.0).lineTo(0.025164473684210528, 0.046875).lineTo(0.0, 0.046875).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 960
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00007882
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = 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)))
loop0=wp_sketch0.moveTo(0.029605263157894735, -0.050575657894736836).lineTo(0.08758223684210525, -0.050575657894736836).lineTo(0.1171875, 0.0).lineTo(0.08758223684210525, 0.050575657894736836).lineTo(0.029605263157894735, 0.050575657894736836).lineTo(0.0, 0.0).close()
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.03125, 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.031578947368421054, 0.0).circle(0.031578947368421054)
solid1=wp_sketch1.add(loop1).extrude(-0.75)
solid=solid.union(solid1)
| 1,198
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005918
|
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.7578947368421053, 0.0).circle(0.7421052631578947)
loop1=wp_sketch0.moveTo(0.7578947368421053, 0.0).circle(0.14210526315789473)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.5)
solid=solid0
| 967
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00009688
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.4609375), 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.9157894736842106).lineTo(0.0, 0.9157894736842106).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.1171875)
solid=solid0
| 947
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00000849
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1875, 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.18947368421052632, 0.0).lineTo(0.18947368421052632, 0.09473684210526316).lineTo(0.08881578947368421, 0.09473684210526316).lineTo(0.08881578947368421, 0.4677631578947369).lineTo(0.18947368421052632, 0.4677631578947369).lineTo(0.18947368421052632, 0.5625).lineTo(0.0, 0.5625).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 1,124
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00000134
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.75, -0.6484375), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(1.3359375, 0.0).lineTo(1.3359375, 1.3359375).lineTo(0.0, 1.2234375).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.6171875)
solid=solid0
| 923
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00007883
|
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.37894736842105264, -0.6473684210526316).lineTo(1.1210526315789473, -0.6473684210526316).lineTo(1.5, 0.0).lineTo(1.1210526315789473, 0.6473684210526316).lineTo(0.37894736842105264, 0.6473684210526316).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.6484375)
solid=solid0
| 985
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00009892
|
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.7421052631578947)
loop1=wp_sketch0.moveTo(0.7578947368421053, 0.0).circle(0.26842105263157895)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.4765625)
solid=solid0
| 901
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00008554
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1015625, 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.10263157894736843, 0.0).circle(0.10263157894736843)
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 911
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00009886
|
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
|
|
0000/00002290
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -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.0).threePointArc((0.023123148853693615, -0.05582421956735902), (0.07894736842105263, -0.07894736842105263)).lineTo(1.4210526315789473, -0.07894736842105263).threePointArc((1.4768768511463064, -0.05582421956735902), (1.5, 0.0)).lineTo(1.5, 0.7105263157894737).threePointArc((1.4736067440749399, 0.7584557985147274), (1.4210526315789473, 0.7736842105263159)).lineTo(0.07894736842105263, 0.7736842105263159).threePointArc((0.026393255925060245, 0.7584557985147274), (0.0, 0.7105263157894737)).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0625)
solid=solid0
| 1,230
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00002521
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.09375, 0.0546875), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.7460526315789473, -0.7460526315789473).lineTo(0.84375, -0.6483552631578947).lineTo(0.09769736842105263, 0.09769736842105263).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.03125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.03125, 0.015625, 0.015625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.031578947368421054, 0.0).circle(0.031578947368421054)
solid1=wp_sketch1.add(loop1).extrude(0.4921875)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.03125, 0.6015625, -0.578125), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.031578947368421054, 0.0).circle(0.031578947368421054)
solid2=wp_sketch2.add(loop2).extrude(0.4921875)
solid=solid.union(solid2)
| 1,502
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00001014
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -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.5, 0.0).lineTo(1.5, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.7578947368421053, 0.7421052631578947).circle(0.39473684210526316)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.109375)
solid=solid0
| 918
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00007465
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.1328125, 0.046875, 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.3026315789473684).lineTo(0.0, 0.3026315789473684).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.078125, -0.75, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.36348684210526316, 0.0).lineTo(0.36348684210526316, 0.6640625).lineTo(0.0, 0.6640625).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.1484375)
solid=solid.union(solid1)
| 1,124
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00001000
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.65625, 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, 1.3105263157894738).lineTo(0.0, 1.3105263157894738).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.09375)
solid=solid0
| 871
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00006814
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.21875, 0.0, -0.4375), 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.018256578947368422, 0.0).lineTo(0.018256578947368422, 0.8671875000000001).lineTo(0.0, 0.8671875000000001).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.03125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.203125, 0.0, -0.4375), 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.018256578947368422, 0.0).lineTo(0.018256578947368422, 0.8671875000000001).lineTo(0.0, 0.8671875000000001).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.03125)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.21875, 0.0, -0.4453125), 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.43749999999999994, 0.0).lineTo(0.43749999999999994, 0.013815789473684208).lineTo(0.4236842105263158, 0.013815789473684208).lineTo(0.013815789473684208, 0.013815789473684208).lineTo(0.0, 0.013815789473684208).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.03125)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.21875, 0.0, 0.4375), 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.013815789473684208, 0.0).lineTo(0.4236842105263158, 0.0).lineTo(0.43749999999999994, 0.0).lineTo(0.43749999999999994, 0.013815789473684208).lineTo(0.0, 0.013815789473684208).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(0.03125)
solid=solid.union(solid3)
| 2,126
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00004965
|
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.6263157894736842, 0.0).lineTo(0.6263157894736842, 0.7493421052631579).threePointArc((0.3131578947368421, 1.0625), (0.0, 0.7493421052631579)).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.3131578947368421, 0.7493421052631579).circle(0.06710526315789474)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.1328125)
solid=solid0
| 1,011
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005312
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6484375, 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.6513157894736843, 0.0).circle(0.6513157894736843)
loop1=wp_sketch0.moveTo(0.6513157894736843, 0.0).circle(0.5970394736842105)
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.6015625, 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.6078947368421053, 0.0).circle(0.6078947368421053)
loop3=wp_sketch1.moveTo(0.6078947368421053, 0.0).circle(0.22796052631578947)
loop4=wp_sketch1.moveTo(0.9751644736842104, 0.0).circle(0.02532894736842105)
solid1=wp_sketch1.add(loop2).add(loop3).add(loop4).extrude(0.75)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.2265625, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop5=wp_sketch2.moveTo(0.22894736842105262, 0.0).circle(0.22894736842105262)
loop6=wp_sketch2.moveTo(0.22894736842105262, 0.0).circle(0.11447368421052631)
solid2=wp_sketch2.add(loop5).add(loop6).extrude(0.75)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = 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)))
loop7=wp_sketch3.moveTo(0.7578947368421053, 0.0).circle(0.7578947368421053)
loop8=wp_sketch3.moveTo(0.7578947368421053, 0.0).circle(0.6473684210526316)
solid3=wp_sketch3.add(loop7).add(loop8).extrude(0.0390625)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(-0.6015625, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop9=wp_sketch4.moveTo(0.6078947368421053, 0.0).circle(0.6078947368421053)
loop10=wp_sketch4.moveTo(0.6078947368421053, 0.0).circle(0.22796052631578947)
loop11=wp_sketch4.moveTo(0.9751644736842104, 0.0).circle(0.02532894736842105)
solid4=wp_sketch4.add(loop9).add(loop10).add(loop11).extrude(0.453125)
solid=solid.cut(solid4)
| 2,050
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00003763
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.09375, 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.09868421052631579, 0.0).circle(0.09868421052631579)
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.0703125, -0.25, 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.06710526315789474, 0.0).circle(0.06710526315789474)
solid1=wp_sketch1.add(loop1).extrude(0.2890625)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.046875, -0.5390625, 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.05131578947368422, 0.0).circle(0.05131578947368422)
solid2=wp_sketch2.add(loop2).extrude(-0.609375)
solid=solid.cut(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.125, -0.5390625, 0.0), 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.12631578947368421, 0.0).circle(0.12631578947368421)
loop4=wp_sketch3.moveTo(0.12631578947368421, 0.0).circle(0.06578947368421052)
solid3=wp_sketch3.add(loop3).add(loop4).extrude(-0.0703125)
solid=solid.union(solid3)
| 1,785
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00002680
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.28125, 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.022882282719800973, -0.05524271728019903), (0.078125, -0.078125)).lineTo(0.375, -0.078125).lineTo(0.6640625, -0.078125).threePointArc((0.719305217280199, -0.05524271728019903), (0.7421875, 0.0)).lineTo(0.7421875, 0.078125).lineTo(0.6640625, 0.078125).threePointArc((0.55859375, -0.02734375), (0.453125, 0.078125)).lineTo(0.375, 0.078125).lineTo(0.2890625, 0.078125).threePointArc((0.18359375, -0.02734375), (0.078125, 0.078125)).lineTo(0.0, 0.078125).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.2421875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.375, 0.1953125, 0.0703125), 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.046875, 0.046875), (0.0, 0.09375)).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.40625)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.375, 0.1953125, 0.0703125), 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.09375).threePointArc((-0.046875, 0.046875), (0.0, 0.0)).close()
solid2=wp_sketch2.add(loop2).extrude(-0.40625)
solid=solid.cut(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.46875, 0.1953125, 0.125), 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.04736842105263158, -0.08092105263157895).lineTo(0.09375, -0.08092105263157895).lineTo(0.09375, -0.04835526315789474).threePointArc((0.045394736842105265, 0.0), (0.09375, 0.04835526315789474)).lineTo(0.09375, 0.08092105263157895).lineTo(0.04736842105263158, 0.08092105263157895).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(-0.1015625)
solid=solid.cut(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(-0.375, 0.1953125, 0.0390625), 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.046628289473684206, 0.0).lineTo(0.09498355263157894, 0.08289473684210526).lineTo(0.046628289473684206, 0.1640625).lineTo(0.0, 0.1640625).lineTo(0.0, 0.13125).threePointArc((0.04921875, 0.08203125), (0.0, 0.0328125)).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(-0.1015625)
solid=solid.cut(solid4)
| 2,663
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005851
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.09375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.4609375, 0.0).lineTo(1.4609375, 0.2921875).lineTo(0.0, 0.2921875).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.015625)
solid=solid0
| 866
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005689
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.515625, -0.2890625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.890625, 0.0).lineTo(0.890625, 0.73125).lineTo(0.0, 0.73125).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.16874999999999998, 0.056249999999999994).circle(0.0375)
loop2=wp_sketch0.moveTo(0.16874999999999998, 0.665625).circle(0.0375)
loop3=wp_sketch0.moveTo(0.47812499999999997, 0.365625).circle(0.22499999999999998)
loop4=wp_sketch0.moveTo(0.778125, 0.056249999999999994).circle(0.0375)
loop5=wp_sketch0.moveTo(0.778125, 0.665625).circle(0.0375)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).add(loop4).add(loop5).extrude(0.1015625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.2890625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop6=wp_sketch1.moveTo(0.2319078947368421, 0.0).lineTo(0.2319078947368421, 0.734375).lineTo(0.0, 0.734375).lineTo(0.0, 0.0).close()
loop7=wp_sketch1.moveTo(0.11595394736842105, 0.36332236842105264).circle(0.0850328947368421)
solid1=wp_sketch1.add(loop6).add(loop7).extrude(0.1015625, both=True)
solid=solid.union(solid1)
| 1,488
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00008391
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5859375, 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.5859375, 0.0).lineTo(0.5859375, 0.16036184210526316).lineTo(0.0, 0.16036184210526316).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0390625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.1640625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.5859375, 0.0).lineTo(0.5859375, 0.16036184210526316).lineTo(0.0, 0.16036184210526316).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.0390625)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.5859375, -0.1640625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.5859375, 0.0).lineTo(0.5859375, 0.16036184210526316).lineTo(0.0, 0.16036184210526316).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.0390625)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.5859375, -0.1640625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.0, 0.16578947368421051).lineTo(0.0, 0.328125).threePointArc((-0.1640625, 0.1640625), (0.0, 0.0)).close()
solid3=wp_sketch3.add(loop3).extrude(0.0390625)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = 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)))
loop4=wp_sketch4.moveTo(0.5859375, 0.0).lineTo(0.5859375, 0.16036184210526316).lineTo(0.0, 0.16036184210526316).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(0.0390625)
solid=solid.union(solid4)
# Generating a workplane for sketch 5
wp_sketch5 = cq.Workplane(cq.Plane(cq.Vector(0.5859375, -0.1640625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop5=wp_sketch5.moveTo(0.0, 0.0).threePointArc((0.1640625, 0.1640625), (0.0, 0.328125)).lineTo(0.0, 0.16578947368421051).lineTo(0.0, 0.0).close()
solid5=wp_sketch5.add(loop5).extrude(0.0390625)
solid=solid.union(solid5)
| 2,091
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00006425
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.015625), 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.03125, 0.0).lineTo(0.03125, 0.013486842105263158).lineTo(0.0, 0.013486842105263158).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 952
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005892
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0625, -0.0625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.8125, 0.0).lineTo(0.8125, 0.31644736842105264).lineTo(0.0, 0.31644736842105264).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.09375, 0.234375, 0.0), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop1=wp_sketch1.moveTo(0.65625, 0.0).lineTo(0.65625, 0.2832236842105263).lineTo(0.0, 0.2832236842105263).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.03125)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.71875, 0.234375, -0.03125), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop2=wp_sketch2.moveTo(0.032565789473684215, 0.0).lineTo(0.032565789473684215, 0.28125).lineTo(0.0, 0.28125).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.03125)
solid=solid.union(solid2)
| 1,521
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00008420
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.2265625, 0.015625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.05592105263157894, 0.0).lineTo(0.05592105263157894, -0.1332236842105263).lineTo(0.15625, -0.1332236842105263).lineTo(0.15625, 0.09046052631578946).lineTo(0.06907894736842105, 0.09046052631578946).lineTo(0.06907894736842105, 0.04769736842105263).lineTo(0.0, 0.04769736842105263).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 1,112
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005110
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1640625, 0.0, 0.046875), 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.006142086414262366, -0.014828308322579739), (0.020970394736842105, -0.020970394736842105)).lineTo(0.1118421052631579, -0.020970394736842105).threePointArc((0.12667041358573763, -0.014828308322579739), (0.1328125, 0.0)).lineTo(0.1328125, 0.09087171052631579).threePointArc((0.12667041358573763, 0.10570001884889553), (0.1118421052631579, 0.1118421052631579)).lineTo(0.020970394736842105, 0.1118421052631579).threePointArc((0.006142086414262366, 0.10570001884889553), (0.0, 0.09087171052631579)).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.0, 0.0).threePointArc((0.00874795298675757, -0.008537189901527107), (0.020970394736842105, -0.008388157894736842)).lineTo(0.1118421052631579, -0.008388157894736842).threePointArc((0.1177734285921898, -0.005931323329031904), (0.12023026315789474, 0.0)).lineTo(0.12023026315789474, 0.09087171052631579).threePointArc((0.11748388786191255, 0.09610402069745295), (0.1118421052631579, 0.09786184210526316)).lineTo(0.020970394736842105, 0.09786184210526316).threePointArc((0.016027625295982194, 0.09581447996717571), (0.013980263157894737, 0.09087171052631579)).lineTo(0.013980263157894737, 0.0).close()
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.75)
solid=solid0
| 1,859
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00008434
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0234375, 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.02368421052631579, 0.0).circle(0.02368421052631579)
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 911
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00001410
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.5, 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.9947368421052631).lineTo(0.0, 0.9947368421052631).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.03125, both=True)
solid=solid0
| 871
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00001406
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1875, 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.18947368421052632, 0.0).circle(0.18947368421052632)
loop1=wp_sketch0.moveTo(0.18947368421052632, 0.0).circle(0.10657894736842105)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.75, both=True)
solid=solid0
| 977
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00003211
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, -0.3984375), 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.03774671052631579, 0.0).lineTo(0.03774671052631579, 0.32294407894736843).threePointArc((0.04880246607198807, 0.34963503392801193), (0.07549342105263158, 0.3606907894736842)).lineTo(0.3984375, 0.3606907894736842).lineTo(0.3984375, 0.3984375).lineTo(0.0, 0.3984375).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75, both=True)
solid=solid0
| 1,113
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005884
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.7109375, 0.0, -0.296875), 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.4609375, 0.0).lineTo(1.4609375, 0.26143092105263155).lineTo(0.0, 0.26143092105263155).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.265625)
solid=solid0
| 964
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00008378
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6015625, -0.1484375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.1950657894736842, 0.0).threePointArc((1.3444490131578948, 0.14938322368421053), (1.1950657894736842, 0.29876644736842106)).lineTo(0.0, 0.29876644736842106).threePointArc((-0.14938322368421053, 0.14938322368421053), (0.0, 0.0)).close()
loop1=wp_sketch0.moveTo(0.0, 0.1564967105263158).circle(0.07113486842105264)
loop2=wp_sketch0.moveTo(1.1950657894736842, 0.1564967105263158).circle(0.07113486842105264)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).extrude(0.1484375)
solid=solid0
| 1,143
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00001348
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.3203125, -0.6953125, 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.01782409390805558, -0.04303116924983916), (0.06085526315789474, -0.06085526315789474)).lineTo(0.5933388157894737, -0.06085526315789474).threePointArc((0.628763077144576, -0.039880284832116315), (0.6389802631578948, 0.0)).lineTo(0.6389802631578948, 1.3844572368421053).threePointArc((0.628763077144576, 1.4243375216742213), (0.5933388157894737, 1.4453125)).lineTo(0.06085526315789474, 1.4453125).threePointArc((0.01782409390805558, 1.4274884060919444), (0.0, 1.3844572368421053)).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0859375)
solid=solid0
| 1,247
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00000903
|
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.3292763157894737, -0.11973684210526316).lineTo(0.7109375, 0.20205592105263157).lineTo(0.4789473684210526, 0.4789473684210526).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.3828125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.3984375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.19736842105263158, 0.0).circle(0.19325657894736842)
solid1=wp_sketch1.add(loop1).extrude(0.2109375)
solid=solid.union(solid1)
| 1,190
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00008393
|
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.25263157894736843).lineTo(0.0, 0.25263157894736843).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0625)
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.5, 0.0).lineTo(0.5, 0.25263157894736843).lineTo(0.0, 0.25263157894736843).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.0625)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = 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)))
loop2=wp_sketch2.moveTo(0.5, 0.0).lineTo(0.5, 0.25263157894736843).lineTo(0.0, 0.25263157894736843).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.0625)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = 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)))
loop3=wp_sketch3.moveTo(0.0, 0.25263157894736843).lineTo(0.0, 0.5).threePointArc((-0.25, 0.25), (0.0, 0.0)).close()
solid3=wp_sketch3.add(loop3).extrude(0.0625)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = 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)))
loop4=wp_sketch4.moveTo(0.5, 0.0).lineTo(0.5, 0.25263157894736843).lineTo(0.0, 0.25263157894736843).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(0.0625)
solid=solid.union(solid4)
# Generating a workplane for sketch 5
wp_sketch5 = 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)))
loop5=wp_sketch5.moveTo(0.0, 0.0).threePointArc((0.25, 0.25), (0.0, 0.5)).lineTo(0.0, 0.25263157894736843).lineTo(0.0, 0.0).close()
solid5=wp_sketch5.add(loop5).extrude(0.0625)
solid=solid.union(solid5)
| 1,951
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00009933
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.234375, 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.23684210526315788, 0.0).circle(0.23684210526315788)
loop1=wp_sketch0.moveTo(0.23684210526315788, 0.0).circle(0.12335526315789473)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.1015625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.21875, -0.1015625, 0.0), 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.22105263157894733, 0.0).circle(0.22105263157894733)
loop3=wp_sketch1.moveTo(0.22105263157894733, 0.0).circle(0.12434210526315788)
solid1=wp_sketch1.add(loop2).add(loop3).extrude(0.03125)
solid=solid.union(solid1)
| 1,315
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00002682
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6484375, 0.171875, 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.08423208532147003, -0.32383931398270227), (0.1899671052631579, -0.515625)).lineTo(0.9905427631578948, -0.515625).threePointArc((1.2579931698501692, -0.34200281233106933), (1.2076480263157896, -0.027138157894736843)).lineTo(0.868421052631579, 0.352796052631579).threePointArc((0.6636235277636103, 0.4519747132306977), (0.4477796052631579, 0.3799342105263158)).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.1899671052631579, -0.21710526315789475).circle(0.1356907894736842)
loop2=wp_sketch0.moveTo(0.9905427631578948, -0.21710526315789475).circle(0.09498355263157895)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).extrude(0.234375)
solid=solid0
| 1,303
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00003775
|
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, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.28421052631578947, 0.0).circle(0.28421052631578947)
loop1=wp_sketch0.moveTo(0.28421052631578947, 0.0).circle(0.053289473684210525)
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.0390625, -0.0390625, 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.013067944544979252, 0.03515625), (0.0, 0.0703125)).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop2).extrude(0.75)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.03125, 0.0, 0.2734375), 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.027631578947368417, 0.0).circle(0.027631578947368417)
solid2=wp_sketch2.add(loop3).extrude(-0.46875)
solid=solid.cut(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.03125, 0.1640625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop4=wp_sketch3.moveTo(0.027631578947368417, 0.0).circle(0.027631578947368417)
solid3=wp_sketch3.add(loop4).extrude(-0.46875)
solid=solid.cut(solid3)
| 1,656
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005338
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.2421875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.5625, 0.0).lineTo(0.5625, -0.24671052631578946).threePointArc((0.75, -0.43421052631578944), (0.9375, -0.24671052631578946)).lineTo(0.9375, 0.1282894736842105).lineTo(0.0, 0.1282894736842105).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.75, -0.24671052631578946).circle(0.09868421052631579)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.46875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.2421875, 0.0), 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.5625, 0.0).lineTo(0.5625, 0.13026315789473686).lineTo(0.0, 0.13026315789473686).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop2).extrude(0.2421875)
solid=solid.union(solid1)
| 1,343
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00006625
|
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.3359375, 0.0).lineTo(1.3359375, 1.3359375).lineTo(0.0, 1.3359375).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.16875, 0.16875).circle(0.0984375)
loop2=wp_sketch0.moveTo(0.16875, 1.1671875).circle(0.0984375)
loop3=wp_sketch0.moveTo(0.675, 0.675).circle(0.3796875)
loop4=wp_sketch0.moveTo(1.1671875, 0.16875).circle(0.0984375)
loop5=wp_sketch0.moveTo(1.1671875, 1.1671875).circle(0.0984375)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).add(loop4).add(loop5).extrude(-0.25)
solid=solid0
| 1,170
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00006816
|
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.5210526315789474, 0.0).lineTo(0.5210526315789474, 0.20526315789473684).lineTo(0.75, 0.20526315789473684).lineTo(0.75, 0.3394736842105263).lineTo(0.38684210526315793, 0.3394736842105263).lineTo(0.38684210526315793, 0.12631578947368421).lineTo(0.0, 0.12631578947368421).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.203125, both=True)
solid=solid0
| 1,119
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00003952
|
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.41842105263157897).lineTo(0.0, 0.41842105263157897).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0078125)
solid=solid0
| 944
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00008754
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.015625, 0.0, -0.0078125), 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.015625, 0.0).lineTo(0.015625, 0.006743421052631579).lineTo(0.0, 0.006743421052631579).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 960
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00003173
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.390625, 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.008305921052631579, -0.4485197368421053).lineTo(0.7890625, -0.4485197368421053).lineTo(0.3903782894736842, 0.0).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.3359375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.390625, -0.4140625, -0.2265625), cq.Vector(-1.502716847886404e-18, 1.0, -6.121389792138483e-17), cq.Vector(0.9996988186962042, 0.0, -0.024541228522912142)))
loop1=wp_sketch1.moveTo(0.4125, 0.0).lineTo(0.0, 0.4453125).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.3359375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.390625, -0.75, -0.2265625), cq.Vector(-1.502716847886404e-18, 1.0, -6.121389792138483e-17), cq.Vector(0.9996988186962042, 0.0, -0.024541228522912142)))
loop2=wp_sketch2.moveTo(0.3328125, 0.0).lineTo(0.3328125, 0.4453125).lineTo(0.0, 0.4453125).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(-0.3359375)
solid=solid.union(solid2)
| 1,555
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005502
|
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.2368421052631579)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.578125)
solid=solid0
| 899
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00007498
|
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, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.5052631578947369, 0.0).circle(0.5052631578947369)
solid0=wp_sketch0.add(loop0).extrude(0.75, both=True)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.3203125, 0.75, 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.3236842105263158, 0.0).circle(0.3236842105263158)
solid1=wp_sketch1.add(loop1).extrude(-0.75)
solid=solid.cut(solid1)
| 1,169
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00006547
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.34375, 0.40625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.38281250000000006, 0.0).lineTo(0.38281250000000006, 0.3505756578947369).lineTo(0.2659539473684211, 0.028207236842105264).lineTo(0.0, 0.12491776315789475).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.65625)
solid=solid0
| 1,005
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00000693
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1796875, 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.18157894736842106, 0.0).circle(0.18157894736842106)
solid0=wp_sketch0.add(loop0).extrude(-0.75, both=True)
solid=solid0
| 915
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005933
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -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.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.1640625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.1875, 0.140625, 0.1640625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.3304276315789474, -0.3304276315789474).lineTo(0.346546052631579, -0.31430921052631583).lineTo(0.36669407894736844, -0.29416118421052634).lineTo(0.38281250000000006, -0.2780427631578948).lineTo(0.05238486842105264, 0.05238486842105264).lineTo(0.03626644736842106, 0.03626644736842106).lineTo(0.01611842105263158, 0.01611842105263158).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.0703125)
solid=solid.cut(solid1)
| 1,311
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00002090
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.265625, 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.07376644736842106, 0.0).lineTo(0.17023026315789475, 0.09646381578947369).lineTo(0.23264802631578949, 0.15888157894736843).threePointArc((0.26953125, 0.1741591104214089), (0.30641447368421054, 0.15888157894736843)).lineTo(0.3688322368421053, 0.09646381578947369).lineTo(0.46529605263157897, 0.0).lineTo(0.5390625, 0.0).lineTo(0.5390625, 0.24967105263157896).lineTo(0.0, 0.24967105263157896).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 1,219
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00002091
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -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.5, 0.0).lineTo(1.5, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.7578947368421053, 0.7578947368421053).circle(0.7263157894736842)
loop2=wp_sketch0.moveTo(0.09473684210526316, 0.09473684210526316).circle(0.031578947368421054)
loop3=wp_sketch0.moveTo(0.09473684210526316, 1.405263157894737).circle(0.031578947368421054)
loop4=wp_sketch0.moveTo(1.405263157894737, 0.09473684210526316).circle(0.031578947368421054)
loop5=wp_sketch0.moveTo(1.405263157894737, 1.405263157894737).circle(0.031578947368421054)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).add(loop4).add(loop5).extrude(0.3125)
solid=solid0
| 1,235
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00004423
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0625, 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.016956975826042067, -0.0409377610160633), (0.05789473684210526, -0.05789473684210526)).lineTo(0.4921052631578947, -0.05789473684210526).threePointArc((0.5330430241739579, -0.0409377610160633), (0.55, 0.0)).lineTo(0.55, 0.6296052631578948).threePointArc((0.5330430241739579, 0.670543024173958), (0.4921052631578947, 0.6875)).lineTo(0.05789473684210526, 0.6875).threePointArc((0.016956975826042067, 0.670543024173958), (0.0, 0.6296052631578948)).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.4765625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0390625, 0.1015625, 0.4765625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.0, 0.0).threePointArc((0.016908802599263494, -0.04082146055863124), (0.057730263157894736, -0.057730263157894736)).lineTo(0.4105263157894737, -0.057730263157894736).threePointArc((0.4545550131902102, -0.042149941556373936), (0.47467105263157894, 0.0)).lineTo(0.47467105263157894, 0.5516447368421052).threePointArc((0.4545550131902102, 0.5937946783984792), (0.4105263157894737, 0.609375)).lineTo(0.057730263157894736, 0.609375).threePointArc((0.016908802599263494, 0.5924661974007365), (0.0, 0.5516447368421052)).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.4375)
solid=solid.cut(solid1)
| 1,813
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00000123
|
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.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.4609375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.3984375, 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_sketch1.moveTo(0.40263157894736845, 0.0).circle(0.40263157894736845)
solid1=wp_sketch1.add(loop2).extrude(0.4609375)
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
|
|
0000/00006546
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.34375, 0.3984375), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.3367598684210526, 0.0).lineTo(0.3367598684210526, 0.3515625).lineTo(0.2220394736842105, 0.04070723684210526).lineTo(0.0, 0.12212171052631578).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.671875)
solid=solid0
| 996
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00000679
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.1640625, 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.5859375, 0.5859375).lineTo(0.4132401315789474, 0.5859375).lineTo(0.0, 0.17269736842105263).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.03125)
solid=solid0
| 963
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00008231
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.53125, 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.5368421052631579, 0.0).circle(0.5368421052631579)
loop1=wp_sketch0.moveTo(0.5368421052631579, 0.0).circle(0.425)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.546875, both=True)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.671875, 0.0, 0.75), 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.14144736842105263, -0.8486842105263158).threePointArc((0.671875, -0.218292821741354), (1.2023026315789473, -0.8486842105263158)).lineTo(1.34375, 0.0).lineTo(0.6789473684210526, 0.0).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop2).extrude(0.546875, both=True)
solid=solid.union(solid1)
| 1,359
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00007499
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.140625, -0.75), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.28421052631578947, 0.0).threePointArc((0.18947368421052632, 0.09473684210526316), (0.28421052631578947, 0.18947368421052632)).lineTo(0.28421052631578947, 0.6157894736842106).threePointArc((0.15, 0.75), (0.28421052631578947, 0.8842105263157896)).lineTo(0.28421052631578947, 1.3105263157894738).threePointArc((0.18947368421052632, 1.405263157894737), (0.28421052631578947, 1.5)).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.3125, both=True)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.140625, 0.5625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.0, 0.1875).threePointArc((-0.09375, 0.09375), (0.0, 0.0)).close()
solid1=wp_sketch1.add(loop1).extrude(0.3125, both=True)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.140625, 0.5625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.0, 0.0).threePointArc((0.09375, 0.09375), (0.0, 0.1875)).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.3125, both=True)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.140625, -0.140625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop3=wp_sketch3.moveTo(0.0, 0.2734375).threePointArc((-0.13671875, 0.13671875), (0.0, 0.0)).close()
solid3=wp_sketch3.add(loop3).extrude(0.3125, both=True)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.140625, -0.140625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop4=wp_sketch4.moveTo(0.0, 0.0).threePointArc((0.13671875, 0.13671875), (0.0, 0.2734375)).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(0.3125, both=True)
solid=solid.union(solid4)
# Generating a workplane for sketch 5
wp_sketch5 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.140625, -0.75), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop5=wp_sketch5.moveTo(0.0, 0.1875).threePointArc((-0.09375, 0.09375), (0.0, 0.0)).close()
solid5=wp_sketch5.add(loop5).extrude(0.3125, both=True)
solid=solid.union(solid5)
# Generating a workplane for sketch 6
wp_sketch6 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.140625, -0.75), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop6=wp_sketch6.moveTo(0.0, 0.0).threePointArc((0.09375, 0.09375), (0.0, 0.1875)).lineTo(0.0, 0.0).close()
solid6=wp_sketch6.add(loop6).extrude(0.3125, both=True)
solid=solid.union(solid6)
| 2,773
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00008782
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.3828125, -0.515625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.04786184210526316, 0.0).lineTo(0.04786184210526316, 0.7578125).lineTo(0.0, 0.7578125).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.34375, -0.515625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.7019736842105264, 0.0).lineTo(0.7019736842105264, 0.7578125).lineTo(0.0, 0.7578125).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.046875)
solid=solid.union(solid1)
| 1,128
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00000447
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0625, 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.2578125)
solid=solid0
| 841
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00001995
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.640625, 0.0, -0.640625), 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.2734375, 0.0).lineTo(1.2734375, 1.2734375).lineTo(0.0, 1.2734375).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.6434210526315789, 0.6434210526315789).circle(0.33511513157894735)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.75, both=True)
solid=solid0
| 1,022
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00002522
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.2734375, 0.09375, 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.05303300858899109, -0.12803300858899108), (0.075, -0.075)).lineTo(0.2953125, -0.075).threePointArc((0.42334550858899106, -0.12803300858899108), (0.3703125, 0.0)).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.0, -0.075).circle(0.056249999999999994)
loop2=wp_sketch0.moveTo(0.3703125, -0.075).circle(0.0375)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).extrude(0.078125)
solid=solid0
| 1,062
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00007314
|
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.11916118421052632, 0.0).lineTo(0.12672697368421051, 0.1796875).lineTo(0.0, 0.1796875).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0078125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.125, 0.0, 0.1796875), 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.007565789473684211, -0.1796875).lineTo(0.12672697368421051, -0.1796875).lineTo(0.12672697368421051, 0.0).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.0078125)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.1796875), 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.12483552631578948, 0.0).lineTo(0.1356907894736842, 0.2578125).lineTo(0.0, 0.2578125).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.0078125)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.140625, 0.0, 0.4375), 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.010855263157894738, -0.2578125).lineTo(0.1356907894736842, -0.2578125).lineTo(0.1356907894736842, 0.0).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(0.0078125)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.4375), 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.1381578947368421, 0.0).lineTo(0.15460526315789472, 0.3125).lineTo(0.0, 0.3125).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(0.015625)
solid=solid.union(solid4)
# Generating a workplane for sketch 5
wp_sketch5 = cq.Workplane(cq.Plane(cq.Vector(-0.15625, 0.0, 0.75), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop5=wp_sketch5.moveTo(0.013157894736842105, -0.3125).lineTo(0.15460526315789472, -0.3125).lineTo(0.15460526315789472, 0.0).lineTo(0.0, 0.0).close()
solid5=wp_sketch5.add(loop5).extrude(0.015625)
solid=solid.union(solid5)
| 2,547
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00002278
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1484375, -0.3125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.3026315789473684, 0.0).lineTo(0.3026315789473684, 0.2631578947368421).lineTo(0.3684210526315789, 0.2631578947368421).lineTo(0.3684210526315789, 0.36184210526315785).lineTo(0.3026315789473684, 0.36184210526315785).lineTo(0.3026315789473684, 0.625).lineTo(0.0, 0.625).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.1513157894736842, 0.3157894736842105).circle(0.10526315789473684)
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.109375, 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.11052631578947367, 0.0).circle(0.1082236842105263)
loop3=wp_sketch1.moveTo(0.11052631578947367, 0.0).circle(0.0506578947368421)
solid1=wp_sketch1.add(loop2).add(loop3).extrude(0.75)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.109375, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch2.moveTo(0.11052631578947367, 0.0).circle(0.1082236842105263)
loop5=wp_sketch2.moveTo(0.11052631578947367, 0.0).circle(0.0506578947368421)
solid2=wp_sketch2.add(loop4).add(loop5).extrude(0.25)
solid=solid.cut(solid2)
| 1,631
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00007466
|
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.359375, 0.0).lineTo(0.359375, 0.215625).lineTo(0.0, 0.215625).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.071875, 0.071875).circle(0.03782894736842105)
loop2=wp_sketch0.moveTo(0.07944078947368421, 0.18157894736842106).circle(0.018914473684210526)
loop3=wp_sketch0.moveTo(0.18157894736842106, 0.03782894736842105).circle(0.018914473684210526)
loop4=wp_sketch0.moveTo(0.2875, 0.071875).circle(0.03782894736842105)
loop5=wp_sketch0.moveTo(0.2799342105263158, 0.18157894736842106).circle(0.018914473684210526)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).add(loop4).add(loop5).extrude(-0.40625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.1953125, -0.3515625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop6=wp_sketch1.moveTo(0.17763157894736842, 0.0).lineTo(0.17763157894736842, 0.2131578947368421).lineTo(0.17763157894736842, 0.4263157894736842).lineTo(0.17763157894736842, 0.7371710526315789).lineTo(0.17763157894736842, 0.84375).lineTo(0.0, 0.84375).lineTo(0.0, 0.48848684210526316).threePointArc((0.021608775485248005, 0.4574013157894737), (0.0, 0.4263157894736842)).lineTo(0.0, 0.4174342105263158).threePointArc((0.021608775485248005, 0.3863486842105263), (0.0, 0.35526315789473684)).lineTo(0.0, 0.0).close()
loop7=wp_sketch1.moveTo(0.09769736842105263, 0.4263157894736842).circle(0.053289473684210525)
loop8=wp_sketch1.moveTo(0.08881578947368421, 0.31085526315789475).circle(0.035526315789473684)
loop9=wp_sketch1.moveTo(0.08881578947368421, 0.5328947368421053).circle(0.035526315789473684)
loop10=wp_sketch1.moveTo(0.09769736842105263, 0.062171052631578946).circle(0.017763157894736842)
loop11=wp_sketch1.moveTo(0.09769736842105263, 0.781578947368421).circle(0.017763157894736842)
solid1=wp_sketch1.add(loop6).add(loop7).add(loop8).add(loop9).add(loop10).add(loop11).extrude(0.1171875)
solid=solid.union(solid1)
| 2,197
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00006817
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.390625, -0.28125, 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.1040296052631579).threePointArc((0.7234786184210527, 0.27898848684210525), (0.8984375, 0.45394736842105265)).lineTo(0.0, 0.5579769736842105).threePointArc((0.22049247166176297, 0.27898848684210525), (0.0, 0.0)).close()
solid0=wp_sketch0.add(loop0).extrude(0.578125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.4609375, -0.2890625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.0669407894736842, 0.0060855263157894735).threePointArc((0.29058547480548275, 0.2890625), (0.0669407894736842, 0.5720394736842105)).lineTo(0.0, 0.578125).threePointArc((-0.2890625, 0.2890625), (0.0, 0.0)).close()
loop2=wp_sketch1.moveTo(0.0, 0.29210526315789476).circle(0.23124999999999998)
solid1=wp_sketch1.add(loop1).add(loop2).extrude(0.578125)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.3359375, 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.17763157894736842, 0.0).circle(0.17393092105263158)
loop4=wp_sketch2.moveTo(0.17763157894736842, 0.0).circle(0.11842105263157894)
solid2=wp_sketch2.add(loop3).add(loop4).extrude(0.578125)
solid=solid.union(solid2)
| 1,644
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00004033
|
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.015789473684210527, 0.0).circle(0.015789473684210527)
loop1=wp_sketch0.moveTo(0.015789473684210527, 0.0).circle(0.011842105263157895)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.0859375, -0.0546875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch1.moveTo(0.015789473684210527, 0.0).circle(0.015460526315789473)
loop3=wp_sketch1.moveTo(0.015789473684210527, 0.0).circle(0.011842105263157895)
solid1=wp_sketch1.add(loop2).add(loop3).extrude(0.75)
solid=solid.union(solid1)
| 1,175
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00008609
|
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(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.09375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.34375, -0.375, 0.09375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.035526315789473684, 0.0).circle(0.035526315789473684)
solid1=wp_sketch1.add(loop1).extrude(-0.09375)
solid=solid.cut(solid1)
| 1,041
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005311
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.015625, 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.019736842105263157, 0.0).circle(0.019736842105263157)
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 912
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005463
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.7578125, 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.7697368421052633, 0.0).circle(0.7697368421052633)
loop1=wp_sketch0.moveTo(0.7697368421052633, 0.0).circle(0.4650493421052632)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.6328125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.7578125, 0.0), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop2=wp_sketch1.moveTo(0.7697368421052633, 0.0).circle(0.7697368421052633)
loop3=wp_sketch1.moveTo(0.7697368421052633, 0.0).circle(0.4650493421052632)
solid1=wp_sketch1.add(loop2).add(loop3).extrude(0.6328125)
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
|
|
0000/00006383
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.5078125, -0.421875, 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.20414488773800454, 0.16435763138738335), (0.15542763157894737, 0.421875)).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.4609375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.328125, 0.5703125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.4453125, 0.0796875).threePointArc((0.19877482529861082, 0.1732987703901158), (0.0, 0.0)).close()
solid1=wp_sketch1.add(loop1).extrude(0.4609375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.625, -0.2265625, 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.04118452025251429, -0.25858606238583687), (0.2886513157894737, -0.34416118421052627)).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.4609375)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.625, -0.2265625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.2967105263157895, -0.3506578947368421).lineTo(0.7417763157894737, -0.4180921052631579).threePointArc((0.8603527592375674, -0.17066610309177466), (1.1328947368421054, -0.20230263157894737)).lineTo(1.28125, 0.2292763157894737).lineTo(1.1328947368421054, 0.6473684210526316).threePointArc((0.855541336295178, 0.6224753136180905), (0.7417763157894737, 0.8766447368421053)).lineTo(0.2967105263157895, 0.7957236842105263).lineTo(0.0, 0.4585526315789474).threePointArc((0.16358838004122253, 0.2292763157894737), (0.0, 0.0)).close()
loop4=wp_sketch3.moveTo(0.6203947368421052, -0.040460526315789475).lineTo(0.8496710526315789, 0.09440789473684211).lineTo(0.8496710526315789, 0.36414473684210524).lineTo(0.6203947368421052, 0.4855263157894737).lineTo(0.3911184210526316, 0.36414473684210524).lineTo(0.3911184210526316, 0.09440789473684211).close()
solid3=wp_sketch3.add(loop3).add(loop4).extrude(0.4609375)
solid=solid.union(solid3)
| 2,270
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005852
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.7109375, 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.8294407894736843, 0.0).lineTo(0.8294407894736843, -0.05057565789473684).lineTo(0.6372532894736842, -0.05057565789473684).lineTo(0.6372532894736842, -0.10115131578947369).lineTo(0.6372532894736842, -0.23264802631578949).lineTo(0.9609375, -0.23264802631578949).lineTo(0.9609375, 0.06069078947368421).lineTo(0.0, 0.06069078947368421).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.7109375, -0.21875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.6328125, 0.0).lineTo(0.6328125, 0.1265625).threePointArc((0.35193970355973625, 0.06590506580297488), (0.06661184210526316, 0.09991776315789473)).threePointArc((0.020913728027169412, 0.12955804089983416), (0.0, 0.17985197368421052)).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.75, -0.21875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.03955592105263158, 0.0).lineTo(0.03955592105263158, 0.1825657894736842).lineTo(0.03955592105263158, 0.19169407894736842).lineTo(0.03955592105263158, 0.23124999999999998).lineTo(0.03955592105263158, 0.2890625).lineTo(0.0, 0.2890625).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.2265625)
solid=solid.union(solid2)
| 1,845
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00008392
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5859375, 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.5859375, 0.0).lineTo(0.5859375, 0.16036184210526316).lineTo(0.0, 0.16036184210526316).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0390625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.1640625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.5859375, 0.0).lineTo(0.5859375, 0.16036184210526316).lineTo(0.0, 0.16036184210526316).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.0390625)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.5859375, -0.1640625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.5859375, 0.0).lineTo(0.5859375, 0.16036184210526316).lineTo(0.0, 0.16036184210526316).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.0390625)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.5859375, -0.1640625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.0, 0.16578947368421051).lineTo(0.0, 0.328125).threePointArc((-0.1640625, 0.1640625), (0.0, 0.0)).close()
solid3=wp_sketch3.add(loop3).extrude(0.0390625)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = 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)))
loop4=wp_sketch4.moveTo(0.5859375, 0.0).lineTo(0.5859375, 0.16036184210526316).lineTo(0.0, 0.16036184210526316).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(0.0390625)
solid=solid.union(solid4)
# Generating a workplane for sketch 5
wp_sketch5 = cq.Workplane(cq.Plane(cq.Vector(0.5859375, -0.1640625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop5=wp_sketch5.moveTo(0.0, 0.0).threePointArc((0.1640625, 0.1640625), (0.0, 0.328125)).lineTo(0.0, 0.16578947368421051).lineTo(0.0, 0.0).close()
solid5=wp_sketch5.add(loop5).extrude(0.0390625)
solid=solid.union(solid5)
| 2,091
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00009932
|
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()
loop1=wp_sketch0.moveTo(0.007894736842105263, 0.007894736842105263).circle(0.007894736842105263)
loop2=wp_sketch0.moveTo(0.007894736842105263, 0.7421052631578947).circle(0.007894736842105263)
loop3=wp_sketch0.moveTo(0.7421052631578947, 0.007894736842105263).circle(0.007894736842105263)
loop4=wp_sketch0.moveTo(0.7421052631578947, 0.7421052631578947).circle(0.007894736842105263)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).add(loop4).extrude(0.0234375)
solid=solid0
| 1,170
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005649
|
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.031578947368421054, 0.0).lineTo(0.031578947368421054, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.015625)
solid=solid0
| 945
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00009701
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.578125, 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.07894736842105263, 0.0).lineTo(0.07894736842105263, 0.07894736842105263).lineTo(0.07894736842105263, 0.4736842105263158).lineTo(0.07894736842105263, 0.5526315789473685).lineTo(0.07894736842105263, 0.9473684210526316).lineTo(0.07894736842105263, 1.0263157894736843).lineTo(0.07894736842105263, 1.4210526315789473).lineTo(0.07894736842105263, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0703125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.5, 0.0, -0.75), 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.07894736842105263, 0.0).lineTo(0.07894736842105263, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 1.4210526315789473).lineTo(0.0, 1.0263157894736843).lineTo(0.0, 0.9473684210526316).lineTo(0.0, 0.5526315789473685).lineTo(0.0, 0.4736842105263158).lineTo(0.0, 0.07894736842105263).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.0703125)
solid=solid.union(solid1)
| 1,665
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00008379
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.65625, -0.09375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.3174342105263157, 0.0).threePointArc((1.4136513157894737, 0.0962171052631579), (1.3174342105263157, 0.1924342105263158)).lineTo(0.0, 0.1924342105263158).threePointArc((-0.0962171052631579, 0.0962171052631579), (0.0, 0.0)).close()
loop1=wp_sketch0.moveTo(0.0, 0.08881578947368421).circle(0.044407894736842105)
loop2=wp_sketch0.moveTo(1.3174342105263157, 0.08881578947368421).circle(0.044407894736842105)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).extrude(0.09375)
solid=solid0
| 1,136
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005885
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.8203125, -0.15625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.006578947368421, 0.0).circle(1.006578947368421)
solid0=wp_sketch0.add(loop0).extrude(0.40625)
solid=solid0
| 842
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00005107
|
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.0, 0.0).threePointArc((0.1851232577185659, -0.4220214483939243), (0.6184210526315789, -0.5789473684210527)).lineTo(1.25, -0.5394736842105263).threePointArc((1.242961706757213, -0.5156571077758929), (1.2236842105263157, -0.5)).lineTo(0.9078947368421052, -0.40789473684210525).lineTo(0.8421052631578947, -0.381578947368421).threePointArc((0.6204092185743597, -0.20782395722038116), (0.513157894736842, 0.05263157894736842)).lineTo(0.5, 0.17105263157894735).lineTo(0.43421052631578944, 0.2631578947368421).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0078125)
solid=solid0
| 1,307
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00003210
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 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.75, 0.0).lineTo(0.75, 0.09473684210526316).lineTo(0.0, 0.09473684210526316).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.015625, both=True)
solid=solid0
| 951
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0000/00001407
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.4375, 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.44210526315789467, 0.0).circle(0.44210526315789467)
loop1=wp_sketch0.moveTo(0.44210526315789467, 0.0).circle(0.24868421052631576)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.75, both=True)
solid=solid0
| 977
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00014007
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.234375, 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.23684210526315788, 0.0).circle(0.23684210526315788)
loop1=wp_sketch0.moveTo(0.23684210526315788, 0.0).circle(0.12335526315789473)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.1015625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.21875, -0.1015625, 0.0), 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.22105263157894733, 0.0).circle(0.22105263157894733)
loop3=wp_sketch1.moveTo(0.22105263157894733, 0.0).circle(0.12434210526315788)
solid1=wp_sketch1.add(loop2).add(loop3).extrude(0.03125)
solid=solid.union(solid1)
| 1,315
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017268
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.234375, 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.7656250000000001, 0.0).lineTo(0.7656250000000001, 0.12894736842105264).lineTo(0.6366776315789474, 0.12894736842105264).threePointArc((0.5910878522656043, 0.14783127331823587), (0.5722039473684211, 0.19342105263157897)).lineTo(0.5722039473684211, 0.5077302631578948).lineTo(0.19342105263157897, 0.5077302631578948).lineTo(0.19342105263157897, 0.19342105263157897).threePointArc((0.17453714773439574, 0.14783127331823587), (0.12894736842105264, 0.12894736842105264)).lineTo(0.0, 0.12894736842105264).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.3828125)
solid=solid0
| 1,329
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015457
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.59375, 0.359375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.39868421052631575, 0.0).circle(0.39868421052631575)
loop1=wp_sketch0.moveTo(0.39868421052631575, 0.0).circle(0.0747532894736842)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.1953125)
solid=solid0
| 911
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00013998
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.328125, 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.33157894736842103, 0.0).circle(0.33157894736842103)
loop1=wp_sketch0.moveTo(0.33157894736842103, 0.0).circle(0.18651315789473683)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.390625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.1875, 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.19342105263157897, 0.0).circle(0.19342105263157897)
solid1=wp_sketch1.add(loop2).extrude(0.390625)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.1875, 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.19342105263157897, 0.0).circle(0.19342105263157897)
solid2=wp_sketch2.add(loop3).extrude(-0.75)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.2265625, 0.0859375, 0.390625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch3.moveTo(0.03881578947368421, -0.24259868421052633).lineTo(0.266858552631579, -0.33478618421052636).lineTo(0.46093750000000006, -0.17952302631578948).lineTo(0.4221217105263158, 0.06307565789473685).lineTo(0.19407894736842107, 0.15526315789473685).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop4).extrude(-0.265625)
solid=solid.cut(solid3)
| 1,674
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017283
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.71875, 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.8984375, 0.0).lineTo(0.8984375, 0.1513157894736842).lineTo(0.3026315789473684, 0.3026315789473684).lineTo(0.3026315789473684, 0.44449013157894735).lineTo(0.0, 0.44449013157894735).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 1,037
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00014946
|
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.65625, 0.0).lineTo(0.65625, 0.2832236842105263).lineTo(0.4697368421052631, 0.2832236842105263).lineTo(0.18651315789473683, 0.2832236842105263).lineTo(0.048355263157894735, 0.2832236842105263).lineTo(0.0, 0.23486842105263156).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.09671052631578947, 0.09671052631578947).circle(0.01381578947368421)
loop2=wp_sketch0.moveTo(0.5595394736842105, 0.09671052631578947).circle(0.01381578947368421)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).extrude(0.046875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.46875, 0.28125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch1.moveTo(0.1875, 0.0).lineTo(0.1875, 0.46875).lineTo(0.0, 0.46875).lineTo(0.0, 0.0).close()
loop4=wp_sketch1.moveTo(0.09375, 0.3157894736842105).circle(0.06907894736842105)
solid1=wp_sketch1.add(loop3).add(loop4).extrude(0.046875)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.1875, 0.28125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop5=wp_sketch2.moveTo(0.28125, 0.0).lineTo(0.28125, 0.46875).lineTo(0.0, 0.1875).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop5).extrude(0.046875)
solid=solid.union(solid2)
| 1,656
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017297
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1875, 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.46875, 0.0).lineTo(0.46875, 0.46875).lineTo(0.0, 0.46875).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.46875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.28125, -0.3125, -0.359375), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.3125, 0.0).lineTo(0.3125, 0.3125).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.46875)
solid=solid.union(solid1)
| 1,183
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019735
|
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.1484375, 0.0).lineTo(0.1484375, 0.018750000000000003).lineTo(0.0, 0.018750000000000003).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 879
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010711
|
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.1484375)
solid=solid0
| 837
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010705
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -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.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.1015625)
solid=solid0
| 840
|
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.