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_a5aeb457b954103b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.194, 0.355, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.113, 1.234).lineTo(0.113, 0.214).lineTo(0.113, -0.521).lineTo(0.341, -0.521).lineTo(0.341, -0.806).lineTo(-0.341, -0.806).lineTo(-0.341, -0.521).lineTo(-0.113, -0.521).lineTo(-0.113, ...
7
72
0.212773
train_db4d0d93c83b6454
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.122), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.5, -0.624).threePointArc((0, 1), (0.5, -0.624)).lineTo(0.5, -0.881).threePointArc((0, -1), (-0.5, -0.881)).lineTo(-0.5, -0.624).close().extrude(0.196) result = result.edges().fillet(0.02...
7
68
0.587729
train_272f7e4eccf9c42a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.759, 0.532, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.775, 0.139).lineTo(-0.775, 0.586).threePointArc((-0.671, 0.974), (-0.388, 1.258)).lineTo(0, 1.481).lineTo(0.388, 1.258).threePointArc((0.671, 0.974), (0.775, 0.586)).threePointArc((0....
16
95
2.955513
train_76adb01ae534f9d3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.366, -0.465), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.339, -0.3).lineTo(-0.323, -0.3).lineTo(-0.008, 0.245).lineTo(0, 0.259).lineTo(0.008, 0.245).lineTo(0.016, 0.231).lineTo(0.008, 0.217).lineTo(0.283, -0.259).lineTo(-0.283, -0.259).lin...
4
37
0.116823
train_23c2d840965bcc79
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.206, -0.719, -0.089), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.259, -0.281).lineTo(-0.252, -0.194).lineTo(-0.05, -0.194).lineTo(-0.056, -0.108).lineTo(-0.245, -0.108).lineTo(-0.223, 0.194).lineTo(-0.08, 0.194).lineTo(-0.087, 0.281).lineTo(...
5
42
0.074963
train_30f10041a7f9aae2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.816, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.804, 1.28).lineTo(-0.402, 1.513).threePointArc((0, 1.62), (0.402, 1.513)).threePointArc((0.696, 1.219), (0.804, 0.816)).threePointArc((0.696, 0.415), (0.402, 0.12)).threePointArc((0, 0.0...
6
43
2.922811
train_1e8a9be8f7573949
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.5, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.5, -0.366).lineTo(0.5, 0.366).lineTo(0.018, 0.366).threePointArc((0.12, 0.244), (0.156, 0.09)).threePointArc((0.152, 0.037), (0.14, -0.014)).threePointArc((0.026, -0.179), (-0.159, -0.253))...
4
17
0.686661
train_f9bc807ff081dd8a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.469, 0.698, 0.562), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.466, 0.819).lineTo(0.007, 1.26).lineTo(0.466, 1.016).lineTo(0.202, -0.46).lineTo(-0.466, 0.819).close().revolve(angleDegrees=180, axisStart=(-0.466, 0.819), axisEnd=(0.007, 1.26)) ...
10
137
0.890936
train_6a671e46f4651484
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.027, -0.127, -0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.998, 0.006).lineTo(-0.998, -0.027).lineTo(0.384, -0.076).lineTo(0.998, -0.076).lineTo(0.998, 0.076).lineTo(0.712, 0.066).lineTo(0.712, 0.054).lineTo(0.384, 0.054).lineTo(-0.998...
14
167
0.150147
train_635dc7adae549834
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.905, 1.634).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.209, 0.33, 0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.264).extrude(0.852)) result = result.cut(cq.Workplane(cq...
9
70
5.53244
train_83a816e0ae518c63
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.002, 0.232, -0.091), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.29, -0.015).lineTo(-0.29, 0.217).lineTo(-0.174, 0.217).lineTo(-0.174, 0.188).lineTo(0, 0.188).threePointArc((0.041, 0.21), (0.087, 0.217)).threePointArc((0.133, 0.21), (0.174, 0.1...
11
91
0.156216
train_94109ffd87c024f1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.204, 0.128, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.273, 0.333).extrude(0.027) result = result.union(cq.Workplane(cq.Plane(origin=(0.215, 0.144, -0.123), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.24, 0.298).extrude(0.007)) result = re...
17
147
0.165311
train_899aaf0fe4b22383
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.341, -0.563, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.402, -0.186).threePointArc((-0.321, -0.295), (-0.213, -0.376)).threePointArc((0, -0.428), (0.213, -0.376)).threePointArc((0.321, -0.295), (0.402, -0.186)).threePointArc((0.236, 0.027...
6
27
0.772029
train_c6750f5e1f69f118
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.177, 0.006, 0.509), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.503, 0.344).lineTo(-0.503, 0.009).lineTo(0.503, 0.009).lineTo(0.503, 0.344).lineTo(-0.503, 0.344).close().revolve(angleDegrees=270, axisStart=(-0.503, 0.344), axisEnd=(-0.503, 0.0...
4
78
0.692087
train_4d635e1701f0d974
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.827, -0.629, -0.111), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.286, 0.033).lineTo(-0.265, 0.033).threePointArc((-0.203, 0.125), (-0.111, 0.187)).lineTo(-0.111, 0.301).lineTo(-0.153, 0.343).lineTo(-0.125, 0.371).lineTo(0.125, 0.371).lineTo(...
11
67
0.507035
train_b61824afca2722ec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.471, 0.113, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.052, 0.835).lineTo(0.052, -0.529).lineTo(-0.052, -0.529).lineTo(-0.052, 0.835).lineTo(0.052, 0.835).close().extrude(0.052) result = result.edges().fillet(0.017) result = result.union(c...
6
86
0.008967
train_a06b526a5fae0efc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.96, 0.753, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.981, 0.663).threePointArc((-1, 0.846), (-0.981, 1.028)).threePointArc((-0.734, 1.488), (-0.275, 1.734)).threePointArc((-0.092, 1.753), (0.091, 1.734)).threePointArc((0.55, 1.488), (0.7...
13
79
4.054678
train_d2cb944ca206c931
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.459, 0, 0.228), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.042, -0.249).lineTo(-1.459, -0.249).lineTo(-1.459, 0.249).lineTo(0.541, 0.249).lineTo(0.541, -0.249).lineTo(1.459, -0.249).lineTo(-1.042, -0.249).close().extrude(0.455) result = resul...
36
166
0.367072
train_a34eac4ba42bf82f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.496, -0.833, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.595, -0.377).threePointArc((0.204, -0.454), (0.803, 0.082)).threePointArc((0.893, 0.496), (0.803, 0.91)).threePointArc((0.204, 1.447), (-0.595, 1.37)).threePointArc((-0.816, 0.957), ...
3
79
4.740256
train_808d353edf5a5bc0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.902), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.66, 2).extrude(1.804) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.252 * math.cos(1.707 + 2 * math.pi * 0 / 7), 0 + 0.252 * math.sin(1.707 + 2 * math.pi * 0 / 7), -1.173), normal=...
10
151
3.700714
train_6cd3f574f30e58fc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.84, 0, -0.074), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.299, 0.344).extrude(0.243) result = result.union(cq.Workplane(cq.Plane(origin=(-0.585, 0, -0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.259, 0.276).extrude(0.115)) result = result.un...
7
61
0.441357
train_29554a65d7de2ed9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.571, 0.058, -0.566), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.831, 0.544).extrude(0.294) result = result.union(cq.Workplane(cq.Plane(origin=(-0.528, 0.183, 0.034), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.639, 0.322).lineTo(0.638, 0.61).lin...
6
66
0.426853
train_1e158128e4c5ee3f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.216), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.194).sweep(cq.Workplane('XZ').spline([(-0.816, -0.376), (-0.544, -0.096), (-0.272, 0.072), (0, 0.128), (0.272, 0.072), (0.544, -0.096), (0.816, -0.376)])) result = result.edges().fillet(0.0...
3
9
0.302966
train_e34a62275b67eed3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.114, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.524, 1.459).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(0.247, 0.725, -0.782), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.119).extrude(1.068)) result = result.cut(cq.Wor...
5
66
4.120285
train_b220a780318765a4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.318, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.212, 0.843).threePointArc((-0.333, 0.776), (-0.434, 0.682)).lineTo(-0.79, 0.834).lineTo(-0.866, 0.6).lineTo(-0.942, 0.365).lineTo(-0.564, 0.279).threePointArc((-0.538, 0.143), (-0.48, 0....
14
128
2.137435
train_59889c13fdc394c5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.514, -0.255, 0.037), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.24, -0.745).lineTo(-0.24, -0.275).threePointArc((0.011, 1.01), (0.24, -0.279)).lineTo(0.24, -0.745).lineTo(-0.24, -0.745).close().extrude(0.478) result = result.edges().fillet(0....
18
106
0.442696
train_cd281ffb9f16d81b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.081, -0.213, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.922, 0.008).lineTo(0.449, 0.8).lineTo(-0.436, 0.807).lineTo(-0.889, 0.016).lineTo(-0.461, -0.787).lineTo(0.45, -0.781).close().moveTo(-0.358, 0.412).lineTo(-0.147, 0.413).lineTo(...
13
163
0.340509
train_cc3041eadd1ae8ba
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.477, 0.586), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.34, 0.28).lineTo(0.34, -0.28).lineTo(0.282, -0.28).lineTo(0.282, 0.222).lineTo(-0.34, 0.222).lineTo(-0.34, 0.28).lineTo(0.34, 0.28).close().sweep(cq.Workplane('YZ').spline([(-0.385, -0....
2
8
0.10848
train_2e18acdfcaf5af8f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.125, -0.029, -0.543), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.751, 1.254).extrude(0.98) result = result.union(cq.Workplane(cq.Plane(origin=(0.728, 0.298, 0.432), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.074).extrude(0.11)) result = result.u...
5
19
2.156271
train_baa0bf5fe0417a16
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.366, 0, 0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.268, 1.162).extrude(0.05) result = result.union(cq.Workplane(cq.Plane(origin=(0.807, 0, 0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.132, 0.69).extrude(0.198)) result = result.union(...
6
50
0.975432
train_80749cae6aa7a802
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.599, -0.238, -0.272), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.391, 0.24).threePointArc((-0.09, 0.325), (0.165, 0.144)).threePointArc((0.321, 0.112), (0.391, -0.031)).lineTo(0.21, -0.031).threePointArc((0.199, -0.121), (0.165, -0.206)).thre...
29
217
0.414126
train_a180c6133316a992
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.022, -0.102, -0.348), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.649, 0.125).lineTo(-0.655, 0.125).threePointArc((-0.649, 0.096), (-0.646, 0.067)).threePointArc((-0.646, 0.036), (-0.65, 0.005)).lineTo(-0.643, 0.005).lineTo(0.655, 0.005).lineTo...
10
92
0.042278
train_871d7fecfd0dad7f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.39, 0.344, 0.072), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.377).sweep(cq.Workplane('XZ').spline([(0.41, -0.572), (0.056, -0.445), (-0.365, -0.445), (-0.719, -0.572)])) result = result.cut(cq.Workplane(cq.Plane(origin=(0.792, 0.471, -0.114)...
11
44
0.960013
train_32cde9df2b9593f3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.155, -0.556, -0.585), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.404, 0.646).lineTo(0.404, -0.162).lineTo(-0.404, -0.162).lineTo(-0.404, 0.646).lineTo(0.404, 0.646).close().extrude(0.916) result = result.union(cq.Workplane(cq.Plane(origin=(-0....
18
115
0.386002
train_f24da2c10fc50b2f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.528, -0.57, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.103).lineTo(-1, 0.037).lineTo(1, 0.037).lineTo(1, 1.103).lineTo(0.627, 1.103).lineTo(0.627, 0.57).lineTo(0.36, 0.57).threePointArc((0, 0.93), (-0.36, 0.57)).lineTo(-0.627, 0.57).li...
25
343
1.080304
train_16b9e5261edb5cb5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.338, 0, 0.502), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.148, 0.067).lineTo(-0.26, 0.067).lineTo(-0.26, -0.179).lineTo(-0.123, -0.179).lineTo(-0.123, -0.204).lineTo(0.123, -0.204).lineTo(0.123, -0.179).lineTo(0.26, -0.179).lineTo(0.26, 0.067...
15
103
0.098761
train_9e17c22c53df8ab0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.562).workplane(offset=0.462).circle(0.512).workplane(offset=0.574).circle(0.463).workplane(offset=0.54).circle(0.413).workplane(offset=0.424).circle(0.365).loft() result = result.edges()....
4
18
1.195122
train_06712ce69b770a6b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.049, -0.362, -0.439), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.933, 0.913).extrude(0.772) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.049 + 0.103 * math.cos(1.532 + 2 * math.pi * 0 / 3), -0.362 + 0.103 * math.sin(1.532 + 2 * math.pi *...
26
260
0.420968
train_e3ff2709bbc53923
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.165, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.464).workplane(offset=0.219).circle(0.303).workplane(offset=0.242).circle(0.3).workplane(offset=0.179).circle(0.39).workplane(offset=0.195).circle(0.487).loft() result = result.edges().ch...
8
26
0.334724
train_1c850ee34e8a5709
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.234, 0, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.532, 1.694).extrude(0.55) result = result.union(cq.Workplane(cq.Plane(origin=(0.532, 0.084, 0.225), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.061, 0.024).lineTo(-0.048, 0.024).lineTo(...
4
27
1.503405
train_b124ff6ef65ac96e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.053, 0, 0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.101, -0.098).lineTo(0.097, -0.097).lineTo(0.097, 0.096).lineTo(-0.099, 0.099).close().moveTo(-0.004, 0.045).lineTo(0.003, 0.045).lineTo(0.004, 0.031).lineTo(0.02, 0.031).lineTo(0.02, ...
15
290
0.095823
train_98cbe9bb5287fa2a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.048, 0.047, -0.014), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.074, -0.878).threePointArc((0, -0.952), (-0.074, -0.878)).lineTo(-0.074, 0.974).threePointArc((0, 1.048), (0.074, 0.974)).lineTo(0.074, -0.878).close().extrude(0.095) result = res...
7
34
0.024733
train_dcb1befb6e67833d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.142), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.501, 1.002).threePointArc((-0.501, 0), (0.501, -1.002)).lineTo(0.501, -0.834).threePointArc((-0.333, 0), (0.501, 0.834)).lineTo(0.501, 1.002).close().extrude(0.285) result = result.edges()...
4
40
0.115022
train_6157dc25938a8713
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.017, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.795, 0.434).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(-0.061, -0.217, -0.355), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.077, 0.034).extrude(0.186)) result = result.cut(...
15
134
0.643974
train_187d99bd978f300e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.621, 0.031, -0.014), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.036, 0.145).lineTo(-0.036, -0.145).lineTo(-0.009, -0.145).lineTo(-0.009, -0.109).threePointArc((0.002, -0.083), (0.027, -0.072)).lineTo(0.036, -0.072).lineTo(0.036, 0.145).lineT...
9
59
0.067653
train_9a29c1c0085e9fbf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.096, -0.302, -0.36), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.941, 1.396).extrude(0.533) result = result.cut(cq.Workplane(cq.Plane(origin=(0.126, -0.03, -0.242), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.524, 0.3).extrude(0.204)) result = resu...
11
154
0.747309
train_f857c0badffde7b9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.281, -0.745, -0.374), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.655, 1.455).lineTo(0.655, 0.165).threePointArc((0.7, 0.055), (0.59, 0.1)).lineTo(-0.636, 0.1).lineTo(-0.7, 0.1).lineTo(-0.7, 0.165).lineTo(-0.7, 1.39).lineTo(-0.7, 1.455).lineTo(-...
23
68
1.391039
train_d564e12de5b4d5ea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.549), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.823, 0.731).lineTo(-0.823, -0.914).lineTo(-1.006, -0.914).lineTo(-1.006, 0.914).lineTo(1.006, 0.914).lineTo(1.006, 0.731).lineTo(-0.823, 0.731).close().workplane(offset=0.247).moveTo(-0.7...
3
62
0.626457
train_c3981ce87823c711
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.004, 0.074, -0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.582, -0.699).lineTo(0.59, -0.676).lineTo(0.561, 0.675).lineTo(-0.581, 0.674).close().moveTo(0, -0.135).lineTo(0.042, -0.057).lineTo(0.128, -0.042).lineTo(0.067, 0.022).lineTo(0.0...
12
60
0.374339
train_b3613899e247d95e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.214, 0.301, -0.115), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.138, 1.214).lineTo(0.263, 1.214).lineTo(0.263, -0.336).lineTo(0.138, -0.336).lineTo(0.138, -0.786).lineTo(-0.262, -0.786).lineTo(-0.263, 0.214).lineTo(0.138, 0.214).lineTo(0.138, ...
7
76
0.296779
train_9ee43e7c57f93618
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.8, 1.298).extrude(1.587) result = result.union(cq.Workplane(cq.Plane(origin=(-0.136, 0.061, 0.561), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.174, 0.325).extrude(0.439)) result = result.cut(cq.W...
3
15
1.451146
train_43ed2627f9b40277
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.599, 0.075, -0.251), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.163).sweep(cq.Workplane('XY').spline([(0.599, -0.337), (0.714, -0.23), (0.829, -0.218), (0.945, -0.275), (1.06, -0.369), (1.175, -0.444), (1.291, -0.456), (1.406, -0.399), (1.522, ...
5
35
0.105075
train_4902268f77bfdf2f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.412, -0.893), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.436, 1.158).lineTo(0.436, -0.588).lineTo(-0.436, -0.588).lineTo(-0.436, 1.158).lineTo(0.436, 1.158).close().extrude(0.926) result = result.edges().fillet(0.383) result = result.union(...
5
41
1.248879
train_3a932b912bca8e19
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.627, 1.502).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.331, 0.288, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.152).extrude(0.73)) result = result.cut(cq.Workplane(...
13
107
4.521823
train_59a503d9798a4f8a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.045, 0.141, 0.399), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.128, 0.328).lineTo(0.128, -0.087).lineTo(0.024, -0.087).lineTo(0.024, 0.063).lineTo(-0.018, 0.063).lineTo(-0.018, -0.01).lineTo(-0.128, -0.01).lineTo(-0.128, 0.178).lineTo(0.128, 0...
7
321
0.014081
train_6a3e908621ae5812
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(2, 1.512).extrude(1.384) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.04, 0.103).extrude(0.446)) result = result.faces('<X').shell(...
3
33
1.389408
train_01caab72d0a0fcc4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.096, -0.479, -0.459), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.601, -0.461).lineTo(0.601, -0.461).lineTo(0.601, 0.461).lineTo(0.47, 0.461).lineTo(0.47, -0.341).lineTo(-0.47, -0.341).lineTo(-0.47, 0.461).lineTo(-0.601, 0.461).lineTo(-0.601,...
13
129
0.735909
train_a7966bd51357db93
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.426, -1.45, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.426, 0.45).threePointArc((-0.038, 1.338), (-0.426, 2.26)).threePointArc((-0.011, 2.403), (0.426, 2.451)).lineTo(0.426, 0.45).close().revolve(angleDegrees=360, axisStart=(0.426, 2.451),...
11
35
1.074237
train_b71008ec9196d4cf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.143, -0.19, -0.163), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.713, 1.606).extrude(0.301) result = result.union(cq.Workplane(cq.Plane(origin=(0.143, -0.19, 0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.417).extrude(0.026)) result = result....
18
179
1.274073
train_7a34eb6051e29bc4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.281, -0.487, -0.001), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.028, 0.301).threePointArc((-0.115, 0.266), (-0.167, 0.188)).threePointArc((-0.174, 0.134), (-0.162, 0.081)).threePointArc((-0.097, 0.004), (0, -0.019)).threePointArc((0.053, -0.0...
8
71
0.133045
train_486c99ed72df7c2d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.094, 0.259, 0.03), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.418, -0.678).lineTo(-0.418, 1.619).lineTo(0.418, -0.691).lineTo(-0.418, -0.678).close().workplane(offset=0.173).moveTo(-0.373, -0.555).lineTo(-0.373, 1.495).lineTo(0.373, -0.566)....
4
34
0.489426
train_8c6b348e9ec43bce
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.09, -0.498, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.772, 2.1).lineTo(0.772, 1.684).lineTo(0.772, 0.497).lineTo(-0.772, 0.081).lineTo(-0.772, 2.1).close().extrude(0.925) result = result.edges().chamfer(0.033) result = result.union(cq.Wo...
9
203
2.227407
train_f2166e5c45dbd7f8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.557, 0.038, -0.199), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.037, -0.037).lineTo(0.112, -0.037).lineTo(0.112, -0.635).lineTo(-0.015, -0.635).lineTo(-0.015, -0.321).lineTo(-0.112, -0.321).lineTo(-0.112, 0.635).lineTo(-0.037, 0.635).lineTo(-0...
3
24
0.078076
train_cc8b6761aacdc225
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.953, 0.807).extrude(0.411) result = result.union(cq.Workplane(cq.Plane(origin=(0.21, 0.176, -0.624), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.243, 0.204).extrude(0.734)) result = result.edges()...
6
60
0.338815
train_21897df027f3c069
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.549, -0.257, -0.23), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.602, 0.584).extrude(0.208) result = result.union(cq.Workplane(cq.Plane(origin=(-0.523, -0.257, -0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.534, 0.356).extrude(0.024)) result ...
31
192
0.182652
train_e7532aa13f3009de
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -1, -0.398), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.241, 0.241).lineTo(-0.241, 0.021).lineTo(-0.214, 0.021).lineTo(-0.214, -0.062).lineTo(-0.241, -0.062).lineTo(-0.241, -0.241).lineTo(-0.041, -0.241).lineTo(-0.041, -0.214).lineTo(0.041, ...
1
18
0.275169
train_7462ec463e5d7e3c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.077, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.093).lineTo(-1, 0.14).lineTo(1, 0.14).lineTo(1, 0.093).lineTo(0.78, 0.093).lineTo(0.78, 0.046).threePointArc((0.77, 0.023), (0.748, 0.014)).lineTo(0.654, 0.014).lineTo(0.622, 0.014).li...
25
10
0.180378
train_e5a5162ff52163f6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.688, -0.811, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.002).lineTo(-1, 0.974).lineTo(-0.4, 0.974).threePointArc((0, 1.374), (0.4, 0.974)).lineTo(1, 0.974).lineTo(1, 0.002).lineTo(-1, 0.002).close().extrude(1.615) result = result.cut(c...
11
14
3.549943
train_1ab7fac621512a1c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.048, -0.73), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.726, 0.725).extrude(1.73) result = result.union(cq.Workplane(cq.Plane(origin=(0.211, 0.362, 0.523), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.071, 0.098).extrude(0.235)) result = result....
10
58
0.922152
train_d3d716f5608439ac
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.677, -1, -0.302), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.52, 1.455).lineTo(-0.52, -0.1).lineTo(0.52, -0.1).lineTo(0.52, 1.455).lineTo(-0.52, 1.455).close().extrude(1.713) result = result.edges().chamfer(0.096) result = result.cut(cq.Workp...
37
164
1.459572
train_e2366b96c755d069
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.357), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.46, 2).extrude(0.671) result = result.union(cq.Workplane(cq.Plane(origin=(0.073, 0.1, 0.311), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.314, 1.8).extrude(0.077)) result = result.union(cq.Wor...
15
81
1.895366
train_fe5f9fb1068d8a0e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.475, 0.008, -0.547), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.446, -0.446).lineTo(0.446, 0.446).lineTo(-0.446, 0.446).lineTo(-0.446, 0.273).lineTo(0.273, 0.273).lineTo(0.273, -0.446).lineTo(0.446, -0.446).close().sweep(cq.Workplane('XZ').spl...
17
122
0.55245
train_9394f62ad1cd41c0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.717, 0.39, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.626, 1.39).lineTo(-0.626, 1.149).lineTo(-0.384, 1.149).lineTo(-0.384, -0.61).lineTo(0.626, -0.61).lineTo(0.626, -0.368).lineTo(0.384, -0.368).lineTo(0.384, 1.39).lineTo(-0.626, 1.39).c...
13
143
1.13302
train_da32ed8a28c2c78a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.624, -0.792, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.496, 1.624).lineTo(0.496, -0.376).lineTo(-0.496, -0.376).lineTo(-0.496, 1.624).lineTo(0.496, 1.624).close().extrude(1.585) result = result.edges().chamfer(0.181) result = result.cut(c...
16
168
2.249061
train_bb19f626657d355a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0.008, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.677).workplane(offset=0.474).circle(0.525).workplane(offset=0.481).circle(0.7).workplane(offset=0.538).circle(0.69).workplane(offset=0.507).circle(0.591).loft() result = result.edges(...
7
31
1.579191
train_0229ab2680d6b5ac
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.666, 1.139).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.382, 0.286, -0.576), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.188).extrude(0.398)) result = result.cut(cq.Workplane(...
11
84
3.22475
train_c5585fcb037e28d1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.671), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.921, 2).extrude(1.342) result = result.cut(cq.Workplane(cq.Plane(origin=(0.144, -0.116, -0.159), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.45, 0.441).extrude(0.851)) result = result.cut(cq.W...
4
76
2.194167
train_80f086378b5c6202
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.175, 0.005, -0.825), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.175, -0.031).lineTo(-0.175, -0.041).lineTo(0.175, -0.041).lineTo(0.175, 0.051).lineTo(-0.175, 0.051).lineTo(-0.175, -0.031).close().revolve(angleDegrees=90, axisStart=(-0.175, -0...
10
51
0.016977
train_aeef0d9ef3bdfa9d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.185, -0.666, -0.496), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.134, 1.478).lineTo(-0.134, 1.478).lineTo(-0.134, -0.334).lineTo(0.134, -0.334).lineTo(0.134, 1.478).close().extrude(0.331) result = result.edges().fillet(0.04) result = result.un...
10
72
0.170793
train_a32359781e3258e9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.041, 0, -0.413), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.918, 1.499).extrude(1.095) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.378, 0.079, 0.589), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.097).extrude(0.095)) result = result.cut(...
12
109
3.366467
train_e7df9185de97d8ea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.023, 0.025, -0.396), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.497, 1.243).extrude(0.791) result = result.faces('>Z').shell(-0.043) result = result.union(cq.Workplane(cq.Plane(origin=(-0.112, 0.728, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).r...
6
25
0.346624
train_098e4aba8d07c1be
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.017, 0.148, 0.038), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.085, 0.085).lineTo(-0.085, 0.681).lineTo(0.085, 0.852).lineTo(0.085, -0.852).lineTo(-0.085, -0.852).lineTo(-0.085, 0.085).close().revolve(angleDegrees=360, axisStart=(-0.085, 0.08...
18
79
0.186098
train_4a0c3e8906398ed1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.237, -0.291, -0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.06, -0.031).lineTo(-0.06, 0.068).lineTo(0.057, 0.068).lineTo(0.057, 0.03).lineTo(0.06, 0.03).lineTo(0.06, 0.007).lineTo(0.057, 0.007).lineTo(0.057, -0.031).lineTo(0.033, -0.031)....
31
281
0.479806
train_494d1bf47776fbb0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.003, -0.001, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.096, 0.976).extrude(0.483) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.194, 0.049, -0.273), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.483, 0.281).extrude(0.075)) result = r...
29
217
0.28097
train_c5efd13e882a1fba
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.579), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.894, -0.585).lineTo(-0.468, -0.585).lineTo(1, 0.16).lineTo(1, 0.585).lineTo(-0.064, 0.585).lineTo(-0.34, 0.461).lineTo(-0.308, 0.39).lineTo(-0.586, 0.266).lineTo(-0.618, 0.337).lineTo(-0....
3
39
2.20952
train_6a7f06017232d8f7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.042, 0, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.916, 1.502).extrude(0.103) result = result.union(cq.Workplane(cq.Plane(origin=(0.324, -0.158, -0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.8, 0.457).extrude(0.04)) result = result...
17
73
0.222825
train_3a14dcc92024fd45
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.557, 0, -0.519), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.443).rect(0.173, 0.32).extrude(0.335) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.619, 0.046, -0.359), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.138).extrude(0.101)) result...
8
46
0.295043
train_9774f660bdd838a5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.32), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.41, 0.411).lineTo(-0.41, -0.411).lineTo(-0.301, -0.301).lineTo(-0.11, -0.11).lineTo(0.11, 0.11).lineTo(0.3, 0.301).lineTo(0.41, 0.411).lineTo(-0.41, 0.411).close().workplane(offset=0.35)....
8
40
0.20277
train_453eeda095512873
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.568, 0.432), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.039, 0.432).lineTo(-0.039, 0.432).lineTo(-0.039, 0.392).lineTo(-0.039, 0.333).lineTo(0.008, 0.134).lineTo(0.008, -0.278).threePointArc((0.003, -0.287), (0, -0.298)).lineTo(0, -0.299).l...
10
220
0.023815
train_4a712983e6c04326
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.071, -0.014), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.451, 0.027).threePointArc((-0.463, -0.081), (-0.451, -0.188)).lineTo(0.451, -0.188).threePointArc((0.463, -0.081), (0.451, 0.027)).threePointArc((0.421, 0.111), (0.377, 0.188)).lineT...
9
96
0.106586
train_781bcb2cea8ff480
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.508, 0.716), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.284, 0.83).lineTo(-0.284, 0.745).lineTo(0.199, 0.745).lineTo(0.199, 0.291).lineTo(0.284, 0.291).lineTo(0.284, 0.83).lineTo(-0.284, 0.83).close().revolve(angleDegrees=360, axisStart=(-0...
5
46
0.22653
train_f1351cd5a5d5d6bd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.091, 0.174, -0.025), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.098, 0.888).lineTo(-0.098, 1.091).lineTo(-0.098, -0.706).lineTo(0.098, -0.909).lineTo(0.098, 0.888).close().extrude(0.348) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 +...
17
39
0.097176
train_62ba8f271e93446f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.274, 0, 0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.5, -0.476).lineTo(-0.5, 1.023).lineTo(-0.166, 1.023).lineTo(-0.166, -0.144).lineTo(0.5, -0.144).lineTo(-0.166, -0.476).lineTo(-0.5, -0.476).close().revolve(angleDegrees=360, axisStart=(...
6
25
0.548279
train_44ee9f010d85affb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.641), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.202, 0.389).extrude(0.367) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.298), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.073).extrude(0.262)) result = result.edges().chamfer...
17
120
0.046493
train_8c9611e7cb79e9ad
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.377, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.72, 1.246).extrude(0.112) result = result.cut(cq.Workplane(cq.Plane(origin=(0.135, -0.492, 0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.082).extrude(0.032)) result = result.cut(c...
16
88
0.079338
train_b294e0f2b4216f17
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.385), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.238, 0.914).lineTo(0.222, 1).lineTo(0.863, 1).lineTo(0.863, 0.145).lineTo(0.756, 0.145).lineTo(0.756, -0.551).lineTo(-0.022, -1).lineTo(-0.624, -0.652).lineTo(-0.678, -0.745).lineTo(-0.86...
11
60
1.178671
train_76530a02a4c9e7c2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.556), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.467, 2).extrude(1.111) result = result.cut(cq.Workplane(cq.Plane(origin=(0.132, 0.832, -0.445), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.894, 0.353).extrude(0.701)) result = result.cut(cq.W...
26
156
1.662479
train_26c55def58c4e9c7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.428, -0.207, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, -0.346).threePointArc((0, 0.346), (1, -0.346)).lineTo(-1, -0.346).close().sweep(cq.Workplane('XY').spline([(-0.428, -0.013), (-0.257, -0.006), (-0.086, 0.055), (0.086, 0.215), (0.2...
2
7
0.075239
train_480a88879513fa7d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.238, -0.048, -0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.044, 0.555).extrude(0.147) result = result.union(cq.Workplane(cq.Plane(origin=(-0.362, -0.106, -0.164), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.169, 0.327).extrude(0.062)) result ...
31
151
0.584789
train_fc795a7184176ed6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.67, -0.046, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.884, 0.021).lineTo(0.721, 0.021).lineTo(0.884, 0.318).lineTo(-0.884, 0.318).lineTo(-0.884, 0.021).close().extrude(0.357) result = result.union(cq.Workplane(cq.Plane(origin=(-0.3, 0.11...
9
68
0.202544