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 |
|---|---|---|---|---|---|
0001/00013007
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.6171875, -0.4453125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.13421052631578947, 0.0).lineTo(0.13421052631578947, 0.796875).lineTo(0.0, 0.796875).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.3984375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.6171875, -0.4453125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.13421052631578947, 0.0).lineTo(0.13421052631578947, 0.796875).lineTo(0.0, 0.796875).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.140625)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.4921875, -0.4453125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(1.1114309210526316, 0.0).lineTo(1.1114309210526316, 0.7976151315789474).lineTo(1.2421875, 0.7976151315789474).lineTo(1.2421875, 1.0199013157894739).lineTo(0.0, 1.0199013157894739).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.140625)
solid=solid.union(solid2)
| 1,462
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010268
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.21875, 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.22105263157894733, 0.0).circle(0.22105263157894733)
solid0=wp_sketch0.add(loop0).extrude(0.703125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.078125, 0.0, 0.703125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.07894736842105263, 0.0).circle(0.07894736842105263)
solid1=wp_sketch1.add(loop1).extrude(0.046875)
solid=solid.union(solid1)
| 1,040
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017507
|
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
|
|
0001/00018620
|
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.37894736842105264).lineTo(0.0, 0.37894736842105264).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.375)
solid=solid0
| 868
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017275
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.34375), 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.3022203947368421, 0.0).lineTo(0.15830592105263158, 0.15830592105263158).lineTo(1.2088815789473684, 0.15830592105263158).lineTo(1.064967105263158, 0.0).lineTo(1.3671875, 0.0).lineTo(1.3671875, 0.37417763157894735).lineTo(0.0, 0.37417763157894735).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.6953125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.1875, 0.03125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(1.3671875, 0.0).lineTo(1.3671875, 0.18708881578947367).lineTo(0.0, 0.18708881578947367).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.3828125)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.390625, -0.1875, 0.4140625), 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.2265625, -0.2265625).lineTo(0.2265625, 0.0).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(-0.1875)
solid=solid.union(solid2)
| 1,620
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00016194
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5390625, -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.7060855263157895, 0.0).lineTo(0.7060855263157895, 0.33305921052631576).lineTo(0.7060855263157895, 0.3863486842105263).lineTo(0.7060855263157895, 1.265625).lineTo(0.0, 1.0524671052631578).lineTo(0.0, 0.37302631578947365).lineTo(0.06661184210526316, 0.37302631578947365).lineTo(0.06661184210526316, 0.33305921052631576).lineTo(0.0, 0.33305921052631576).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.5234375, -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.15625, 0.0).threePointArc((0.1104854345603981, 0.11048543456039805), (0.0, 0.15625)).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.3046875)
solid=solid.union(solid1)
| 1,360
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00016816
|
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.28421052631578947, 0.0).lineTo(0.28421052631578947, 0.75).lineTo(0.0, 0.75).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.0, -0.75, 0.015625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.28421052631578947, 0.0).lineTo(0.28421052631578947, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
loop2=wp_sketch1.moveTo(0.26842105263157895, 0.015789473684210527).lineTo(0.26842105263157895, 0.7342105263157895).lineTo(0.015789473684210527, 0.7342105263157895).lineTo(0.015789473684210527, 0.015789473684210527).close()
solid1=wp_sketch1.add(loop1).add(loop2).extrude(0.0546875)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.2265625, -0.75, 0.046875), 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.007730263157894737, 0.0).circle(0.007730263157894737)
solid2=wp_sketch2.add(loop3).extrude(-0.015625)
solid=solid.cut(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.046875, -0.75, 0.0546875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop4=wp_sketch3.moveTo(0.007894736842105263, 0.0).circle(0.007730263157894737)
solid3=wp_sketch3.add(loop4).extrude(-0.015625)
solid=solid.cut(solid3)
| 1,847
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00018185
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.75, 0.0).lineTo(0.75, 0.37894736842105264).lineTo(0.0, 0.37894736842105264).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.37894736842105264, 0.18947368421052632).circle(0.09473684210526316)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.375)
solid=solid0
| 952
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00012641
|
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.015625)
solid=solid0
| 836
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015890
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6640625, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.6640625, 0.0).lineTo(0.6640625, 0.6640625).lineTo(0.0, 0.6640625).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.6640625)
solid=solid0
| 940
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00018378
|
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.7471217105263158, 0.0).lineTo(0.7471217105263158, -0.1513157894736842).lineTo(0.71875, -0.1513157894736842).threePointArc((0.6761924342105263, -0.19387335526315788), (0.71875, -0.23643092105263158)).lineTo(0.7471217105263158, -0.23643092105263158).lineTo(0.8984375, -0.23643092105263158).lineTo(0.8984375, 0.1513157894736842).lineTo(0.0, 0.1513157894736842).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.1796875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.640625, 0.390625, 0.0390625), 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.1015625).threePointArc((-0.05078125, 0.05078125), (0.0, 0.0)).close()
solid1=wp_sketch1.add(loop1).extrude(-0.75)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.640625, 0.390625, 0.0390625), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.0, 0.0).threePointArc((0.05078125, 0.05078125), (0.0, 0.1015625)).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(-0.75)
solid=solid.cut(solid2)
| 1,696
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00013205
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0703125, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.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.0625, 0.0, 0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.06315789473684211, 0.0).circle(0.06184210526315789)
solid1=wp_sketch1.add(loop1).extrude(-0.625)
solid=solid.cut(solid1)
| 1,029
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017063
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.75, -0.203125), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.5703125, 0.0).lineTo(0.5703125, 0.04802631578947368).lineTo(0.45024671052631576, 0.04802631578947368).lineTo(0.45024671052631576, 0.16809210526315788).lineTo(0.40222039473684207, 0.16809210526315788).threePointArc((0.28515625, 0.05102796052631579), (0.16809210526315788, 0.16809210526315788)).lineTo(0.12006578947368421, 0.16809210526315788).lineTo(0.12006578947368421, 0.04802631578947368).lineTo(0.0, 0.04802631578947368).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.2109375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0859375, -0.6953125, -0.15625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.02368421052631579, 0.0).circle(0.02368421052631579)
solid1=wp_sketch1.add(loop1).extrude(-0.046875)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0859375, -0.2421875, -0.15625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.02368421052631579, 0.0).circle(0.02368421052631579)
solid2=wp_sketch2.add(loop2).extrude(-0.046875)
solid=solid.cut(solid2)
| 1,651
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010718
|
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.078125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.375, -0.375, 0.078125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.75, 0.0).lineTo(0.75, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.078125)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.1484375, -0.1484375, 0.1484375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.296875, 0.0).lineTo(0.296875, 0.296875).lineTo(0.0, 0.296875).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.078125)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.078125, -0.078125, 0.2265625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.1484375, 0.0).lineTo(0.1484375, 0.1484375).lineTo(0.0, 0.1484375).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(0.078125)
solid=solid.union(solid3)
| 1,497
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017077
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 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(0.29185855263157895, 0.0).lineTo(0.18067434210526315, 0.11118421052631579).lineTo(1.1396381578947368, 0.11118421052631579).lineTo(1.028453947368421, 0.0).lineTo(1.3203125, 0.0).lineTo(1.3203125, 0.29185855263157895).lineTo(0.0, 0.29185855263157895).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.671875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(1.3203125, 0.0).lineTo(1.3203125, 0.1528782894736842).lineTo(1.0979440789473685, 0.3613486842105263).lineTo(0.22236842105263158, 0.3613486842105263).lineTo(0.0, 0.1528782894736842).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.1796875)
solid=solid.union(solid1)
| 1,490
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00013211
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.296875, 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.6).lineTo(0.0, 0.6).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0078125)
solid=solid0
| 844
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00018422
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.234375, -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.6393092105263157, 0.0).lineTo(0.6393092105263157, 1.3203125).lineTo(0.0, 1.3203125).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0546875)
solid=solid0
| 886
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017711
|
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)
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.46875, -0.046875, 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.4697368421052631, 0.0).circle(0.4697368421052631)
loop2=wp_sketch1.moveTo(0.4697368421052631, 0.0).circle(0.4012335526315789)
solid1=wp_sketch1.add(loop1).add(loop2).extrude(0.359375)
solid=solid.union(solid1)
| 1,239
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017088
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.4140625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.09375, 0.0).lineTo(1.09375, 0.9671052631578947).lineTo(0.0, 0.9671052631578947).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.5526315789473684, 0.48355263157894735).circle(0.3223684210526316)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.4375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.4140625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch1.moveTo(1.09375, 0.0).lineTo(1.09375, 0.9671052631578947).lineTo(0.0, 0.9671052631578947).lineTo(0.0, 0.0).close()
loop3=wp_sketch1.moveTo(0.5526315789473684, 0.48355263157894735).circle(0.3223684210526316)
solid1=wp_sketch1.add(loop2).add(loop3).extrude(0.4375)
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
|
|
0001/00012735
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.4140625, 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.42236842105263156, 0.0).circle(0.42236842105263156)
loop1=wp_sketch0.moveTo(0.42236842105263156, 0.0).circle(0.1231907894736842)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.34375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.125, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch1.moveTo(0.12631578947368421, 0.0).circle(0.12631578947368421)
loop3=wp_sketch1.moveTo(0.12631578947368421, 0.0).circle(0.03684210526315789)
solid1=wp_sketch1.add(loop2).add(loop3).extrude(0.34375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = 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)))
loop4=wp_sketch2.moveTo(0.039473684210526314, 0.0).circle(0.039473684210526314)
solid2=wp_sketch2.add(loop4).extrude(0.34375)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.125, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop5=wp_sketch3.moveTo(0.12631578947368421, 0.0).circle(0.12631578947368421)
loop6=wp_sketch3.moveTo(0.12631578947368421, 0.0).circle(0.03684210526315789)
solid3=wp_sketch3.add(loop5).add(loop6).extrude(-0.71875)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = 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)))
loop7=wp_sketch4.moveTo(0.039473684210526314, 0.0).circle(0.039473684210526314)
solid4=wp_sketch4.add(loop7).extrude(-0.71875)
solid=solid.union(solid4)
# Generating a workplane for sketch 5
wp_sketch5 = cq.Workplane(cq.Plane(cq.Vector(-0.0390625, 0.0, 0.34375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop8=wp_sketch5.moveTo(0.039473684210526314, 0.0).circle(0.039473684210526314)
solid5=wp_sketch5.add(loop8).extrude(0.40625)
solid=solid.union(solid5)
# Generating a workplane for sketch 6
wp_sketch6 = cq.Workplane(cq.Plane(cq.Vector(-0.078125, 0.0, 0.34375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop9=wp_sketch6.moveTo(0.07500000000000001, 0.0).circle(0.07500000000000001)
loop10=wp_sketch6.moveTo(0.07500000000000001, 0.0).circle(0.037500000000000006)
solid6=wp_sketch6.add(loop9).add(loop10).extrude(0.046875)
solid=solid.union(solid6)
| 2,274
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00012047
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.03125, 0.0625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.0, 0.0).threePointArc((-0.024671052631578948, -0.09046052631578946), (0.06578947368421052, -0.11513157894736842)).lineTo(0.2220394736842105, -0.03289473684210526).threePointArc((0.24153312255712137, -0.022007148498066734), (0.2631578947368421, -0.01644736842105263)).lineTo(0.78125, -0.01644736842105263).lineTo(0.78125, 0.07401315789473684).lineTo(0.13980263157894737, 0.07401315789473684).threePointArc((0.1356907894736842, 0.0745459387214393), (0.13157894736842105, 0.07401315789473684)).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.03289473684210526, -0.05756578947368421).circle(0.024671052631578948)
loop2=wp_sketch0.moveTo(0.24671052631578946, 0.03289473684210526).circle(0.01644736842105263)
loop3=wp_sketch0.moveTo(0.47697368421052627, 0.03289473684210526).circle(0.01644736842105263)
loop4=wp_sketch0.moveTo(0.7072368421052632, 0.03289473684210526).circle(0.01644736842105263)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).add(loop4).extrude(0.0234375)
solid=solid0
| 1,614
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00016209
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.03125, 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.03699703816590996, -0.08931875130777447), (0.12631578947368421, -0.12631578947368421)).lineTo(1.3736842105263158, -0.12631578947368421).threePointArc((1.46300296183409, -0.08931875130777447), (1.5, 0.0)).lineTo(1.5, 0.06315789473684211).threePointArc((1.459732854762724, 0.1445819092025111), (1.3736842105263158, 0.1736842105263158)).lineTo(0.12631578947368421, 0.1736842105263158).threePointArc((0.04026714523727615, 0.1445819092025111), (0.0, 0.06315789473684211)).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.09375)
solid=solid0
| 1,226
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017117
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.2421875, -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.7890625, 0.0).lineTo(0.7890625, 0.7890625).lineTo(0.0, 0.7890625).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.19934210526315788, 0.39868421052631575).circle(0.09967105263157894)
loop2=wp_sketch0.moveTo(0.5897203947368421, 0.39868421052631575).circle(0.09967105263157894)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).extrude(0.3984375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.4375, -0.359375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch1.moveTo(0.19934210526315788, 0.0).lineTo(0.19934210526315788, 0.7890625).lineTo(0.0, 0.7890625).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop3).extrude(0.59375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.5546875, -0.359375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch2.moveTo(0.19934210526315788, 0.0).lineTo(0.19934210526315788, 0.7890625).lineTo(0.0, 0.7890625).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop4).extrude(0.59375)
solid=solid.union(solid2)
| 1,517
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00011572
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0703125, 0.0, -0.0703125), 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.1328125, 0.0).lineTo(0.1328125, 0.1328125).lineTo(0.02236842105263158, 0.1328125).lineTo(0.02236842105263158, 0.11044407894736842).lineTo(0.0, 0.11044407894736842).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0703125, both=True)
solid=solid0
| 1,038
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017103
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6640625, 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(1.125, 0.0).lineTo(1.125, 0.5684210526315789).lineTo(0.9355263157894738, 0.5684210526315789).lineTo(0.9355263157894738, 0.37894736842105264).lineTo(0.18947368421052632, 0.37894736842105264).lineTo(0.18947368421052632, 0.5684210526315789).lineTo(0.0, 0.5684210526315789).lineTo(0.0, 0.36710526315789477).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 1,150
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019890
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5859375, -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.1842105263157896, 0.0).lineTo(1.1842105263157896, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0546875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.5390625, 0.4453125, 0.0546875), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.051562500000000004, 0.0).lineTo(0.051562500000000004, 0.2578125).lineTo(0.0, 0.2578125).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.484375, 0.4453125, 0.0546875), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.051562500000000004, 0.0).lineTo(0.051562500000000004, 0.2578125).lineTo(0.0, 0.2578125).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.5390625, -0.6953125, 0.0546875), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.051562500000000004, 0.0).lineTo(0.051562500000000004, 0.2578125).lineTo(0.0, 0.2578125).lineTo(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.484375, -0.6953125, 0.0546875), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch4.moveTo(0.051562500000000004, 0.0).lineTo(0.051562500000000004, 0.2578125).lineTo(0.0, 0.2578125).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(0.0625)
solid=solid.union(solid4)
| 1,877
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017856
|
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/00019476
|
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.03125)
solid=solid0
| 835
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017315
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 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.9218750000000001, 0.0).lineTo(0.9218750000000001, 0.07763157894736843).lineTo(0.727796052631579, 0.07763157894736843).lineTo(0.727796052631579, 0.2717105263157895).lineTo(0.6501644736842106, 0.2717105263157895).threePointArc((0.46093750000000006, 0.08248355263157896), (0.2717105263157895, 0.2717105263157895)).lineTo(0.19407894736842107, 0.2717105263157895).lineTo(0.19407894736842107, 0.07763157894736843).lineTo(0.0, 0.07763157894736843).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.34375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.6953125, -0.171875, 0.1015625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.039473684210526314, 0.0).circle(0.03865131578947368)
solid1=wp_sketch1.add(loop1).extrude(-0.078125)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0390625, -0.171875, 0.1015625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.039473684210526314, 0.0).circle(0.039473684210526314)
solid2=wp_sketch2.add(loop2).extrude(-0.078125)
solid=solid.cut(solid2)
| 1,690
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017467
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.1640625), 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.0868421052631579).lineTo(0.6236842105263158, 0.20526315789473684).lineTo(0.12631578947368421, 0.20526315789473684).lineTo(0.0, 0.0868421052631579).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.1015625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.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)))
loop1=wp_sketch1.moveTo(0.75, 0.0).lineTo(0.75, 0.16578947368421054).lineTo(0.0, 0.16578947368421054).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.1015625)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.75, 0.0).lineTo(0.75, 0.16578947368421054).lineTo(0.0, 0.16578947368421054).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.28125)
solid=solid.union(solid2)
| 1,628
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015270
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.484375, 0.0, 0.3828125), 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.06840459038935615, -0.6535247225334013), (0.4888980263157895, -1.0016447368421053)).threePointArc((0.5160637595388605, -1.0672286184210527), (0.4888980263157895, -1.1328125)).threePointArc((0.7820619087685087, -1.012414540629318), (0.977796052631579, -0.7631578947368421)).threePointArc((1.0462006430209352, -0.10963317220344079), (0.4888980263157895, 0.23848684210526316)).threePointArc((0.4617322930927184, 0.30407072368421056), (0.4888980263157895, 0.3696546052631579)).threePointArc((0.19573414386307028, 0.24925664589247581), (0.0, 0.0)).close()
loop1=wp_sketch0.moveTo(0.4054276315789474, -0.5127467105263158).threePointArc((0.411389802631579, -0.5143573466283806), (0.41735197368421056, -0.5127467105263158)).lineTo(0.5604440789473685, -0.5127467105263158).threePointArc((0.56640625, -0.5143573466283806), (0.5723684210526316, -0.5127467105263158)).lineTo(0.6439144736842105, -0.3815789473684211).threePointArc((0.6455251097862756, -0.3756167763157895), (0.6439144736842105, -0.3696546052631579)).lineTo(0.5723684210526316, -0.2504111842105263).threePointArc((0.56640625, -0.24880054810846158), (0.5604440789473685, -0.2504111842105263)).lineTo(0.41735197368421056, -0.2504111842105263).threePointArc((0.411389802631579, -0.24880054810846158), (0.4054276315789474, -0.2504111842105263)).lineTo(0.3338815789473684, -0.3696546052631579).threePointArc((0.33227094284530334, -0.3756167763157895), (0.3338815789473684, -0.3815789473684211)).close()
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.1796875)
solid=solid0
| 2,115
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019489
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.046875, 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.04736842105263158, 0.0).circle(0.04736842105263158)
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 910
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019488
|
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.015789473684210527, 0.0).circle(0.015789473684210527)
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
|
|
0001/00014190
|
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.09868421052631579, 0.0).circle(0.09868421052631579)
solid0=wp_sketch0.add(loop0).extrude(0.703125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.03125, -0.703125, -0.015625), 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.027631578947368417, -0.015542763157894735).lineTo(0.05468749999999999, 0.0).lineTo(0.05468749999999999, 0.031661184210526314).lineTo(0.027631578947368417, 0.04720394736842105).lineTo(0.0, 0.031661184210526314).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.046875)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.03125, 0.0, -0.015625), 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.027631578947368417, -0.015542763157894735).lineTo(0.05468749999999999, 0.0).lineTo(0.05468749999999999, 0.031661184210526314).lineTo(0.027631578947368417, 0.04720394736842105).lineTo(0.0, 0.031661184210526314).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.046875)
solid=solid.union(solid2)
| 1,774
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015271
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.484375, 0.0, 0.3828125), 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.06840459038935615, -0.6535247225334013), (0.4888980263157895, -1.0016447368421053)).threePointArc((0.5160637595388605, -1.0672286184210527), (0.4888980263157895, -1.1328125)).threePointArc((0.7820619087685087, -1.012414540629318), (0.977796052631579, -0.7631578947368421)).threePointArc((1.0462006430209352, -0.10963317220344079), (0.4888980263157895, 0.23848684210526316)).threePointArc((0.4617322930927184, 0.30407072368421056), (0.4888980263157895, 0.3696546052631579)).threePointArc((0.19573414386307028, 0.24925664589247581), (0.0, 0.0)).close()
loop1=wp_sketch0.moveTo(0.6439144736842105, -0.5127467105263158).lineTo(0.6439144736842105, -0.2504111842105263).lineTo(0.3338815789473684, -0.2504111842105263).lineTo(0.3338815789473684, -0.5127467105263158).close()
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.1796875)
solid=solid0
| 1,540
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017466
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.1875), 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.7578125, 0.0).lineTo(0.7578125, 0.06381578947368421).lineTo(0.5982730263157895, 0.06381578947368421).lineTo(0.5982730263157895, 0.22335526315789475).lineTo(0.5344572368421053, 0.22335526315789475).threePointArc((0.37890625, 0.06588356909642537), (0.22335526315789475, 0.22335526315789475)).lineTo(0.15953947368421054, 0.22335526315789475).lineTo(0.15953947368421054, 0.06381578947368421).lineTo(0.0, 0.06381578947368421).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.28125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.703125, -0.1484375, -0.125), 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.030921052631578946)
solid1=wp_sketch1.add(loop1).extrude(-0.3125)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.1015625, -0.1484375, -0.125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.031578947368421054, 0.0).circle(0.031578947368421054)
solid2=wp_sketch2.add(loop2).extrude(-0.3125)
solid=solid.cut(solid2)
| 1,657
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017300
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6484375, 0.0, -0.1171875), 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.3984375, 0.0).lineTo(1.3984375, 0.11776315789473685).lineTo(1.104029605263158, 0.11776315789473685).lineTo(1.104029605263158, 0.41217105263157894).lineTo(0.9862664473684211, 0.41217105263157894).threePointArc((0.69921875, 0.1251233552631579), (0.41217105263157894, 0.41217105263157894)).lineTo(0.29440789473684215, 0.41217105263157894).lineTo(0.29440789473684215, 0.11776315789473685).lineTo(0.0, 0.11776315789473685).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.5234375)
solid=solid0
| 1,259
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015517
|
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.75, 0.0).lineTo(0.75, 0.37894736842105264).lineTo(0.0, 0.37894736842105264).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.18947368421052632, 0.18947368421052632).circle(0.07105263157894737)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.25)
solid=solid0
| 949
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00018027
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5625, 0.0, 0.3203125), 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.8726151315789474, -0.7002467105263158).lineTo(1.0234375, -0.7756578947368421).lineTo(0.9372532894736842, -0.6248355263157895).lineTo(0.09695723684210526, 0.0430921052631579).lineTo(0.03231907894736842, 0.0430921052631579).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.75, 0.0, 0.5), 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.12664473684210525, -0.07598684210526314).lineTo(0.21874999999999997, -0.13124999999999998).lineTo(0.21874999999999997, -0.02532894736842105).lineTo(0.21874999999999997, 0.13585526315789473).lineTo(0.17269736842105263, -0.04375).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.0625)
solid=solid.union(solid1)
| 1,515
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017314
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.1953125), 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.0).lineTo(0.5859375, 0.09868421052631579).lineTo(0.48725328947368424, 0.09868421052631579).threePointArc((0.4523631522440849, 0.11313617855987437), (0.4379111842105263, 0.14802631578947367)).lineTo(0.4379111842105263, 0.3885690789473684).lineTo(0.14802631578947367, 0.3885690789473684).lineTo(0.14802631578947367, 0.14802631578947367).threePointArc((0.13357434775591512, 0.11313617855987437), (0.09868421052631579, 0.09868421052631579)).lineTo(0.0, 0.09868421052631579).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.2890625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.5546875, 0.0, 0.046875), 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.09868421052631579, 0.0).circle(0.09662828947368421)
solid1=wp_sketch1.add(loop1).extrude(0.2890625)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.25, -0.1484375, -0.09375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.039473684210526314, 0.0).circle(0.039473684210526314)
solid2=wp_sketch2.add(loop2).extrude(-0.09375)
solid=solid.cut(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.7421875, -0.1484375, -0.09375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.039473684210526314, 0.0).circle(0.039473684210526314)
solid3=wp_sketch3.add(loop3).extrude(-0.09375)
solid=solid.cut(solid3)
| 1,988
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017328
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.03125, 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.390625, 0.0).lineTo(0.390625, 0.390625).lineTo(0.0, 0.390625).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.390625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.359375, 0.1328125, -0.09375), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.2578125, 0.0).lineTo(0.2578125, 0.2578125).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.390625)
solid=solid.union(solid1)
| 1,201
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00016988
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.140625, 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.27631578947368424, 0.0).lineTo(0.27631578947368424, 0.6078947368421053).lineTo(0.2131578947368421, 0.75).lineTo(0.13421052631578947, 0.75).lineTo(0.06315789473684211, 0.75).lineTo(0.0, 0.6078947368421053).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.13421052631578947, 0.5842105263157895).circle(0.06315789473684211)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.0625)
solid=solid0
| 1,140
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019463
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.10937499999999999, 0.0).lineTo(0.10937499999999999, 0.006907894736842104).lineTo(0.006907894736842104, 0.006907894736842104).lineTo(0.006907894736842104, 0.055263157894736833).lineTo(0.0, 0.055263157894736833).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 1,063
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019846
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.375, 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.7578947368421053).lineTo(0.0, 0.7578947368421053).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.015625)
solid=solid0
| 870
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00012085
|
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.46578947368421053).lineTo(0.0, 0.46578947368421053).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.015625)
solid=solid0
| 871
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017843
|
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, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.10657894736842105, 0.0).circle(0.10657894736842105)
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 839
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017857
|
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.11842105263157894)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.1171875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.21875, -0.1171875, 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.21710526315789475, 0.0).circle(0.21258223684210528)
loop3=wp_sketch1.moveTo(0.21710526315789475, 0.0).circle(0.11759868421052633)
solid1=wp_sketch1.add(loop2).add(loop3).extrude(0.0390625)
solid=solid.union(solid1)
| 1,317
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015926
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.4140625, 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.8368421052631579).lineTo(0.0, 0.8368421052631579).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.04736842105263158, 0.04736842105263158).circle(0.015789473684210527)
loop2=wp_sketch0.moveTo(0.04736842105263158, 0.7894736842105263).circle(0.015789473684210527)
loop3=wp_sketch0.moveTo(1.2157894736842105, 0.1736842105263158).circle(0.015789473684210527)
loop4=wp_sketch0.moveTo(1.2157894736842105, 0.6789473684210526).circle(0.015789473684210527)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).add(loop4).extrude(0.015625)
solid=solid0
| 1,197
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00011573
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.640625, -0.5390625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(1.2890625, 0.0).lineTo(1.2890625, 1.0719572368421053).lineTo(0.0, 1.0719572368421053).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.2421875, both=True)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.75, -0.640625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(1.5, 0.0).lineTo(1.5, 1.2789473684210526).lineTo(0.0, 1.2789473684210526).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.1640625, both=True)
solid=solid.union(solid1)
| 1,233
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00013416
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.375, -0.375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.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.75, 0.0, -0.09375), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop1=wp_sketch1.moveTo(0.7578947368421053, 0.0).circle(0.7578947368421053)
loop2=wp_sketch1.moveTo(1.1210526315789473, -0.37894736842105264).lineTo(1.1210526315789473, 0.37894736842105264).lineTo(0.37894736842105264, 0.37894736842105264).lineTo(0.37894736842105264, -0.37894736842105264).close()
solid1=wp_sketch1.add(loop1).add(loop2).extrude(0.375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.375, 0.375, -0.09375), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop3=wp_sketch2.moveTo(0.75, 0.0).lineTo(0.75, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop3).extrude(0.375)
solid=solid.union(solid2)
| 1,584
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017670
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.3828125, -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.2154605263157895, 0.11850328947368421).lineTo(0.6571546052631579, 0.11850328947368421).lineTo(0.7648848684210526, 0.0).lineTo(0.7648848684210526, 0.6787006578947369).lineTo(0.9157072368421053, 0.6787006578947369).lineTo(0.9157072368421053, 0.8187500000000001).lineTo(0.7648848684210526, 0.8187500000000001).lineTo(0.7648848684210526, 1.0234375).lineTo(0.0, 1.0234375).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.3828125)
solid=solid0
| 1,141
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017116
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1796875, 0.0, -0.3828125), 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.20550986842105262, 0.0).lineTo(0.10764802631578946, 0.1370065789473684).lineTo(0.8220394736842105, 0.1370065789473684).lineTo(0.7241776315789473, 0.0).lineTo(0.9296874999999999, 0.0).lineTo(0.9296874999999999, 0.20550986842105262).lineTo(0.0, 0.20550986842105262).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.1796875, 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.9296874999999999, 0.0).lineTo(0.9296874999999999, 0.10764802631578946).lineTo(0.7731085526315788, 0.2544407894736842).lineTo(0.15657894736842104, 0.2544407894736842).lineTo(0.0, 0.10764802631578946).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.125)
solid=solid.union(solid1)
| 1,541
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015701
|
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.26842105263157895)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.6015625)
solid=solid0
| 901
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00012046
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0078125, -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.007565789473684211, 0.0).threePointArc((-0.028257243921367487, 0.011348684210526316), (0.007565789473684211, 0.022697368421052633)).lineTo(0.0, 0.022697368421052633).threePointArc((-0.023252154897881863, 0.011348684210526316), (0.0, 0.0)).close()
solid0=wp_sketch0.add(loop0).extrude(0.078125, both=True)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.0234375, 0.03125), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.008141447368421052, -0.03256578947368421).threePointArc((0.019268827417633243, -0.014113312730003328), (0.04070723684210526, -0.016282894736842104)).lineTo(0.04884868421052631, 0.0).lineTo(0.7734374999999999, 0.0).lineTo(0.7734374999999999, 0.07327302631578947).lineTo(0.0, 0.07327302631578947).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.015625, both=True)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.71875, -0.0234375), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.015542763157894735, 0.0).threePointArc((0.028161362789266516, 0.005226795105470324), (0.03338815789473684, 0.017845394736842105)).lineTo(0.03338815789473684, 0.05468749999999999).lineTo(0.017845394736842105, 0.05468749999999999).lineTo(0.017845394736842105, 0.023601973684210523).threePointArc((0.012462154161686684, 0.011898299491430248), (0.0, 0.00863486842105263)).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.0078125, both=True)
solid=solid.union(solid2)
| 2,102
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015729
|
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.6, 0.0).threePointArc((0.6390769536971515, 0.09434011159188825), (0.5447368421052632, 0.05526315789473685)).lineTo(0.5447368421052632, 0.039473684210526314).lineTo(0.1105263157894737, 0.039473684210526314).lineTo(0.1105263157894737, 0.05526315789473685).threePointArc((0.09434011159188825, 0.09434011159188825), (0.05526315789473685, 0.1105263157894737)).lineTo(0.039473684210526314, 0.1105263157894737).lineTo(0.039473684210526314, 0.6394736842105263).lineTo(0.05526315789473685, 0.6394736842105263).threePointArc((0.1105263157894737, 0.6947368421052632), (0.05526315789473685, 0.75)).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.05526315789473685, 0.05526315789473685).circle(0.02368421052631579)
loop2=wp_sketch0.moveTo(0.05526315789473685, 0.6947368421052632).circle(0.02368421052631579)
loop3=wp_sketch0.moveTo(0.6, 0.05526315789473685).circle(0.02368421052631579)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).extrude(0.296875)
solid=solid0
| 1,558
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00013358
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.3125), 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.030592105263157896, -0.045888157894736846).lineTo(1.453125, 0.7648026315789475).lineTo(1.422532894736842, 0.8259868421052632).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0234375)
solid=solid0
| 997
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00014351
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.2578125, 0.4921875), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.2565789473684211, 0.0).circle(0.2565789473684211)
loop1=wp_sketch0.moveTo(0.2565789473684211, 0.0).circle(0.22450657894736842)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.2109375)
solid=solid0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.2578125, 0.4921875), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.2565789473684211, 0.0).circle(0.2565789473684211)
loop1=wp_sketch0.moveTo(0.2565789473684211, 0.0).circle(0.22450657894736842)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(-0.2109375)
solid=solid.union(solid0)
| 1,273
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00018392
|
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.22450657894736842, 0.0).lineTo(0.22450657894736842, 0.08980263157894737).lineTo(0.15197368421052632, 0.08980263157894737).lineTo(0.15197368421052632, 0.328125).lineTo(0.0, 0.328125).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.75)
solid=solid0
| 1,035
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017089
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.546875, 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.53125, 0.0).lineTo(0.53125, 0.08947368421052632).lineTo(0.4417763157894737, 0.08947368421052632).threePointArc((0.4101425913679703, 0.1025768018942861), (0.39703947368421055, 0.13421052631578947)).lineTo(0.39703947368421055, 0.35230263157894737).lineTo(0.13421052631578947, 0.35230263157894737).lineTo(0.13421052631578947, 0.13421052631578947).threePointArc((0.12110740863202969, 0.1025768018942861), (0.08947368421052632, 0.08947368421052632)).lineTo(0.0, 0.08947368421052632).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.26282894736842105, 0.2236842105263158).circle(0.08947368421052632)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.265625)
solid=solid0
| 1,388
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00013210
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.3828125, -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.7578947368421053, 0.0).lineTo(0.7578947368421053, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.03125)
solid=solid0
| 873
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017076
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(1.203125, 0.0).lineTo(1.203125, 0.1013157894736842).lineTo(0.9498355263157894, 0.1013157894736842).lineTo(0.9498355263157894, 0.3546052631578947).lineTo(0.8485197368421052, 0.3546052631578947).threePointArc((0.6015625, 0.10764802631578947), (0.3546052631578947, 0.3546052631578947)).lineTo(0.2532894736842105, 0.3546052631578947).lineTo(0.2532894736842105, 0.1013157894736842).lineTo(0.0, 0.1013157894736842).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.453125)
solid=solid0
| 1,238
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010719
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.7578947368421053, 0.0).circle(0.7578947368421053)
solid0=wp_sketch0.add(loop0).extrude(0.046875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.5, 0.0, 0.046875), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.5052631578947369, 0.0).circle(0.5052631578947369)
solid1=wp_sketch1.add(loop1).extrude(0.046875)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.25, 0.0, 0.1015625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.25263157894736843, 0.0).circle(0.25263157894736843)
solid2=wp_sketch2.add(loop2).extrude(0.046875)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.125, 0.0, 0.1484375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.12631578947368421, 0.0).circle(0.12631578947368421)
solid3=wp_sketch3.add(loop3).extrude(0.046875)
solid=solid.union(solid3)
| 1,421
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00018423
|
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.28421052631578947)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.0546875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.21875, 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.22105263157894733, 0.0).circle(0.22105263157894733)
loop3=wp_sketch1.moveTo(0.22105263157894733, 0.0).circle(0.04144736842105263)
solid1=wp_sketch1.add(loop2).add(loop3).extrude(0.0546875)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.2734375, 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.2802631578947368, 0.0).circle(0.2802631578947368)
loop5=wp_sketch2.moveTo(0.2802631578947368, 0.0).circle(0.221875)
solid2=wp_sketch2.add(loop4).add(loop5).extrude(0.0546875)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.2734375, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop6=wp_sketch3.moveTo(0.2802631578947368, 0.0).circle(0.2802631578947368)
loop7=wp_sketch3.moveTo(0.2802631578947368, 0.0).circle(0.221875)
solid3=wp_sketch3.add(loop6).add(loop7).extrude(0.5625)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = 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)))
loop8=wp_sketch4.moveTo(0.7578947368421053, 0.0).circle(0.7578947368421053)
loop9=wp_sketch4.moveTo(0.7578947368421053, 0.0).circle(0.28421052631578947)
solid4=wp_sketch4.add(loop8).add(loop9).extrude(0.0546875)
solid=solid.union(solid4)
| 1,904
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017062
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.75, -0.234375), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.75, 0.0).lineTo(0.75, 0.12631578947368421).lineTo(0.6157894736842106, 0.12631578947368421).threePointArc((0.5782232032934351, 0.13214406355817748), (0.5605263157894737, 0.16578947368421054)).lineTo(0.5605263157894737, 0.49736842105263157).lineTo(0.1736842105263158, 0.49736842105263157).lineTo(0.1736842105263158, 0.16578947368421054).threePointArc((0.15993469144340702, 0.1341310018468588), (0.12631578947368421, 0.12631578947368421)).lineTo(0.0, 0.12631578947368421).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.3631578947368421, 0.3157894736842105).circle(0.12631578947368421)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.375)
solid=solid0
| 1,352
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00013204
|
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.0734375)
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.0625, 0.0, 0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.06315789473684211, 0.0).circle(0.06315789473684211)
solid1=wp_sketch1.add(loop1).extrude(-0.625)
solid=solid.cut(solid1)
| 1,018
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019067
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0234375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.0, 0.0).threePointArc((0.006720165135604794, -0.016223913811763736), (0.022944078947368423, -0.022944078947368423)).lineTo(0.2370888157894737, -0.022944078947368423).threePointArc((0.2533127296012373, -0.016223913811763736), (0.2600328947368421, 0.0)).lineTo(0.2600328947368421, 0.7036184210526316).threePointArc((0.2533127296012373, 0.7198423348643952), (0.2370888157894737, 0.7265625)).lineTo(0.022944078947368423, 0.7265625).threePointArc((0.006720165135604794, 0.7198423348643952), (0.0, 0.7036184210526316)).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.2578125)
solid=solid0
| 1,250
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00018379
|
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.7471217105263158, 0.0).lineTo(0.7471217105263158, -0.1513157894736842).lineTo(0.71875, -0.1513157894736842).threePointArc((0.6761924342105263, -0.19387335526315788), (0.71875, -0.23643092105263158)).lineTo(0.7471217105263158, -0.23643092105263158).lineTo(0.8984375, -0.23643092105263158).lineTo(0.8984375, 0.1513157894736842).lineTo(0.0, 0.1513157894736842).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.1796875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.640625, 0.390625, 0.0390625), 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.1015625).threePointArc((-0.05078125, 0.05078125), (0.0, 0.0)).close()
solid1=wp_sketch1.add(loop1).extrude(-0.75)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.640625, 0.390625, 0.0390625), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.0, 0.0).threePointArc((0.05078125, 0.05078125), (0.0, 0.1015625)).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(-0.75)
solid=solid.cut(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.1484375, 0.390625, 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.6875, 0.0).lineTo(0.6875, 0.18092105263157895).lineTo(0.0, 0.18092105263157895).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(0.296875)
solid=solid.union(solid3)
| 2,006
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00016426
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.3828125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.12393092105263158, 0.0).lineTo(0.12393092105263158, 0.04506578947368421).lineTo(0.2591282894736842, 0.04506578947368421).lineTo(0.2591282894736842, 0.8111842105263158).lineTo(0.2591282894736842, 0.9463815789473684).lineTo(0.21406250000000002, 0.9463815789473684).lineTo(0.21406250000000002, 1.0703125).lineTo(0.0, 1.0703125).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.515625)
solid=solid0
| 1,102
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00012640
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1484375, -0.4765625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.8908717105263158, -0.2711348684210526).threePointArc((0.9000619278312767, 0.4777138157894737), (0.8908717105263158, 1.2265625)).lineTo(0.0, 0.9554276315789474).threePointArc((-0.3542967124419617, 0.4777138157894737), (0.0, 0.0)).close()
solid0=wp_sketch0.add(loop0).extrude(0.25)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.1484375, -0.4765625, 0.25), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.6450657894736842, -0.19473684210526315).threePointArc((0.6492106172117422, 0.4807565789473684), (0.6450657894736842, 1.15625)).lineTo(0.0, 0.9615131578947368).threePointArc((-0.3565533794001907, 0.4807565789473684), (0.0, 0.0)).close()
solid1=wp_sketch1.add(loop1).extrude(0.3984375)
solid=solid.union(solid1)
| 1,349
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00014557
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = 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)))
loop0=wp_sketch0.moveTo(0.22894736842105262, 0.0).circle(0.22417763157894738)
solid0=wp_sketch0.add(loop0).extrude(0.75, both=True)
solid=solid0
| 843
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015649
|
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.013980263157894735, 0.0).lineTo(0.027549342105263157, 0.0).lineTo(0.020559210526315787, 0.0078125).lineTo(0.020559210526315787, 0.01850328947368421).threePointArc((0.013774671052631578, 0.03904038358192568), (0.006990131578947368, 0.01850328947368421)).lineTo(0.006990131578947368, 0.0078125).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 1,143
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00018147
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.078125, 0.0, -0.0546875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.15625, 0.0).lineTo(0.15625, 0.10855263157894736).lineTo(0.0, 0.10855263157894736).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 956
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017274
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6875, -0.6640625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.4140625, 0.0).lineTo(1.4140625, 1.4140625).lineTo(0.0, 1.4140625).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.684703947368421, 0.6698190789473684).circle(0.41677631578947366)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.5703125)
solid=solid0
| 949
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00013012
|
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.2210526315789474).lineTo(0.2210526315789474, 0.2210526315789474).lineTo(0.2210526315789474, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.375)
solid=solid0
| 922
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017260
|
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.29605263157894735, 0.0).circle(0.29605263157894735)
solid0=wp_sketch0.add(loop0).extrude(0.8359375)
solid=solid0
| 915
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010241
|
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.0, 0.0).threePointArc((0.00028903936067116925, -0.0006978027445919874), (0.000986842105263158, -0.000986842105263158)).lineTo(0.006825657894736842, -0.000986842105263158).threePointArc((0.00752346063932883, -0.0006978027445919874), (0.0078125, 0.0)).lineTo(0.0078125, 0.005838815789473684).threePointArc((0.00752346063932883, 0.006536618534065673), (0.006825657894736842, 0.006825657894736842)).lineTo(0.000986842105263158, 0.006825657894736842).threePointArc((0.00028903936067116925, 0.006536618534065673), (0.0, 0.005838815789473684)).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.0, 0.0).threePointArc((0.000986842105263158, -0.00040876338392081704), (0.001973684210526316, 0.0)).lineTo(0.005838815789473684, 0.0).threePointArc((0.006536618534065673, 0.00028903936067116925), (0.006825657894736842, 0.000986842105263158)).lineTo(0.006825657894736842, 0.004851973684210526).threePointArc((0.006536618534065673, 0.0055497764288025145), (0.005838815789473684, 0.005838815789473684)).lineTo(0.001973684210526316, 0.005838815789473684).threePointArc((0.0012758814659343271, 0.0055497764288025145), (0.000986842105263158, 0.004851973684210526)).lineTo(0.000986842105263158, 0.000986842105263158).close()
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.75)
solid=solid0
| 1,871
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00014755
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.4375, -0.1328125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.06389802631578947, 0.0).lineTo(0.30123355263157897, -0.19169407894736842).lineTo(0.30123355263157897, -0.30123355263157897).lineTo(0.8671875000000001, -0.30123355263157897).lineTo(0.8671875000000001, 0.5659539473684211).lineTo(0.30123355263157897, 0.5659539473684211).lineTo(0.30123355263157897, 0.45641447368421056).lineTo(0.06389802631578947, 0.2738486842105263).lineTo(0.0, 0.2738486842105263).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.4375, -0.0390625, 0.75), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.38240131578947373, 0.0).lineTo(0.38240131578947373, -0.39259868421052635).lineTo(0.484375, -0.39259868421052635).lineTo(0.484375, 0.4690789473684211).lineTo(0.38240131578947373, 0.4690789473684211).lineTo(0.38240131578947373, 0.07648026315789475).lineTo(0.0, 0.07648026315789475).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.6015625)
solid=solid.cut(solid1)
| 1,580
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00012442
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.359375, 0.109375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.055263157894736833, 0.0).circle(0.055263157894736833)
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 845
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00016624
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1953125, 0.7265625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.028782894736842105, -0.30838815789473684).threePointArc((0.1953125, -0.2763243203147953), (0.36184210526315785, -0.30838815789473684)).lineTo(0.390625, 0.0).lineTo(0.19736842105263158, 0.0).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.390625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0390625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.3036184210526316, -0.06842105263157895).threePointArc((0.324057922486372, 0.10182120164646614), (0.40625, 0.2523026315789474)).lineTo(0.11973684210526317, 0.37203947368421053).lineTo(0.059868421052631585, 0.1881578947368421).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.390625)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.5859375, -0.46875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.16052631578947368, -0.11537828947368421).lineTo(0.3160361842105263, -0.23075657894736842).lineTo(0.4765625, 0.03511513157894737).threePointArc((0.31977566166405536, 0.10637433055187301), (0.2006578947368421, 0.23075657894736842)).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.390625)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.109375, -0.4375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.16052631578947368, -0.2658717105263158).lineTo(0.3160361842105263, -0.15049342105263158).lineTo(0.4765625, -0.03511513157894737).lineTo(0.2759046052631579, 0.2006578947368421).threePointArc((0.1572697751488771, 0.07376742265713603), (0.0, 0.0)).close()
solid3=wp_sketch3.add(loop3).extrude(0.390625)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(0.34375, 0.2890625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch4.moveTo(0.0, 0.0).threePointArc((0.08219207751362805, -0.15048142993248112), (0.10263157894736843, -0.3207236842105263)).lineTo(0.40625, -0.2523026315789474).lineTo(0.34638157894736843, -0.06414473684210527).lineTo(0.28651315789473686, 0.11973684210526317).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(0.390625)
solid=solid.union(solid4)
# Generating a workplane for sketch 5
wp_sketch5 = cq.Workplane(cq.Plane(cq.Vector(-0.453125, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop5=wp_sketch5.moveTo(0.45394736842105265, 0.0).circle(0.45394736842105265)
solid5=wp_sketch5.add(loop5).extrude(0.390625)
solid=solid.union(solid5)
| 2,656
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019517
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5234375, 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.5234375, 0.0).lineTo(0.5234375, 0.37467105263157896).lineTo(0.0, 0.37467105263157896).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.5234375, 0.0).lineTo(0.5234375, 0.37467105263157896).lineTo(0.0, 0.37467105263157896).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.75)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.1484375, 0.078125, 0.0), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop2=wp_sketch2.moveTo(0.296875, 0.0).lineTo(0.296875, 0.07500000000000001).lineTo(0.0, 0.07500000000000001).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(-0.0390625)
solid=solid.cut(solid2)
| 1,436
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010243
|
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.007401315789473684, 0.0).threePointArc((0.007692066933053679, 0.0001204330669463209), (0.0078125, 0.00041118421052631577)).lineTo(0.0078125, 0.000575657894736842).threePointArc((0.007692066933053679, 0.000866409038316837), (0.007401315789473684, 0.000986842105263158)).lineTo(0.0014802631578947369, 0.000986842105263158).threePointArc((0.0011313617855987425, 0.0011313617855987425), (0.000986842105263158, 0.0014802631578947369)).lineTo(0.000986842105263158, 0.007401315789473684).threePointArc((0.000866409038316837, 0.007692066933053679), (0.000575657894736842, 0.0078125)).lineTo(0.00041118421052631577, 0.0078125).threePointArc((0.0001204330669463209, 0.007692066933053679), (0.0, 0.007401315789473684)).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 1,473
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017276
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.2890625, -0.140625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.12631578947368421, 0.0).lineTo(0.12631578947368421, 0.14210526315789473).lineTo(0.3736842105263158, 0.14210526315789473).lineTo(0.3736842105263158, 0.0).lineTo(0.5, 0.0).lineTo(0.5, 0.3368421052631579).lineTo(0.0, 0.3368421052631579).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.125, -0.2890625, 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.5, 0.0).lineTo(0.5, 0.12631578947368421).lineTo(0.0, 0.12631578947368421).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.625)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.1796875, -0.0390625, 0.0703125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.06315789473684211, 0.0).circle(0.06184210526315789)
solid2=wp_sketch2.add(loop2).extrude(-0.625)
solid=solid.cut(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.4453125, -0.0390625, 0.0703125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.06315789473684211, 0.0).circle(0.06184210526315789)
solid3=wp_sketch3.add(loop3).extrude(-0.625)
solid=solid.cut(solid3)
| 1,782
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00014794
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 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.5, 0.0).lineTo(1.5, 0.6).lineTo(0.0, 0.6).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.1875)
solid=solid0
| 913
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00018186
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.75, 0.0).lineTo(0.75, 0.37894736842105264).lineTo(0.0, 0.37894736842105264).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.5605263157894737, 0.18947368421052632).circle(0.09473684210526316)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.375)
solid=solid0
| 951
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00012642
|
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, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.011842105263157895, 0.0).circle(0.011842105263157895)
loop1=wp_sketch0.moveTo(0.011842105263157895, 0.0).circle(0.009375)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.75)
solid=solid0
| 895
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019717
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.7109375, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.718421052631579, 0.0).circle(0.718421052631579)
loop1=wp_sketch0.moveTo(0.718421052631579, 0.0).circle(0.6735197368421052)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.671875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.4140625, 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.4144736842105263, 0.0).circle(0.4144736842105263)
loop3=wp_sketch1.moveTo(0.4144736842105263, 0.0).circle(0.3453947368421053)
solid1=wp_sketch1.add(loop2).add(loop3).extrude(0.078125)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch2.moveTo(0.7578947368421053, 0.0).circle(0.7578947368421053)
loop5=wp_sketch2.moveTo(0.7578947368421053, 0.0).circle(0.4105263157894737)
solid2=wp_sketch2.add(loop4).add(loop5).extrude(0.078125)
solid=solid.union(solid2)
| 1,408
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017712
|
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)
solid0=wp_sketch0.add(loop0).extrude(0.1171875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.3984375, -0.1171875, 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.40263157894736845, 0.0).circle(0.40263157894736845)
solid1=wp_sketch1.add(loop1).extrude(0.359375)
solid=solid.union(solid1)
| 1,182
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017074
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.703125, -0.1875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.15986842105263158, -0.15986842105263158).threePointArc((0.28125, -0.10959052483037099), (0.40263157894736845, -0.15986842105263158)).lineTo(0.5625, 0.0).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.703125, -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.5625, 0.0).lineTo(0.40263157894736845, 0.15986842105263158).threePointArc((0.28125, 0.10959052483037099), (0.15986842105263158, 0.15986842105263158)).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.703125, -0.75, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.15986842105263158, 0.15986842105263158).threePointArc((0.10959052483037099, 0.28125), (0.15986842105263158, 0.40263157894736845)).lineTo(0.0, 0.5625).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.2265625)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.296875, -0.5859375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.1625, -0.1625).lineTo(0.1625, 0.40625).lineTo(0.0, 0.24375000000000002).threePointArc((0.05048227791422102, 0.12187500000000001), (0.0, 0.0)).close()
solid3=wp_sketch3.add(loop3).extrude(0.2265625)
solid=solid.union(solid3)
| 1,809
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00018347
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.375, 0.0, -0.375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.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.375, both=True)
solid=solid0
| 918
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00011405
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.3359375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.3315789473684211, 0.0).lineTo(0.3315789473684211, -0.3315789473684211).lineTo(0.41842105263157897, -0.3315789473684211).lineTo(0.41842105263157897, 0.0).lineTo(0.75, 0.0).lineTo(0.75, 0.0868421052631579).lineTo(0.41842105263157897, 0.0868421052631579).lineTo(0.0, 0.0868421052631579).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.203125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.4140625, 0.140625, 0.1015625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.027631578947368417, 0.0).circle(0.027631578947368417)
solid1=wp_sketch1.add(loop1).extrude(-0.0859375)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.140625, 0.3359375, 0.1015625), 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.027631578947368417, 0.0).circle(0.027631578947368417)
solid2=wp_sketch2.add(loop2).extrude(-0.0859375)
solid=solid.cut(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.7109375, 0.4140625, 0.140625), 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.015789473684210527, 0.0).circle(0.015460526315789473)
solid3=wp_sketch3.add(loop3).extrude(-0.0859375)
solid=solid.cut(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(0.5390625, 0.4140625, 0.140625), 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.015789473684210527, 0.0).circle(0.015460526315789473)
solid4=wp_sketch4.add(loop4).extrude(-0.0859375)
solid=solid.cut(solid4)
# Generating a workplane for sketch 5
wp_sketch5 = cq.Workplane(cq.Plane(cq.Vector(0.5390625, 0.4140625, 0.0546875), 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.015789473684210527, 0.0).circle(0.015460526315789473)
solid5=wp_sketch5.add(loop5).extrude(-0.0859375)
solid=solid.cut(solid5)
# Generating a workplane for sketch 6
wp_sketch6 = cq.Workplane(cq.Plane(cq.Vector(0.7109375, 0.4140625, 0.0546875), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop6=wp_sketch6.moveTo(0.015789473684210527, 0.0).circle(0.015460526315789473)
solid6=wp_sketch6.add(loop6).extrude(-0.0859375)
solid=solid.cut(solid6)
| 2,728
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00014569
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.25, -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.5052631578947369, 0.0).lineTo(0.5052631578947369, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.25263157894736843, 0.3).circle(0.09473684210526316)
loop2=wp_sketch0.moveTo(0.25263157894736843, 1.2).circle(0.09473684210526316)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).extrude(0.125)
solid=solid0
| 1,050
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00013206
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.015625, -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.03125, 0.0).lineTo(0.03125, 0.03125).lineTo(0.0, 0.03125).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 859
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017060
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.1796875, -0.6171875), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
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.75)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0703125, -0.6171875), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.5, 0.0).lineTo(0.5, 0.5).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.75)
solid=solid.union(solid1)
| 1,142
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017935
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.7421875, 0.0, -0.7421875), 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.7382401315789474, 0.4712171052631579).lineTo(1.4764802631578948, 0.0).lineTo(0.7382401315789474, 1.4921875).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.375)
solid=solid0
| 984
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015850
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0390625, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.039473684210526314, 0.0).circle(0.039473684210526314)
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 841
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015688
|
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.25)
solid=solid0
| 832
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019924
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.515625, 0.0, 0.265625), 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.37203947368421053, 0.0).threePointArc((0.609375, -0.23733552631578947), (0.8467105263157895, 0.0)).lineTo(1.21875, 0.0).lineTo(1.21875, 0.4875).lineTo(0.0, 0.4875).lineTo(0.0, 0.0).close()
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.515625, 0.0, -0.21875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(1.21875, 0.0).lineTo(1.21875, 0.4875).lineTo(0.8467105263157895, 0.4875).threePointArc((0.609375, 0.2501644736842105), (0.37203947368421053, 0.4875)).lineTo(0.0, 0.4875).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.3203125)
solid=solid.union(solid1)
| 1,400
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019930
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.2109375, 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.2131578947368421, 0.0).circle(0.2131578947368421)
solid0=wp_sketch0.add(loop0).extrude(0.1484375)
solid=solid0
| 914
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010653
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.2890625, -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.2890625, 0.0).lineTo(0.2890625, 0.09736842105263158).lineTo(0.0, 0.09736842105263158).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.1796875, -0.6875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.06439144736842105, 0.0).lineTo(0.06439144736842105, -0.06439144736842105).lineTo(0.16217105263157894, -0.06439144736842105).lineTo(0.16217105263157894, 0.2265625).lineTo(0.06439144736842105, 0.2265625).lineTo(0.06439144736842105, 0.16217105263157894).lineTo(0.0, 0.16217105263157894).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.0625)
solid=solid.union(solid1)
| 1,305
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017128
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.0546875, -0.1015625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.375, 0.0).lineTo(0.375, 0.375).lineTo(0.0, 0.375).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.375, 0.0703125, -0.1015625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.25, 0.0).lineTo(0.25, 0.25).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.375)
solid=solid.union(solid1)
| 1,153
|
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.