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_8f612e9b487d823f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.135, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.643, 1.73).extrude(0.564) result = result.cut(cq.Workplane(cq.Plane(origin=(0.105, -0.013, -0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.064, 2.076).extrude(0.037)) result = result...
9
50
1.468552
train_fb65b65488a1974d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.466, -0.57), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.562, 0.954).threePointArc((-1, 0.517), (-0.562, 0.078)).lineTo(1, 0.078).lineTo(1, 0.954).lineTo(-0.562, 0.954).close().extrude(1.14) result = result.edges().chamfer(0.097) result = r...
8
42
1.802989
train_a59e5bb2cbaeeaad
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.078, -0.338, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 1.114).lineTo(-0.115, 1.114).lineTo(-0.115, 0.307).lineTo(0, 0.307).lineTo(0, 0.192).lineTo(-0.922, 0.192).lineTo(-0.922, 0.078).lineTo(0.115, 0.078).lineTo(0.115, 0.192).lineTo(0.92...
9
29
0.329846
train_e102d644396c8b2c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.788, -0.788), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.143, 1.589).lineTo(1.143, 1.589).lineTo(0.448, 0.384).threePointArc((0, 0.4), (-0.448, 0.384)).lineTo(-1.143, 1.589).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.699...
9
34
2.678321
train_44cdef5a71b105c0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.012, 0.002, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.051, 1.012).lineTo(1.051, 1.012).threePointArc((0, 0.078), (-1.051, 1.012)).close().revolve(angleDegrees=270, axisStart=(-1.051, 1.012), axisEnd=(1.051, 1.012)) result = result.edges(...
17
72
2.173564
train_7db48b055b38996f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.844, 0.203), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.425, 0.175).lineTo(0.425, -0.566).lineTo(-0.425, -0.566).lineTo(-0.425, 0.175).lineTo(0.425, 0.175).close().sweep(cq.Workplane('YZ').spline([(-0.844, 0.203), (-0.265, -0.327), (0.313,...
3
30
0.979735
train_1eb7ee440931777c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.014, 0.012, -0.815), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.517, 0.459).extrude(1.815) result = result.union(cq.Workplane(cq.Plane(origin=(-0.258, 0.064, 0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.029, 0.046).extrude(0.242)) result = r...
9
45
0.437812
train_c5ccefc5a61e2f88
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.166, 0, -0.26), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.668, 1.61).extrude(0.167) result = result.union(cq.Workplane(cq.Plane(origin=(-0.631, -0.306, -0.095), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.037).extrude(0.035)) result = result.un...
7
24
0.429831
train_91d73e295f3c8b65
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.832, 1, 0.03), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.065, 2.702).threePointArc((0.009, 2.637), (1.065, 2.442)).lineTo(0.711, 1.017).threePointArc((-0.17, 1.181), (-1.065, 1.235)).lineTo(-1.065, 2.702).close().revolve(angleDegrees=90, axi...
21
165
2.381917
train_3905fe22f5d7594d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.031, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.516, 0.703).extrude(1.706) result = result.union(cq.Workplane(cq.Plane(origin=(-0.257, 0.171, 0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.064, 0.109).extrude(0.286)) result = result.cu...
9
59
0.651972
train_75a3024d6ffaa003
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.26, 0.325, 0.1), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.327, -0.529).threePointArc((-0.367, -0.513), (-0.383, -0.473)).lineTo(-0.383, 0.916).threePointArc((-0.367, 0.955), (-0.327, 0.972)).lineTo(0.327, 0.972).threePointArc((0.367, 0.955)...
29
247
0.306673
train_54e7d93273512ca0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.132, -0.062, 0.545), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(4.529, 3.563).extrude(1.541) result = result.union(cq.Workplane(cq.Plane(origin=(-0.067, 0.192, 0.236), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.63, -0.163).lineTo(-0.727, 0.277).l...
11
42
0.117323
train_725c2d5afecb492b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.19, 0.023, -0.555), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.046).workplane(offset=0.038).circle(0.036).workplane(offset=0.041).circle(0.026).workplane(offset=0.043).circle(0.019).workplane(offset=0.044).circle(0.011).workplane(offset=0.036...
13
49
0.03054
train_4df22e28ac44de21
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.331, -0.465), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.428, 1.337).extrude(0.886) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.108, -0.418, -0.492), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.14).extrude(1.063)) result = result.cut...
18
108
1.553749
train_611125ad876451e9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.608), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.584, 2).extrude(1.216) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.732, -0.613, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.063).extrude(0.151)) result = result.cut(cq.Work...
14
105
3.288376
train_27c1273fb7dcf9c1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.062, 0, -0.209), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.877, 1.402).extrude(0.418) result = result.cut(cq.Workplane(cq.Plane(origin=(0.565, -0.098, 0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.034).extrude(0.013)) result = result.cut(...
8
30
1.071042
train_0e6355779d78d0b3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.016, -0.088, -0.38), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.53, 1.824).extrude(1.234) result = result.cut(cq.Workplane(cq.Plane(origin=(0.282, 0.04, -0.133), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.391, 2.189).extrude(0.145)) result = resu...
12
52
3.097988
train_375cc20fab463a85
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.004, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.1, 0.289).lineTo(-0.537, -0.289).lineTo(-0.455, -0.269).lineTo(-0.133, 0.289).lineTo(1.1, 0.289).lineTo(-1.1, 0.289).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0, 0.562)...
3
8
1.035816
train_ff3e240abddca50a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.047, -0.095, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.078, 1.047).lineTo(-0.078, 1.047).lineTo(-0.078, -0.956).lineTo(0.078, -0.941).lineTo(0.078, 1.047).close().extrude(0.191) result = result.edges().fillet(0.02) result = result.cut(cq....
18
26
0.058664
train_137e77617cb49703
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.13, -0.565, 0.04), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.42, -0.486).lineTo(-0.211, 0.607).lineTo(-0.42, 0.486).lineTo(0.211, -0.607).lineTo(0.42, -0.486).close().sweep(cq.Workplane('YZ').spline([(-0.975, -0.475), (-0.515, -0.457), (-0.055...
16
132
0.429695
train_3dfb3142021c322b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.252, 0.014, -0.347), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.205, -1.014).lineTo(0.051, -1.014).lineTo(-0.205, 0.424).lineTo(0.205, 1.041).lineTo(0.205, -1.014).close().extrude(0.505) result = result.edges().fillet(0.023) result = result.un...
5
51
0.211208
train_5b8c36eba16c5215
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.474, 0.523, 0.082), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.968, -0.303).lineTo(-0.968, -0.303).lineTo(-0.968, 1.64).lineTo(0.968, -0.303).close().extrude(1.047) result = result.edges().chamfer(0.233) result = result.cut(cq.Workplane(cq.Pla...
19
25
1.611693
train_ca468ef6ccba983b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.401, 0.837, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.003, 1.382).lineTo(-0.037, 1.366).lineTo(-0.677, 1.102).lineTo(-0.693, 1.063).lineTo(-0.942, 0.462).lineTo(-0.959, 0.423).lineTo(-0.943, 0.383).lineTo(-0.694, -0.219).lineTo(-1, -0.523...
11
75
0.758225
train_72d936f7f584473b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.055, 0.222, -0.085), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.012, 0.733).lineTo(-0.012, 0.778).lineTo(0.012, 0.778).lineTo(0.012, 0.733).lineTo(-0.012, -0.772).lineTo(-0.012, 0.733).close().revolve(angleDegrees=360, axisStart=(-0.012, 0.73...
6
47
0.199245
train_84e6f243d67f386d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.299, 0.282, -0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.725, 0.013).lineTo(0.514, 0.508).lineTo(0.003, 0.691).lineTo(-0.483, 0.492).lineTo(-0.701, 0.021).lineTo(-0.504, -0.507).lineTo(-0.014, -0.705).lineTo(0.483, -0.523).close().moveT...
13
57
0.228343
train_2c0e70500c5942f5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.439, 0.456, 0.039), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.017, 0.424).lineTo(0.017, -0.119).lineTo(0.272, -0.119).lineTo(0.272, -0.424).lineTo(-0.272, -0.424).lineTo(-0.272, 0.424).lineTo(0.017, 0.424).close().sweep(cq.Workplane('XY').sp...
7
53
0.533315
train_1821aea3f634f312
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.03, -0.779), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.397, 1.939).extrude(1.5) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.559 + 0.1395, -0.03, -1.004), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.063, 0.162).lineTo(0.053, 0.163).l...
11
58
3.831195
train_2c5e6b6490de1524
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.753, 0, -0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.09, 0.181).threePointArc((0.09, 0), (-0.09, -0.181)).lineTo(-0.09, -0.062).lineTo(-0.09, 0.062).lineTo(-0.09, 0.181).close().sweep(cq.Workplane('XZ').spline([(0.753, -0.478), (1.358, ...
2
11
0.02009
train_8623046923210d26
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.392, -0.207, 0.039), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.298, 1.207).lineTo(-0.298, -0.793).lineTo(0.298, -0.793).lineTo(0.298, 1.207).lineTo(-0.298, 1.207).close().extrude(0.784) result = result.edges().chamfer(0.109) result = result....
39
223
0.823399
train_61a2db04b6ca9459
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.756), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.524).extrude(1.329) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.61 + 0.122, 0.399, -2.056), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.078).extrude(2.6)) result = result.cut(cq....
28
11
4.06049
train_e29ab3fd24d07979
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.149, -0.576, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.47, 0.878).lineTo(0.313, 0.608).lineTo(0.157, 0.337).lineTo(0.47, 0.337).lineTo(0, 0.066).lineTo(-0.47, 0.337).lineTo(-0.157, 0.337).lineTo(-0.313, 0.608).lineTo(-0.157, 0.878).lineTo...
2
24
1.045934
train_cb6082266549e551
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.077, 0.221, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.043, -0.075).lineTo(-0.016, 0.016).lineTo(-0.02, 0.022).lineTo(-0.05, 0.069).lineTo(-0.047, 0.075).lineTo(-0.043, 0.069).lineTo(0.011, 0.069).lineTo(0.015, 0.075).lineTo(0.018, 0.069).l...
14
96
0.016611
train_3a50c2239e9d8a58
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.008, 0.203, -0.021), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.395, -0.049).lineTo(-0.393, 0.236).lineTo(0.395, 0.196).lineTo(0.393, -0.009).lineTo(-0.395, -0.049).close().extrude(0.649) result = result.edges().fillet(0.088) result = result....
25
114
0.200116
train_554515cd387e9393
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.034, 0.098, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.476, 0.421).threePointArc((0, 0.083), (-0.476, 0.421)).threePointArc((0, 0.587), (0.476, 0.421)).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.376, 0)) result = result....
7
36
0.500885
train_f9a1e16e595a19c5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.33, 0.643, -0.207), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.302, 0.129).lineTo(-0.417, 0.138).lineTo(-0.483, 0.044).lineTo(-0.459, -0.007).lineTo(-0.417, 0.053).lineTo(-0.302, 0.043).lineTo(-0.278, -0.009).lineTo(-0.254, -0.061).lineTo(-0.2...
20
161
0.67144
train_c4c1e72496ce694b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -1, -0.176), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.321, -0.234).lineTo(0.321, 0.234).lineTo(0.321, -0.234).lineTo(-0.321, -0.234).close().sweep(cq.Workplane('YZ').spline([(-0.565, -0.499), (-0.38, -0.356), (-0.196, -0.284), (-0.011, -0....
2
7
0.212462
train_cb9aa06ded1f7c53
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.187, 0, -0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.015, 2).extrude(0.776) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.187, 0, -0.421), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.55, 1.08).extrude(1.009)) result = result.union(cq...
7
33
1.231583
train_0bce2f3468db3ea2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.085, -0.04, -0.159), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.256).sweep(cq.Workplane('YZ').spline([(0.474, -0.592), (0.386, -0.406), (0.154, -0.291), (-0.134, -0.291), (-0.365, -0.407), (-0.453, -0.593), (-0.361, -0.778)])) result = result....
18
115
0.360481
train_6a6140c6d439f39c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.048, 0.133, 0.301), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.117, 0.122).lineTo(-0.709, 0.122).threePointArc((0.709, 0.709), (0.122, -0.709)).lineTo(0.117, 0.122).close().extrude(0.453) result = result.edges().chamfer(0.194) result = result....
6
67
0.193365
train_e8c75111b0daa6a9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.253, -0.307), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.146, 1.495).extrude(0.55) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.043, -0.173, -0.323), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.114, 0.382).extrude(0.66)) result = result...
7
100
0.145278
train_4666bab36b91d566
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.22, 0.158, 0.053), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.157, 0.178).threePointArc((-0.143, 0.212), (-0.109, 0.226)).lineTo(0.017, 0.226).threePointArc((0.041, 0.22), (0.058, 0.203)).lineTo(0.104, 0.126).lineTo(0.15, 0.049).threePointArc...
7
89
0.462672
train_46c6ea3616ef3b94
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.075, 0.416, 0.382), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.013, 0.267).lineTo(0.038, 0.267).lineTo(0.034, 0.216).lineTo(0.021, 0.039).lineTo(0.017, -0.011).lineTo(0.013, -0.062).lineTo(-0.038, -0.062).lineTo(-0.013, 0.267).close().extrude...
8
143
0.100251
train_5675e3e22b63402b
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.739, 0.99).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.004, 0.339, -0.392), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.161).extrude(0.913)) result = result.cut(cq.Workplane(c...
6
28
1.128595
train_96cb4e98d62b1ffe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.646, 0.011), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.747, -0.089).lineTo(-0.747, 1.404).threePointArc((0.309, 0.966), (0.747, -0.089)).lineTo(-0.747, -0.089).close().workplane(offset=1.12).moveTo(-0.778, -0.121).lineTo(-0.778, 1.435).t...
27
197
2.0934
train_44a4b954c049c3bd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.407, -0.058, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.52, 0.346).extrude(0.089) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.407, -0.013, -0.537), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.022).extrude(0.302)) result = resul...
12
73
0.101224
train_fafdda079eccb066
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.277, -0.165, -0.987), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.173, 1.086).threePointArc((-0.692, 0.593), (-0.243, -0.295)).threePointArc((0.692, 0.177), (0.173, 1.086)).close().extrude(1.974) result = result.edges().chamfer(0.673) result = ...
5
23
1.934889
train_feb0ad25a53726d2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.592, 2).extrude(0.357) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.178, -1.213), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.061, 0.034).lineTo(-0.061, -0.034).lineTo(0.061, -0.0...
16
65
0.847073
train_ac8cc7d09ba62114
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.007, -0.231, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.287, 0.049).threePointArc((-0.273, 0.015), (-0.239, 0.001)).lineTo(0.239, 0.001).threePointArc((0.273, 0.015), (0.287, 0.049)).lineTo(-0.287, 0.049).close().extrude(0.13) result...
10
121
0.102759
train_5cfa0dd8d083c0a9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.213, 0.154, -0.815), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.574, 1.525).extrude(1.63) result = result.union(cq.Workplane(cq.Plane(origin=(0.425, -0.751, -0.243), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.166).extrude(0.895)) result = result...
15
301
2.439573
train_8288f546e77841db
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.068, -0.47, -0.594), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.227, -0.081).lineTo(-0.227, 0.047).threePointArc((0, 0.081), (0.227, 0.047)).lineTo(0.227, -0.081).lineTo(0.202, -0.081).threePointArc((0, -0.049), (-0.202, -0.081)).lineTo(-0.2...
7
91
0.347671
train_1eedf75275eb0c33
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.273, -1.183, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.801, 2.151).lineTo(-1.024, 0.371).lineTo(-0.883, 0.219).lineTo(1.024, 1.896).lineTo(0.801, 2.151).close().extrude(0.511) result = result.edges().fillet(0.06) result = result.union(cq....
6
41
0.331402
train_4acaa6dc6b116712
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.606, -0.122, -0.702), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.065, -0.163).lineTo(0.392, 0.163).lineTo(-0.392, 0.163).lineTo(-0.392, -0.163).lineTo(0.065, -0.163).close().transformed(offset=(-0.131, 0.52, 0.212), rotate=(45, 0, 0)).moveTo(0....
4
14
0.384726
train_f79df06c12d4f42c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.229, 0, 0.054), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.281, 2).extrude(0.426) result = result.union(cq.Workplane(cq.Plane(origin=(0.229, 0, 0.479), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.453).extrude(0.028)) result = result.union(cq.Work...
14
91
1.44796
train_e3cd06c91c442cde
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.179, -0.271, -0.492), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.642, 1.367).extrude(0.984) result = result.faces('>Z').shell(-0.098) result = result.union(cq.Workplane(cq.Plane(origin=(-0.154, 0.676, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0)))....
7
37
0.862334
train_c530e5147b797fc9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.305, -0.355, 0.082), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.126, -0.378).lineTo(-0.126, 0.378).lineTo(-0.094, 0.378).lineTo(-0.094, -0.347).lineTo(0.126, -0.347).lineTo(0.126, -0.378).lineTo(-0.126, -0.378).close().sweep(cq.Workplane('YZ'...
10
123
0.87112
train_134e5a9abdee8223
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.105, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.761).threePointArc((-0.069, 0.757), (-0.138, 0.746)).threePointArc((-0.463, 0.569), (-0.641, 0.244)).threePointArc((-0.656, 0.105), (-0.641, -0.033)).threePointArc((-0.463, -0.358), (-...
10
50
2.048986
train_deb0491f43041690
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.118, 0.011, -0.618), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.533, -0.197).lineTo(-0.533, -0.197).lineTo(-0.533, 0.351).lineTo(0.533, 0.351).lineTo(0.533, -0.197).close().extrude(0.967) result = result.edges().fillet(0.069) result = result.un...
26
259
0.89231
train_db29087e05fc989a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.095, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.783, 0.019).lineTo(-0.783, 0.046).lineTo(-0.635, 0.046).lineTo(-0.635, 0.171).lineTo(0.036, 0.171).lineTo(0.036, 0.046).lineTo(0.783, 0.046).lineTo(0.783, 0.019).lineTo(-0.783, 0.019).clo...
4
24
0.21812
train_e14edffac5cbfcb2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.195, -0.213, -0.308), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.473, 0.147).lineTo(0, 0.411).lineTo(-0.473, 0.147).lineTo(0.473, 0.147).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.138, 0)) result = result.edges().fillet(0.07...
14
357
0.098815
train_9efb2eb97260ebfa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.281, 0.232, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.819, 0.381).threePointArc((0, 1.232), (0.819, 0.381)).threePointArc((0.749, 0.08), (0.573, -0.173)).threePointArc((0.754, -0.437), (0.819, -0.75)).lineTo(0.819, -0.768).lineTo(-0.819,...
6
82
1.525071
train_c8db5b400e09e375
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.916, 1.283).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.149, 0.137, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.167, 0.751).extrude(1.085)) result = result.cut(cq.Workp...
11
67
2.036951
train_3a92eed3826584ae
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.046, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.064).extrude(0.835) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.425 + 0.085, 0.205, -1.69), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.047, 0.023).lineTo(-0.06, 0.014).line...
21
16
1.780344
train_709830fef99edf2e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.213, 0.569, -0.426), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.345, 0.326).extrude(0.245) result = result.union(cq.Workplane(cq.Plane(origin=(-0.602, 0.569, -0.368), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.482, 0.258).extrude(0.128)) result =...
9
89
0.421878
train_ba276d6341834708
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.785, -0.163, 0.523), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.041, 0.072).lineTo(0.041, -0.072).lineTo(0.124, 0.072).lineTo(0.206, -0.072).lineTo(0.124, -0.215).lineTo(-0.041, -0.215).lineTo(-0.206, 0.072).lineTo(-0.124, 0.215).lineTo(0.041...
3
62
0.243772
train_9c5b004b0732679c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.693, 0.148), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.652, 0.49).lineTo(0.599, 1.213).threePointArc((0.668, 1.084), (0.745, 0.96)).lineTo(-0.745, 0.1).lineTo(-0.652, 0.49).close().extrude(2) result = result.edges().fillet(0.114) result ...
4
36
0.867879
train_dcf124f9ca302e9a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.031, 0.312, -0.255), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.393, -0.518).threePointArc((0, 0.861), (0.393, -0.518)).lineTo(0.393, -0.799).lineTo(-0.393, -0.799).lineTo(-0.393, -0.518).close().extrude(0.625) result = result.edges().fillet(...
8
77
0.833168
train_ad1155ddfbd7342e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.093, 0, -0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.038, -0.027).lineTo(0.308, 1).lineTo(-0.851, 0.583).lineTo(-0.823, -0.626).lineTo(0.327, -1).close().center(-0.327, 0).circle(0.199).moveTo(0.442, -0.083).lineTo(0.442, 0.083).lineTo(...
12
75
1.182632
train_9b50f7b43f5ad20c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.738, 0, 0.155), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.844, -0.163).lineTo(0.539, 0.463).lineTo(-0.219, 0.422).lineTo(-0.311, 0.371).lineTo(-0.844, -0.301).lineTo(-0.522, -0.445).lineTo(-0.432, -0.463).lineTo(0.215, -0.433).lineTo(0.296, ...
8
271
0.693083
train_f66e6208c7b918a4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.967, 0.28, -0.126), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.068, -0.033).lineTo(-0.068, 0.01).threePointArc((0, 0.033), (0.068, 0.01)).lineTo(0.068, -0.033).lineTo(0.067, -0.033).lineTo(-0.067, -0.033).lineTo(-0.068, -0.033).close().sweep(...
3
19
0.012744
train_c4b7c5a60acd67af
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.08, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.561, 1.624).extrude(1.803) result = result.union(cq.Workplane(cq.Plane(origin=(-0.377, -0.811, -0.241), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.148, 0.162).extrude(0.282)) result = result.c...
11
111
3.518713
train_ebc8a1a73c7e8f27
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.13, -0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.071).extrude(0.13) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.16, -0.298 + 0.214, -0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.022, 0.059).lineTo(-0.022, 0.114)...
12
51
0.285702
train_66f16ac5a7f52a86
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.361, 0.285, -0.716), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.781, 1.048).extrude(0.327) result = result.union(cq.Workplane(cq.Plane(origin=(0.4, -0.134, -0.367), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.321, 0.066).lineTo(0.321, 0.63).line...
6
88
0.910745
train_489d108198a71218
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.636, 0.103, 0.746), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.387).transformed(offset=(0.448, 0.107, 0.713), rotate=(0, 0, 10)).circle(0.154).transformed(offset=(0.896, 0, 0.726), rotate=(10, 0, 0)).circle(0.335).loft() result = result.edges...
4
12
0.204457
train_64852bd990569aac
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -1, -0.489), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.489, 1.998).lineTo(0.489, 0.864).lineTo(0.501, 0.864).lineTo(0.501, 2).lineTo(-0.501, 2).lineTo(-0.501, 0.864).lineTo(-0.489, 0.864).lineTo(-0.489, 1.998).lineTo(0.489, 1.998).close().re...
9
51
0.282639
train_6c339efa2dc04c31
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.889, 0.126, 0.252), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.111).transformed(offset=(0.087, -0.001, 0.022), rotate=(0, 0, 0)).circle(0.09).transformed(offset=(0.175, -0.003, 0.026), rotate=(90, 0, 0)).circle(0.069).transformed(offset=(0.262...
4
19
0.047465
train_5ad35e48d70d7e5b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.006, -0.01, -0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.006, -0.762).lineTo(0.994, -0.739).lineTo(0.994, 0.782).lineTo(-0.969, 0.781).close().moveTo(-0.346, 0.191).lineTo(-0.376, 0.191).lineTo(-0.376, 0.232).lineTo(-0.312, 0.213).lineT...
11
75
0.827801
train_70be09b73e031c1a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.999, -0.492, -0.35), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.044).threePointArc((-0.386, 0.263), (-0.393, 0.706)).threePointArc((0, 0.94), (0.393, 0.706)).threePointArc((0.386, 0.263), (0, 0.044)).close().extrude(1.409) result = result.e...
10
81
1.13817
train_de32c4cd5f62cc27
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.291, 0, -0.165), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.112, 0.301).lineTo(-0.112, 0.301).lineTo(-0.112, -0.121).lineTo(0.112, -0.121).lineTo(0.112, 0.301).close().extrude(0.329) result = result.edges().fillet(0.02) result = result.union(c...
16
112
0.323218
train_d1b265524a9166ce
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.482), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.17, -0.045).lineTo(-0.17, -0.209).threePointArc((-0.276, -0.014), (-0.17, 0.183)).lineTo(-0.17, 0.279).threePointArc((-0.042, 0.305), (0.085, 0.279)).threePointArc((0.276, -0.014), (0.08...
3
22
0.189091
train_96cbf2cc5b96fb71
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.123, 0, -0.415), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.063, 2).extrude(1.191) result = result.union(cq.Workplane(cq.Plane(origin=(-0.52, -0.17, -0.295), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.269, 1.054).extrude(0.404)) result = result.un...
13
86
1.767267
train_ca8ba03c42a04198
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.333), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.774).extrude(0.667) result = result.cut(cq.Workplane(cq.Plane(origin=(0.289, -0.148, -0.34), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.022, 0.677).extrude(0.241)) result = result.cut(cq.W...
22
157
1.107657
train_6d6fae861047600f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.025, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.592, 0.47).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(0.295, -0.037, -0.533), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.026).extrude(0.345)) result = result.cut(cq.Wor...
10
49
0.528588
train_1a92ad4fe018e2d7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.706).extrude(0.171) result = result.union(cq.Workplane(cq.Plane(origin=(-0.034, 0.094, 0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.074).extrude(0.027)) result = result.cut(cq.Work...
8
39
0.535886
train_ff0836ad2f8e702b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.135, -0.052, 0.53), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.47, 0.056).threePointArc((-0.424, 0.034), (-0.376, 0.014)).threePointArc((0, -0.056), (0.376, 0.014)).threePointArc((0.424, 0.034), (0.47, 0.056)).lineTo(-0.47, 0.056).close().swee...
7
29
0.0102
train_d12f76aa616c292c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.703, -0.938, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.868, 0.9).threePointArc((1, 0.769), (0.868, 0.637)).lineTo(0.066, 0.637).lineTo(0.066, -0.165).threePointArc((-0.066, -0.297), (-0.197, -0.165)).lineTo(-0.197, 0.637).lineTo(-1, 0.637...
5
80
1.665006
train_ce175fe53c9d80f8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.155, 0.54, 0.234), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.766, -0.319).lineTo(-0.766, 0.586).lineTo(0.766, 0.586).lineTo(0.766, -0.319).lineTo(-0.766, -0.319).close().extrude(1.536) result = result.edges().chamfer(0.03) result = result.cu...
25
145
2.139906
train_6ac56d48194e2d4b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.56, -0.066, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.401, 0.44).lineTo(-0.401, -0.44).lineTo(-0.247, -0.44).lineTo(-0.247, -0.236).threePointArc((-0.225, -0.272), (-0.198, -0.304)).lineTo(-0.01, -0.177).threePointArc((0.094, -0.193), (...
2
16
0.123644
train_c523d86e3e3e4d6f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.154, -0.111, -0.524), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.693, 0.631).extrude(1.047) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.272, -0.129, -0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.094).extrude(0.247)) result = resu...
17
110
0.647805
train_55a2555264d39dea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.962, 0.152, -0.009), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.204).sweep(cq.Workplane('XZ').spline([(0.549, -0.162), (0.54, 0.023), (0.354, 0.167), (0.121, 0.071), (0.025, -0.162), (0.121, -0.395), (0.354, -0.492), (0.54, -0.347)])) result = ...
5
33
0.71561
train_224c88db2f00e6bc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.061, 0.07, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.064, -0.704).lineTo(0.064, -0.947).lineTo(0.064, 1.07).lineTo(-0.064, 1.07).lineTo(-0.064, -0.704).close().extrude(0.123) result = result.edges().chamfer(0.019) result = result.cut(cq....
4
34
0.027041
train_8790ba126616fb81
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.898, 1.116).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.106, -0.092, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.506, 0.708).extrude(0.973))
2
11
1.664359
train_e57da2efa6c36ae8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.265, -0.123, -0.735), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.671, 0.712).extrude(0.256) result = result.union(cq.Workplane(cq.Plane(origin=(-0.247, -0.123, -0.48), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.572, 0.383).extrude(0.023)) result ...
24
182
0.738508
train_f4a48c2cc80f9836
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.156, -0.084, 0.016), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.182, 0.974).threePointArc((0, 1.156), (0.182, 0.974)).lineTo(0.182, 0.065).lineTo(0.182, -0.844).lineTo(0.091, -0.844).lineTo(-0.091, -0.844).lineTo(-0.182, -0.844).lineTo(-0.182...
24
154
0.233166
train_f45ae94cb3e26969
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.016, 0, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.643, 2).extrude(0.27) result = result.union(cq.Workplane(cq.Plane(origin=(-0.188, -0.478, 0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.082, 0.19).extrude(0.047)) result = result.un...
7
26
0.718474
train_09c35c5da76c6196
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -1.571, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.315, 1.571).lineTo(-0.367, 1.571).lineTo(-0.552, 1.003).lineTo(-0.568, 0.953).lineTo(-0.526, 0.922).lineTo(-0.042, 0.571).lineTo(0, 0.602).lineTo(0.509, 0.972).lineTo(0.526, 0.922).lineTo...
3
17
2.105391
train_995ebef13eafb838
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.306, -0.011, -0.125), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.694, 0.003).lineTo(0.349, 0.629).lineTo(-0.337, 0.623).lineTo(-0.696, -0.002).lineTo(-0.371, -0.595).lineTo(0.356, -0.606).close().moveTo(0.166, -0.002).lineTo(0.082, 0.146).lineT...
12
66
0.331051
train_f678aedc94fa3858
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.385, 0.754, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.58, 0.791).lineTo(-0.58, 0.667).lineTo(0.332, 0.667).lineTo(0.332, -0.246).lineTo(0.58, -0.246).lineTo(0.58, 0.667).lineTo(0.456, 0.667).lineTo(0.456, 0.791).lineTo(-0.58, 0.791).clos...
7
128
0.395014
train_ebebf7ca6885d9fb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.551, -0.843, -0.445), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.26, -0.157).lineTo(0.26, 0.157).lineTo(-0.246, 0.134).lineTo(-0.26, 0.133).lineTo(-0.26, -0.133).lineTo(-0.246, -0.134).lineTo(0.26, -0.157).close().transformed(offset=(0.363, 0....
1
8
0.119159
train_9766747dfb4dc0dd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.225, 0, -0.078), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.549, 1.475).extrude(0.211) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.499, -0.575, 0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.171).extrude(0.106)) result = result.cut...
13
80
0.414526
train_31357d52e914141a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.102, -0.007, -0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.307, 1.007).lineTo(0.307, 0.44).threePointArc((0.343, 0.272), (0.307, 0.103)).lineTo(0.307, -0.464).lineTo(-0.343, -0.464).lineTo(-0.343, -0.434).lineTo(-0.343, -0.017).lineTo(-0...
16
124
0.488155