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_79c5147a94cf2895
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.02, 0, -0.723), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.96, 1.962).extrude(1.171) result = result.union(cq.Workplane(cq.Plane(origin=(-0.02 + 0.269 * math.cos(0.169 + 2 * math.pi * 0 / 5), 0.586 + 0.269 * math.sin(0.169 + 2 * math.pi * 0 / 5)...
35
101
4.20955
train_5ae28e6eb6ef7631
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.024, 0.013, -0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.61, -0.01).lineTo(0.319, 0.535).lineTo(-0.329, 0.523).lineTo(-0.63, 0.009).lineTo(-0.312, -0.527).lineTo(0.323, -0.532).close().moveTo(0.104, 0.199).lineTo(0.066, 0.225).lineTo(0....
13
137
0.186179
train_6c334e3464553844
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.491, -0.088, -0.063), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.17, 0.596).threePointArc((0.424, 0.342), (0.17, 0.088)).lineTo(-0.424, 0.088).lineTo(-0.424, 0.215).lineTo(0.17, 0.215).lineTo(0.17, 0.47).lineTo(-0.424, 0.47).lineTo(-0.424, 0.5...
3
21
0.826863
train_4e7af562fec4ad7c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.067, -0.105, -0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.403, 0.527).extrude(0.017) result = result.union(cq.Workplane(cq.Plane(origin=(0.073, -0.098, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.215, 0.434).extrude(0.007)) result =...
10
95
0.080129
train_7adfe63a6af4e7f7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.116, 0.805, -0.206), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.817, 0.06).threePointArc((0, 0.148), (0.817, 0.238)).lineTo(0.817, 0.06).lineTo(-0.817, 0.06).close().revolve(angleDegrees=90, axisStart=(0.817, 0.238), axisEnd=(0.817, 0.06)) re...
8
40
0.083505
train_948bc25b63767542
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.847, -0.876, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.291, 1.135).lineTo(0.387, -0.04).lineTo(0.576, -0.04).lineTo(0.672, 0.124).lineTo(-0.007, 1.299).lineTo(0.088, 1.463).lineTo(-0.007, 1.628).lineTo(-0.102, 1.792).lineTo(-0.482, 1.792...
6
40
0.793874
train_a5286f3cf713090b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.02, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.616, 1.166).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(0.346, 0.119, 0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.019).extrude(0.233)) result = result.union(cq.Work...
11
145
1.286451
train_0e32dc99afcf06da
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.094, 1, -0.167), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.25, 0.804).lineTo(-0.326, 0.804).lineTo(-0.326, 0.305).lineTo(-0.826, 0.305).lineTo(-0.826, -0.521).threePointArc((-0.759, -0.549), (-0.731, -0.617)).lineTo(-0.326, -0.617).lineTo(0.2...
7
58
3.553863
train_29d631680e3b99df
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.089, -0.213, -0.301), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.736, 0.016).threePointArc((0, 0.41), (0.736, 0.016)).lineTo(-0.56, 0.016).lineTo(-0.736, 0.016).close().extrude(0.248) result = result.edges().chamfer(0.063) result = result.cut...
15
96
0.065093
train_772af5dce347e3c8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.478, 0.235, -0.577), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.423, 0.029).lineTo(-0.423, 0.89).lineTo(-0.236, 0.89).lineTo(-0.236, 0.725).lineTo(0.423, 0.725).lineTo(0.423, 0.029).lineTo(-0.423, 0.029).close().extrude(0.508) result = result...
7
60
0.412893
train_6813dce26913cebf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.485, 0.095, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.49, 0.515).lineTo(0.49, 0.379).threePointArc((-0.142, 0.117), (-0.404, -0.515)).lineTo(-0.49, -0.515).threePointArc((-0.228, 0.152), (0.418, 0.463)).lineTo(0.418, 0.515).lineTo(0.49, ...
3
14
0.168335
train_6c03769bf167158e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.51, -0.069, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.181, -0.238).lineTo(-0.181, 0.375).lineTo(0.181, 0.375).lineTo(0.181, -0.238).lineTo(-0.181, -0.238).close().extrude(0.163) result = result.edges().fillet(0.028) result = result....
13
88
0.049587
train_d95eb840466f420b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.291, -0.566, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.559, 0.6).threePointArc((0.472, 0.701), (0.368, 0.782)).threePointArc((0, 0.889), (-0.368, 0.782)).threePointArc((-0.472, 0.701), (-0.559, 0.6)).lineTo(-0.559, -0.624).threePointArc((...
2
16
1.131981
train_1ea125e6ce3ad927
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.479, 0.752, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.287, -0.331).lineTo(0, 0.115).lineTo(-0.139, 0.331).lineTo(-0.106, 0.331).lineTo(-0.124, 0.359).lineTo(0.157, 0.359).lineTo(0.139, 0.331).lineTo(0.017, 0.141).lineTo(0.033, 0.115).line...
2
15
0.151813
train_ddfbad3fe3de3707
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.081, 0, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.205, 0.632).extrude(0.565) result = result.union(cq.Workplane(cq.Plane(origin=(-0.831, -0.142, -0.225), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.337, 0.139).extrude(0.328)) result = re...
16
54
0.282221
train_3c8ea58e721ef12c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.224, 0.095, -0.075), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.437).sweep(cq.Workplane('XZ').spline([(-1.074, -0.393), (-0.472, -0.393), (0.077, -0.185), (0.626, 0.022)])) result = result.edges().fillet(0.244) result = result.union(cq.Workpla...
6
25
0.873925
train_4e3f8b48381dedb9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -1, -0.195), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.187).sweep(cq.Workplane('YZ').spline([(-0.658, -0.659), (-0.44, -0.499), (-0.221, -0.419), (-0.003, -0.419), (0.216, -0.499), (0.435, -0.659)])) result = result.edges().chamfer(0.097) re...
21
57
0.149984
train_8e156be0d1f231bf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.061, -0.191, 0.163), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.163, 0.716).lineTo(-0.157, 0.718).lineTo(-0.042, 0.288).lineTo(-0.041, 0.283).lineTo(-0.026, 0.228).threePointArc((-0.027, 0.225), (-0.025, 0.224)).lineTo(-0.01, 0.169).threePoint...
6
71
0.122954
train_5c7e0346866c9f96
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.474, -0.396), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.727, 1.474).lineTo(-0.727, -0.526).lineTo(0.727, -0.526).lineTo(0.727, 1.474).lineTo(-0.727, 1.474).close().extrude(0.725) result = result.edges().fillet(0.328) result = result.union...
3
31
1.771686
train_01a6c2ad4f69ffa1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.24, -0.008, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.775, 0.018).lineTo(0.513, 0.537).lineTo(0.005, 0.782).lineTo(-0.526, 0.525).lineTo(-0.76, -0.002).lineTo(-0.53, -0.551).lineTo(0.02, -0.766).lineTo(0.557, -0.533).close().moveTo(0....
18
213
0.150147
train_66182634ca0b36a7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0, -0.32), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.272, 0.15).threePointArc((0.258, 0.134), (0.242, 0.121)).lineTo(0.042, -0.068).lineTo(-0.187, -0.285).threePointArc((-0.272, -0.096), (-0.223, 0.104)).threePointArc((-0.098, 0.216), (0.067,...
3
16
0.073059
train_a03d1ae9b9d2d4cf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.912, -0.864, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.22, 0.092).lineTo(-0.22, 0.055).lineTo(-0.147, 0.055).lineTo(-0.147, -0.092).lineTo(-0.073, -0.092).threePointArc((0, -0.018), (0.073, -0.092)).lineTo(0.147, -0.092).lineTo(0.147, 0.0...
1
12
0.052815
train_3440556da8ee621c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.866, -0.538, -0.019), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.115, -0.134).lineTo(0.048, -0.068).lineTo(-0.081, -0.096).lineTo(-0.087, -0.068).lineTo(-0.115, 0.062).lineTo(-0.087, 0.068).lineTo(-0.019, 0).lineTo(0.043, 0.096).lineTo(0.048,...
10
69
0.113231
train_6067c78a66316651
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.167, 0.028, 0.235), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.816, 0.607).extrude(0.153) result = result.union(cq.Workplane(cq.Plane(origin=(-0.167, 0.028, 0.22), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.582, 0.466).extrude(0.015)) result = re...
29
315
0.327969
train_b234bbc186ed9eb8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.481, -0.453), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.443).workplane(offset=0.322).circle(0.378).workplane(offset=0.31).circle(0.537).workplane(offset=0.329).circle(0.41).loft() result = result.edges().chamfer(0.32) result = result.union...
38
282
0.551353
train_b6010c6ff44a41b9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.195, 0.159, -0.338), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.427, 1.682).extrude(0.063) result = result.union(cq.Workplane(cq.Plane(origin=(0.183, -0.255, -0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.201).extrude(0.011)) result = resul...
6
67
0.303888
train_744866e7ee786187
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.11, -0.007, -0.193), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.071, 0.019).lineTo(0.299, 1.007).lineTo(-0.825, 0.598).lineTo(-0.851, -0.609).lineTo(0.305, -0.993).close().moveTo(0.043, 0.791).lineTo(0.03, 0.813).lineTo(0.017, 0.805).lineTo(0....
16
83
0.372283
train_6226f692d50dcf63
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.948, -0.859, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 1.299).lineTo(1, 0.035).lineTo(-0.684, 0.035).lineTo(-0.684, 0.351).threePointArc((-1, 0.667), (-0.684, 0.983)).lineTo(-0.684, 1.299).lineTo(1, 1.299).close().extrude(1.717) result =...
20
64
3.613105
train_6366f32d062b79f2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.032, 0.142, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.176).lineTo(-1, 0.016).lineTo(1, 0.016).lineTo(1, 0.176).lineTo(0.9, 0.276).lineTo(0.8, 0.176).lineTo(0.7, 0.276).lineTo(0.6, 0.176).lineTo(0.2, 0.176).lineTo(0.1, 0.276).lineTo(0,...
11
165
0.022607
train_0cf5b470b41dc45a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.413, 0.14, 0.365), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.568).workplane(offset=0.104).circle(0.427).workplane(offset=0.114).circle(0.504).workplane(offset=0.123).circle(0.586).workplane(offset=0.111).circle(0.405).workplane(offset=0.11)....
17
76
0.28264
train_f20e6960092a37f8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.316, -0.246, -0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.553, 0.061).lineTo(0.872, 0.241).lineTo(0.147, 0.563).lineTo(-0.562, 0.401).lineTo(-0.684, 0.435).lineTo(0.469, -0.358).close().moveTo(0.183, -0.002).lineTo(0.126, 0.129).lineTo(...
16
102
0.17511
train_669cf27c0ad06160
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.021, -1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.142).sweep(cq.Workplane('XY').spline([(-0.021, 0.73), (0.777, 1.62), (1.577, 1.903)])) result = result.cut(cq.Workplane(cq.Plane(origin=(0.066, -0.917, -0.047), normal=(0, 0, 1), xDir=(1...
24
68
0.100033
train_97dc9f7a6da504c9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.344, 0.19, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.214, -0.428).threePointArc((-0.021, 0.106), (-0.214, 0.656)).lineTo(-0.21, -0.428).lineTo(0.214, -0.428).close().extrude(0.32) result = result.faces('>Z').shell(-0.015) result = result...
4
32
0.030386
train_84d169a92b62a347
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.287, 0.031, -0.04), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.119, 0.848).threePointArc((-0.085, 0.871), (-0.077, 0.91)).threePointArc((-0.07, 0.937), (-0.06, 0.964)).threePointArc((0.219, -0.742), (-0.219, 0.93)).threePointArc((-0.18, 0.941...
6
46
1.633464
train_8c27b41b20040fd7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.545, -0.081), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.076, 0.609).threePointArc((0.038, 0.005), (0.076, -0.609)).lineTo(-0.076, 0.609).close().sweep(cq.Workplane('YZ').spline([(-0.616, -0.173), (-0.283, -0.165), (0.049, -0.162), (0.382,...
5
19
0.091972
train_eae67347a537489a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.001, 0, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.32, 1.133).extrude(0.176) result = result.cut(cq.Workplane(cq.Plane(origin=(0.164, 0.055, 0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.254, 0.559).extrude(0.036)) result = result.c...
14
71
0.157644
train_5992c6e0824c025e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.585), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.174, 0.154).extrude(0.191) result = result.union(cq.Workplane(cq.Plane(origin=(0.041, 0.047, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.014, 0.017).extrude(0.431)) result = result.union(...
5
22
0.004705
train_46f15a67f1fd86c2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.398, -0.401, 0.118), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.933, 0.041).threePointArc((0, 0.722), (-0.933, 0.041)).lineTo(0.933, 0.041).close().extrude(0.779) result = result.edges().fillet(0.103) result = result.union(cq.Workplane(cq.Plan...
7
39
0.70172
train_937fad228a832e2e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.009, -0.683), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.317, -0.06).lineTo(-0.317, -0.082).lineTo(0.317, -0.082).lineTo(0.317, -0.06).lineTo(0, 0.082).lineTo(-0.317, -0.06).close().sweep(cq.Workplane('XY').spline([(-0.126, -0.009), (-0.08...
5
22
0.016543
train_281088e74ceffc3f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.003, -0.005, 0.3), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.391, -1.015).lineTo(0.391, -0.487).lineTo(-0.06, -0.554).lineTo(0.023, 1.015).lineTo(-0.391, -0.615).lineTo(0.391, -1.015).close().extrude(0.601) result = result.cut(cq.Workplane(c...
11
82
0.206223
train_11cfda2014afb613
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.23, 0.107, 0.522), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.171, 0.03).threePointArc((0.091, -0.004), (0.057, -0.084)).lineTo(-0.171, -0.084).lineTo(-0.171, 0.03).lineTo(0.057, 0.03).lineTo(0.057, 0.258).lineTo(0.171, 0.258).lineTo(0.171, 0.0...
8
17
0.019208
train_3b76aefb4672b926
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.253, 0, -0.625), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.262, 0.956).lineTo(0.089, 0.239).lineTo(0.022, 0.239).lineTo(0.022, -0.239).lineTo(0.747, -0.239).lineTo(0.747, -0.956).lineTo(-0.329, -0.956).lineTo(-0.68, -0.239).lineTo(-0.68, 0.2...
29
69
1.7845
train_67a6c65659661690
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.18, 0.003, -0.419), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.554, 1.093).extrude(0.756) result = result.cut(cq.Workplane(cq.Plane(origin=(0.433, 0.191, -0.426), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.249).extrude(0.295)) result = result.ed...
25
166
0.623953
train_c1d62b8686943834
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.466, 0.16, -0.113), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.081, 0.204).lineTo(0.081, 0.047).lineTo(0.086, 0.047).lineTo(0.086, 0.053).lineTo(0.096, 0.053).lineTo(0.096, 0.04).lineTo(0.081, 0.04).lineTo(0.081, 0.025).lineTo(0.067, 0.025).li...
9
73
0.059323
train_be80fb888f69954a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.443, 0.455, -0.314), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.557, -0.171).lineTo(-0.557, -0.153).lineTo(-0.552, -0.15).lineTo(0, 0.19).lineTo(0.552, -0.15).lineTo(0.557, -0.153).lineTo(0.557, -0.19).lineTo(0.552, -0.186).lineTo(0, 0.153).l...
8
87
0.195684
train_fc43c4498479408f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.858, 0.408, 0.374), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.172, 0.517).threePointArc((0, 0.163), (0.172, 0.517)).threePointArc((0, 0.6), (-0.172, 0.517)).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.198, 0)) result = res...
17
56
2.029085
train_043c21b0f265953f
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.132).workplane(offset=0.177).circle(0.046).workplane(offset=0.172).circle(0.118).workplane(offset=0.227).circle(0.1).workplane(offset=0.198).circle(0.093).workplane(offset=0.197).circle(0.041)...
17
140
0.030619
train_f20bd68211ac33eb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.681), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.72, 1.725).extrude(1.384) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.35 * math.cos(0.482 + 2 * math.pi * 0 / 4), 0.692 + 0.35 * math.sin(0.482 + 2 * math.pi * 0 / 4), -1.8), nor...
15
47
2.4265
train_22a26d0073084caa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.358, -0.41, -0.06), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.506, 1.055).threePointArc((0.332, 0.882), (0.089, 0.927)).lineTo(-0.506, 0.347).lineTo(0.089, -0.232).threePointArc((0.332, -0.188), (0.506, -0.361)).lineTo(0.506, 0.347).lineTo(0....
16
155
0.947338
train_baa403a5c583380c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.023, -0.272, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.047, 0.728).lineTo(0.047, 0.728).lineTo(0.047, 0.159).threePointArc((0.043, 0.095), (0.047, 0.03)).lineTo(0.047, -0.668).lineTo(-0.047, -0.668).lineTo(-0.047, 0.728).close().extrude(...
3
24
0.001339
train_af4c91a50423399c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.479), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.377, 2).extrude(1.12) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.551 + 0.2755, -0.8 + 0.267, -0.647), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.169, -0.106).lineTo(-0.136, -0.11...
16
108
2.308248
train_b421c0f1cb421d68
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.165, 0.04, -0.286), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.329, -0.835).lineTo(-0.288, 0.108).threePointArc((-0.329, 0.476), (-0.056, 0.727)).lineTo(0.329, 0.835).lineTo(0.329, 0.335).lineTo(0.329, 0.051).lineTo(0.329, -0.835).close().sweep...
4
25
0.237
train_6e733ae4f8b10087
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.569).workplane(offset=0.362).circle(0.472).workplane(offset=0.365).circle(0.478).workplane(offset=0.365).circle(0.478).workplane(offset=0.451).circle(0.329).workplane(offset=0.457).circle(0.35...
5
19
0.837934
train_80c77f1547a9ca2b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.035, 0.635, -0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.157, 0.269).extrude(0.068) result = result.cut(cq.Workplane(cq.Plane(origin=(0.046, 0.63, 0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.014).extrude(0.006)) result = result.uni...
31
251
0.095088
train_0f9918ca5c0afc9a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.286, -0.186, 0.357), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.357, 0.039).lineTo(-0.357, -0.05).lineTo(0.357, -0.05).lineTo(0.357, 0.129).lineTo(0.321, 0.129).lineTo(0.321, 0.039).lineTo(-0.357, 0.039).close().revolve(angleDegrees=270, axis...
5
27
0.203051
train_eba839e63baec152
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.03).lineTo(-1, -0.13).lineTo(1, -0.13).lineTo(1, 0.03).lineTo(0.9, 0.13).lineTo(0.8, 0.03).lineTo(0.7, 0.13).lineTo(0.6, 0.03).lineTo(0, 0.03).lineTo(-0.1, 0.13).lineTo(-0.2, 0.03).lineTo(-...
4
35
0.11437
train_9adc2490010e38b7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.02, 0.262, 0.234), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.048).workplane(offset=0.048).circle(0.036).workplane(offset=0.044).circle(0.054).workplane(offset=0.047).circle(0.054).workplane(offset=0.046).circle(0.044).loft() result = result....
25
41
0.207075
train_2b9970bf7d3b3a66
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.592, -0.256, -0.003), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.838, -0.251).lineTo(-0.838, 0.923).threePointArc((-0.615, 1.204), (-0.356, 1.456)).lineTo(0.838, -0.251).close().extrude(1.256) result = result.edges().chamfer(0.196) result = re...
18
97
0.348298
train_e1d483ffe8c69b07
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.085, -0.421, -0.085), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.025, -0.149).threePointArc((-0.162, -0.085), (-0.306, -0.036)).threePointArc((-0.296, 0.081), (-0.271, 0.196)).threePointArc((-0.126, 0.144), (0.011, 0.075)).threePointArc((0.133...
4
48
0.500971
train_0acfe221e36c4eb7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.265, 0.806), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.735).lineTo(0, 0).lineTo(-0.735, 0).lineTo(-0.735, -0.543).lineTo(-0.543, -0.735).lineTo(0.543, -0.735).lineTo(0.735, -0.543).lineTo(0.735, 0.543).lineTo(0.543, 0.735).lineTo(0, 0....
18
132
1.54648
train_ad44bc8aa1ecc40f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.124, 0.137, -0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.438, -0.47).lineTo(0.441, -0.452).lineTo(0.432, 0.446).lineTo(-0.442, 0.45).close().moveTo(0.046, 0.027).lineTo(0.008, 0.067).lineTo(-0.054, 0.013).lineTo(-0.051, -0.034).lineTo(...
9
49
0.106971
train_a07074cdc5383ded
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.117, -0.425, -0.42), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.892, 1.15).extrude(0.788) result = result.faces('>X').shell(-0.081) result = result.union(cq.Workplane(cq.Plane(origin=(-0.064, 0.249, -0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).cir...
11
48
0.383396
train_f98d33004c0f4f2a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.322, -0.449, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.287, 1.486).threePointArc((0.287, 0.449), (-0.287, -0.589)).lineTo(-0.287, 1.486).close().workplane(offset=0.365).moveTo(-0.297, 1.521).threePointArc((0.297, 0.449), (-0.297, -0.624)...
15
82
0.520497
train_7e3cba252caa5f6e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.361, 0.09, 0.058), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.096, -0.367).threePointArc((0.095, -0.167), (0.331, -0.026)).lineTo(-0.331, 0.367).lineTo(-0.096, -0.367).close().sweep(cq.Workplane('XZ').spline([(-1.092, -0.657), (-0.726, -0.632...
8
42
0.136828
train_197aa78b91348ffb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.059, 0.067, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.766, 1.419).extrude(1.808) result = result.union(cq.Workplane(cq.Plane(origin=(0.881, -0.124, -0.656), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.122, 0.136).extrude(0.1)) result = resul...
5
61
4.524267
train_c0567b6c06523afc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.529, 0.241, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.401).lineTo(-0.708, -0.401).lineTo(1, -0.401).lineTo(0.708, 0.401).lineTo(-1, 0.401).close().sweep(cq.Workplane('XY').spline([(-0.529, -0.154), (-0.226, -0.099), (0.077, -0.15), (0...
1
6
0.480129
train_1c631a779e118f08
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.568, -0.009), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.387, -0.367).lineTo(0.194, -0.031).threePointArc((0.387, 0.304), (0.194, 0.64)).lineTo(-0.387, 0.976).lineTo(-0.387, 0.304).lineTo(-0.387, -0.367).close().extrude(1.608) result = res...
33
179
0.847232
train_7002b9eb4fe955ae
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.834, -0.672, -0.165), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 1.26).lineTo(0.835, 1.26).lineTo(0.835, 0.038).lineTo(-0.835, 0.038).lineTo(-0.835, 1.26).lineTo(0, 1.26).close().extrude(1.343) result = result.edges().chamfer(0.125) result = ...
4
36
2.740228
train_93d951ce1c0cb3d4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.049, 0.186, 0.293), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.012, 0.249).lineTo(0.012, 0.067).lineTo(-0.028, 0.067).lineTo(-0.028, 0.102).lineTo(-0.154, 0.102).lineTo(-0.154, -0.083).lineTo(0.154, -0.083).lineTo(0.154, 0.249).lineTo(0.012, 0....
24
338
0.223989
train_a8dddb7bb54aee13
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.119, 0, 0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.054).lineTo(-0.5, 0.027).lineTo(0.5, 0.027).lineTo(0.5, 0.054).lineTo(-0.464, 0.054).threePointArc((-0.446, 0.072), (-0.465, 0.09)).lineTo(-0.465, 0.054).lineTo(-0.5, 0.054).close(...
9
141
0.116435
train_6f6451cf76039692
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.116, -0.205, -0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.728, 0.84).extrude(0.962) result = result.union(cq.Workplane(cq.Plane(origin=(-0.355, -0.068, 0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.125).extrude(0.221)) result = result...
8
44
0.599518
train_d9e66968e80d64d0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.634, 0.499, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.238, 0.36).threePointArc((0.152, 0.355), (0.094, 0.289)).threePointArc((0.106, 0.214), (0.051, 0.162)).threePointArc((-0.003, 0.208), (0.051, 0.254)).threePointArc((-0.016, 0.308), (-0....
1
10
0.110534
train_74475eeb9a4aab03
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.589, -0.528, -0.009), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.443, 1.37).lineTo(-0.244, 1.62).lineTo(-0.443, -0.855).lineTo(0.443, 1.37).close().extrude(0.922) result = result.edges().fillet(0.079) result = result.union(cq.Workplane(cq.Plan...
8
57
0.767785
train_750e3b34a8906b42
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.444, 0, -0.283), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.314, 0.294).lineTo(0.314, 0.358).lineTo(-0.403, 0.358).lineTo(-0.403, -0.358).lineTo(0.314, -0.358).lineTo(0.314, -0.294).lineTo(0.271, -0.294).lineTo(0.314, -0.252).lineTo(0.314, -0...
12
51
0.91979
train_500261701a44ccd2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.632), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.299, 2).extrude(1.264) result = result.faces('>Z').shell(-0.086) result = result.union(cq.Workplane(cq.Plane(origin=(0.259, 1.301, -0.315), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.156, ...
3
32
0.885023
train_fb8eae98c4f30719
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.019, -0.217, -0.699), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.156, -0.216).lineTo(0.237, -0.216).lineTo(-0.196, 0.216).lineTo(-0.237, 0.176).lineTo(0.156, -0.216).close().sweep(cq.Workplane('XZ').spline([(-0.019, -1.195), (0.427, -1.409), (...
10
41
0.100057
train_6c71b7d9f01eecca
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.669, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.136, 0.345).lineTo(0.136, 0.057).lineTo(-0.136, 0.156).lineTo(-0.136, 0.247).lineTo(0.136, 0.345).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.132, 0)) result = result.ed...
3
13
0.065863
train_d20cc04d5febff87
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.167, 0.316, 0.054), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.4, 1.167).lineTo(-0.4, -0.433).threePointArc((0, -0.833), (0.4, -0.433)).lineTo(0.4, 0.767).threePointArc((0.283, 1.05), (0, 1.167)).lineTo(-0.4, 1.167).close().extrude(0.631) res...
15
120
0.63769
train_4222866c905d5067
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.45), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.347).workplane(offset=0.194).circle(0.303).workplane(offset=0.268).circle(0.302).workplane(offset=0.253).circle(0.298).workplane(offset=0.272).circle(0.252).workplane(offset=0.2).circle(0.3...
13
57
0.16853
train_b4a1f4155c83a5d0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.124, 0.009, -0.571), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.627, 0.687).extrude(0.798) result = result.union(cq.Workplane(cq.Plane(origin=(-0.046, 0.424, -0.49), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.079).extrude(0.258)) result = resul...
14
54
0.166373
train_f6bd976d5eedcbdc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.157, 0.008, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.087, 0.915).extrude(0.511) result = result.union(cq.Workplane(cq.Plane(origin=(0.154, 0.156, 0.525), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.038, 0.037).threePointArc((-0.053, 0...
10
47
0.397169
train_b92c8ef70db94ae5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.099), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.113, -0.016).lineTo(-0.115, 0.005).lineTo(0.019, 0.016).lineTo(0.021, -0.002).lineTo(0.115, 0.006).lineTo(0.115, 0.003).lineTo(0.021, -0.005).lineTo(-0.014, -0.008).lineTo(-0.113, -0.01...
1
10
0.006431
train_a056ad00d695c884
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.282), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.5).lineTo(-1, 0.5).lineTo(-0.5, 0.5).lineTo(-0.5, 0).lineTo(0.5, 0).lineTo(0.5, 0.5).lineTo(1, 0.5).lineTo(1, -0.5).lineTo(-1, -0.5).close().extrude(0.564) result = result.edges().fil...
24
56
0.754798
train_270f181a852b7722
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.14, 0.384, -0.05), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.026, -0.144).lineTo(0.026, 0.7).lineTo(-0.003, 0.7).lineTo(-0.003, 0.653).lineTo(-0.026, 0.653).lineTo(-0.026, -0.57).lineTo(-0.003, -0.57).lineTo(-0.003, -0.616).lineTo(0.026, -0.6...
6
172
0.130418
train_d56e06435c4337a1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.562, 0, -0.108), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.601, 0.934).extrude(0.153) result = result.union(cq.Workplane(cq.Plane(origin=(-0.562, 0, 0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.24).extrude(0.035)) result = result.union(c...
15
1,528
0.178
train_7f05c8f1fec46452
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.461), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.678, 0.63).extrude(1.097) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.616), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.179).extrude(0.384)) result = result.union(cq.Workplan...
13
100
0.669127
train_1c8d1c41507702cd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.005, -0.003, -0.202), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.798, 0.009).lineTo(0.798, 0.001).lineTo(-0.798, 0.001).lineTo(-0.798, 0.009).lineTo(0.798, 0.009).close().extrude(0.005) result = result.edges().fillet(0.001) result = result.uni...
3
28
0.000064
train_f71a7f8e20f6fe18
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.911, 2).extrude(0.143) result = result.union(cq.Workplane(cq.Plane(origin=(0.113, 0.181, 0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.142, 0.112).extrude(0.037)) result = result.union(c...
10
44
0.492201
train_97fe3334167aa292
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.628, 0.15, -0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.382, 0.382).extrude(0.25) result = result.union(cq.Workplane(cq.Plane(origin=(-0.609, 0.169, 0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.343, 0.343).extrude(0.015)) result = re...
21
380
0.08467
train_3dff4fcba9869a62
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.007, 0, 0.127), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.854, 0.347).lineTo(-0.854, 0.207).lineTo(-0.716, 0.207).lineTo(-0.716, -0.485).lineTo(-0.993, -0.485).lineTo(-0.993, 0.485).lineTo(0.993, 0.485).lineTo(0.993, -0.485).lineTo(0.716, -...
13
153
0.325719
train_74722017bb01029f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.06, 0.303, 0.252), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.751, 0.059).threePointArc((0, 0.861), (-0.751, 0.059)).threePointArc((0, -0.743), (0.751, 0.059)).close().workplane(offset=0.324).moveTo(0.732, 0.059).threePointArc((0, 0.842), (-0....
19
176
1.440811
train_616939f8dcd32eda
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.061, 0, -0.518), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.138, 0.055).lineTo(-0.138, -0.055).lineTo(-0.101, -0.055).lineTo(0.138, 0.04).lineTo(0.138, 0.055).lineTo(-0.138, 0.055).close().sweep(cq.Workplane('XZ').spline([(-0.66, -0.968), (-0...
4
19
0.025112
train_33de7d5cd1859170
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.555, -0.302), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.287, 0.226).lineTo(-0.287, 0.226).threePointArc((-0.223, 0.167), (-0.181, 0.09)).threePointArc((-0.169, 0.046), (-0.165, 0)).threePointArc((-0.169, -0.046), (-0.181, -0.09)).threePoint...
2
20
0.175794
train_bfbac0f69ef1c9d6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.112, 0.664, 0.204), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.156, 0.089).lineTo(0.038, 0.089).lineTo(0.038, 0.183).lineTo(0.156, 0.227).lineTo(0.156, -0.227).lineTo(0.074, -0.227).lineTo(0.074, -0.062).lineTo(0.012, -0.026).lineTo(-0.156, -0...
2
36
0.12371
train_c224f53c24a4d8f9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.509, -0.458, -0.21), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.617, 0.762).lineTo(-0.617, 0.762).lineTo(-0.514, 0.66).lineTo(0, 0.145).lineTo(0.103, 0.042).lineTo(0.103, 0.248).lineTo(0.617, 0.762).close().extrude(1.509) result = result.edges...
20
151
0.434854
train_e9e15ca0c4795289
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.161, 0.185, -0.419), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.679, 1.424).extrude(0.839) result = result.faces('>Z').shell(-0.057) result = result.union(cq.Workplane(cq.Plane(origin=(0.823, 0.401, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).rec...
6
21
0.513197
train_8740351e8b163dd2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.364, 2).extrude(0.143) result = result.union(cq.Workplane(cq.Plane(origin=(0.169, -0.408, 0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.04).extrude(0.045)) result = result.cut(cq.Workp...
7
28
0.327753
train_9475f7b194de30ac
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-2.359, 1.184, 0.176), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.816, -1.374).lineTo(-3.359, -1.374).lineTo(-3.359, 1.374).lineTo(3.359, 1.374).lineTo(3.359, -0.605).lineTo(-0.816, -0.605).lineTo(-0.816, -1.374).close().workplane(offset=0.355)...
8
20
0.079094
train_cefccfd7e08d18e5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.156, -0.059, -0.367), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.092, 0.188).lineTo(0.092, 0.005).lineTo(-0.092, 0.005).lineTo(-0.092, 0.18).threePointArc((-0.086, 0.183), (-0.084, 0.188)).lineTo(0.084, 0.188).lineTo(0.092, 0.188).close().extr...
8
179
0.097978
train_15a5baac2c4cdbe5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.049, -0.125, -0.163), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.806, 0.81).extrude(0.674) result = result.faces('>Y').shell(-0.057) result = result.cut(cq.Workplane(cq.Plane(origin=(0.181, -0.459, 0.108), normal=(0, 0, 1), xDir=(1, 0, 0))).circl...
10
113
0.370075