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/00017873
|
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, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.07500000000000001, 0.0).circle(0.07500000000000001)
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/00017683
|
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.25263157894736843, 0.0).lineTo(0.25263157894736843, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.03125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.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.24868421052631579, 0.0).lineTo(0.24868421052631579, 0.375).lineTo(0.0, 0.375).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.03125)
solid=solid.union(solid1)
| 1,166
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00011580
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.0078125, 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.015789473684210527).lineTo(0.0, 0.015789473684210527).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.59375)
solid=solid0
| 877
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00012937
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.2578125, 0.0, 0.6875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.0, 0.0).threePointArc((0.2544407894736842, -1.4147865645903537), (0.5088815789473684, 0.0)).lineTo(0.49391447368421054, -0.05986842105263158).threePointArc((0.2544407894736842, -1.391432246549435), (0.014967105263157894, -0.05986842105263158)).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.03125)
solid=solid0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.2578125, 0.0, 0.6875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.0, 0.0).threePointArc((0.2544407894736842, -1.4147865645903537), (0.5088815789473684, 0.0)).lineTo(0.49391447368421054, -0.05986842105263158).threePointArc((0.2544407894736842, -1.391432246549435), (0.014967105263157894, -0.05986842105263158)).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.03125)
solid=solid.union(solid0)
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.2578125, 0.0, 0.6875), 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.02138157894736842, -0.05345394736842105).threePointArc((0.25390625, -0.011635794471364898), (0.4864309210526316, -0.05345394736842105)).lineTo(0.5078125, 0.0).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.03125)
solid_temp=solid1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.2578125, 0.0, 0.6875), 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.02138157894736842, -0.05345394736842105).threePointArc((0.25390625, -0.011635794471364898), (0.4864309210526316, -0.05345394736842105)).lineTo(0.5078125, 0.0).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.03125)
solid_temp=solid_temp.union(solid1)
solid=solid.union(solid_temp)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.2578125, -0.3515625, 0.6875), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.5078125, 0.0).lineTo(0.5078125, 0.3207236842105263).lineTo(0.0, 0.3207236842105263).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.2578125, 0.03125, 0.6875), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.5078125, 0.0).lineTo(0.5078125, 0.3207236842105263).lineTo(0.0, 0.3207236842105263).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.2578125, -0.03125, 0.6875), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch4.moveTo(0.5078125, 0.0).lineTo(0.5078125, 0.05879934210526316).lineTo(0.0, 0.05879934210526316).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(0.0625)
solid=solid.union(solid4)
| 3,006
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00012704
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.3125, -0.3125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.6171875, 0.0).lineTo(0.6171875, 0.6171875).lineTo(0.0, 0.6171875).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.65625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.1640625, -0.3125, 0.65625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.3203125, 0.0).threePointArc((0.16015625, 0.16015625), (0.0, 0.0)).close()
solid1=wp_sketch1.add(loop1).extrude(0.0390625)
solid=solid.union(solid1)
| 1,077
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010661
|
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.45).lineTo(0.0, 0.45).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.0, 0.015625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.028618421052631578, 0.0).lineTo(0.028618421052631578, 0.453125).lineTo(0.0, 0.453125).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.015625)
solid=solid.union(solid1)
| 1,079
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017126
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.421875, 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.703125, 0.0).lineTo(0.703125, 0.35526315789473684).lineTo(0.5106907894736842, 0.35526315789473684).lineTo(0.5476973684210527, 0.2590460526315789).lineTo(0.14802631578947367, 0.2590460526315789).lineTo(0.1850328947368421, 0.35526315789473684).lineTo(0.0, 0.35526315789473684).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.0, -0.2734375, 0.2578125), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.3984375, 0.0).lineTo(0.3564967105263158, 0.09226973684210527).lineTo(0.03774671052631579, 0.09226973684210527).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.203125)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.2734375, 0.2578125), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.3984375, 0.0).lineTo(0.3564967105263158, 0.09226973684210527).lineTo(0.03774671052631579, 0.09226973684210527).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(-0.3828125)
solid=solid.cut(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.421875, 0.0), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop3=wp_sketch3.moveTo(0.703125, 0.0).lineTo(0.703125, 0.17763157894736842).lineTo(0.0, 0.17763157894736842).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(0.75)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(0.296875, -0.1015625, 0.171875), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch4.moveTo(0.453125, 0.0).lineTo(0.453125, 0.08108552631578947).lineTo(0.0, 0.08108552631578947).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(-0.359375)
solid=solid.cut(solid4)
| 2,291
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015731
|
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/00015725
|
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.22894736842105262)
solid0=wp_sketch0.add(loop0).extrude(0.5546875)
solid=solid0
| 844
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017132
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.3984375, 0.0, -0.4140625), 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.015625, 0.0).lineTo(1.015625, 0.16036184210526316).lineTo(0.0, 0.16036184210526316).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 959
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019679
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.03125, 0.0, 0.71875), 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.71875, -0.71875).lineTo(0.71875, 0.0).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.71875)
solid=solid0
| 916
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00013432
|
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.75, 0.0).lineTo(0.75, 0.2368421052631579).lineTo(0.41842105263157897, 0.2368421052631579).lineTo(0.41842105263157897, 0.14210526315789473).threePointArc((0.375, 0.09868421052631579), (0.3315789473684211, 0.14210526315789473)).lineTo(0.3315789473684211, 0.2368421052631579).lineTo(0.0, 0.2368421052631579).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.1015625)
solid=solid0
| 1,126
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017085
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.2265625), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.10855263157894737, 0.0).lineTo(0.10855263157894737, 0.10855263157894737).lineTo(0.32113486842105265, 0.10855263157894737).lineTo(0.32113486842105265, 0.0).lineTo(0.4296875, 0.0).lineTo(0.4296875, 0.2939967105263158).lineTo(0.0, 0.2939967105263158).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.640625)
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/00013208
|
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/00015679
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.7109375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.08231907894736842, 0.0).lineTo(0.08231907894736842, 0.6286184210526315).lineTo(0.6286184210526315, 0.6286184210526315).lineTo(0.6286184210526315, 0.0).lineTo(0.7109375, 0.0).lineTo(0.7109375, 0.7109375).lineTo(0.0, 0.7109375).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.6640625)
solid=solid0
| 1,008
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010701
|
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.296875)
solid=solid0
| 839
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010715
|
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.078125)
solid=solid0
| 836
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019731
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, -0.4921875), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(1.049342105263158, 0.0).lineTo(1.049342105263158, 1.1328125).lineTo(0.0, 1.1328125).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.359375)
solid=solid0
| 956
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00013552
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1484375, 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.15000000000000002, 0.0).circle(0.15000000000000002)
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/00017734
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0859375, 0.0, -0.75), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.3717927631578947, 0.0).lineTo(0.3717927631578947, 1.0703125).lineTo(0.0, 1.0703125).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.1875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.1484375, 0.0, 0.078125), 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.05131578947368422, 0.0).circle(0.05131578947368422)
solid1=wp_sketch1.add(loop1).extrude(-0.921875)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.1484375, 0.0, -0.625), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.05131578947368422, 0.0).circle(0.05131578947368422)
solid2=wp_sketch2.add(loop2).extrude(-0.921875)
solid=solid.cut(solid2)
| 1,497
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019719
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.3515625, 0.0546875), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.11595394736842105, 0.0).circle(0.11595394736842105)
loop1=wp_sketch0.moveTo(1.1015625, -0.3014802631578947).lineTo(1.1015625, 0.0).threePointArc((0.8883837615271477, 0.08830152468504242), (0.8000822368421052, 0.3014802631578947)).lineTo(0.11595394736842105, 0.3014802631578947).threePointArc((0.4174342105263158, 0.0), (0.11595394736842105, -0.3014802631578947)).close()
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.4140625)
solid=solid0
| 1,170
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015645
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.34375, 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.32195723684210525, 0.0).lineTo(0.32195723684210525, 0.16455592105263156).threePointArc((0.12825128724849202, 0.3863486842105263), (0.32195723684210525, 0.608141447368421)).lineTo(0.32195723684210525, 0.6796875).lineTo(0.0, 0.6796875).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.03125, 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(0.0, 0.0).threePointArc((0.030427631578947366, 0.002056842028946673), (0.06085526315789473, 0.0)).lineTo(0.06085526315789473, 0.078125).lineTo(0.0, 0.078125).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.03125, 0.0, -0.3828125), 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.3291118421052631, 0.0).lineTo(0.3291118421052631, 0.6796875).lineTo(0.0, 0.6796875).lineTo(0.0, 0.608141447368421).threePointArc((0.19370594959361323, 0.3863486842105263), (0.0, 0.16455592105263156)).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.75)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.03125, 0.0, -0.3828125), 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.029358552631578945, 0.0).lineTo(0.05699013157894737, 0.0).lineTo(0.05699013157894737, 0.1640625).threePointArc((0.028495065789473684, 0.16213629523505393), (0.0, 0.1640625)).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(0.75)
solid=solid.union(solid3)
| 2,244
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00018413
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.75, 0.0).lineTo(0.75, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0234375)
solid=solid0
| 842
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00011351
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5390625, 0.0, -0.6015625), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.5447368421052632, 0.0).lineTo(1.078125, 0.0).lineTo(0.8625, 0.6014802631578948).lineTo(0.7830592105263159, 0.6014802631578948).threePointArc((0.5390625, 0.35748355263157894), (0.2950657894736842, 0.6014802631578948)).lineTo(0.215625, 0.6014802631578948).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75, both=True)
solid=solid0
| 1,109
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00018188
|
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.3)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.0625)
solid=solid0
| 882
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017293
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.3359375, 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.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.4379111842105263).lineTo(0.14802631578947367, 0.4379111842105263).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()
loop1=wp_sketch0.moveTo(0.29605263157894735, 0.2713815789473684).circle(0.09868421052631579)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.296875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.3203125, -0.140625, 0.40625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch1.moveTo(0.039473684210526314, 0.0).circle(0.039473684210526314)
solid1=wp_sketch1.add(loop2).extrude(-0.4921875)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.1640625, -0.1484375, 0.40625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch2.moveTo(0.039473684210526314, 0.0).circle(0.039473684210526314)
solid2=wp_sketch2.add(loop3).extrude(-0.4921875)
solid=solid.cut(solid2)
| 1,804
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015484
|
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/00014942
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6640625, -0.21875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.7240131578947369, 0.0).lineTo(0.7240131578947369, 0.96875).lineTo(0.0, 0.96875).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0625)
solid=solid0
| 883
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00012499
|
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.28421052631578947, 0.0).lineTo(0.28421052631578947, 0.5625).lineTo(0.0, 0.5625).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.046875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.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.28125, 0.0).lineTo(0.28125, 0.04736842105263158).lineTo(0.0, 0.04736842105263158).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.0, 0.140625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.28125, 0.0).lineTo(0.28125, 0.04736842105263158).lineTo(0.0, 0.04736842105263158).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(-0.75)
solid=solid.union(solid2)
| 1,330
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015490
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.2109375, -0.3046875), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.049342105263157895, 0.0).lineTo(0.049342105263157895, 0.1953125).lineTo(0.0, 0.1953125).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.046875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.2734375, -0.3046875), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.049342105263157895, 0.0).lineTo(0.049342105263157895, 0.1953125).lineTo(0.0, 0.1953125).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.046875)
solid=solid.union(solid1)
| 1,250
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00016199
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1484375, -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.3, 0.0).lineTo(0.3, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.03125, both=True)
solid=solid0
| 847
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010265
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5625, -0.203125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.13042763157894738, 0.0).lineTo(0.13042763157894738, 0.28092105263157896).lineTo(0.5618421052631579, 0.28092105263157896).lineTo(0.5618421052631579, 0.672203947368421).lineTo(0.13042763157894738, 0.672203947368421).lineTo(0.13042763157894738, 0.953125).lineTo(0.0, 0.953125).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.390625)
solid=solid0
| 1,057
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00012300
|
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.25, 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.25263157894736843, 0.0).circle(0.25263157894736843)
solid1=wp_sketch1.add(loop1).extrude(0.390625)
solid=solid.union(solid1)
| 1,031
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017278
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.4765625, 0.0, 0.390625), 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.359375, 0.0).lineTo(0.359375, 0.359375).lineTo(0.0, 0.359375).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.359375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.1171875, -0.2421875, 0.390625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.2421875, 0.0).lineTo(0.2421875, 0.2421875).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.359375)
solid=solid.union(solid1)
| 1,206
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00016166
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1640625, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.16578947368421051, 0.0).circle(0.16578947368421051)
loop1=wp_sketch0.moveTo(0.16578947368421051, 0.0).circle(0.09325657894736841)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.5)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.1640625, 0.0, 0.5), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch1.moveTo(0.16578947368421051, 0.0).circle(0.16578947368421051)
loop3=wp_sketch1.moveTo(0.16578947368421051, 0.0).circle(0.15197368421052632)
solid1=wp_sketch1.add(loop2).add(loop3).extrude(0.25)
solid=solid.union(solid1)
| 1,159
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00014981
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.546875, -0.2265625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.8515625, 0.0).lineTo(0.8515625, 0.5647203947368421).lineTo(0.0, 0.5647203947368421).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.265625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.2265625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.21011513157894735, 0.0).lineTo(0.21011513157894735, 0.5703125).lineTo(0.0, 0.5703125).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.078125)
solid=solid.union(solid1)
| 1,130
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00014759
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.546875, -0.296875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.4917763157894737, 0.0).lineTo(0.8984375, 0.2837171052631579).lineTo(0.680921052631579, 0.5958059210526315).lineTo(0.3782894736842105, 0.3782894736842105).lineTo(0.0, 0.3782894736842105).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 977
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00011621
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.75, 0.0).lineTo(0.75, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.03125)
solid=solid0
| 840
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010570
|
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.07105263157894737, 0.0).circle(0.06957236842105263)
loop1=wp_sketch0.moveTo(0.05180921052631579, -0.032565789473684215).lineTo(0.08881578947368421, -0.032565789473684215).lineTo(0.10657894736842105, 0.0).lineTo(0.08881578947368421, 0.032565789473684215).lineTo(0.05180921052631579, 0.032565789473684215).lineTo(0.03404605263157895, 0.0).close()
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.359375)
solid=solid0
| 1,096
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010202
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.015625, -0.0078125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.019736842105263157, 0.0).circle(0.019736842105263157)
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.015625, 0.0078125, 0.0), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop1=wp_sketch1.moveTo(0.015625, 0.0).threePointArc((0.007041184092622423, 0.001832114182599111), (0.0, 0.007072368421052631)).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.015625, -0.0234375, 0.0), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop2=wp_sketch2.moveTo(0.0, 0.0).threePointArc((0.007041184092622423, 0.0052402542384535206), (0.015625, 0.007072368421052631)).lineTo(0.0, 0.007072368421052631).lineTo(0.0, 0.0).close()
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.0, -0.03125, 0.0), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop3=wp_sketch3.moveTo(0.0, 0.0).threePointArc((0.008583815907377576, -0.001832114182599111), (0.015625, -0.007072368421052631)).lineTo(0.015625, 0.0).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(0.046875)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0078125, 0.0), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop4=wp_sketch4.moveTo(0.015625, 0.0).lineTo(0.015625, 0.007072368421052631).threePointArc((0.008583815907377576, 0.001832114182599111), (0.0, 0.0)).close()
solid4=wp_sketch4.add(loop4).extrude(0.046875)
solid=solid.union(solid4)
# Generating a workplane for sketch 5
wp_sketch5 = cq.Workplane(cq.Plane(cq.Vector(-0.015625, 0.0, 0.0), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop5=wp_sketch5.moveTo(0.0, 0.0).threePointArc((0.014144736842105262, -0.006374059547689249), (0.028289473684210524, 0.0)).lineTo(0.028289473684210524, 0.024999999999999998).threePointArc((0.014144736842105262, 0.03137405954768925), (0.0, 0.024999999999999998)).lineTo(0.0, 0.0).close()
solid5=wp_sketch5.add(loop5).extrude(0.046875)
solid=solid.union(solid5)
| 2,680
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00016897
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.6953125, 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.7026315789473685, 0.0).circle(0.7026315789473685)
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.75, -0.640625, 0.0), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.6513157894736843, 0.0).circle(0.6377467105263158)
solid1=wp_sketch1.add(loop1).extrude(-1.0)
solid=solid.cut(solid1)
| 1,133
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00013904
|
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.6394736842105263).lineTo(0.0, 0.6394736842105263).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.1875)
solid=solid0
| 867
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019597
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0546875, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.055263157894736833, 0.0).circle(0.055263157894736833)
loop1=wp_sketch0.moveTo(0.055263157894736833, 0.0).circle(0.03684210526315789)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.75)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.0546875, -0.75, -0.0546875), 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.05468749999999999, 0.0).threePointArc((0.01601759790386066, 0.01601759790386068), (0.0, 0.05468749999999999)).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop2).extrude(-0.375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.75, -0.0546875), 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.05468749999999999, 0.0).lineTo(0.05468749999999999, 0.05468749999999999).threePointArc((0.03866990209613932, 0.01601759790386066), (0.0, 0.0)).close()
solid2=wp_sketch2.add(loop3).extrude(-0.375)
solid=solid.union(solid2)
| 1,659
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00014919
|
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.5921052631578948, 0.0).lineTo(0.5921052631578948, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.3, 0.37894736842105264).circle(0.09473684210526316)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.1875)
solid=solid0
| 932
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00016698
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.7109375, 0.65625), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.6640625, -0.4453125).lineTo(0.6640625, -0.4140625).threePointArc((0.6914184192640249, -0.37111808852804984), (0.7421875, -0.375)).lineTo(0.0546875, 0.078125).threePointArc((-0.01171875, 0.06640625), (0.0, 0.0)).close()
loop1=wp_sketch0.moveTo(0.0, 0.0).threePointArc((0.061574673249762624, 0.005516775583412459), (0.015625, 0.046875)).lineTo(0.015625, 0.03125).close()
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.0234375)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.046875, 0.0), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop2=wp_sketch1.moveTo(0.005098684210526316, 0.010197368421052632).threePointArc((0.045888157894736846, -0.04078947368421053), (0.096875, 0.0)).lineTo(0.096875, 0.2421875).threePointArc((0.07213367430535504, 0.19963651877549132), (0.022944078947368423, 0.20139802631578949)).lineTo(0.0, 0.21669407894736842).lineTo(0.0, 0.0).close()
loop3=wp_sketch1.moveTo(0.0484375, 0.0484375).circle(0.012746710526315791)
solid1=wp_sketch1.add(loop2).add(loop3).extrude(0.0234375)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.046875, 0.2421875), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop4=wp_sketch2.moveTo(0.05131578947368422, 0.0).circle(0.05131578947368422)
solid2=wp_sketch2.add(loop4).extrude(0.0234375)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.046875, 0.21875), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop5=wp_sketch3.moveTo(0.01949013157894737, -0.012828947368421053).threePointArc((0.0052029297103468085, 0.002863264409319926), (0.0, 0.0234375)).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop5).extrude(0.0234375)
solid=solid.union(solid3)
| 2,250
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00013938
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0078125, 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.011842105263157895, 0.0).circle(0.011842105263157895)
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 913
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00014931
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5234375, 0.5703125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.18552631578947368, 0.0).circle(0.18552631578947368)
loop1=wp_sketch0.moveTo(0.18552631578947368, 0.0).circle(0.06184210526315789)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.125)
solid=solid0
| 911
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00014925
|
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.28421052631578947).lineTo(0.0, 0.28421052631578947).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.18947368421052632, 0.14210526315789473).circle(0.031578947368421054)
loop2=wp_sketch0.moveTo(0.37894736842105264, 0.14210526315789473).circle(0.04736842105263158)
loop3=wp_sketch0.moveTo(0.5605263157894737, 0.14210526315789473).circle(0.031578947368421054)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).extrude(0.1875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.34375, 0.0, 0.09375), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop4=wp_sketch1.moveTo(0.035526315789473684, 0.0).circle(0.035526315789473684)
solid1=wp_sketch1.add(loop4).extrude(-0.140625)
solid=solid.cut(solid1)
| 1,384
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019742
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.75, 0.0).lineTo(0.75, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.03125)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.4453125, 0.03125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.3046875, 0.0).lineTo(0.3046875, 0.3046875).lineTo(0.0, 0.3046875).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.03125)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.03125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.3046875, 0.0).lineTo(0.3046875, 0.3046875).lineTo(0.0, 0.3046875).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.03125)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.4453125, 0.4453125, 0.03125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.3046875, 0.0).lineTo(0.3046875, 0.3046875).lineTo(0.0, 0.3046875).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(0.03125)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(0.4453125, 0.0, 0.03125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch4.moveTo(0.3046875, 0.0).lineTo(0.3046875, 0.3046875).lineTo(0.0, 0.3046875).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(0.03125)
solid=solid.union(solid4)
| 1,728
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00014528
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 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.06315789473684211, 0.0).circle(0.06184210526315789)
solid0=wp_sketch0.add(loop0).extrude(0.078125)
solid=solid0
| 916
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017021
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1875, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.18947368421052632, 0.0).circle(0.18947368421052632)
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.09375, 0.0, 0.375), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.09473684210526316, 0.0).circle(0.09473684210526316)
solid1=wp_sketch1.add(loop1).extrude(0.375)
solid=solid.union(solid1)
| 1,029
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017747
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5703125, -0.2890625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.3203125, 0.0).lineTo(1.3203125, 0.4864309210526316).lineTo(0.0, 0.4864309210526316).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.140625)
solid=solid0
| 891
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017753
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1640625, -0.5078125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.9003289473684211, 0.0).lineTo(0.9003289473684211, 1.2578125).lineTo(0.0, 1.2578125).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0390625)
solid=solid0
| 892
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019959
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.49736842105263157, 0.0).lineTo(0.49736842105263157, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.296875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.0, 0.0, 0.296875), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.15, 0.0).lineTo(0.15, 0.75).lineTo(0.0, 0.75).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.1484375)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.2265625, 0.375, 0.296875), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.10263157894736843, 0.0).circle(0.10263157894736843)
solid2=wp_sketch2.add(loop2).extrude(-1.0)
solid=solid.cut(solid2)
| 1,267
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017974
|
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.7539473684210527, 0.0).circle(0.7539473684210527)
loop1=wp_sketch0.moveTo(0.7539473684210527, 0.0).circle(0.5026315789473684)
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/00019781
|
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.4453125, 0.0).lineTo(1.4453125, 0.12171052631578948).lineTo(1.1410361842105263, 0.12171052631578948).lineTo(1.1410361842105263, 0.42598684210526316).lineTo(0.3042763157894737, 0.42598684210526316).lineTo(0.3042763157894737, 0.12171052631578948).lineTo(0.0, 0.12171052631578948).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.6015625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.65625, 0.3046875, -0.2578125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.05921052631578947, 0.0).circle(0.05921052631578947)
solid1=wp_sketch1.add(loop1).extrude(-0.6015625)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.484375, 0.3046875, -0.2578125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.05921052631578947, 0.0).circle(0.05921052631578947)
solid2=wp_sketch2.add(loop2).extrude(-0.6015625)
solid=solid.cut(solid2)
| 1,542
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015839
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.03125, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.031578947368421054, 0.0).circle(0.031578947368421054)
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/00010160
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.4296875, -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.8526315789473684, 0.0).lineTo(0.8526315789473684, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.109375)
solid=solid0
| 874
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019622
|
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.296875, 0.0).lineTo(0.296875, 0.296875).lineTo(0.0, 0.296875).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 925
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019636
|
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.4421052631578948)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(0.1875, 0.515625, 0.625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch1.moveTo(0.11052631578947367, 0.0).circle(0.11052631578947367)
solid1=wp_sketch1.add(loop2).extrude(-0.625)
solid=solid.cut(solid1)
| 1,092
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00012763
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.7109375, -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.3991776315789473, 0.0).lineTo(1.3991776315789473, 1.4140625).lineTo(0.0, 1.4140625).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.5546875)
solid=solid0
| 887
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00011524
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.203125, 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.20526315789473687, 0.0).circle(0.20526315789473687)
solid0=wp_sketch0.add(loop0).extrude(0.046875)
solid=solid0
| 842
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017155
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5, 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.12631578947368421, 0.0).lineTo(0.12631578947368421, 0.12631578947368421).lineTo(0.3736842105263158, 0.12631578947368421).lineTo(0.3736842105263158, 0.0).lineTo(0.5, 0.0).lineTo(0.5, 0.25263157894736843).lineTo(0.0, 0.25263157894736843).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.5, -0.125, -0.0625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.5, 0.0).lineTo(0.5, 0.12631578947368421).lineTo(0.0, 0.12631578947368421).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.125)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.5, -0.75, -0.0625), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.5, 0.0).lineTo(0.5, 0.12631578947368421).lineTo(0.0, 0.12631578947368421).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(0.125)
solid=solid.union(solid2)
| 1,527
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017633
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.7109375, 0.21875, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.13421052631578947, 0.0).circle(0.13421052631578947)
solid0=wp_sketch0.add(loop0).extrude(0.21875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.2421875, 0.6171875, 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).circle(0.13421052631578947)
solid1=wp_sketch1.add(loop1).extrude(0.21875)
solid=solid.union(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.3359375, 0.4140625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.13421052631578947, 0.0).circle(0.13421052631578947)
solid2=wp_sketch2.add(loop2).extrude(0.21875)
solid=solid.union(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.4453125, -0.1953125, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.13421052631578947, 0.0).circle(0.13421052631578947)
solid3=wp_sketch3.add(loop3).extrude(0.21875)
solid=solid.union(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(-0.0234375, -0.59375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop4=wp_sketch4.moveTo(0.13421052631578947, 0.0).circle(0.13421052631578947)
solid4=wp_sketch4.add(loop4).extrude(0.21875)
solid=solid.union(solid4)
# Generating a workplane for sketch 5
wp_sketch5 = cq.Workplane(cq.Plane(cq.Vector(-0.6015625, -0.390625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop5=wp_sketch5.moveTo(0.13421052631578947, 0.0).circle(0.13421052631578947)
solid5=wp_sketch5.add(loop5).extrude(0.21875)
solid=solid.union(solid5)
| 1,843
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017141
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6015625, -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.53125, 0.0).lineTo(0.53125, 0.53125).lineTo(0.0, 0.53125).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.26842105263157895, 0.26842105263157895).circle(0.15657894736842104)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.2109375)
solid=solid0
| 942
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00013327
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.40625, -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.8052631578947369, 0.0).lineTo(0.8052631578947369, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0078125)
solid=solid0
| 927
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015756
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0078125, 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.007894736842105263, 0.0).circle(0.007894736842105263)
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/00015795
|
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)
loop1=wp_sketch0.moveTo(0.039473684210526314, 0.0).circle(0.02796052631578947)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.75)
solid=solid0
| 907
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017182
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.390625, -0.2890625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.0390625, 0.0).lineTo(1.0390625, 1.0390625).lineTo(0.0, 1.0390625).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.4140625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.1953125, 0.2109375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop1=wp_sketch1.moveTo(0.3157894736842105, 0.0).circle(0.3157894736842105)
solid1=wp_sketch1.add(loop1).extrude(0.4140625)
solid=solid.cut(solid1)
| 1,073
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019420
|
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/00010404
|
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.48157894736842105, 0.0).lineTo(0.75, 0.38684210526315793).lineTo(0.5052631578947369, 0.5605263157894737).lineTo(0.37894736842105264, 0.37894736842105264).lineTo(0.0, 0.37894736842105264).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.09375)
solid=solid0
| 1,043
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017419
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1875, -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.75, 0.0).lineTo(0.75, 0.06315789473684211).lineTo(0.0, 0.06315789473684211).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.7342105263157895, 0.015789473684210527).lineTo(0.7342105263157895, 0.04736842105263158).lineTo(0.015789473684210527, 0.04736842105263158).lineTo(0.015789473684210527, 0.015789473684210527).close()
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.75)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.171875, -0.0234375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch1.moveTo(0.7265625, 0.0).lineTo(0.7265625, 0.03824013157894737).lineTo(0.0, 0.03824013157894737).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop2).extrude(0.0234375)
solid=solid.union(solid1)
| 1,314
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017357
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.28125, 0.0, -0.1015625), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.75, 0.0).lineTo(0.75, 0.12631578947368421).lineTo(0.25263157894736843, 0.25263157894736843).lineTo(0.25263157894736843, 0.37894736842105264).lineTo(0.0, 0.37894736842105264).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 1,037
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00014892
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.65625, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.3421052631578947, 0.0).lineTo(1.5, 0.15789473684210525).lineTo(1.5, 1.1526315789473685).lineTo(1.3421052631578947, 1.3105263157894738).lineTo(0.0, 1.3105263157894738).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.421875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.5703125, -0.1328125, 0.0), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop1=wp_sketch1.moveTo(0.027631578947368417, 0.0).circle(0.027631578947368417)
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.5703125, 0.1328125, 0.0), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop2=wp_sketch2.moveTo(0.027631578947368417, 0.0).circle(0.027631578947368417)
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.5703125, 0.546875, 0.0), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop3=wp_sketch3.moveTo(0.027631578947368417, 0.0).circle(0.027631578947368417)
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.515625, -0.546875, 0.0), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop4=wp_sketch4.moveTo(0.027631578947368417, 0.0).circle(0.027631578947368417)
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.515625, 0.0, 0.0), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop5=wp_sketch5.moveTo(0.027631578947368417, 0.0).circle(0.027631578947368417)
solid5=wp_sketch5.add(loop5).extrude(0.390625)
solid=solid.union(solid5)
# Generating a workplane for sketch 6
wp_sketch6 = cq.Workplane(cq.Plane(cq.Vector(0.515625, 0.546875, 0.0), cq.Vector(0.9993977281025862, 0.024541228522912326, 0.024533837163709046), cq.Vector(0.024541228522912326, 0.0, -0.9996988186962042)))
loop6=wp_sketch6.moveTo(0.027631578947368417, 0.0).circle(0.027631578947368417)
solid6=wp_sketch6.add(loop6).extrude(0.390625)
solid=solid.union(solid6)
| 2,649
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015232
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.5078125, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.0, 0.0).threePointArc((0.50390625, -0.50390625), (1.0078125, 0.0)).threePointArc((0.9428087172893389, 0.3480718777687134), (0.7532072368421052, 0.6471217105263158)).threePointArc((0.50390625, 0.7539883453991801), (0.2546052631578947, 0.6471217105263158)).threePointArc((0.06500378271066111, 0.3480718777687134), (0.0, 0.0)).close()
solid0=wp_sketch0.add(loop0).extrude(0.4296875)
solid=solid0
| 1,067
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017394
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.7109375, 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(1.421875, 0.0).lineTo(1.421875, 0.38914473684210527).lineTo(0.0, 0.38914473684210527).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.2394736842105263, 0.11973684210526316).threePointArc((0.3068256578947368, 0.18708881578947367), (0.2394736842105263, 0.2544407894736842)).lineTo(0.10476973684210526, 0.2544407894736842).threePointArc((0.03741776315789474, 0.18708881578947367), (0.10476973684210526, 0.11973684210526316)).close()
loop2=wp_sketch0.moveTo(1.3171052631578948, 0.11973684210526316).threePointArc((1.3844572368421053, 0.18708881578947367), (1.3171052631578948, 0.2544407894736842)).lineTo(1.1824013157894737, 0.2544407894736842).threePointArc((1.1150493421052632, 0.18708881578947367), (1.1824013157894737, 0.11973684210526316)).close()
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).extrude(0.0390625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.7109375, 0.0, 0.1953125), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch1.moveTo(1.421875, 0.0).lineTo(1.421875, 0.5088815789473684).lineTo(0.0, 0.5088815789473684).lineTo(0.0, 0.0).close()
loop4=wp_sketch1.moveTo(0.0, 0.0).threePointArc((0.4564967105263158, -0.32179276315789473), (0.7782894736842105, 0.13470394736842106)).lineTo(0.7782894736842105, 0.38914473684210527).threePointArc((0.7109375, 0.4564967105263158), (0.6435855263157895, 0.38914473684210527)).lineTo(0.6435855263157895, 0.13470394736842106).close()
solid1=wp_sketch1.add(loop3).add(loop4).extrude(0.0390625)
solid=solid.union(solid1)
| 2,032
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017381
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.421875, -0.375), 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.19119493078592137, -0.13791239026492733), (0.421875, -0.18651315789473683)).lineTo(0.421875, 0.18651315789473683).threePointArc((0.2890705636582924, 0.24336199179843004), (0.23536184210526315, 0.3774671052631579)).lineTo(0.0, 0.3774671052631579).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.421875, 0.0), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.22796052631578945, 0.0).threePointArc((0.5515393239910434, 0.14439256859873306), (0.42483552631578947, -0.18651315789473683)).lineTo(0.42483552631578947, -0.5595394736842105).threePointArc((0.9291460452727688, 0.23325297179385218), (0.0, 0.37302631578947365)).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(0.75)
solid=solid.union(solid1)
| 1,530
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00016921
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.1953125, 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.19736842105263158).lineTo(0.0, 0.19736842105263158).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(-0.0234375)
solid=solid0
| 879
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017342
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 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.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.5, -0.0703125), 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,149
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019409
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.7578947368421053, 0.0).circle(0.7421052631578947)
loop1=wp_sketch0.moveTo(0.7578947368421053, 0.0).circle(0.26842105263157895)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.4765625)
solid=solid0
| 901
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015569
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.75, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.5, 0.0).lineTo(1.5, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.7578947368421053, 0.7578947368421053).circle(0.6947368421052632)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.75)
solid=solid0
| 913
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00012574
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, -0.5, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(1.5, 0.0).lineTo(1.5, 0.9947368421052631).lineTo(0.0, 0.9947368421052631).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.15789473684210525, 0.15789473684210525).circle(0.06315789473684211)
loop2=wp_sketch0.moveTo(0.15789473684210525, 0.8526315789473684).circle(0.06315789473684211)
loop3=wp_sketch0.moveTo(0.7578947368421053, 0.5052631578947369).circle(0.15789473684210525)
loop4=wp_sketch0.moveTo(1.3578947368421053, 0.15789473684210525).circle(0.06315789473684211)
loop5=wp_sketch0.moveTo(1.3578947368421053, 0.8526315789473684).circle(0.06315789473684211)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).add(loop3).add(loop4).add(loop5).extrude(0.1015625)
solid=solid0
| 1,268
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017183
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.71875, 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.84375, 0.0).lineTo(0.84375, 0.14210526315789473).lineTo(0.7016447368421053, 0.14210526315789473).threePointArc((0.6514029392314823, 0.1629160971262191), (0.6305921052631579, 0.2131578947368421)).lineTo(0.6305921052631579, 0.5595394736842105).lineTo(0.2131578947368421, 0.5595394736842105).lineTo(0.2131578947368421, 0.2131578947368421).threePointArc((0.19234706076851774, 0.1629160971262191), (0.14210526315789473, 0.14210526315789473)).lineTo(0.0, 0.14210526315789473).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.421875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.4375, 0.0, 0.5390625), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.14210526315789473, 0.0).circle(0.14210526315789473)
solid1=wp_sketch1.add(loop1).extrude(0.421875)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(0.0234375, -0.2109375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop2=wp_sketch2.moveTo(0.027631578947368417, 0.0).circle(0.027631578947368417)
solid2=wp_sketch2.add(loop2).extrude(0.421875)
solid=solid.cut(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(-0.6796875, -0.2109375, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop3=wp_sketch3.moveTo(0.027631578947368417, 0.0).circle(0.027055921052631576)
solid3=wp_sketch3.add(loop3).extrude(0.421875)
solid=solid.cut(solid3)
| 1,972
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015794
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1328125, 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.13421052631578947, 0.0).circle(0.13421052631578947)
loop1=wp_sketch0.moveTo(0.13421052631578947, 0.0).circle(0.09506578947368421)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.75)
solid=solid0
| 904
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00012789
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.6796875, 0.0, 0.390625), 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.3631578947368421, 0.0).circle(0.3555921052631579)
loop1=wp_sketch0.moveTo(0.3631578947368421, 0.0).circle(0.31776315789473686)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.0546875)
solid=solid0
| 983
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00012979
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0859375, 0.0, 0.0), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.08684210526315789, 0.0).lineTo(0.171875, 0.0).lineTo(0.171875, 0.09046052631578948).lineTo(0.14654605263157894, 0.09046052631578948).lineTo(0.12121710526315789, 0.11036184210526316).lineTo(0.08684210526315789, 0.11036184210526316).lineTo(0.0506578947368421, 0.11036184210526316).lineTo(0.02532894736842105, 0.09046052631578948).lineTo(0.0, 0.09046052631578948).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.08684210526315789, 0.054276315789473686).circle(0.04523026315789474)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.15625)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.046875, 0.0, 0.0546875), 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.04736842105263158, 0.0).circle(0.04736842105263158)
loop3=wp_sketch1.moveTo(0.04736842105263158, 0.0).circle(0.020723684210526318)
solid1=wp_sketch1.add(loop2).add(loop3).extrude(0.15625)
solid=solid.union(solid1)
| 1,622
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015757
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.0078125, 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.003947368421052632, 0.0).circle(0.003947368421052632)
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/00013326
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.3828125, -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.7736842105263159, 0.0).lineTo(0.7736842105263159, 1.5).lineTo(0.0, 1.5).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.0078125)
solid=solid0
| 929
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017154
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.71875, 0.0, -0.75), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(1.46875, 0.0).lineTo(1.46875, 0.12368421052631579).lineTo(1.1595394736842104, 0.12368421052631579).lineTo(1.1595394736842104, 0.4328947368421052).lineTo(1.0358552631578948, 0.4328947368421052).threePointArc((0.734375, 0.2064212236515907), (0.4328947368421052, 0.4328947368421052)).lineTo(0.3092105263157895, 0.4328947368421052).lineTo(0.3092105263157895, 0.12368421052631579).lineTo(0.0, 0.12368421052631579).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.546875)
solid=solid0
| 1,240
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015743
|
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/00019637
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.1484375, 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.15000000000000002, 0.0).circle(0.146875)
loop1=wp_sketch0.moveTo(0.15000000000000002, 0.0).circle(0.14375000000000002)
solid0=wp_sketch0.add(loop0).add(loop1).extrude(0.75)
solid=solid0
| 893
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010607
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.1875, 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.18947368421052632, 0.0).circle(0.18947368421052632)
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 890
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00010161
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(0.0, -0.1328125, -0.0078125), cq.Vector(3.749399456654644e-33, 1.0, -6.123233995736766e-17), cq.Vector(1.0, 0.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.2734375, 0.0).lineTo(0.2734375, 0.00863486842105263).lineTo(0.0, 0.00863486842105263).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 943
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00019964
|
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/00019958
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.2890625, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.12031249999999999, 0.0).lineTo(0.12031249999999999, 0.41562499999999997).lineTo(0.91875, 0.41562499999999997).lineTo(0.91875, 0.0).lineTo(1.0390625, 0.0).lineTo(1.0390625, 0.0546875).lineTo(0.9624999999999999, 0.0546875).lineTo(0.9624999999999999, 0.459375).lineTo(0.07656249999999999, 0.459375).lineTo(0.07656249999999999, 0.0546875).lineTo(0.0, 0.0546875).lineTo(0.0, 0.0).close()
solid0=wp_sketch0.add(loop0).extrude(0.1875)
solid=solid0
# Generating a workplane for sketch 1
wp_sketch1 = cq.Workplane(cq.Plane(cq.Vector(-0.2265625, 0.046875, 0.09375), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop1=wp_sketch1.moveTo(0.0, 0.0).threePointArc((0.027343749999999997, -0.027343749999999997), (0.05468749999999999, 0.0)).lineTo(0.0, 0.0).close()
solid1=wp_sketch1.add(loop1).extrude(-0.3125)
solid=solid.cut(solid1)
# Generating a workplane for sketch 2
wp_sketch2 = cq.Workplane(cq.Plane(cq.Vector(-0.2265625, 0.046875, 0.09375), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop2=wp_sketch2.moveTo(0.0, 0.0).threePointArc((0.027343749999999997, -0.027343749999999997), (0.05468749999999999, 0.0)).lineTo(0.0, 0.0).close()
solid2=wp_sketch2.add(loop2).extrude(-0.3125)
solid=solid.cut(solid2)
# Generating a workplane for sketch 3
wp_sketch3 = cq.Workplane(cq.Plane(cq.Vector(0.7421875, 0.046875, 0.09375), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop3=wp_sketch3.moveTo(0.0, 0.0).threePointArc((0.027343749999999997, -0.027343749999999997), (0.05468749999999999, 0.0)).lineTo(0.0, 0.0).close()
solid3=wp_sketch3.add(loop3).extrude(-0.3125)
solid=solid.cut(solid3)
# Generating a workplane for sketch 4
wp_sketch4 = cq.Workplane(cq.Plane(cq.Vector(0.7421875, 0.046875, 0.09375), cq.Vector(-1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, 1.0, 6.123233995736766e-17)))
loop4=wp_sketch4.moveTo(0.0, 0.0).threePointArc((0.027343749999999997, -0.027343749999999997), (0.05468749999999999, 0.0)).lineTo(0.0, 0.0).close()
solid4=wp_sketch4.add(loop4).extrude(-0.3125)
solid=solid.cut(solid4)
| 2,413
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017752
|
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/00017034
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.3671875, -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.0, 0.0).threePointArc((0.3636924342105263, -0.3636924342105263), (0.7273848684210527, 0.0)).lineTo(0.7273848684210527, 0.7750822368421053).threePointArc((0.3636924342105263, 1.1387746710526316), (0.0, 0.7750822368421053)).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.35773026315789475, 0.0).circle(0.13116776315789475)
loop2=wp_sketch0.moveTo(0.35773026315789475, 0.7750822368421053).circle(0.13116776315789475)
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).extrude(0.1796875)
solid=solid0
| 1,151
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00017020
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.7265625, 0.0, -0.75), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(1.453125, 0.0).lineTo(1.453125, 1.1625).lineTo(0.9330592105263158, 1.1625).lineTo(0.9330592105263158, 1.0860197368421054).lineTo(0.5200657894736842, 1.0860197368421054).lineTo(0.5200657894736842, 1.1625).lineTo(0.0, 1.1625).lineTo(0.0, 0.0).close()
loop1=wp_sketch0.moveTo(0.42828947368421055, 0.07648026315789475).threePointArc((0.5353618421052632, 0.18355263157894738), (0.42828947368421055, 0.290625)).lineTo(0.21414473684210528, 0.290625).threePointArc((0.10707236842105264, 0.18355263157894738), (0.21414473684210528, 0.07648026315789475)).close()
loop2=wp_sketch0.moveTo(1.2389802631578948, 0.07648026315789475).threePointArc((1.3460526315789474, 0.18355263157894738), (1.2389802631578948, 0.290625)).lineTo(1.0095394736842105, 0.290625).threePointArc((0.902467105263158, 0.18355263157894738), (1.0095394736842105, 0.07648026315789475)).close()
solid0=wp_sketch0.add(loop0).add(loop1).add(loop2).extrude(0.4375)
solid=solid0
| 1,584
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00014529
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.75, 0.0, 0.578125), cq.Vector(1.0, 6.123233995736766e-17, -6.123233995736766e-17), cq.Vector(6.123233995736766e-17, -1.0, 6.123233995736766e-17)))
loop0=wp_sketch0.moveTo(0.02368421052631579, 0.0).circle(0.02368421052631579)
solid0=wp_sketch0.add(loop0).extrude(0.0703125)
solid=solid0
| 916
|
Generate the CADQuery code needed to create the CAD for the provided image. Just the code, no other words.
| false
|
|
0001/00015637
|
import cadquery as cq
# Generating a workplane for sketch 0
wp_sketch0 = cq.Workplane(cq.Plane(cq.Vector(-0.296875, 0.0, 0.0), cq.Vector(1.0, 0.0, 0.0), cq.Vector(0.0, 0.0, 1.0)))
loop0=wp_sketch0.moveTo(0.30394736842105263, 0.0).circle(0.30394736842105263)
solid0=wp_sketch0.add(loop0).extrude(0.75)
solid=solid0
| 838
|
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.