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_691c4c9ae4d9ac00
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.088, -1, 0.019), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.307, 0.243).lineTo(-0.307, -0.243).lineTo(-0.016, -0.243).lineTo(-0.016, -0.048).lineTo(0.016, -0.048).lineTo(0.016, -0.179).lineTo(0.307, -0.179).lineTo(0.307, 0.243).lineTo(-0.307...
34
169
0.459367
train_0a353bed953c314c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.07, 0.01, 0.559), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.143, -0.145).lineTo(0.307, -0.309).lineTo(0.143, -0.963).lineTo(0.526, -1.01).lineTo(0.536, -0.963).lineTo(0.606, -0.609).lineTo(0.674, -0.27).lineTo(0.451, 0.269).lineTo(0.143, 1.01...
12
70
0.61025
train_622ab6d1432fb3d3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.007, -0.036, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.978, -0.354).lineTo(-0.978, 0.135).lineTo(0.269, 0.135).threePointArc((0.489, 0.354), (0.709, 0.135)).lineTo(0.978, 0.135).lineTo(0.978, -0.354).lineTo(-0.978, -0.354).close().sweep...
3
30
1.024109
train_8cfe5a5e4148367f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.17, -0.718, -0.161), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.839, -0.37).lineTo(-0.691, -0.37).lineTo(-0.691, -0.272).lineTo(0.839, -0.272).lineTo(0.839, 0.37).lineTo(-0.839, 0.37).lineTo(-0.839, -0.37).close().sweep(cq.Workplane('XY').spli...
11
47
0.347617
train_22164c767d52760c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.51, -0.482, -0.067), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.962, 0.735).lineTo(0.962, 0.735).lineTo(0.962, 0.116).lineTo(-0.531, 0.062).lineTo(-0.962, 0.735).close().extrude(1.242) result = result.edges().chamfer(0.248) result = result.fa...
9
73
0.56061
train_20381f3ba7c418c0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.131, 0.234, -0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.231, 0.311).extrude(0.096) result = result.union(cq.Workplane(cq.Plane(origin=(-0.178, 0.18, 0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.091, 0.141).extrude(0.018)) result = r...
40
335
0.084867
train_7217ec5be96b2b46
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.263, -0.216, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.262, -0.737).lineTo(-0.262, -0.737).lineTo(-0.262, 1.263).lineTo(0.262, 1.263).lineTo(0.262, -0.737).close().extrude(0.433) result = result.edges().chamfer(0.102) result = result.cut(...
5
156
0.393337
train_5e3a28a804bee8bf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.368, -0.397, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.524, -0.553).threePointArc((0, 1.299), (0.524, -0.553)).lineTo(0.524, -0.525).lineTo(0.524, -0.176).threePointArc((0, 1.006), (-0.524, -0.176)).lineTo(-0.524, -0.525).lineTo(-0.524, ...
6
51
0.774863
train_9d2cdec409183ffd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.688, -0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.122).lineTo(-1, 0.122).lineTo(-1, 0.91).lineTo(-0.657, 1.254).lineTo(0.657, 1.254).lineTo(1, 0.91).lineTo(1, 0.122).lineTo(0, 0.122).close().extrude(0.549) result = result.edges()....
5
46
1.073309
train_669c3332dc1487cf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.157, -0.177, -0.301), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.686, 1.172).extrude(0.601) result = result.faces('>Z').shell(-0.052) result = result.union(cq.Workplane(cq.Plane(origin=(0.833, -0.355, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0)))....
6
17
0.327162
train_ef0f7c74532a4898
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.031, 0.022, 0.048), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, -0.121).lineTo(0.151, -0.121).lineTo(0.151, 0.133).lineTo(0.163, 0.133).lineTo(0.163, -0.121).threePointArc((0.16, -0.13), (0.151, -0.133)).lineTo(0, -0.133).lineTo(-0.151, -0.133...
3
128
0.036292
train_80b2a606b045014d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.06, 0.26, 0.189), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.083, -0.736).threePointArc((0.88, 0.736), (-0.88, 0.736)).threePointArc((-0.249, 0.126), (-0.083, -0.736)).close().extrude(0.379) result = result.cut(cq.Workplane(cq.Plane(origin=(...
29
291
0.580163
train_ca025c0cab893621
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.42, -0.104, -0.689), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.746, 0.746).extrude(1.518) result = result.faces('<X').shell(-0.069) result = result.union(cq.Workplane(cq.Plane(origin=(-0.388, -0.07, 0.817), normal=(0, 0, 1), xDir=(1, 0, 0))).ci...
29
196
0.497016
train_3f7beb9851e4da96
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.863, -0.062), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.333, -0.115).lineTo(0.333, -0.092).lineTo(0.287, -0.092).lineTo(0.287, -0.069).lineTo(0.057, -0.069).threePointArc((-0.117, 0.067), (-0.333, 0.115)).lineTo(-0.333, 0.069).threePointAr...
2
14
0.063124
train_07ddeb024f799098
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.333, 0.471, -0.281), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.719, 0.027).lineTo(-0.719, 0.639).lineTo(0.719, 0.639).lineTo(0.719, 0.027).lineTo(-0.719, 0.027).close().extrude(0.942) result = result.edges().fillet(0.14) result = result.unio...
11
65
0.636942
train_c24c8b8b2d122d30
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.019, 0, -0.362), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.62, 0.837).lineTo(-0.62, 0.049).lineTo(0.62, 0.049).lineTo(0.62, 0.837).lineTo(0.616, 1.002).lineTo(0.223, 1.002).lineTo(0.223, 0.837).lineTo(-0.62, 0.837).close().revolve(angleDegree...
27
100
1.178716
train_7b4d52e330caa2a1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.185, -0.448, -0.31), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.618, 0.693).extrude(0.621) result = result.faces('>Z').shell(-0.065) result = result.union(cq.Workplane(cq.Plane(origin=(0.136, -0.046, -0.108), normal=(0, 0, 1), xDir=(1, 0, 0))).c...
8
48
0.566727
train_7669f9f3c0f352ea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.004), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.128).lineTo(1, -0.128).threePointArc((0.921, 0.057), (0.731, 0.128)).lineTo(-1, 0.05).lineTo(-1, -0.128).close().extrude(0.012) result = result.union(cq.Workplane(cq.Plane(origin=(-0....
13
200
0.005184
train_fe7923a16fef9186
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1.223, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.999, 0.224).lineTo(0.999, 2).threePointArc((0.843, 2.066), (0.777, 2.222)).lineTo(-0.777, 2.222).lineTo(-0.999, 2.222).lineTo(-0.999, 2).lineTo(-0.999, 0.444).threePointArc((-0.843, 0.38),...
2
38
7.214999
train_af8a34144e072dd2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.058, 0.103, -0.143), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.481, -0.002).lineTo(0.15, 0.485).lineTo(-0.397, 0.296).lineTo(-0.414, -0.297).lineTo(0.165, -0.465).close().moveTo(-0.069, 0.077).lineTo(0.07, 0.077).lineTo(0.071, 0.113).lineTo(-...
24
180
0.316586
train_f82796a59432d356
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.913, 0.894, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.913, 1.33).lineTo(0.913, -0.106).lineTo(-0.913, -0.106).lineTo(-0.913, 1.33).lineTo(0.913, 1.33).close().extrude(1.826) result = result.edges().chamfer(0.204) result = result.union(cq....
6
42
4.219162
train_501009bdefe1a7d8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.115, 0.8, 0.605), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.261, 0.2).lineTo(0.261, 0.2).lineTo(0.129, -0.115).threePointArc((0, -0.2), (-0.129, -0.115)).lineTo(-0.261, 0.2).close().sweep(cq.Workplane('YZ').spline([(0.8, 0.13), (1.328, 0.239...
4
24
0.117297
train_2bee17557e26c8de
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.784).workplane(offset=0.568).circle(0.632).workplane(offset=0.688).circle(0.739).workplane(offset=0.744).circle(0.799).loft() result = result.edges().fillet(0.456) result = result.cut(cq.Workp...
30
58
1.762607
train_4bc9a51da2898542
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.006, -0.013, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.087, 0.066).lineTo(-0.087, 0.066).lineTo(-0.087, 0.386).lineTo(0.087, 0.066).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.078, 0)) result = result.edges().chamfe...
15
212
0.075304
train_5494e32eb8bbd09b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.965, 0.003), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.583, -0.5).lineTo(-0.583, -1).lineTo(0.283, -1).lineTo(0.283, -0.5).lineTo(0.583, -0.5).lineTo(0.583, 1).lineTo(0, 1).lineTo(0, 0.5).lineTo(-0.283, 0.5).lineTo(-0.283, 1).lineTo(-0.5...
5
24
2.351383
train_f2905b6998abcf9f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.437, 0.549, -0.694), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.784, 0.784).extrude(1.299) result = result.faces('<X').shell(-0.061) result = result.union(cq.Workplane(cq.Plane(origin=(0.475, 0.648, 0.598), normal=(0, 0, 1), xDir=(1, 0, 0))).circ...
11
314
0.916586
train_8493158d76026275
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.557, 0.367, -0.424), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.576, -0.53).lineTo(0.576, 0.622).lineTo(-0.576, 0.622).lineTo(-0.292, 0.337).lineTo(0.266, 0.456).lineTo(0, 0.046).lineTo(0.41, -0.22).lineTo(0.292, -0.245).lineTo(-0.266, -0.364)...
16
184
0.981676
train_2ed8ea21ba9a9ac2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.804, 0.322, -0.13), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.076, -0.005).lineTo(-0.046, 0.021).lineTo(-0.021, 0.009).lineTo(0.041, 0.034).lineTo(0.061, -0.005).lineTo(0.076, -0.034).lineTo(0.011, -0.005).lineTo(-0.056, -0.005).lineTo(-0.0...
2
18
0.021156
train_977c417526cacfdf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.441).extrude(0.188) result = result.union(cq.Workplane(cq.Plane(origin=(-0.277, -0.394, 0.058), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.621, 0.211).threePointArc((-0.655, 0.206), (-...
12
28
0.467038
train_443f3585d9ab2c7f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.139, -0.201, -0.097), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.442, 0.304).lineTo(-0.442, 0.268).lineTo(0.442, 0.268).lineTo(0.442, 0.011).lineTo(-0.442, 0.011).lineTo(-0.442, 0.304).close().extrude(0.325) result = result.edges().fillet(0.0...
21
82
0.080639
train_235d01eaeb368589
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.91, 0, 0.877), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.071).sweep(cq.Workplane('XZ').spline([(-0.366, 0.307), (-0.094, -0.125), (0.178, -0.269), (0.451, -0.125), (0.723, 0.307)])) result = result.faces('>Y').shell(-0.016)
2
3
0.018644
train_d28bb6ed332a84ae
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.571).extrude(0.712) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.19 * math.cos(5.908 + 2 * math.pi * 0 / 5), 0 + 0.19 * math.sin(5.908 + 2 * math.pi * 0 / 5), -0.463), normal=(...
23
113
2.122425
train_442c7df027d7a887
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.555, -0.644, -0.331), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.251, 0.647).lineTo(0.251, 0.647).lineTo(0.251, -0.356).lineTo(-0.251, -0.356).lineTo(-0.251, 0.647).close().extrude(0.425) result = result.edges().fillet(0.028) result = result....
17
204
0.611204
train_2f4e5b7aa27ed769
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.069, -0.245, 0.283), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.454, 0.755).lineTo(-0.454, -0.755).lineTo(0.454, -0.755).lineTo(0.454, 0.755).lineTo(-0.454, 0.755).close().extrude(0.566) result = result.edges().fillet(0.123) result = result....
20
120
0.607184
train_b9df65a4eeae37c3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.133, -0.087, 0.209), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.189, 0.072).threePointArc((0.184, 0.043), (0.171, 0.015)).threePointArc((0.113, -0.041), (0.038, -0.071)).threePointArc((0, -0.075), (-0.038, -0.071)).threePointArc((-0.113, -0.04...
7
63
0.54583
train_385764b13cd182cb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.573, 0.371, 0.032), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.042, 0.928).threePointArc((-0.127, 0.853), (-0.205, 0.935)).lineTo(-0.255, 0.534).lineTo(-0.259, 0.5).threePointArc((-0.259, 0.487), (-0.256, 0.474)).lineTo(-0.205, -0.043).threeP...
6
80
0.261862
train_9fb81d8234f61eb2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.015, -0.183, -0.217), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.357, 0.166).threePointArc((-0.566, 0.197), (-0.544, -0.013)).threePointArc((-0.474, 0.007), (-0.404, -0.013)).threePointArc((-0.344, -0.096), (-0.36, -0.197)).lineTo(0.36, -0.1...
16
200
0.129624
train_e14defc56d1c9cfd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.048, 0.205, -0.121), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.294, -0.169).lineTo(-0.294, 0.126).lineTo(0, 0.42).lineTo(0.294, 0.126).lineTo(0.294, -0.169).lineTo(-0.294, -0.169).close().workplane(offset=0.108).moveTo(-0.272, -0.146).lineTo...
15
125
0.152779
train_cc1dc18ce4c3412c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.112, 0.029, -0.166), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.393, 0.888).threePointArc((-0.259, 0.736), (-0.125, 0.888)).lineTo(-0.036, 0.178).threePointArc((-0.034, 0.152), (-0.035, 0.127)).lineTo(-0.099, -0.504).threePointArc((-0.071, -0....
2
20
0.702545
train_68903259b8f93fe1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.803, 0.862), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.555).sweep(cq.Workplane('YZ').spline([(0.803, 0.004), (1.051, 0.012), (1.3, 0.06), (1.548, 0.243), (1.796, 0.426), (2.045, 0.475), (2.293, 0.483)])) result = result.edges().chamfer(0.37...
4
12
0.096906
train_0a4f61c963e83d13
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.505, 0.013, -0.625), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.756, 0.211).extrude(0.773) result = result.union(cq.Workplane(cq.Plane(origin=(-0.607, -0.027, 0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.017).extrude(0.647)) result = resu...
10
49
0.204133
train_6e7a37074f5b5444
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.146, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.844, 1.708).extrude(0.089) result = result.union(cq.Workplane(cq.Plane(origin=(-0.071, 0.4, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.864, 0.858).extrude(0.028)) result = result...
22
166
0.310999
train_e2741135e8947d42
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.313, 0.33, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.284).lineTo(1, 0.823).lineTo(-1, 0.823).lineTo(-1, 0.284).lineTo(-0.592, -0.125).lineTo(0.592, -0.125).lineTo(1, 0.284).close().extrude(0.915) result = result.edges().fillet(0.253) r...
15
78
0.932411
train_ed6077ef9bf4fa8b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.505, 0.541, 0.081), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.593, 0.928).threePointArc((0, 1.323), (0.593, 0.928)).threePointArc((0, 0.038), (-0.593, 0.928)).close().extrude(0.897) result = result.edges().chamfer(0.21) result = result.cut(c...
18
71
0.758086
train_b093268e08555fef
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.36, 0, -0.045), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.181, 0.28).lineTo(-0.183, 0.129).lineTo(-0.078, 0.021).lineTo(0.074, 0.019).lineTo(0.181, 0.124).lineTo(0.183, 0.276).lineTo(0.078, 0.384).lineTo(-0.074, 0.386).lineTo(-0.181, 0.28).c...
14
116
0.198754
train_30747a5488eeec2b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.054, 0.047), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.915, 1.023).threePointArc((0.428, 0.068), (0.855, -0.915)).lineTo(0.054, -0.915).threePointArc((-0.915, 0.054), (0.054, 1.023)).lineTo(0.915, 1.023).close().extrude(1.078) result = re...
14
110
3.546761
train_c55d450432c7a40d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.372, -0.719, -2.161), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(4.744, 2.439).extrude(2.452) result = result.cut(cq.Workplane(cq.Plane(origin=(-1.041, -0.742, -2.577), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.269, 0.737).extrude(2.941)) result =...
5
20
0.119586
train_359bd31b5ebcf023
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.023, 0.189, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.877, -0.178).threePointArc((-0.942, -0.258), (-1, -0.343)).threePointArc((-0.701, 0.062), (-0.34, 0.413)).threePointArc((0, 0.535), (0.34, 0.413)).threePointArc((0.701, 0.062), (1, -0...
7
43
0.429445
train_31d6a3bde6cc46d9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.333, 0, -0.936), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.064, 0.032).lineTo(-0.047, 0.015).lineTo(0, -0.032).lineTo(0.016, -0.015).lineTo(0.016, 0.015).lineTo(0.047, 0.015).lineTo(0.064, 0.032).lineTo(-0.064, 0.032).close().sweep(cq.Workpla...
1
9
0.002636
train_ff47f3ddfb9359b8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.052, -0.037, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.036, -0.04).threePointArc((0.036, 0.032), (-0.036, 0.105)).lineTo(-0.036, 0.032).lineTo(-0.036, -0.04).close().extrude(0.086) result = result.union(cq.Workplane(cq.Plane(origin=(...
13
66
0.005292
train_e4b13e8be5a5c1ab
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.06, -0.383, 0.834), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.412, 0.617).lineTo(0.412, -0.617).lineTo(-0.36, -0.617).threePointArc((-0.396, -0.603), (-0.412, -0.566)).lineTo(-0.412, -0.36).threePointArc((-0.396, -0.323), (-0.36, -0.309)).line...
2
18
0.25076
train_1e52b055f2fa4526
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.106, 0.483), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, -0.377).lineTo(0.573, -0.377).lineTo(0.573, -0.266).lineTo(0.547, -0.266).threePointArc((0.511, -0.314), (0.462, -0.35)).lineTo(0.462, -0.377).lineTo(0.252, -0.377).lineTo(0.141, -0.3...
1
19
1.251832
train_09f7d16dfbddef78
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.002, -0.11, -0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.135, -0.12).lineTo(0.134, -0.123).lineTo(0.131, 0.12).lineTo(-0.137, 0.119).close().moveTo(0.024, 0).lineTo(0.017, 0.016).lineTo(0, 0.023).lineTo(-0.016, 0.017).lineTo(-0.023, 0)....
6
58
0.020728
train_0981c352fb78fb3d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.541, 1.06, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.6, 0.896).lineTo(0.6, 0.06).lineTo(0.509, 0.133).lineTo(0.418, 0.06).lineTo(0.418, 0.896).lineTo(-0.455, 0.896).lineTo(-0.455, 1.005).lineTo(-0.527, 1.096).lineTo(-0.6, 1.005).lineTo(-0...
9
81
1.446139
train_330423c7218612e4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.435).workplane(offset=0.754).circle(0.328).workplane(offset=0.621).circle(0.325).workplane(offset=0.625).circle(0.483).loft() result = result.edges().chamfer(0.166) result = result.cut(cq.Work...
15
59
0.357825
train_3dcbff7ff2e41b2a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.405, -0.092, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.838, 0.467).extrude(0.157) result = result.union(cq.Workplane(cq.Plane(origin=(0.466, -0.029, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.103).extrude(0.054)) result = resu...
34
357
0.234917
train_532872aa4e68cb36
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.764, 0.223, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.392, -0.584).threePointArc((-0.413, 0.222), (0.392, 1.028)).lineTo(0.413, 1.028).lineTo(0.413, 0.828).lineTo(0.392, 0.828).threePointArc((-0.214, 0.222), (0.392, -0.384)).lineTo(0.392,...
16
149
0.579166
train_36fa14b8c54c7093
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.23, -0.639), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.417, 1.54).extrude(1.278) result = result.cut(cq.Workplane(cq.Plane(origin=(0.305, 0.539, -0.856), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.523, 0.567).extrude(1.534)) result = result.cu...
18
152
1.569156
train_85062b37bbab2029
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.158, -0.541, -0.719), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.143, 0.143).extrude(0.152) result = result.union(cq.Workplane(cq.Plane(origin=(-0.158, -0.8, -0.68), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.057, 0.399).extrude(0.074)) result = ...
5
78
0.045865
train_6b7fc684fb81f25b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.305, 0.107, -0.063), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.194, 0.269).lineTo(0.194, -0.269).lineTo(-0.194, -0.269).lineTo(-0.194, 0.072).lineTo(0.167, 0.072).lineTo(0.167, 0.269).lineTo(0.194, 0.269).close().sweep(cq.Workplane('XY').spli...
4
30
0.172222
train_2c805cfe9187a13b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.538, 0.315, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.289, 0).threePointArc((-0.154, 0.327), (0.173, 0.462)).threePointArc((0.058, 0.347), (0.173, 0.231)).threePointArc((0.01, 0.164), (-0.058, 0)).threePointArc((0.01, -0.164), (0.173, -0...
1
8
0.028558
train_64925320368b5764
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.025, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.996, -0.102).lineTo(-0.992, -0.143).lineTo(-0.476, -0.091).lineTo(0.984, 0.059).lineTo(1, 0.06).lineTo(0.996, 0.102).lineTo(0.992, 0.143).lineTo(-0.485, -0.008).lineTo(-1, -0.06).lineTo(-...
8
49
0.04156
train_29644a424c85497a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.726, -0.08), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.195, -0.193).lineTo(0.286, 0.05).lineTo(0.156, 0.267).lineTo(0.152, 0.273).lineTo(0.146, 0.274).lineTo(-0.286, 0.057).lineTo(-0.282, 0.017).lineTo(-0.269, -0.131).lineTo(-0.052, -0.27...
2
25
0.178733
train_b6c24304f91da7c2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.468, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.319, 0.359).lineTo(0.319, -0.327).lineTo(0.239, -0.327).lineTo(0.239, 0.008).lineTo(-0.239, 0.008).lineTo(-0.239, -0.359).lineTo(-0.319, -0.359).lineTo(-0.319, 0.359).lineTo(0.319, 0.359).c...
1
10
0.147708
train_d6b0cef8643bf599
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.026, -0.083, -0.94), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.077, -0.068).threePointArc((0.004, 0.012), (-0.077, 0.085)).threePointArc((0.062, 0.07), (0.077, -0.068)).close().extrude(0.165) result = result.edges().chamfer(0.022) result = re...
4
21
0.002171
train_12101a06f375cf72
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.191, -0.127, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.274).lineTo(1, 0.274).lineTo(1, 0.024).lineTo(-1, 0.024).lineTo(-1, 0.358).lineTo(0, 0.358).lineTo(0, 0.274).close().extrude(0.254) result = result.faces('<X').shell(-0.026) result...
12
23
0.041098
train_4518e830fdc852e9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.541, -0.145, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.432, -0.245).lineTo(-0.432, 0.245).lineTo(0.432, 0.245).lineTo(0.432, -0.245).lineTo(-0.432, -0.245).close().sweep(cq.Workplane('XY').spline([(0.125, -0.145), (0.568, -0.074), (1.01...
14
79
0.284117
train_c8430b9f39890401
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.615, 0.232, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.504, 0.232).lineTo(-0.504, 1.24).threePointArc((-0.17, 1.183), (0.125, 1.019)).threePointArc((0.404, 0.668), (0.504, 0.232)).threePointArc((0.404, -0.205), (0.125, -0.556)).threePoint...
5
31
1.642556
train_189cab028f013888
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.284, 0.288, -0.436), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.61, 0.039).lineTo(-0.173, 0.039).lineTo(-0.61, 0.477).lineTo(0.61, 0.477).lineTo(0.61, 0.039).close().extrude(0.577) result = result.edges().fillet(0.032) result = result.union(cq...
13
126
0.273381
train_afdc53f677288a10
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.482, 0.518, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, 0.039).lineTo(-1, 0.039).lineTo(-1, 0.679).lineTo(1, 0.679).lineTo(1, 0.039).close().extrude(1.298) result = result.edges().fillet(0.091) result = result.union(cq.Workplane(cq.Plane(o...
13
69
1.438507
train_0ec285c2a5c8909c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.738, 0, -0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.524, 0.396).extrude(0.183) result = result.faces('>Z').shell(-0.008) result = result.union(cq.Workplane(cq.Plane(origin=(0.788, -0.035, -0.113), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0....
5
32
0.018345
train_9f66318f90f695e5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -1, -0.268), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.056).lineTo(-0.033, 0.037).lineTo(-0.033, -0.056).lineTo(0.026, -0.056).lineTo(0.026, 0.021).lineTo(0.033, 0.021).lineTo(0.033, 0.037).lineTo(0, 0.056).close().sweep(cq.Workplane('YZ'...
1
9
0.009778
train_73edd4345f188c80
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.675, 0, -0.429), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.323, -0.38).lineTo(0.323, 0.266).lineTo(0.081, 0.266).lineTo(0.081, 0.38).lineTo(-0.081, 0.38).lineTo(-0.081, 0.266).lineTo(-0.323, 0.266).lineTo(-0.323, -0.38).lineTo(0.323, -0.38)....
13
72
0.75461
train_b012f6ae270cff8f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.042, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.052, 0.847).lineTo(-0.052, 0.496).threePointArc((0, -0.9), (0.052, 0.496)).lineTo(0.052, 0.542).lineTo(0.052, 0.671).lineTo(0.052, 0.715).lineTo(0.052, 0.89).lineTo(0.052, 0.958).line...
5
56
0.290287
train_a20628437f028c82
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.483, 1.717).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.063, -0.251, 0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.624, 0.871).extrude(1.013)) result = result.cut(cq.Work...
10
58
3.729656
train_592eb515b6521cc0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.053, 0.167, -0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.895, 1.232).extrude(0.368) result = result.union(cq.Workplane(cq.Plane(origin=(0.053, 0.167, 0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.68, 0.622).extrude(0.067)) result = resu...
17
125
0.572707
train_e49101f7b2b456b4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.245, 0, -0.19), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.27, 1.004).lineTo(-0.27, -0.513).lineTo(0.27, -0.513).lineTo(0.27, 1.004).lineTo(-0.27, 1.004).close().revolve(angleDegrees=360, axisStart=(-0.27, 1.004), axisEnd=(-0.27, 0.245)) resu...
18
85
2.041937
train_435211f9aadd2fd3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.179, -1.176, -0.075), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.663, 0.878).lineTo(0.663, 0.066).lineTo(0.663, 0.878).lineTo(-0.663, 0.878).close().extrude(0.357) result = result.edges().chamfer(0.176) result = result.union(cq.Workplane(cq.P...
11
94
0.204239
train_befc8aa3e3e66642
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.549, 0.109, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.046, 0.469).lineTo(-0.163, 0.502).lineTo(-0.762, 0.502).lineTo(-0.971, 0.404).lineTo(-0.971, 0.113).lineTo(-0.762, 0.048).lineTo(-0.115, 0.048).lineTo(-0.046, 0.08).lineTo(0.046, 0.08...
16
110
0.488087
train_c4c3adb17b69563a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.739, -0.333, -0.45), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.522, 0.522).extrude(0.901) result = result.union(cq.Workplane(cq.Plane(origin=(0.739, 0.239, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.203, 0.71).extrude(0.298)) result = re...
5
29
0.365891
train_ee09a5d5a5488d85
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.898, -0.684, -0.247), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.753, 0.744).lineTo(-0.753, 0.932).lineTo(0.753, 0.932).lineTo(0.753, 0.075).lineTo(-0.753, 0.075).lineTo(-0.753, 0.744).close().extrude(1.796) result = result.edges().fillet(0.3...
5
35
1.985957
train_7a142df150177781
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.123, 0.04, -0.683), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.244, -0.078).threePointArc((-0.135, -0.163), (0, -0.193)).threePointArc((0.135, -0.163), (0.244, -0.078)).threePointArc((0.286, 0.258), (0, 0.439)).threePointArc((-0.286, 0.258), ...
4
23
0.034684
train_f1745a197be3d8ba
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.157, -0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.019).lineTo(-1, 0.295).lineTo(0.385, 0.295).threePointArc((1, 0.157), (0.385, 0.019)).lineTo(-1, 0.019).close().extrude(0.278) result = result.edges().chamfer(0.045) result = resu...
8
51
0.166855
train_25b7abd8e3ef1b14
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.246, 0.053), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.354, -0.569).threePointArc((-0.431, -0.324), (-0.354, -0.078)).lineTo(-0.333, 0.01).lineTo(-0.154, 0.743).threePointArc((0, 0.754), (0.154, 0.743)).lineTo(0.333, 0.01).lineTo(0.246, 0...
3
20
0.566315
train_4c6ea13e80b55df3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.932, 2).extrude(0.517) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.258, -1.514), normal=(1, 0, 0), xDir=(0, 1, 0))).rect(0.934, 0.243).extrude(0.602)) result = result.cut(cq.Workp...
18
120
1.523819
train_05df9cb2b1bd8c7c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.066, -0.08, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.533, 1.629).extrude(1.711) result = result.union(cq.Workplane(cq.Plane(origin=(0.765, -0.086, 0.243), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.067).extrude(0.218)) result = result.un...
12
140
4.201296
train_340c14570a14db8b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.646, 0, -0.555), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.167, 0.358).threePointArc((0.315, 0.22), (0.444, 0.376)).threePointArc((0, 0.784), (-0.444, 0.376)).threePointArc((-0.315, 0.22), (-0.167, 0.358)).threePointArc((0, 0.525), (0.167, 0....
7
38
0.456459
train_3f146cc8c14f941b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.563, -0.173, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.873, 0.863).extrude(0.348) result = result.cut(cq.Workplane(cq.Plane(origin=(0.879, -0.173, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.254, 0.399).extrude(0.024)) result = r...
9
67
0.538113
train_f82066665d14bc16
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.219, 0.343, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.4, 0.063).lineTo(0.071, 0.063).lineTo(0.4, 0.07).lineTo(0.4, 0.533).lineTo(0.074, 0.533).lineTo(0.074, 0.858).lineTo(0.081, 1.343).lineTo(-0.4, 1.343).lineTo(-0.4, 0.063).close().extr...
10
80
0.35752
train_f201d938d526fe8a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.126, 0, -0.645), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.668, 1.246).extrude(1.645) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.052, 0.295, -0.695), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.076, 0.235).extrude(1.975)) result = resul...
16
141
1.285721
train_0ec37d0a5988048a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.692), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.499, 2).extrude(1.383) result = result.cut(cq.Workplane(cq.Plane(origin=(0.166, 0.08, 0.138), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.166, 0.392).lineTo(0.607, 0.392).lineTo(0.607, -0.2...
5
39
3.113488
train_16d1621de5551ac7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.073, -0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.332, 0.431).threePointArc((-0.308, 0.442), (-0.283, 0.433)).lineTo(-0.046, 0.213).lineTo(0.386, -0.127).lineTo(0.302, -0.211).lineTo(0.218, -0.295).lineTo(-0.15, 0.103).lineTo(-0.377...
14
80
0.100229
train_63e25224a38bf3e1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.508, -0.58, -0.159), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.198, -0.056).lineTo(-0.198, 0.152).lineTo(0.198, 0.152).lineTo(0.198, -0.056).lineTo(-0.198, -0.056).close().extrude(1.161) result = result.edges().chamfer(0.074) result = result....
23
260
0.171567
train_dbafd176967c1aae
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.238, 0, -0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.523, 1.128).extrude(0.568) result = result.union(cq.Workplane(cq.Plane(origin=(-0.755, 0.041, -0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.49, 0.174).extrude(0.299)) result = resul...
4
16
0.95979
train_6db2dc7866d8f990
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.146, 0.343, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.961, 1.314).extrude(0.311) result = result.union(cq.Workplane(cq.Plane(origin=(0.194, 0.409, 0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.433).extrude(0.032)) result = result.u...
9
58
0.58135
train_b0bae9b38914fc10
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.466, 0, 0.094), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.113, 0.485).lineTo(-0.615, 0.987).lineTo(-0.427, 1.175).lineTo(-0.389, 1.175).lineTo(0.576, 1.172).lineTo(0.615, 1.172).lineTo(0.294, 0.854).lineTo(0.294, 0.485).lineTo(-0.075, 0.485)...
8
58
0.804828
train_03a2a563689ff724
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.939, -0.187, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.031, -0.616).threePointArc((-0.012, -0.58), (0, -0.543)).lineTo(0.377, -0.387).lineTo(0.533, -0.009).lineTo(0.377, 0.368).lineTo(0, 0.524).threePointArc((-0.283, 0.673), (-0.377, 0.36...
1
11
0.537442
train_d151b698b5e6bb1d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.621, 0.059, -0.404), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.379, -0.277).lineTo(0.379, 0.224).lineTo(0.353, 0.303).lineTo(-0.379, 0.303).lineTo(-0.379, -0.303).lineTo(0.379, -0.303).lineTo(0.379, -0.277).close().transformed(offset=(0.269, ...
11
40
0.255626
train_ed182aa1826e3ffd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.273, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.099, 1.273).lineTo(-0.191, 1.273).lineTo(-0.191, 0.334).lineTo(-0.18, 0.334).lineTo(-0.133, 0.383).lineTo(-0.133, 0.273).lineTo(0.162, 0.273).threePointArc((0.177, 0.317), (0.191, 0.363))...
1
12
0.276359
train_fa5be7fcbc02f794
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.605, 0, -0.402), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.791, 0.767).extrude(0.585) result = result.cut(cq.Workplane(cq.Plane(origin=(0.66, 0.051, -0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.102).extrude(0.146)) result = result.cut(cq...
8
62
0.695532