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_906a2223ac32e7b9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.641, -1.114, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.182, 0.153).lineTo(-0.531, 0.544).lineTo(-0.636, 0.441).lineTo(-1, 0.804).lineTo(-0.924, 0.895).lineTo(0.072, 2.076).lineTo(0.536, 1.612).lineTo(1, 1.149).lineTo(-0.182, 0.153).close...
14
51
2.280934
train_e2090f2726c8ff8b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.666, 0.091, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.654, -0.111).lineTo(0.654, 0.591).lineTo(-0.035, 0.591).lineTo(-0.13, 0.101).lineTo(-0.654, 0.008).lineTo(-0.654, -0.111).lineTo(0.654, -0.111).close().extrude(1.299) result = result.e...
15
102
0.890996
train_28cc94afbf3200b8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.24, -0.452, 0.112), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.081, 0.222).lineTo(-0.117, 0.157).lineTo(-0.29, 0.1).threePointArc((-0.168, 0.037), (-0.032, 0.047)).threePointArc((0.022, 0.022), (0.081, 0.013)).threePointArc((0.229, 0.075), (0....
22
232
0.138153
train_65b23542a2b02b06
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.535, -0.008), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(1.158).workplane(offset=0.266).circle(0.834).workplane(offset=0.282).circle(0.856).workplane(offset=0.231).circle(1.002).loft() result = result.edges().chamfer(0.177) result = result.cu...
12
62
1.098122
train_d98a89e683879dbe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.769), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.231).sweep(cq.Workplane('XY').spline([(-0.371, -0.244), (-0.186, -0.222), (0, 0), (0.186, 0.222), (0.371, 0.244)])) result = result.union(cq.Workplane(cq.Plane(origin=(0.166, 0, -0.663), n...
2
12
0.180708
train_1a8a7660bc6cdecc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.105, -0.439), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.303, 1.266).extrude(0.878) result = result.faces('>Z').shell(-0.074) result = result.union(cq.Workplane(cq.Plane(origin=(0.152, -0.748, -0.144), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0...
6
31
0.483964
train_03c51d69354a50d8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.04, -0.589, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.959, 0.066).lineTo(1.001, 0.106).lineTo(0.07, 1.036).lineTo(1.007, 1.973).lineTo(0.966, 2.014).lineTo(0.03, 1.077).lineTo(-0.011, 1.036).lineTo(-0.052, 1.077).lineTo(-1.007, 0.123).lin...
3
77
0.277365
train_60e54f1941355b4f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.105), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.568, 0.923).lineTo(0.876, -0.923).lineTo(-0.876, -0.267).lineTo(0.568, 0.923).close().workplane(offset=0.055).moveTo(0.573, 0.93).lineTo(0.883, -0.93).lineTo(-0.883, -0.269).lineTo(0.573, ...
14
37
0.198684
train_307eff11256bffca
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.052, 0, 0.06), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.263, 0.093).lineTo(-0.263, 0.017).lineTo(0.263, 0.017).lineTo(0.263, 0.093).lineTo(-0.263, 0.093).close().revolve(angleDegrees=360, axisStart=(-0.263, 0.093), axisEnd=(-0.263, 0.078)) ...
8
44
0.09755
train_6a1042713d306af8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.006, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.145, 0.079).threePointArc((0, -0.067), (0.145, 0.079)).lineTo(0.006, 0.079).threePointArc((0, 0.073), (-0.006, 0.079)).lineTo(-0.145, 0.079).close().extrude(0.472) result = result.un...
5
30
0.014889
train_56d9535a428c47d5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.42, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.595, -0.175).lineTo(-0.595, 1.016).lineTo(-0.178, 1.016).lineTo(-0.178, 0.688).lineTo(0.178, 0.688).lineTo(0.178, 1.016).lineTo(0.595, 1.016).lineTo(0.595, -0.175).lineTo(-0.595, -0.175).c...
8
64
2.591271
train_23b26e8dab8a7003
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.107, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.88, 1.498).extrude(1.743) result = result.union(cq.Workplane(cq.Plane(origin=(-0.391, -0.149, 0.724), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.171).extrude(0.276)) result = result.union(...
16
40
4.017954
train_74ca65df8848cd5b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.324, -0.028, -0.046), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.108, -0.088).lineTo(-0.097, -0.088).lineTo(-0.097, 0.088).lineTo(0.097, 0.088).lineTo(0.097, -0.088).lineTo(0.108, -0.088).lineTo(-0.108, -0.088).close().sweep(cq.Workplane('XZ...
6
27
0.009146
train_b42292fdb92c1938
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.215, -0.235, -0.879), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.785, -0.549).lineTo(0.785, 1.02).lineTo(-0.785, 1.02).lineTo(-0.785, 0.465).threePointArc((-0.555, 0.235), (-0.785, 0.005)).lineTo(-0.785, -0.549).lineTo(-0.23, -0.549).threePoin...
5
64
2.885303
train_6c8ccab34ef448a4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0, -0.602), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.143, 0.051).lineTo(-0.164, 0.033).lineTo(-0.149, 0.038).lineTo(-0.143, 0.041).lineTo(-0.136, 0.044).lineTo(0.164, -0.218).lineTo(0.046, 0.014).lineTo(0.027, 0.051).lineTo(0.002, 0.099).li...
4
36
0.12406
train_8df477f37b410214
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.041, 0.235, -0.498), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.502, 0.334).lineTo(-0.502, -0.252).lineTo(0.502, -0.252).lineTo(0.502, 0.334).lineTo(-0.502, 0.334).close().extrude(0.684) result = result.edges().fillet(0.153) result = result.u...
22
117
0.291726
train_016cb11d4ae001de
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.102, -0.537, 0.079), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.125).sweep(cq.Workplane('XY').spline([(-0.246, -0.169), (0.058, -0.202), (0.406, -0.151), (0.445, 0.017), (0.24, 0.153), (-0.171, 0.116), (-0.403, -0.014)])) result = result.union...
5
17
0.095505
train_4fe82f1b0498de81
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.079, 0.772, -0.163), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.429, -0.921).lineTo(0.429, 0.517).threePointArc((0.444, 0.634), (0.429, 0.751)).threePointArc((0.272, 0.986), (0.007, 1.079)).lineTo(-0.008, 1.079).threePointArc((-0.306, 0.957), ...
7
94
2.017517
train_ea4e7a2670c401dd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.212, 0.987).lineTo(-0.301, 1).lineTo(0.219, 0.086).lineTo(0.301, 0.086).lineTo(-0.212, 0.987).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.471, 0)) result = result.cut(cq.Wor...
3
12
0.23919
train_fe09aa8f8ad31ce9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.014, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.585, -0.983).lineTo(0.575, -0.986).lineTo(0.588, 1.014).lineTo(-0.589, 1.008).close().center(0, 0.277).rect(0.243, 0.405).center(-0.164, -0.475).rect(0.198, 0.298).center(0.328, 0).c...
13
92
0.549815
train_16e7230fd2c3dcab
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, 0.002, -0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.999, 0.017).lineTo(0.496, 0.904).lineTo(-0.511, 0.889).lineTo(-1.001, 0.002).lineTo(-0.536, -0.908).lineTo(0.512, -0.886).close().moveTo(0.245, 0.003).lineTo(0.123, 0.214).lineTo(-...
16
111
0.478179
train_31b690583f1627f3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.014, 0.008, -0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.014, -0.024).lineTo(0.494, 0.845).lineTo(-0.483, 0.868).lineTo(-0.986, -0.02).lineTo(-0.517, -0.837).lineTo(0.499, -0.885).close().moveTo(-0.411, 0.322).lineTo(-0.411, 0.328).line...
10
80
1.109919
train_c407f42c718434a8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.112, 0, -0.047), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.033, 0.651).extrude(0.113) result = result.cut(cq.Workplane(cq.Plane(origin=(0.173, 0.228, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.102).extrude(0.043)) result = result.cut(c...
12
51
0.07634
train_d5487abbcce404e2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.107, 0.129), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.46, -0.024).lineTo(-0.46, 0.407).lineTo(0.46, 0.407).lineTo(0.46, -0.375).lineTo(0.175, -0.375).lineTo(0.175, -0.276).lineTo(0.024, -0.276).lineTo(0.024, -0.407).lineTo(-0.46, -0.407)....
11
47
1.105627
train_9358d78b8bf604e1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.894, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.292).workplane(offset=0.375).circle(0.25).workplane(offset=0.359).circle(0.143).workplane(offset=0.355).circle(0.153).workplane(offset=0.331).circle(0.159).loft() result = result.edges().f...
9
44
0.107401
train_819963e1cdd8bbdf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.26, 0.247, -0.364), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.479, 1.218).extrude(0.784) result = result.union(cq.Workplane(cq.Plane(origin=(-0.441, 0.094, -0.59), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.527, 0.479).extrude(0.242)) result = r...
14
172
1.035051
train_94f22060abfdfb1c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.693), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.021).extrude(1.386) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.521, -0.092, -0.554), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.009, 0.634).extrude(0.872)) result = result.edges(...
12
239
1.95114
train_baaeb177c82a23e5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.693, -0.126, 0.339), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.135, -0.028).lineTo(-0.135, -0.031).lineTo(-0.135, -0.004).lineTo(-0.124, -0.005).lineTo(-0.124, 0.002).lineTo(0.057, 0.002).lineTo(0.05, 0.031).lineTo(0.055, 0.031).lineTo(0.062...
1
14
0.010789
train_5307ca9c02b12db8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.539, 0.029, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.065, 0.09).threePointArc((0.137, 0), (-0.065, -0.09)).lineTo(-0.105, -0.09).threePointArc((-0.095, -0.06), (-0.126, -0.05)).lineTo(-0.126, -0.037).threePointArc((-0.125, -0.031),...
9
91
0.188235
train_09c13cc6af9d1f53
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.002, 0, 0.431), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.031, -0.47).lineTo(0.501, 0.473).lineTo(-0.552, 0.473).lineTo(-1.031, -0.473).lineTo(1.031, -0.47).close().extrude(0.862) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.388, 0.20...
3
51
1.209956
train_05d2686c70cc2fc1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.113, 0.104, -0.433), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.237, 1.151).extrude(0.772) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.111, 0.185, -0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.228, 1.381).extrude(0.232)) result = r...
22
138
0.7814
train_46b132511557addf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0, -0.392), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.445, -0.008).lineTo(-0.445, 0.108).lineTo(0.398, 0.108).lineTo(0.398, 0.156).lineTo(0.445, 0.156).lineTo(0.445, -0.008).lineTo(-0.32, -0.008).lineTo(-0.32, -0.156).lineTo(-0.351, -0.156)....
2
15
0.07628
train_ccb430c37598cceb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.679, -0.508, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.049, 0.576).threePointArc((-0.141, 0.512), (-0.177, 0.406)).threePointArc((0, 0.229), (0.177, 0.406)).lineTo(-0.049, 0.576).close().revolve(angleDegrees=180, axisStart=(0.177, 0....
11
156
0.047005
train_d84fc9ace7e6b8b7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.134, 0, -0.219), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.084, 1.344).extrude(0.49) result = result.union(cq.Workplane(cq.Plane(origin=(0.833, 0.238, 0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.335, 0.599).extrude(0.2)) result = result.un...
23
220
0.740298
train_a10036476a86eb79
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.569, 0.032), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.546, 1.263).lineTo(-0.546, -0.126).lineTo(0.546, -0.126).lineTo(0.174, 1.263).lineTo(-0.546, 1.263).close().extrude(2) result = result.edges().chamfer(0.244) result = result.cut(cq.Wo...
18
123
1.2154
train_010837a0bfac2506
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.409, -0.11, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.203).sweep(cq.Workplane('XY').spline([(0.586, -0.11), (0.704, -0.094), (0.822, -0.129), (0.941, -0.216)])) result = result.edges().fillet(0.054) result = result.union(cq.Workplane(cq.P...
6
27
0.284273
train_0ab993494ec3b01d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.116, 0.066, 0.009), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.027, 0.009).lineTo(0.027, 0.085).lineTo(-0.016, 0.085).lineTo(-0.016, 0.071).threePointArc((-0.027, 0.047), (-0.016, 0.023)).lineTo(-0.016, 0.009).lineTo(0.027, 0.009).close().work...
8
83
0.002544
train_d1af55874e3051e5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.098, 0, 0.493), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.247, 0.042).threePointArc((-0.206, -0.165), (-0.047, -0.304)).threePointArc((0.08, -0.33), (0.207, -0.304)).lineTo(0.855, -0.632).threePointArc((0.08, -1), (-0.695, -0.632)).threePoin...
5
50
1.355107
train_bd89722607da91e2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.002, -0.082, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.296, 0.401).lineTo(-0.296, -0.331).lineTo(0.296, -0.331).lineTo(0.296, -0.034).lineTo(-0.038, -0.079).lineTo(-0.038, 0.401).lineTo(-0.296, 0.401).close().extrude(0.495) result = resu...
9
70
0.201709
train_df264c0f10afab9b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.017, 0.101, 0.202), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.329, -0.586).threePointArc((-0.965, 0.364), (0.157, 0.586)).lineTo(0.912, -0.168).threePointArc((0.965, -0.435), (0.738, -0.586)).lineTo(-0.329, -0.586).close().extrude(0.427) res...
2
8
0.851497
train_b733d43e6e9a6131
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1.031, 0.202, 0.532), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-2.031, -0.398).lineTo(-2.031, 0.398).lineTo(2.031, 0.398).lineTo(-2.031, -0.398).close().extrude(1.065) result = result.edges().fillet(0.221) result = result.cut(cq.Workplane(cq.Pla...
19
130
0.737876
train_7471910375088874
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, 0.079, -0.29), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.22).threePointArc((-0.152, 0.193), (-0.285, 0.113)).threePointArc((0, -0.307), (0.285, 0.113)).threePointArc((0.172, 0.254), (0, 0.307)).lineTo(0, 0.22).close().sweep(cq.Workplan...
7
27
0.970599
train_a71bc0272d92f158
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.452, 0.336, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.139, 0.563).lineTo(-0.337, 0.563).lineTo(-0.337, 0.8).lineTo(0.337, 0.8).lineTo(0.337, 0.563).lineTo(0.139, 0.563).lineTo(0.139, -0.127).lineTo(-0.139, -0.127).lineTo(-0.139, 0.269).l...
11
36
0.474405
train_abbd0d79bc0fa43b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.001, -0.069), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.381, -0.383).threePointArc((0.52, -0.147), (0.525, 0.126)).threePointArc((0, 0.539), (-0.525, 0.126)).threePointArc((-0.505, -0.192), (-0.31, -0.443)).threePointArc((0.047, -0.539), ...
9
52
1.445507
train_e26f24c006b2867f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.041), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.351, 1).threePointArc((-0.252, 0.854), (-0.24, 0.679)).threePointArc((0.351, 0.392), (-0.017, 0.936)).threePointArc((-0.193, 0.923), (-0.351, 1)).close().revolve(angleDegrees=360, axisSta...
5
3
1.50384
train_54e67228ea23a317
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.041, -0.658, 0.262), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.286, 0.342).lineTo(-0.286, 0.264).lineTo(-0.321, 0.326).lineTo(-0.409, 0.326).lineTo(-0.452, 0.251).lineTo(-0.412, 0.183).lineTo(-0.456, 0.183).lineTo(-0.456, -0.342).lineTo(0.4...
3
21
1.120033
train_6acb2e54b29b5fa3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.012, -0.334, -0.082), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.333, 0.452).threePointArc((-0.116, 0.976), (0.333, 0.63)).lineTo(0.332, -0.058).lineTo(0.332, -0.112).threePointArc((-0.13, -0.425), (-0.333, 0.094)).lineTo(-0.024, -0.084).lineT...
22
104
0.433459
train_f7b9d5c3db0fe4fa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.134, 0.691, -0.355), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.645, -0.076).lineTo(-0.645, 0.283).lineTo(0.645, 0.283).lineTo(0.645, -0.076).lineTo(-0.645, -0.076).close().extrude(1.383) result = result.edges().chamfer(0.123) result = result...
17
118
0.470244
train_c77ff1eed785554e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.399, 0, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.764, 0.816).threePointArc((-0.791, 0.608), (-0.764, 0.398)).lineTo(-0.53, 0.398).threePointArc((0, 0.038), (0.53, 0.398)).lineTo(0.764, 0.398).threePointArc((0.791, 0.608), (0.764, 0.816)...
10
72
2.228013
train_a94bf72c8c090089
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.029, -0.515), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.659, 1.943).extrude(0.035) result = result.union(cq.Workplane(cq.Plane(origin=(-0.097, 0.097, -0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.133, 1.806).extrude(0.048)) result = res...
13
65
0.508855
train_8de495f9d439111f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.188, 0.283, 0.093), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.093, 0.059).lineTo(-1.093, 0.647).lineTo(1.093, 0.647).lineTo(-1.093, 0.059).close().extrude(0.566) result = result.edges().chamfer(0.191) result = result.union(cq.Workplane(cq.Pl...
15
118
0.195415
train_2f04e7f2787141d7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.946, 0.408, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.005, 0.039).lineTo(-0.004, 0.037).lineTo(-0.003, 0.035).lineTo(-0.004, 0.033).lineTo(-0.047, -0.041).lineTo(0.038, -0.041).lineTo(0.04, -0.043).lineTo(0.047, -0.043).lineTo(0.046, -0.0...
2
17
0.003122
train_c2e6b861df0f9d7a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.029, -0.381, 0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.382, -0.971).lineTo(-0.382, 1.029).lineTo(0.382, 1.029).lineTo(0.382, -0.971).lineTo(-0.382, -0.971).close().revolve(angleDegrees=90, axisStart=(-0.382, -0.971), axisEnd=(-0.382,...
9
56
0.799058
train_c68fcc590975535b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.045, -0.003, -0.307), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.688, 1.557).extrude(0.609) result = result.union(cq.Workplane(cq.Plane(origin=(-0.261, -0.887, -0.18), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.18, 0.226).extrude(0.047)) result = ...
7
63
1.604476
train_2fb4f922a3996bd1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.069, 0.428, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.316, 0.558).lineTo(0.033, 0.017).lineTo(0.22, 0.057).lineTo(-0.085, -0.4).lineTo(-0.192, -0.47).lineTo(-0.316, -0.558).lineTo(-0.034, -0.118).lineTo(0.07, -0.048).lineTo(-0.098, -0.07...
1
12
0.137899
train_5c7523b1676ba970
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.942, -0.623), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.062).lineTo(1, 1.822).lineTo(-1, 1.822).lineTo(-1, 0.062).lineTo(1, 0.062).close().extrude(1.246) result = result.cut(cq.Workplane(cq.Plane(origin=(0.302, 0.561, -0.481), normal=(0...
4
14
4.153904
train_e9dd2aed09c9d680
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.012), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.8, 0.3).lineTo(-0.8, 0.1).lineTo(-1, 0.1).lineTo(-1, -0.3).lineTo(0.8, -0.3).lineTo(0.8, -0.1).lineTo(1, -0.1).lineTo(1, 0.1).lineTo(0.8, 0.3).lineTo(-0.8, 0.3).close().extrude(0.032) res...
7
37
0.03092
train_ee828cb3713a0130
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.286), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.938).extrude(0.528) result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.097, 0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.872).extrude(0.063)) result = result.union(cq.Workp...
18
116
1.897776
train_c781ea5d6fe9f00a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, 0.121, -0.092), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.28, -0.28).lineTo(0.28, 0.266).lineTo(-0.245, 0.266).threePointArc((-0.28, 0.28), (-0.266, 0.245)).lineTo(-0.266, -0.259).lineTo(-0.266, -0.28).lineTo(-0.245, -0.28).lineTo(0.259, ...
9
27
0.470539
train_001eb41fe144293f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.117, -1, -0.263), normal=(0, -1, 0), xDir=(0, 0, 1))).threePointArc((0.211, 0.005), (0.156, -0.21)).threePointArc((0.148, -0.22), (0.139, -0.228)).threePointArc((-0.013, -0.288), (-0.167, -0.235)).close().sweep(cq.Workplane('YZ').spline([(-0.59...
13
6
0.11132
train_67b64dc310b0680c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.778, -0.27, 0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.196, 0.466).lineTo(-0.353, 0.309).lineTo(0.039, -0.083).lineTo(0.196, 0.074).lineTo(0.353, 0.231).lineTo(-0.039, 0.623).lineTo(-0.196, 0.466).close().extrude(0.719) result = resul...
7
184
0.278336
train_a6c26b4a0a8c9b77
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.038, 0.003, -0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.275, -0.005).lineTo(0.147, 0.25).lineTo(-0.142, 0.238).lineTo(-0.274, -0.014).lineTo(-0.136, -0.256).lineTo(0.142, -0.234).close().moveTo(-0.056, -0.092).lineTo(0.054, -0.093).lin...
17
93
0.070722
train_417aea08cd48124e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.078, 0.223, 0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.836, 1.022).extrude(0.556) result = result.faces('>X').shell(-0.032) result = result.union(cq.Workplane(cq.Plane(origin=(-0.121, 0.286, 0.652), normal=(0, 0, 1), xDir=(1, 0, 0))).cir...
8
93
0.384687
train_f9b02aae7e3f1aef
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.282, 0.031, -0.314), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.686, 0.11).lineTo(-0.686, -0.11).lineTo(0.686, -0.11).lineTo(0.686, 0.11).lineTo(-0.686, 0.11).close().sweep(cq.Workplane('XY').spline([(-0.01, 0.031), (0.093, 0.031), (0.196, 0...
4
21
0.075013
train_5ba07bf4c49b4ddc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.452, -0.306, 0.427), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.322, 0.048).lineTo(0.322, 0.162).lineTo(0.351, 0.19).lineTo(0.351, 0.686).lineTo(-0.351, 0.686).lineTo(-0.351, 0.048).lineTo(0.322, 0.048).close().extrude(0.903) result = result.u...
15
74
0.297794
train_6e4e740f3030b0b0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.929, 0, 0.24), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.003, -0.048).threePointArc((-0.032, -0.015), (-0.071, 0.014)).threePointArc((-0.001, 0.048), (0.071, 0.02)).lineTo(0.058, 0.007).threePointArc((0.013, 0.007), (0.013, -0.038)).lineTo(0...
1
7
0.009636
train_aa89a63f836e85e0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.634, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.913, 0.05).lineTo(0.401, 0.562).lineTo(-0.856, 0.295).lineTo(-0.913, 0.562).lineTo(-0.256, 1.218).lineTo(0.668, 0.618).lineTo(0.913, 0.46).lineTo(0.913, 0.05).close().extrude(2) result = ...
7
32
1.619739
train_2a9ce0ccd3a8d5ed
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.546, 0, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.909, 0.299).extrude(0.312) result = result.union(cq.Workplane(cq.Plane(origin=(0.029, 0.029, -0.143), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.153, 0.059).extrude(0.076)) result = resul...
9
53
0.144715
train_95801096b38ff1cc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.454, -0.12), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.026, 0.178).threePointArc((0.085, 0.159), (0.134, 0.119)).lineTo(0.128, 0.114).threePointArc((0.146, 0.09), (0.159, 0.063)).lineTo(0.167, 0.067).threePointArc((0.179, 0.006), (0.171, -...
5
26
0.1046
train_564bfb33f53373ab
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.057, -0.238, -0.615), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.385, -0.113).lineTo(0.242, -0.113).threePointArc((0.385, 0.03), (0.242, 0.174)).lineTo(-0.385, 0.174).lineTo(-0.385, -0.113).close().extrude(0.476) result = result.edges().chamf...
21
309
0.135666
train_ca4f1dc34faaf227
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.318, -0.177, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.809, 0.809).extrude(0.277) result = result.union(cq.Workplane(cq.Plane(origin=(-0.278, -0.137, 0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.728, 0.728).extrude(0.023)) result =...
18
190
0.170041
train_6ddeb70705f99157
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.639), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.93).extrude(0.649) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.044, 0.044, -0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.782, 0.279).extrude(0.365)) result = result.cut(cq.W...
12
82
1.615962
train_9d320876117bbb6f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.085, -0.025, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.008).lineTo(-1, 0.162).lineTo(1, 0.162).lineTo(1, 0.008).lineTo(-1, 0.008).close().extrude(0.054) result = result.edges().chamfer(0.011) result = result.union(cq.Workplane(cq.Plan...
12
190
0.014767
train_47adbf53ad53f1d4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.388, -0.483), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.49, 0.278).lineTo(-0.49, -0.278).lineTo(0.49, -0.278).lineTo(0.49, -0.029).lineTo(0.245, -0.029).lineTo(0.245, 0.026).lineTo(0.49, 0.026).lineTo(0.49, 0.278).lineTo(-0.49, 0.278).cl...
3
22
0.734642
train_f79dc4cfc3db0648
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.002, 0, 0.626), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.772, -0.158).threePointArc((-1.002, 0.017), (-0.8, 0.224)).threePointArc((-0.594, 0.636), (-0.194, 0.865)).threePointArc((-0.012, 0.886), (0.169, 0.864)).threePointArc((0.539, 0.66), ...
14
129
1.392277
train_bdf7361bde2d0d56
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.241, -0.118), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.207, 1.517).extrude(0.237) result = result.cut(cq.Workplane(cq.Plane(origin=(0.126, -0.406, -0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.432, 0.884).extrude(0.148)) result = resul...
9
38
0.315668
train_84517c85116ebfef
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.46, 0.26, -0.905), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.086, -0.044).threePointArc((-0.124, 0.088), (-0.022, 0.18)).lineTo(-0.029, 0.18).threePointArc((0, 0.183), (0.029, 0.18)).lineTo(0.022, 0.18).threePointArc((0.124, 0.088), (0.086, -...
1
14
0.26191
train_43bfbc8b1549ae78
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.143, 0.174, 0.508), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.612).workplane(offset=0.708).circle(0.586).workplane(offset=0.726).circle(0.597).loft() result = result.union(cq.Workplane(cq.Plane(origin=(0.143, 0.174, 0.5), normal=(0, 0, 1), xD...
7
56
0.767717
train_66c43fa3ef51ed3b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.389), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.928, -0.072).threePointArc((-0.804, 0.392), (-0.464, 0.732)).lineTo(0, 1).lineTo(0.464, 0.732).lineTo(0.928, 0.464).lineTo(0.928, -0.072).lineTo(0.928, -0.608).lineTo(0.464, -0.876).three...
30
73
0.775367
train_1830db4a048ac237
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.089, -0.227, 0.307), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.47, 0.014).threePointArc((-0.047, 0.33), (0.47, 0.442)).lineTo(0.47, 0.014).lineTo(-0.47, 0.014).close().extrude(0.114) result = result.edges().chamfer(0.051) result = result.uni...
9
122
0.12561
train_738778843e47a699
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.389, -0.309, 0.144), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.691).sweep(cq.Workplane('XZ').spline([(1.36, -0.14), (1.449, 0.298), (1.433, 0.765), (1.315, 1.178)])) result = result.union(cq.Workplane(cq.Plane(origin=(-0.003, 0.68, -0.135), n...
4
12
0.476542
train_2c34a303af3f68bd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.462, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.812, 0.63).threePointArc((0, 0.041), (0.812, 0.63)).lineTo(0.542, 0.719).lineTo(0.064, 0.874).threePointArc((0, 0.884), (-0.064, 0.874)).lineTo(-0.542, 0.719).lineTo(-0.812, 0.63).close(...
11
52
1.275501
train_6d628ad19dd2583d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.747, 2).extrude(0.088) result = result.union(cq.Workplane(cq.Plane(origin=(-0.699 + 0.175, -0.8 + 0.4, 0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.109, -0.158).lineTo(0.109, 0).line...
9
38
0.310228
train_71b5dbe2049aba7f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.823, -0.078, -0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.177, -0.017).lineTo(-0.177, 0.017).lineTo(-0.035, 0.017).lineTo(-0.035, -0.005).lineTo(0.177, -0.005).lineTo(0.177, -0.017).lineTo(-0.177, -0.017).close().transformed(offset=(0....
1
8
0.00027
train_0a48acf6f1300810
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.113, 0.129, -0.672), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.179, 1.217).extrude(1.05) result = result.cut(cq.Workplane(cq.Plane(origin=(0.006, 0.044, -0.267), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.299, 0.672).lineTo(-0.299, 0.329).li...
13
77
1.672511
train_45a3d9e741f01891
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.383, 0.677, -0.596), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.355, 0.355).extrude(0.644) result = result.union(cq.Workplane(cq.Plane(origin=(-0.18, 0.677, -0.377), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.844, 0.091).extrude(0.205)) result = r...
4
36
0.456191
train_9526568814a02c48
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.671, 0, 0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 1.659).lineTo(-0.5, -0.316).lineTo(0.5, -0.316).lineTo(0.5, -0.283).lineTo(0.287, -0.283).lineTo(0.287, 1.659).lineTo(-0.5, 1.659).close().revolve(angleDegrees=270, axisStart=(-0.5, ...
7
71
2.486005
train_d2e5fac59604f49b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.03, 0, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.941, 0.868).extrude(0.071) result = result.union(cq.Workplane(cq.Plane(origin=(0.598, 0.156, 0.106), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.13, 0.402).lineTo(-0.13, 0.402).lineTo(-0...
3
35
0.135508
train_6c0c6e4a98d9f949
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.669, -0.224), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.164, 0.148).lineTo(-0.171, 0.15).lineTo(-0.17, 0.15).lineTo(-0.511, 0.295).lineTo(-0.52, 0.284).lineTo(-0.641, 0.331).lineTo(-0.528, 0.273).lineTo(-0.649, 0.115).lineTo(-0.657, 0.11...
1
13
0.089914
train_d0c42b15438a583f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.922, 0.862, -0.015), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.187, 1.857).lineTo(0.187, 1.182).lineTo(0.864, 1.182).lineTo(0.864, 0.055).lineTo(0.296, 0.055).lineTo(0.187, 0.158).lineTo(0.187, 0.055).lineTo(-0.784, 0.055).threePointArc((-0.6...
5
36
4.598087
train_9e372edf84e57efc
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.392).workplane(offset=0.28).circle(0.441).workplane(offset=0.305).circle(0.383).workplane(offset=0.335).circle(0.374).workplane(offset=0.366).circle(0.402).workplane(offset=0.341).circle(0.407...
13
36
0.701746
train_8faa13945ea8f55e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.102, -0.05, 0.359), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.051, 0.025).lineTo(-0.051, 0.005).lineTo(0.051, 0.005).lineTo(0.051, 0.025).lineTo(-0.051, 0.025).close().revolve(angleDegrees=270, axisStart=(-0.051, 0.025), axisEnd=(-0.051, 0....
12
138
0.189773
train_5ec18cd419824539
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.108, 0, -0.373), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.195, 1.259).extrude(0.563) result = result.union(cq.Workplane(cq.Plane(origin=(-0.848, -0.133, -0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.304, 0.254).extrude(0.131)) result = re...
13
80
0.550709
train_ce4620fdc146eea7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.184, -0.185, -0.27), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.221, 0.214).extrude(0.041) result = result.union(cq.Workplane(cq.Plane(origin=(-0.04, -0.17, -0.254), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.076, 0.105).extrude(0.021)) result = ...
21
376
0.380951
train_b15731082d62f8a1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.66, 0.977, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 1.66).lineTo(1, 1.66).lineTo(1, -0.008).lineTo(0.668, -0.34).lineTo(-1, -0.34).lineTo(-1, 1.66).close().extrude(1.953) result = result.edges().chamfer(0.104) result = result.cut(cq.Wo...
12
75
7.326651
train_c9ba2dadd2265017
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.31, -0.315, -0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.537, 0.896).lineTo(-0.132, 1.315).lineTo(-1.156, -0.24).lineTo(-0.29, -0.685).lineTo(-0.292, -0.613).close().moveTo(-0.234, -0.237).lineTo(0.234, -0.242).lineTo(0.236, 0.242).lineT...
8
70
0.659782
train_d8be7e4b9e9ed2ee
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 1.147, -0.202), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.661, 0.454).threePointArc((0.624, 0.705), (0.646, 0.958)).lineTo(-0.614, 1.214).threePointArc((-0.661, 0.666), (-0.581, 0.121)).lineTo(0.661, 0.454).close().revolve(angleDegrees=360, a...
11
129
1.899707
train_5acf46853343e164
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.698, 0, 0.211), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.302, -0.264).lineTo(-0.302, 0.249).lineTo(-0.181, 0.249).lineTo(-0.181, 0.264).lineTo(-0.106, 0.264).lineTo(-0.106, 0.249).lineTo(0.302, 0.249).lineTo(0.302, -0.264).lineTo(-0.302, -...
1
10
0.150906
train_806170c78740d90c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.469, 0, -0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.061, 0.835).extrude(0.432) result = result.faces('<Y').shell(-0.031) result = result.union(result.mirror('YZ', basePointVector=(0, 0, -0.216))) result = result.edges().fillet(0.014)
4
101
0.163159
train_dc0faf6373def113
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.387, 1.411).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.155, 0.398, -0.261), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.319).extrude(1.061)) result = result.cut(cq.Workplane(...
8
23
2.84063