id
stringlengths
22
22
code
stringlengths
192
136k
num_ops
int64
1
59
face_count
int64
1
4.31k
volume
float64
0
17.4
train_7dca7fb0977b1d70
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.023, -0.226, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.869, 0.003).lineTo(0.429, 0.792).lineTo(-0.426, 0.75).lineTo(-0.916, 0.012).lineTo(-0.454, -0.771).lineTo(0.461, -0.774).close().moveTo(-0.445, -0.241).lineTo(-0.129, -0.243).line...
11
118
0.315973
train_8cc1765d1f45bf03
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.199, 0.878, 0.264), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.166, 0.285).threePointArc((-0.259, 0.484), (-0.166, 0.684)).threePointArc((0, 0.744), (0.166, 0.684)).threePointArc((0.259, 0.484), (0.166, 0.285)).lineTo(0.166, 0.028).threePoint...
6
64
1.450879
train_ff054946bca57921
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.109, -0.107, -0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.783, 0.795).extrude(0.964) result = result.union(cq.Workplane(cq.Plane(origin=(-0.881, -0.072, 0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.239, 0.109).extrude(0.061)) result =...
7
25
1.210767
train_d10d5ecc3191ca17
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.021, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.869, 0.606).extrude(1.614) result = result.union(cq.Workplane(cq.Plane(origin=(-0.173, 0.302, -0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.022).extrude(0.139)) result = result.cut(cq...
12
80
0.905652
train_a9696e2f42c15fad
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.742, -1.238, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 1.408).lineTo(1, 2.238).lineTo(-1, 2.238).lineTo(-1, 0.239).lineTo(1, 0.239).lineTo(1, 1.408).close().extrude(1.648) result = result.union(cq.Workplane(cq.Plane(origin=(0.822, -0.342...
11
114
5.484919
train_f135298a52283fa0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.186, -0.038, -0.419), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.629, 0.441).extrude(0.614) result = result.union(cq.Workplane(cq.Plane(origin=(0.8, 0.013, -0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.401, 0.244).extrude(0.261)) result = re...
5
19
0.462646
train_c70931840b99682e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.429, 0.623, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.488, 1.135).threePointArc((-1, 0.623), (-0.488, 0.112)).lineTo(-0.381, 0.123).lineTo(0.591, 0.225).threePointArc((1, 0.597), (0.643, 1.019)).lineTo(-0.384, 1.124).lineTo(-0.488, 1.135...
7
67
1.283472
train_5a20be45ba33514d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.905, -0.562, 0.013), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.043, -0.095).lineTo(0.043, 0.095).lineTo(0.004, 0.095).lineTo(0.004, -0.047).lineTo(-0.043, -0.047).lineTo(-0.043, -0.095).lineTo(0.043, -0.095).close().sweep(cq.Workplane('XY').s...
2
16
0.038119
train_9dc6833ef6c2510a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.012, -0.496), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.107).extrude(0.726) result = result.faces('>Z').shell(-0.048) result = result.union(cq.Workplane(cq.Plane(origin=(-0.091, 0.66, -0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.1...
5
111
0.462314
train_de38521541612354
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.087, -0.784, -0.138), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.464, -0.115).threePointArc((-0.663, 0.084), (-0.464, 0.283)).lineTo(0.464, 0.283).lineTo(0.464, -0.115).lineTo(0.464, -0.313).threePointArc((0.808, -0.115), (0.808, 0.283)).thre...
9
72
0.796006
train_d84b12197896cc57
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.675, -0.024, -0.049), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.043, -0.312).lineTo(0.307, -0.312).lineTo(0.307, -0.277).lineTo(0.064, -0.277).lineTo(0.029, 0.05).lineTo(-0.259, 0.282).lineTo(-0.276, 0.312).lineTo(-0.307, 0.294).lineTo(0.043...
8
47
0.21557
train_9fc160a764bc74a0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.612, -0.148, -0.035), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.678).lineTo(-0.66, -0.678).lineTo(-0.66, 0.313).threePointArc((0, 0.973), (0.66, 0.313)).lineTo(0.66, -0.678).lineTo(0, -0.678).close().extrude(1.17) result = result.edges()....
16
176
1.632208
train_9875d12f2e225814
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.237, 0, -0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.527, 1.067).extrude(0.821) result = result.union(cq.Workplane(cq.Plane(origin=(0.082, -0.002, -0.505), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.164).extrude(0.21)) result = result.uni...
3
13
1.393624
train_9e6aeb64c1e44a2c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.238, 0.716, -0.095), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.905, 0.634).lineTo(-0.905, 0.634).lineTo(-0.905, -0.158).lineTo(0.905, -0.158).lineTo(0.905, 0.634).close().extrude(1.431) result = result.edges().chamfer(0.237) result = result.u...
3
31
1.777918
train_3ac2816ab4009266
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.947, 0.939, 0.081), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.116, -0.155).lineTo(1.116, 0.57).lineTo(-0.628, 2.142).lineTo(-1.116, -0.155).close().extrude(1.894) result = result.edges().chamfer(0.303) result = result.cut(cq.Workplane(cq.Pla...
15
101
2.649727
train_79bd309205a17c66
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.156, 0.023, 0.488), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.125, 0.057).lineTo(0.21, 0.057).lineTo(0.21, 0.003).lineTo(-0.21, 0.003).lineTo(-0.21, 0.03).lineTo(-0.119, 0.03).lineTo(-0.125, 0.057).lineTo(0.125, 0.057).close().extrude(0.237) ...
25
146
0.006858
train_19d5a8c9971dfe4f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.716, 0.001, -0.085), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.833).workplane(offset=0.702).circle(0.916).workplane(offset=0.73).circle(0.761).loft() result = result.edges().chamfer(0.706) result = result.cut(cq.Workplane(cq.Plane(origin=(-0....
6
24
1.538753
train_fd4a5be4db58c7e1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.018, -0.151, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.142, 1.284).lineTo(0.142, 0.018).lineTo(-0.142, -1.248).lineTo(-0.142, 1.284).close().extrude(0.302) result = result.edges().fillet(0.033) result = result.cut(cq.Workplane(cq.Plane(o...
12
42
0.095389
train_0f9eef2fce621b6a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.684, 0.465), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.673, 0.219).lineTo(-1, 0.219).lineTo(-1, 0.406).lineTo(0.673, 0.406).lineTo(0.673, 1.149).lineTo(0.74, 1.149).lineTo(0.735, 0.406).lineTo(1, 0.406).lineTo(1, 0.219).lineTo(0.673, 0.219...
3
22
0.088142
train_a222cc1cfd84ac69
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.182, 0, 0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.028).lineTo(-0.5, 0.336).lineTo(0.5, 0.336).lineTo(0.5, 0.028).lineTo(-0.5, 0.028).close().revolve(angleDegrees=360, axisStart=(-0.5, 0.028), axisEnd=(-0.5, 0.336)) result = result...
7
44
0.826322
train_737bb6bb6a768de1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.466, 0.053, -0.019), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.362).lineTo(0.194, -0.362).threePointArc((0, -0.342), (-0.194, -0.362)).lineTo(0, 0.362).close().sweep(cq.Workplane('XZ').spline([(-0.011, -0.368), (0.14, -0.365), (0.292, -0....
16
79
0.125003
train_c0f9021c5c8d6353
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.421, 0.076, -0.2), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.684, -1.095).lineTo(-0.257, -0.412).lineTo(0.441, 0.706).lineTo(0.684, 1.095).lineTo(-0.684, 1.095).lineTo(-0.684, -1.095).close().workplane(offset=0.067).moveTo(-0.592, -0.947).li...
20
145
0.777184
train_cb0d4d3d6f4c99ce
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.009, 0.526), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.339, 0.144).lineTo(-0.474, 0.195).lineTo(0.474, 0.195).lineTo(0.474, 0.144).lineTo(0.474, -0.195).lineTo(-0.339, -0.195).lineTo(-0.339, 0.144).close().sweep(cq.Workplane('XZ').spline([...
14
149
0.144908
train_1c2083c4529a6e17
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.242, 0, -0.436), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.516, 0.762).extrude(0.648) result = result.cut(cq.Workplane(cq.Plane(origin=(0.348, 0.005, -0.195), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.819, 0.176).extrude(0.155)) result = result....
14
112
0.624123
train_13c87f48fc111d8d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.426, -0.604, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.791, 0.052).lineTo(1.067, 0.799).lineTo(-0.791, 0.799).lineTo(-1.067, 0.052).lineTo(0.791, 0.052).close().extrude(1.207) result = result.edges().fillet(0.153) result = result.cut(cq.W...
14
33
1.40239
train_62d6171009c5538d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.046, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.892, 0.579).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(0.444, 0.12, -0.076), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.095, 0.09).extrude(0.147)) result = result.cut(cq....
6
27
1.008469
train_5f4863e5356e52c1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.135, 0.017, -0.011), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.014, -0.307).lineTo(0.014, 0.308).lineTo(-0.014, 0.308).lineTo(-0.014, -0.307).lineTo(0.014, -0.307).close().extrude(0.037) result = result.edges().chamfer(0.001) result = result.u...
5
57
0.020756
train_6ec03ec9b595c265
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.624), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.342).extrude(1.248) result = result.cut(cq.Workplane(cq.Plane(origin=(0.075, 0.271, -0.837), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.105).extrude(1.498)) result = result.cut(cq.Workpl...
6
48
3.196524
train_c6af3c551febe4cb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.083, 0.286), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.166).workplane(offset=0.313).circle(0.18).workplane(offset=0.3).circle(0.143).loft() result = result.edges().fillet(0.076) result = result.cut(cq.Workplane(cq.Plane(origin=(0.098, -0....
19
198
0.092157
train_700646fdd2d9437e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.063, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.843, -0.631).lineTo(0.843, -0.206).lineTo(-0.843, 0.631).lineTo(-0.705, 0.315).lineTo(0.843, -0.631).close().sweep(cq.Workplane('XY').spline([(-0.895, 0.063), (-0.597, 0.334), (-0.299, 0.49...
1
6
0.703411
train_e03e51c49acfb45b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.92, -0.638, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.139, 1.781).threePointArc((-0.748, 1.529), (-1, 0.921)).lineTo(-1, 0.059).lineTo(1, 0.059).lineTo(1, 0.921).threePointArc((0.748, 1.529), (0.139, 1.781)).lineTo(-0.139, 1.781).close()...
9
80
3.362016
train_0ff50498a5bb429d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.436, 0.003, -0.254), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.02, -0.158).lineTo(0.012, -0.158).lineTo(0.012, -0.044).lineTo(0.034, -0.044).lineTo(0.034, -0.033).lineTo(0.018, -0.033).lineTo(0.014, -0.013).lineTo(0.009, -0.033).lineTo(0.005,...
23
423
0.413054
train_344d8f550cd83458
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.5, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.444, -0.5).lineTo(-0.444, -0.5).lineTo(-0.444, -0.278).lineTo(-0.698, 0.278).lineTo(-0.299, 0.278).lineTo(-0.299, 0.5).lineTo(0.299, 0.5).lineTo(0.299, 0.278).lineTo(0.698, 0.278).lineTo(0....
3
14
2.787104
train_b1902518b813ad71
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.075, 0.103, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.372, 0.618).extrude(1.782) result = result.union(cq.Workplane(cq.Plane(origin=(-0.03, 0.052, 0.761), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.015).extrude(0.239)) result = result.unio...
24
86
0.311978
train_95c9405eab7983ce
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.215, -0.277, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.122, 0.277).lineTo(-0.756, 0.277).lineTo(-0.756, 0.521).threePointArc((-1, 0.277), (-0.756, 0.033)).lineTo(0.122, 0.033).lineTo(1, 0.033).lineTo(1, 0.277).lineTo(1, 0.521).lineTo(0.12...
14
224
0.204159
train_a7dcea3bdffa3a77
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.416, -0.396, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.062, 0.349).threePointArc((-0.082, 0.357), (-0.101, 0.349)).threePointArc((-0.091, 0.319), (-0.121, 0.31)).lineTo(-0.129, 0.31).threePointArc((-0.124, 0.305), (-0.121, 0.298)).lineTo(...
12
63
0.02993
train_1e6ff4e6f358a46d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.864, 0.044, 0.156), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.156, 0.158).lineTo(-0.172, 0.13).lineTo(-0.189, 0.13).lineTo(-0.189, -0.186).lineTo(0.123, -0.186).lineTo(0.14, -0.158).lineTo(0.156, -0.158).lineTo(0.156, 0.13).lineTo(0.172, 0....
33
181
0.960755
train_a61370a768ef36dd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.506, -0.175, -0.504), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.524, 0.428).lineTo(-0.478, 0.051).lineTo(0.091, 0.051).lineTo(0.524, 0.428).lineTo(-0.524, 0.428).close().revolve(angleDegrees=180, axisStart=(-0.524, 0.428), axisEnd=(-0.478, 0....
10
52
0.303363
train_85e4481df9ee03e1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.503, -0.735, -0.65), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.306, -0.265).lineTo(0.306, -0.265).lineTo(0, 0.265).lineTo(-0.306, -0.265).close().sweep(cq.Workplane('XY').spline([(7.195, -0.735), (6.95, 2.226), (5.533, 4.74), (3.249, 6.263)]...
18
262
0.596363
train_5e52b77a91d9bc1e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.237, 0, 0.016), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.668, -0.093).lineTo(-0.668, 0.093).lineTo(0.52, 0.093).lineTo(0.579, 0.031).lineTo(0.641, -0.038).lineTo(0.668, -0.093).lineTo(-0.668, -0.093).close().workplane(offset=0.014).moveTo(...
13
66
0.013991
train_9db6ec04f44113bd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.037, -0.726), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.906, 1.926).extrude(1.452) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.134, 0.538, 0.361), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.288, 0.114).extrude(0.037)) result = result....
9
47
4.498307
train_fa8ecb4e6729315d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.02, 0, 0.077), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.021, -0.265).lineTo(-0.021, -0.223).lineTo(-0.798, -0.223).lineTo(-0.798, 0.265).lineTo(0.756, 0.265).lineTo(0.756, 0.021).lineTo(0.798, 0.021).lineTo(0.798, -0.265).lineTo(-0.021, -0.2...
13
63
0.31302
train_8cf0f8859a49fbc4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.624, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.476, 0.162).threePointArc((-0.003, 0.124), (-0.484, 0.117)).lineTo(-0.475, 1.135).lineTo(0.484, 1.126).lineTo(0.476, 0.162).close().workplane(offset=0.664).moveTo(0.61, 0.031).threePointAr...
7
71
0.55402
train_abf10b0c8674be5e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.122, 0.213, 0.315), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.131, -0.014).lineTo(-0.131, 0.149).lineTo(0.131, 0.149).lineTo(0.131, -0.014).lineTo(-0.131, -0.014).close().extrude(0.343) result = result.edges().fillet(0.012) result = result.u...
22
184
0.052242
train_0e67050dce345afb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.481, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.237).workplane(offset=0.205).circle(0.252).workplane(offset=0.283).circle(0.24).workplane(offset=0.219).circle(0.191).workplane(offset=0.249).circle(0.247).workplane(offset=0.268).circle(0...
10
39
0.192781
train_71b09ed8fc40b559
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.082, 0.109, -0.042), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.412, 0.639).lineTo(-0.412, -0.639).threePointArc((-0.023, -0.416), (0.412, -0.305)).lineTo(0.412, 0.639).lineTo(-0.412, 0.639).close().extrude(0.958) result = result.edges().fill...
17
148
0.867238
train_e82f8a045984483a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.519, 0.483, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.483, -0.259).lineTo(0.483, 1.519).lineTo(-0.317, 1.519).lineTo(-0.317, -0.147).lineTo(-0.475, -0.253).lineTo(-0.483, -0.259).lineTo(-0.05, -0.481).lineTo(-0.046, -0.474).lineTo(-0.05, ...
2
18
0.402993
train_52f286d2bf228f5c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.227, -0.808, -0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.614, 1.152).lineTo(0.614, 0.083).lineTo(-0.614, 0.083).lineTo(-0.614, 1.152).lineTo(0.614, 1.152).close().extrude(1.238) result = result.edges().chamfer(0.278) result = result.un...
6
48
1.064481
train_be799ed71a6a8305
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.894, 2).extrude(0.071) result = result.union(cq.Workplane(cq.Plane(origin=(-0.481, -0.157, 0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.112, 0.154).extrude(0.016)) result = result.cut(c...
8
21
0.239923
train_694ee672afd18eb7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.078, -0.215, -0.573), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.904, 1.571).extrude(1.145) result = result.faces('>Z').shell(-0.039) result = result.union(cq.Workplane(cq.Plane(origin=(-0.449, -0.009, -0.024), normal=(0, 0, 1), xDir=(1, 0, 0)))....
4
17
0.311578
train_66921f4bea897535
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.158, -0.181, -0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.085, 0.584).extrude(0.41) result = result.union(cq.Workplane(cq.Plane(origin=(-0.573, -0.274, -0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.438, 0.28).extrude(0.141)) result = r...
15
74
0.23849
train_3b2e90b18fa410ff
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.236, -0.141, -0.803), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.528, 0.866).extrude(1.112) result = result.union(cq.Workplane(cq.Plane(origin=(-0.561, -0.077, 0.294), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.446, 0.468).extrude(0.238)) result ...
31
342
0.966784
train_75ef96c5783ca051
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.313, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.138, -0.044).lineTo(-0.112, -0.123).lineTo(-0.138, -0.039).lineTo(0.028, 0.013).lineTo(0.002, 0.096).lineTo(0.085, 0.123).lineTo(0.138, -0.044).close().sweep(cq.Workplane('XY').spline([(...
2
13
0.009184
train_66605a048a84b020
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.15, -0.821, 0.322), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.008, -0.496).threePointArc((-1.085, -0.067), (-1.106, 0.367)).threePointArc((-1.068, 0.824), (-0.969, 1.271)).threePointArc((-0.408, 1.07), (0.127, 0.803)).threePointArc((0.606, 0...
4
35
2.024475
train_45c45d55558b7ad7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.107, -0.4), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.577, 1.786).extrude(0.8) result = result.cut(cq.Workplane(cq.Plane(origin=(0.335, -0.546, -0.536), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.171, 0.121).extrude(0.959)) result = result.edg...
11
102
2.142684
train_028be8ab49bfb9aa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.033, -0.087, -0.709), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.17, 1.075).extrude(1.418) result = result.cut(cq.Workplane(cq.Plane(origin=(0.229, -0.162, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.19, 1.29).extrude(0.402)) result = res...
19
177
1.247272
train_27776fcacbb3152a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.258, 0.227, -0.057), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.338, -0.742).lineTo(-0.338, -0.742).lineTo(-0.338, 0.92).threePointArc((0, 1.258), (0.338, 0.92)).lineTo(0.338, -0.742).close().extrude(0.568) result = result.edges().fillet(0.117...
13
48
0.710694
train_06a64923e4a69f90
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.906, 0.67, 0.654), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.094, 0.18).lineTo(0.094, -0.18).lineTo(-0.094, -0.18).lineTo(-0.094, 0.18).lineTo(0.094, 0.18).close().transformed(offset=(0.165, 0.086, 0.168), rotate=(0, 10, 0)).moveTo(0.071, 0....
1
6
0.077531
train_4df1bbc76afd9179
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.921, 0.009, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.041, 0.006).threePointArc((0, 0.163), (0.041, 0.006)).lineTo(0.041, -0.005).lineTo(0, -0.005).threePointArc((-0.021, -0.002), (-0.041, 0.006)).close().workplane(offset=0.029).moveTo(-...
4
24
0.006549
train_ae4f6ba0582c1f85
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.832, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.721, 1.647).lineTo(0.721, 0.018).lineTo(-0.721, 0.018).lineTo(-0.721, 1.647).lineTo(0.721, 1.647).close().extrude(1.748) result = result.edges().chamfer(0.105) result = result.cut(cq.Work...
14
152
3.187843
train_b36446a45ce8c5aa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.064), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.091, 0.909).threePointArc((0, 1), (-0.091, 0.909)).lineTo(-0.091, -0.909).threePointArc((0, -1), (0.091, -0.909)).lineTo(0.091, 0.909).close().extrude(0.128) result = result.cut(cq.Workpla...
12
139
0.03655
train_3fd67eeb1a92ab4d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.774, 0.471, -0.151), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.105, 0.559).lineTo(0.105, 0.559).lineTo(-0.105, 0.559).close().extrude(0.361) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.738 + 0.072, 0.432, -0.288), normal=(0, 0, 1), ...
8
10
0.675537
train_57f60a97c141afae
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.139, -0.377), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.074).extrude(0.425) result = result.union(cq.Workplane(cq.Plane(origin=(0.333, 0.156, 0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.097).extrude(0.469)) result = result.union(c...
11
43
0.721794
train_9be077606e1d422e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.175, 0.562, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.404, 1.133).threePointArc((0, -0.782), (0.404, 1.133)).lineTo(-0.404, 1.133).close().extrude(1.125) result = result.edges().chamfer(0.217) result = result.cut(cq.Workplane(cq.Plane(or...
30
95
1.729976
train_a970b019586b8fa1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.533, -0.164, -0.544), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.393, -0.196).lineTo(-0.393, 0.27).lineTo(-0.302, 0.27).lineTo(-0.302, -0.105).lineTo(0.046, -0.105).lineTo(0.046, 0.27).lineTo(0.393, 0.27).lineTo(0.393, -0.196).lineTo(-0.393,...
7
222
0.594556
train_b60950500a3b2a81
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.031, -0.565, -0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.05).lineTo(0.516, 0.565).lineTo(0.516, 0.05).lineTo(1.031, 0.05).lineTo(1.031, 1.081).lineTo(0, 1.081).lineTo(0, 0.565).lineTo(-0.516, 0.565).lineTo(-1.031, 0.05).lineTo(0, 0....
9
96
0.270138
train_8f99260928452bc6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.103, -0.02, -0.502), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.701, 1.786).extrude(0.911) result = result.union(cq.Workplane(cq.Plane(origin=(0.103, 0.43, 0.465), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.063, -0.057).lineTo(0.063, 0.057).line...
23
65
2.300321
train_ddcabeb845193f88
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.092, -0.223, 0.392), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.68, 0.157).lineTo(0.68, 0.112).lineTo(-0.68, 0.112).lineTo(-0.68, 1.2).lineTo(0, 1.2).lineTo(0, 0.157).lineTo(0.68, 0.157).close().revolve(angleDegrees=90, axisStart=(0.68, 0.157)...
18
93
0.974603
train_916d06829f61faed
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.536, 0.195, 0.086), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.331, -0.192).lineTo(0.331, -0.192).lineTo(0.331, 0.125).lineTo(0.264, 0.192).lineTo(-0.264, 0.192).lineTo(-0.331, 0.125).lineTo(-0.331, -0.192).close().revolve(angleDegrees=90, a...
23
149
0.12234
train_795c2f9717a8bf5e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.169, 0.071, -0.052), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.214, 0.857).threePointArc((0, 1.071), (0.214, 0.857)).lineTo(0.214, -0.929).lineTo(0.071, -0.929).lineTo(-0.071, -0.929).lineTo(-0.214, -0.929).lineTo(-0.214, 0.857).close().extr...
16
208
0.264317
train_934fa1970199927e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.888, -0.923), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 1.888).lineTo(-1, -0.112).lineTo(1, -0.112).lineTo(1, 0.76).lineTo(0.872, 0.76).lineTo(0.872, 1.016).lineTo(1, 1.016).lineTo(1, 1.888).lineTo(0.128, 1.888).lineTo(0.128, 1.76).lineT...
15
107
7.148394
train_ac26c9bdf9ff702f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1.933, 0.575, 0.013), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.638, 1.934).lineTo(-0.638, 1.934).lineTo(-0.054, -0.124).lineTo(0.638, 1.934).close().revolve(angleDegrees=180, axisStart=(0.638, 1.934), axisEnd=(-0.638, 1.934)) result = result.e...
8
17
1.219255
train_549f63d6f15a2e48
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.083, 0, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.222, 0.1).threePointArc((-0.198, -0.129), (0.012, -0.222)).lineTo(0.018, -0.282).threePointArc((0.211, -0.179), (0.276, 0.029)).threePointArc((0.261, 0.102), (0.227, 0.169)).threePointArc(...
4
25
0.180457
train_77002ec50649637d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.306, -0.054, 0.213), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.815, -0.604).lineTo(0, 0.604).lineTo(0.178, 0.34).lineTo(0.815, -0.604).lineTo(-0.815, -0.604).close().extrude(0.628) result = result.edges().fillet(0.136) result = result.faces(...
20
101
0.32078
train_5990cddf11e93c18
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.171, 0.218, -0.033), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.014, 0.794).threePointArc((0.494, 0.349), (0.504, -0.326)).threePointArc((0.092, -0.751), (-0.499, -0.794)).threePointArc((-0.501, -0.793), (-0.504, -0.792)).threePointArc((0.422...
2
12
0.073981
train_b5bcb6bf549fad1f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.488, 0.492, -0.51), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.424, 0.476).extrude(0.171) result = result.union(cq.Workplane(cq.Plane(origin=(-0.465, 0.492, -0.34), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.17).extrude(0.031)) result = result....
35
191
0.707995
train_6943df517813a5cb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.059, -0.693, 0.126), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.307, -0.307).threePointArc((0.071, 0.071), (-0.307, 0.307)).threePointArc((-0.182, 0.034), (-0.257, -0.257)).threePointArc((0.034, -0.182), (0.307, -0.307)).close().sweep(cq.Workp...
2
8
0.004656
train_bda02dca496439d8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.152, 0, -0.853), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.695, 1.117).extrude(1.706) result = result.union(cq.Workplane(cq.Plane(origin=(0.84, -0.213, -0.503), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.16).extrude(0.39)) result = result.cut(...
4
15
2.834803
train_3a53544ef086a528
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.265, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.604, -0.431).lineTo(0.695, 0.869).lineTo(-0.604, 0.96).lineTo(-0.695, -0.34).lineTo(0.604, -0.431).close().extrude(2) result = result.edges().chamfer(0.292) result = result.faces('>Z').sh...
4
54
1.221606
train_8abb84a89206343c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.343, 0.386, 0.147), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.25, 1.136).threePointArc((0, 1.386), (-0.25, 1.136)).lineTo(-0.413, -0.145).lineTo(-0.396, -0.327).threePointArc((0, -0.614), (0.396, -0.326)).lineTo(0.413, -0.145).lineTo(0.25, 1....
3
17
1.067159
train_19e3bf48b5338052
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.42, -0.003, -0.143), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.58, -0.724).lineTo(0.583, -0.737).lineTo(0.557, 0.706).lineTo(-0.568, 0.742).close().moveTo(0.056, 0.211).lineTo(0.054, 0.257).lineTo(0.045, 0.291).lineTo(0.045, 0.257).lineTo(0....
12
130
0.438143
train_ca2aed418ca96209
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.852, 0.085, -0.041), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.041, -0.143).threePointArc((0.173, -0.03), (0.153, 0.143)).lineTo(0.107, 0.102).threePointArc((0.093, 0.121), (0.076, 0.136)).lineTo(-0.087, -0.008).lineTo(-0.154, -0.067).lineTo(...
2
18
0.028681
train_65d88297faa8f77d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.979, -0.522), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.122).lineTo(-1, 0.55).threePointArc((-0.571, 0.979), (-1, 1.408)).lineTo(-1, 1.836).lineTo(1, 1.836).lineTo(1, 1.408).lineTo(1, 0.55).lineTo(1, 0.122).lineTo(-1, 0.122).close().ex...
10
140
2.883598
train_873bd169aba8b914
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.955, -0.955, -0.288), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.712, 1.909).lineTo(-0.712, 0.356).lineTo(0.712, 0.356).lineTo(0.712, 1.909).lineTo(-0.712, 1.909).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.989, 0)) result =...
7
46
3.221476
train_42b7bffdac0c62a6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.687, -0.009, 0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.626, 0.85).extrude(0.412) result = result.union(cq.Workplane(cq.Plane(origin=(-0.029, 0.018, 0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.919, 0.735).extrude(0.246)) result = re...
8
89
0.354
train_7046142e13bb02b6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.437, 0.002, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.497).workplane(offset=0.654).circle(0.446).workplane(offset=0.783).circle(0.396).loft() result = result.faces('>Z').shell(-0.09) result = result.union(cq.Workplane(cq.Plane(origin=(0.7...
13
114
0.712564
train_3e95e75089a1b3c0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.232, -0.365), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.523).extrude(0.729) result = result.union(cq.Workplane(cq.Plane(origin=(0.187, -0.749, -0.146), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.245).extrude(0.275)) result = result.cut(cq...
16
128
1.668771
train_d2c616ee934cf806
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.117, 0.183, 0.341), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.105, -0.259).lineTo(-0.105, 0.625).lineTo(0.105, 0.625).lineTo(0.105, 0.32).threePointArc((0.074, 0.288), (0.105, 0.257)).lineTo(0.105, -0.259).lineTo(-0.105, -0.259).close().extr...
9
66
0.039253
train_0cb36066e539ff8f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.669, 0.157, -0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.49, 1.09).extrude(0.371) result = result.faces('>Z').shell(-0.018) result = result.union(cq.Workplane(cq.Plane(origin=(0.744, -0.539, 0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0...
7
41
0.155579
train_bbbaafb1dee352a6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.176, 0.339, 0.417), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.448, -0.313).lineTo(-0.48, -0.281).lineTo(0.142, 0.302).lineTo(0.308, 0.459).lineTo(0.48, 0.275).lineTo(0.314, 0.118).lineTo(-0.302, -0.459).lineTo(-0.448, -0.313).close().sweep(c...
5
34
0.604377
train_4aa07c0731af6ec3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.053), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.187, 0.875).lineTo(-0.187, 1).lineTo(0.187, 1).lineTo(0.187, -1).lineTo(-0.187, -1).lineTo(-0.187, 0.875).close().extrude(0.106) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0...
7
50
0.05741
train_1d3a6af89a0f774d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.225, 0, -0.552), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.266, 2).extrude(1.103) result = result.union(cq.Workplane(cq.Plane(origin=(0.611, 0.304, -0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.492, 0.648).extrude(0.444)) result = result.c...
5
29
2.524841
train_9487d0f8012b1c57
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.276, -0.259, -0.417), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.448, 1.257).extrude(0.834) result = result.faces('>Z').shell(-0.087) result = result.union(cq.Workplane(cq.Plane(origin=(-0.009, 0.606, -0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).r...
6
36
0.589714
train_325b74b50e13cbf0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.44), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.616, 0.44).extrude(0.908) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.441), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.348, 0.233).extrude(0.559)) result = result.union(cq.Work...
10
56
0.346209
train_65b709f867c641a6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.531, -0.1), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.208).workplane(offset=0.237).circle(0.221).workplane(offset=0.234).circle(0.235).workplane(offset=0.243).circle(0.238).workplane(offset=0.208).circle(0.233).workplane(offset=0.184).circ...
22
50
0.165046
train_31e4031312b7d7b0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.313, -0.41, -0.685), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.825, 1.18).extrude(0.241) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.468, -0.489, -0.552), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.542, 0.211).extrude(0.074)) result = r...
31
103
0.756545
train_1aa463b000c45e01
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.799), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.745, 2).extrude(1.598) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.429, -0.141, 0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.275, 0.69).extrude(0.607)) result = result.edges()....
3
51
5.37544
train_a90acb0c1c69e34e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.145, -0.092, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.011).lineTo(1, 0.173).lineTo(-1, 0.173).lineTo(-1, 0.011).lineTo(1, 0.011).close().extrude(0.29) result = result.edges().chamfer(0.049) result = result.cut(cq.Workplane(cq.Plane(or...
13
99
0.066283
train_d8acace20c6c0070
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.024, 0, 0.211), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.625, 1).lineTo(-0.042, 0.333).lineTo(-0.375, 0.333).lineTo(-0.375, -1).lineTo(-0.625, -1).lineTo(-0.625, 1).lineTo(0.625, 1).close().extrude(0.422) result = result.edges().chamfer(0.06...
7
65
0.283755
train_cdca8f7847198686
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.798).extrude(0.453) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.074, -0.126, 0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.583, 2.157).extrude(0.131)) result = result.cut(cq....
8
33
1.284755