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_81f4df1044c482de
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.139, 1.203).extrude(1.507) result = result.union(cq.Workplane(cq.Plane(origin=(-0.079, 0.049, 0.476), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.52, 0.258).extrude(0.524)) result = result.cut(cq....
3
14
2.114491
train_0c9906458bd6b984
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.141, 0.157, 0.049), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.191, -0.403).lineTo(0.191, 0.403).lineTo(-0.191, 0.403).lineTo(-0.191, 0.39).lineTo(-0.177, 0.39).lineTo(-0.177, -0.403).lineTo(0.191, -0.403).close().sweep(cq.Workplane('YZ').spl...
14
93
0.134987
train_65f180e6ed687796
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.321, 0.155, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.529, -0.212).lineTo(0.268, 0.049).lineTo(0.376, 0.072).lineTo(0.268, 0.584).lineTo(0.244, 0.693).lineTo(0, 0.317).lineTo(-0.268, 0.584).lineTo(-0.376, 0.561).lineTo(-0.268, 0.049).line...
5
55
0.434174
train_cf48affb17c5eb09
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.043, 0.026, 0.139), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.038, 0.094).lineTo(-0.038, -0.008).lineTo(0.015, -0.008).lineTo(0.015, -0.003).lineTo(-0.032, -0.003).lineTo(-0.032, 0.089).lineTo(0.032, 0.089).lineTo(0.032, 0.079).lineTo(0.038,...
4
24
0.00464
train_33ff7dc00778be1c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.091, 0, -0.682), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.018, 2).extrude(1.054) result = result.union(cq.Workplane(cq.Plane(origin=(0.501, -0.314, -0.487), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.198, 0.971).extrude(0.198)) result = result....
21
87
1.86491
train_4da0f64f5b0b286a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.054), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 1).lineTo(0.125, 1).lineTo(0.125, 0.028).lineTo(0, 0.028).lineTo(0, -1).lineTo(-0.125, -1).lineTo(-0.125, 1).lineTo(0, 1).close().extrude(0.109) result = result.edges().chamfer(0.019) res...
7
61
0.035174
train_89e2e21ad607fce8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.737, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.13, 0.11).lineTo(0.13, 0.591).threePointArc((0.192, 0.74), (0.34, 0.801)).lineTo(0.624, 0.801).lineTo(0.959, 0.801).lineTo(0.959, 1.052).lineTo(0.959, 1.114).lineTo(0.624, 1.114).lineTo(0...
8
39
0.441172
train_e8ff2abce95aba35
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.168, 0.158, -0.047), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.212, -0.325).lineTo(-0.212, 0.473).lineTo(0.212, 0.473).lineTo(0.212, -0.325).lineTo(-0.212, -0.325).close().extrude(0.43) result = result.edges().chamfer(0.105) result = result....
13
169
0.783537
train_5385b7c0050bdcf1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.076, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.138).lineTo(-1, 0.07).lineTo(-0.499, 0.07).lineTo(-0.499, 0.014).lineTo(0.961, 0.014).lineTo(0.961, 0.07).lineTo(1, 0.07).lineTo(1, 0.119).lineTo(-0.405, 0.119).lineTo(-0.405, 0.138)....
14
86
0.298559
train_3eb983d96d523329
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.007, 0.16, 0.593), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.568, -0.842).lineTo(0.583, -0.846).lineTo(0.565, 0.84).lineTo(-0.555, 0.838).close().moveTo(-0.082, 0.06).lineTo(0.083, 0.062).lineTo(0.084, 0.1).lineTo(-0.04, 0.099).lineTo(-0.04,...
23
244
0.435919
train_e60f09f93382d072
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.13, 0, -0.434), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.741, 1.299).extrude(0.868) result = result.union(cq.Workplane(cq.Plane(origin=(-0.858, 0.302, -0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.142).extrude(0.191)) result = result.cut...
5
22
1.741405
train_000b4ddcc0925697
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.119, 0.31, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.56).lineTo(-1, 0.06).lineTo(1, 0.06).lineTo(1, 0.56).lineTo(-1, 0.56).close().extrude(0.269) result = result.edges().fillet(0.019) result = result.union(cq.Workplane(cq.Plane(origin...
11
122
0.254889
train_3f8959230bd2e621
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.164, -0.113, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.014).lineTo(1, 0.21).lineTo(-1, 0.209).lineTo(-1, 0.015).lineTo(1, 0.015).close().extrude(0.328) result = result.edges().chamfer(0.017) result = result.cut(cq.Workplane(cq.Plane(or...
38
132
0.063113
train_895fad7f9aa70398
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.017, 0.016, -0.11), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.373, 0.422).threePointArc((-0.182, 0.182), (-0.422, -0.373)).threePointArc((-0.423, -0.398), (-0.422, -0.423)).lineTo(0.423, -0.423).lineTo(0.423, 0.422).threePointArc((0.398, 0.4...
12
249
0.51951
train_eb627b2d5f24652f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.022, -0.07, -0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.167, -0.93).threePointArc((-0.167, 0.07), (0.167, 1.07)).lineTo(0.167, -0.93).close().extrude(0.344) result = result.union(cq.Workplane(cq.Plane(origin=(0.167, 0.46, -0.019), norm...
20
44
0.138992
train_69a8dab9e6e201b3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.359, 0.734, -0.166), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.6, 0.937).threePointArc((0.834, 0.358), (0.6, -0.22)).lineTo(-0.6, -0.22).threePointArc((-0.834, 0.358), (-0.6, 0.937)).lineTo(0.6, 0.937).close().extrude(1.467) result = result.e...
16
80
1.541602
train_cc4e327c90c6e334
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.068, 0.02, -0.354), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.059, 0.078).extrude(0.007) result = result.union(cq.Workplane(cq.Plane(origin=(-0.039, 0.024, -0.346), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.004, -0.679).lineTo(0.033, -0.621)....
16
116
0.130011
train_975efced916b025d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.119, -0.509, -0.62), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.768).lineTo(-0.224, 0.768).threePointArc((-0.343, 0.718), (-0.393, 0.599)).lineTo(-0.393, 0.173).threePointArc((-0.343, 0.054), (-0.224, 0.004)).lineTo(0, 0.004).lineTo(0.224, 0...
14
77
0.758135
train_e4e4dbe416ce7b43
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.285, 0.232), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.339).sweep(cq.Workplane('YZ').spline([(-0.684, -0.458), (-0.228, 0.263), (0.228, 0.263), (0.684, -0.458)]))
1
3
0.766994
train_0f64a2e4101daf39
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.741, 0.485), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.12).sweep(cq.Workplane('YZ').spline([(-0.575, -0.168), (-0.204, -0.48), (0.196, -0.48), (0.567, -0.168), (0.567, 0.168), (0.196, 0.48), (-0.204, 0.48), (-0.575, 0.168)])) result = res...
2
5
0.133193
train_13fd44c326c56814
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.377, -0.023, -0.787), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.193, 0.114).threePointArc((-0.213, 0.021), (-0.191, -0.072)).threePointArc((0.213, 0.026), (-0.193, 0.114)).close().extrude(0.755) result = result.edges().chamfer(0.045) result ...
7
83
0.092353
train_6326d0a5c427a638
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.233), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.507, -0.931).threePointArc((0, 0.931), (0.507, -0.931)).lineTo(-0.507, -0.931).close().extrude(0.465) result = result.edges().fillet(0.093) result = result.cut(cq.Workplane(cq.Plane(origi...
43
515
0.62895
train_9d815b8cd372a550
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.224, -0.483, -0.556), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.562, 1.034).extrude(0.499) result = result.union(cq.Workplane(cq.Plane(origin=(0.122, -0.299, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.063).extrude(1.075)) result = resu...
10
99
0.675219
train_868236934e62d91f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0, 0.241), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.221, 0.237).lineTo(0.221, -0.237).lineTo(-0.166, -0.237).lineTo(-0.166, -0.005).lineTo(0.166, -0.005).lineTo(0.166, 0.017).lineTo(-0.221, 0.017).lineTo(-0.221, 0.237).lineTo(0.221, 0.237).c...
2
22
0.119037
train_7efe035bae0829f5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.769, -0.564, 0.41), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.39, 2.073).lineTo(-0.463, 1.57).lineTo(1.39, 0.564).lineTo(-0.463, -0.443).lineTo(-1.39, -0.945).lineTo(-1.39, 2.073).close().extrude(1.545) result = result.edges().fillet(0.748) ...
18
50
2.345632
train_9d0da5895d3974fb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.046, 0.072, -0.223), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.305, 0.381).lineTo(-0.305, 0.014).lineTo(0.153, 0.014).threePointArc((0.261, 0.059), (0.305, 0.167)).lineTo(0.305, 0.228).threePointArc((0.261, 0.336), (0.153, 0.381)).lineTo(-0....
22
159
0.406469
train_3a0b354808455f7e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.012, 0.052, -0.699), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.549, 1.502).extrude(1.436) result = result.union(cq.Workplane(cq.Plane(origin=(0.076, -0.75, 0.19), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.163, 0.105).extrude(0.056)) result = res...
6
28
3.352002
train_783324bc1ff35150
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.026, 0.015, 0.534), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.986, -0.569).lineTo(0.722, -0.417).lineTo(-0.986, 0.569).lineTo(0.986, 0.569).lineTo(0.986, -0.569).close().workplane(offset=0.313).moveTo(0.657, -0.379).lineTo(0.481, -0.278).lin...
9
61
0.770179
train_63e945775e2089ef
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.207, 0.055), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.062, 0.225).lineTo(-0.062, 0.73).threePointArc((-0.043, 0.775), (0.002, 0.793)).threePointArc((0.046, 0.775), (0.065, 0.73)).lineTo(0.065, 0.225).lineTo(0.182, 0.225).lineTo(0.182, -0...
4
48
0.046645
train_57be34e3d3098795
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.629), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.267, 2).extrude(1.258) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.057, -0.016, -0.645), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.563, 0.636).extrude(0.659)) result = result.cut(cq...
7
38
2.209852
train_a2c38e418bbe140c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.126, -0.466, 0.365), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.572, 0.003).lineTo(0.169, 0.518).lineTo(-0.447, 0.315).lineTo(-0.437, -0.31).lineTo(0.182, -0.534).close().moveTo(0.091, 0.155).lineTo(0.028, 0.241).lineTo(-0.073, 0.208).lineTo(-...
21
202
1.81492
train_d150250df044d9b5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.775, 0, -0.248), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.179, 0.133).threePointArc((-0.205, 0.1), (-0.225, 0.064)).threePointArc((-0.187, 0.02), (-0.173, -0.037)).threePointArc((0, -0.21), (0.173, -0.037)).threePointArc((0.187, 0.02), (0....
7
23
0.095315
train_291460ae13ff5735
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.149), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.364, 0.431).lineTo(0.364, -0.431).lineTo(-0.339, -0.431).threePointArc((-0.35, -0.416), (-0.364, -0.406)).lineTo(-0.364, 0.431).lineTo(0.364, 0.431).close().sweep(cq.Workplane('XZ').spli...
9
28
0.584554
train_4d58e827a82591e9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.256, 0, -0.22), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.488, 1.405).extrude(0.448) result = result.union(cq.Workplane(cq.Plane(origin=(0.037, 0.171, 0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.407, 0.783).extrude(0.222)) result = result...
16
157
0.800543
train_eeafce579e8f3a48
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.6, 0, -0.193), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.065, -0.041).threePointArc((-0.04, -0.066), (-0.004, -0.062)).threePointArc((0.032, -0.032), (0.062, 0.004)).threePointArc((0.066, 0.04), (0.041, 0.065)).threePointArc((0.013, 0.066), ...
27
92
0.03863
train_41081018255eb0e2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.108, -0.072, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.05).lineTo(0.018, 0.077).lineTo(0.024, 0.045).lineTo(0.045, 0.031).lineTo(0.058, 0.011).lineTo(0.063, -0.013).lineTo(0.058, -0.038).lineTo(0.045, -0.058).lineTo(0.024, -0.072).line...
1
21
0.024559
train_30b1117c5be5cede
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.081).extrude(0.033) result = result.union(cq.Workplane(cq.Plane(origin=(0.094, 0.076, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.244).extrude(0.023)) result = result.union(cq.Wo...
9
39
0.129098
train_926322cb3fa9fbc1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.222, -0.756, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.06, 0.758).threePointArc((0.063, 0.724), (0.153, 0.635)).lineTo(0.71, 0.957).threePointArc((0.83, 0.512), (0.71, 0.067)).lineTo(0.153, 0.39).threePointArc((0.063, 0.299), (-0.06...
4
69
0.708801
train_70b500b2a5ffecf1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.258, -0.101), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.028, 0.937).lineTo(-0.347, 0.937).lineTo(-0.347, -0.176).lineTo(0.079, -0.176).lineTo(0.347, 0.288).lineTo(-0.028, 0.937).close().extrude(1.024) result = result.edges().chamfer(0.107...
5
74
1.114798
train_3eee231b98f27629
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.394, -0.292, -0.112), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.306, 0.017).lineTo(0.077, 0.017).lineTo(0.077, 0.026).threePointArc((0.063, 0.037), (0.052, 0.051)).lineTo(0.043, 0.051).lineTo(0.043, 0.017).lineTo(0.009, 0.017).lineTo(-0.088,...
6
57
0.284262
train_76145fe72be163dc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.239, -0.455, -0.108), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.532).lineTo(-0.311, 0).lineTo(-0.269, 0.071).lineTo(0, 0.532).lineTo(0.269, 0.071).lineTo(0.311, 0).lineTo(0, -0.532).close().extrude(0.892) result = result.union(cq.Workplan...
9
140
0.861817
train_1ffe7585b4ecab53
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.254, 0.069, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.491, 1.174).extrude(0.158) result = result.union(cq.Workplane(cq.Plane(origin=(0.235, 0.571, 0.024), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.289, 0.518).threePointArc((-0.485, ...
16
249
1.306959
train_3e1f7e8f45600641
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.583, -0.487, 0.061), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.399, 1.15).lineTo(-0.399, -0.513).lineTo(0.399, -0.513).lineTo(0.399, 1.15).lineTo(-0.399, 1.15).close().extrude(1.165) result = result.edges().fillet(0.142) result = result.unio...
8
33
1.572128
train_a5fcac05f8330ea9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.545), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.402).extrude(1.091) result = result.faces('>Z').shell(-0.075)
2
11
0.705905
train_8fe7af6cb95ead00
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.007, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.079).workplane(offset=0.33).circle(0.066).workplane(offset=0.26).circle(0.101).workplane(offset=0.326).circle(0.098).workplane(offset=0.321).circle(0.074).workplane(offset=0.286).circle(0...
9
46
0.021814
train_77a0ae50a1593cc2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.147, -0.175, -0.574), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.017, 0.668).extrude(0.482) result = result.union(cq.Workplane(cq.Plane(origin=(0.348, -0.635, -0.485), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.411, 0.296).extrude(0.269)) result =...
32
294
0.644592
train_79286d90ea3901f3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.003, 0.472, 0.32), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.422, 0.528).lineTo(-0.422, -0.528).lineTo(0.422, -0.528).lineTo(0.422, 0.528).lineTo(-0.422, 0.528).close().revolve(angleDegrees=90, axisStart=(-0.422, 0.528), axisEnd=(-0.422, -0....
15
123
0.915519
train_70ab8443edfe735b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.626), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.603).extrude(1.252) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.467 * math.cos(0.434 + 2 * math.pi * 0 / 4), 0 + 0.467 * math.sin(0.434 + 2 * math.pi * 0 / 4), -0.813), normal...
18
30
3.587254
train_aea22f8501da461a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.271, 0.29, -0.245), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.399, 0.742).lineTo(-0.399, 0.204).threePointArc((0.046, -0.198), (0.399, 0.286)).lineTo(0.399, 0.742).lineTo(-0.399, 0.742).close().extrude(0.43) result = result.edges().chamfer(0...
11
72
0.268048
train_91f742bf8057c40e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.155, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.272, 0.961).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(0.246, 0.475, -0.593), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.326, 0.321).extrude(1.125)) result = result.edges...
3
51
2.537445
train_e2d3be917dc54fb0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.643, 0.407), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.56).workplane(offset=0.157).circle(0.58).workplane(offset=0.166).circle(0.621).workplane(offset=0.17).circle(0.542).workplane(offset=0.15).circle(0.567).workplane(offset=0.16).circle(0...
11
36
0.492039
train_2530930a22be1ba1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.474).extrude(0.063) result = result.union(cq.Workplane(cq.Plane(origin=(0.028, -0.218, 0.026), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.09, -0.235).lineTo(0.069, -0.2).lineTo(0.049, -...
6
17
0.158204
train_d1acc4d60c2fecbd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.038, 0.006, -0.516), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.746, 1.144).extrude(1.032) result = result.union(cq.Workplane(cq.Plane(origin=(-0.592, 0.647, 0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.128, 0.152).extrude(0.115)) result = r...
6
114
2.063801
train_8b7a1f1670092bb2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.145, -0.506), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.377).extrude(1.013) result = result.faces('>Z').shell(-0.071) result = result.union(cq.Workplane(cq.Plane(origin=(-0.204, 0.674, -0.224), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0....
4
64
0.656329
train_c5525b91eb321dd6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.123, -0.364), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.724, 1.754).extrude(0.728) result = result.cut(cq.Workplane(cq.Plane(origin=(0.121, -0.045, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.069, 0.623).extrude(0.086)) result = resul...
16
243
1.479159
train_4db3911e6f6654cd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.111, -0.748), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.351, 1.256).extrude(1.271) result = result.faces('>Z').shell(-0.107) result = result.union(cq.Workplane(cq.Plane(origin=(-0.201, 0.122, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.171...
22
55
0.98732
train_bf4c958a8a5b2d0d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.143), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.543, 2).extrude(0.286) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.143, -1.146), normal=(1, 0, 0), xDir=(0, 1, 0))).rect(0.821, 0.168).center(0.057, -0.012).rect(0.359, 0.038).ext...
14
32
0.739528
train_5dbd078fbbcb1bcb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1.005, 0.468, 0.103), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.859, 1.077).threePointArc((-0.167, 0.091), (0.819, 0.782)).lineTo(0.859, 1.005).threePointArc((0.167, 1.992), (-0.819, 1.301)).lineTo(-0.859, 1.077).close().extrude(0.828) result ...
10
54
2.203628
train_63a9e751e3f548e0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.575, -0.633, -0.093), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.141, 0.078).lineTo(-0.618, 0.712).lineTo(0.141, 0.944).lineTo(0.618, 0.31).lineTo(-0.141, 0.078).close().extrude(1.057) result = result.edges().chamfer(0.181) result = result.un...
14
90
0.430297
train_ce60ed6b0e02fe16
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, -0.087, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.713, 0.691).threePointArc((0.999, 0.382), (0.698, 0.087)).lineTo(-0.59, 0.087).threePointArc((-0.999, 0.534), (-0.519, 0.904)).lineTo(0.713, 0.691).close().revolve(angleDegrees=360, ax...
8
107
2.69715
train_6215debc137e73aa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.201, -0.05, -0.215), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.291).lineTo(0.629, 0.291).lineTo(0.629, -0.291).lineTo(-0.629, -0.291).lineTo(-0.629, 0).lineTo(0, 0).lineTo(0, 0.291).close().sweep(cq.Workplane('XZ').spline([(-0.171, -0.605),...
13
126
0.894479
train_4cb6d770393bdb08
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.533, 0.693, 0.061), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.063, -0.377).lineTo(1.063, 0.361).lineTo(-0.639, 1.833).lineTo(-1.063, -0.377).close().extrude(1.066) result = result.edges().chamfer(0.214) result = result.cut(cq.Workplane(cq.Pl...
20
35
1.53322
train_1777753cd425a7e1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.807, 0.143), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.008, 0.193).lineTo(-0.045, 0.171).lineTo(-0.281, 0.035).lineTo(-0.281, -0.112).lineTo(0.134, -0.193).lineTo(0.281, -0.193).lineTo(0.281, 0.035).lineTo(0.247, 0.093).lineTo(0.226, 0.13...
2
26
0.071311
train_6284fff1c0748c3f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.336, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.21, 0.223).lineTo(0.21, 0.223).lineTo(0.185, 0.14).lineTo(0.103, -0.14).lineTo(0, -0.14).lineTo(0, -0.223).lineTo(-0.078, -0.223).lineTo(-0.103, -0.14).lineTo(-0.185, 0.14).lineTo(-0.21...
1
11
0.09909
train_76756b2e9b0d0b20
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.897, 0.005), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.983).workplane(offset=0.608).circle(1.048).workplane(offset=0.531).circle(0.859).workplane(offset=0.655).circle(0.794).loft() result = result.edges().chamfer(0.768) result = result.cut...
7
36
1.504305
train_022653cf3822c810
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.156, -0.332, -0.177), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.112, 0.248).threePointArc((-0.031, 0.509), (-0.252, 0.668)).lineTo(-0.252, -0.668).lineTo(0.252, -0.668).lineTo(0.121, -0.631).lineTo(0.121, -0.593).lineTo(-0.103, -0.033).lineT...
12
59
0.695258
train_0bb692a443fd2359
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.7), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.575, 1.719).extrude(1.077) result = result.faces('>Y').shell(-0.107) result = result.union(cq.Workplane(cq.Plane(origin=(-0.06, 0.421, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.129).ext...
8
69
0.95691
train_84f7beee7f598fd8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.193, -0.126, -0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.387, 0.003).lineTo(0.285, 0.289).lineTo(-0.006, 0.398).lineTo(-0.286, 0.268).lineTo(-0.399, -0.007).lineTo(-0.275, -0.285).lineTo(0.006, -0.39).lineTo(0.273, -0.291).close().move...
16
98
0.106945
train_9a2ac6b1a6ab01b9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.06, -0.857), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.774, 1.391).extrude(0.073) result = result.union(cq.Workplane(cq.Plane(origin=(0.492, 0.06, -0.698), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.3).lineTo(0, 0.619).lineTo(-0.302, 0.6...
4
122
0.370193
train_b47fe3992a92b19d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.3, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.525, 0.021).lineTo(0.525, -0.538).lineTo(-0.525, -0.538).lineTo(-0.525, 0.538).lineTo(0.525, 0.538).lineTo(0.525, 0.021).close().sweep(cq.Workplane('XY').spline([(-0.453, -0.3), (0.151, -0...
2
12
1.283321
train_4e49a6fd5ba15224
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-3.683, 2.934, 1.758), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(4.06, 5.11).extrude(5.651) result = result.union(cq.Workplane(cq.Plane(origin=(-4.129, -0.529, 3.83), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1.12).extrude(3.002)) result = result.un...
7
15
1.795645
train_edb4982354be21fb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.021, 0.186, -0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.857, -0.023).lineTo(0.59, 0.561).lineTo(0.019, 0.814).lineTo(-0.586, 0.597).lineTo(-0.815, -0.012).lineTo(-0.593, -0.579).lineTo(-0.017, -0.836).lineTo(0.585, -0.594).close().move...
12
127
0.26345
train_112a79cfd6b9cb36
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.088, 0, -0.322), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.174, 2).extrude(0.643) result = result.union(cq.Workplane(cq.Plane(origin=(0.583, -0.153, -0.152), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.092).extrude(0.303)) result = result.edges...
16
116
1.032264
train_aea5e8ecfc5bfda6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.549, 0.513, -0.135), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.223, -0.173).lineTo(-0.223, -0.136).lineTo(-0.247, -0.136).lineTo(-0.247, 0.173).lineTo(-0.223, 0.173).lineTo(-0.223, 0.136).lineTo(0.223, 0.136).lineTo(0.223, -0.136).lineTo(0....
15
89
1.498091
train_d2f8063df05aeccb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.013, -0.501, 0.169), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.394).sweep(cq.Workplane('XY').spline([(-0.08, 0.349), (-0.396, 0.165), (-0.451, -0.109), (-0.311, -0.264), (0.051, -0.391), (0.497, -0.294), (0.688, -0.113), (0.704, 0.175), (0.40...
10
44
0.962001
train_1c9258675ad4c26f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.086), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.429, 0.286).lineTo(1, 0.286).lineTo(1, -0.286).lineTo(-1, -0.286).lineTo(-1, 0.286).lineTo(0.429, 0.286).close().extrude(0.148) result = result.edges().fillet(0.065) result = result.cut(cq...
8
44
0.157598
train_f570c0e0787cf6c7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1.245, 0.205, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.619).threePointArc((-0.117, 1.608), (-0.232, 1.578)).threePointArc((-0.282, 1.42), (-0.445, 1.456)).threePointArc((-0.595, 1.275), (-0.676, 1.054)).threePointArc((-0.687, 0.931), (-...
20
125
0.862615
train_5ecf6fd3ed3ced6c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.009, -0.49, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.912, 0.301).lineTo(-0.056, 1.441).lineTo(0.912, 0.714).lineTo(0.121, -0.475).lineTo(-0.912, 0.301).close().extrude(2) result = result.edges().fillet(0.417) result = result.cut(cq.Wor...
36
26
2.965765
train_52c7ed12c56bd024
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.611, -0.363, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.351, -0.525).lineTo(0.351, 1.252).lineTo(-0.351, 1.252).lineTo(-0.351, -0.525).lineTo(0.351, -0.525).close().extrude(0.635) result = result.edges().chamfer(0.155) result = result.uni...
4
37
0.714255
train_70cfb9e5d65fadf8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.227, 0.168, 0.361), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.27, 0.109).lineTo(-0.325, 0.109).lineTo(-0.325, 0.236).lineTo(-0.339, 0.259).lineTo(-0.311, 0.306).lineTo(-0.277, 0.366).lineTo(-0.387, 0.429).lineTo(-0.216, 0.725).lineTo(-0.106,...
13
115
0.336553
train_188eabdfccb76d1c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.328, -0.351, -0.393), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.046, 0.306).threePointArc((0, -0.296), (0.046, 0.306)).threePointArc((0, 0.309), (-0.046, 0.306)).close().extrude(0.119) result = result.edges().fillet(0.007) result = result.uni...
7
49
0.300993
train_4af3dc8970f349b4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.055, 1, 0.202), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.075, 0.777).threePointArc((-0.377, 0.589), (-0.565, 0.137)).threePointArc((-0.563, 0.082), (-0.555, 0.027)).threePointArc((0.565, -0.275), (0.075, 0.777)).close().extrude(1.629) resul...
12
60
1.377701
train_cacc1a1a831b8ac9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.775, -0.218), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.2, -0.225).lineTo(-0.2, 0.2).lineTo(-0.225, 0.2).lineTo(-0.225, 0.225).lineTo(0.225, 0.225).lineTo(0.225, 0.2).lineTo(0.2, 0.2).lineTo(0.2, -0.2).lineTo(0.225, -0.2).lineTo(0.225, -...
14
56
0.12369
train_39bf2fe749aea16d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.782), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.702, 2).extrude(1.09) result = result.union(cq.Workplane(cq.Plane(origin=(-0.185, -0.182, 0.272), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.991, 1.048).extrude(0.51)) result = result.cut(cq....
12
96
2.910188
train_72f22022d6ca0d7f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.255, -0.18), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.565, 1.489).extrude(0.477) result = result.union(cq.Workplane(cq.Plane(origin=(0.07, -0.414, -0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.384).extrude(0.129)) result = result.uni...
16
50
0.782881
train_ff8ccb05bf3ef0b9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.69, 0.055), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.145, 0.146).lineTo(-0.191, -0.078).lineTo(0.145, -0.146).lineTo(0.191, 0.078).lineTo(-0.145, 0.146).close().sweep(cq.Workplane('YZ').spline([(0.257, -0.123), (0.575, -0.123), (0.893, ...
9
50
0.129147
train_869b2b14fc9db6c5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.007, 0.032, 0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.237, 0.141).extrude(0.181) result = result.union(cq.Workplane(cq.Plane(origin=(0.007, 0.032, 0.529), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.023).extrude(0.525)) result = result.u...
9
42
0.017943
train_00cb80feb81132ca
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.036, 0.058, -0.704), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.181, 0.216).extrude(0.229) result = result.union(cq.Workplane(cq.Plane(origin=(0.066, 0.119, -0.514), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.032, 0.05).extrude(0.499)) result = re...
9
51
0.022434
train_1f1535baefd403a4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.654), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.642, 2).extrude(1.307) result = result.cut(cq.Workplane(cq.Plane(origin=(0.057, 0.352, -0.34), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.557, 1.365).extrude(0.517)) result = result.edges().f...
20
236
3.412828
train_81f51168eb5c1733
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.009, 0.008, -0.731), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.001, 0.001).lineTo(0.063, 0.001).lineTo(0.055, 0.009).lineTo(0.046, 0.018).lineTo(0.053, 0.009).lineTo(-0.046, 0.009).lineTo(-0.043, 0.012).lineTo(-0.049, 0.018).lineTo(-0.057, 0...
7
37
0.000103
train_f05e8cd91d6d106f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.424, -0.056, -0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.291, 0.496).extrude(0.118) result = result.union(cq.Workplane(cq.Plane(origin=(-0.516, -0.077, -0.032), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.06, -0.029).lineTo(-0.06, -0.02...
18
168
0.100053
train_9ad6622beb587468
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.256, -0.555), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.148).extrude(0.744) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.04, -0.488, -0.347), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.439, -0.985).lineTo(-0.439, 1.401).lineTo(...
32
151
0.806846
train_f90a7cba32a78619
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.297, 0.032, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.161, 0.264).lineTo(-0.263, 0.264).lineTo(-0.263, 0.746).lineTo(0.161, 0.746).lineTo(0.161, 0.498).lineTo(0.263, 0.498).lineTo(0.263, 0.264).lineTo(0.161, 0.264).close().revolve(ang...
18
101
0.453062
train_d40bd3af55bb1056
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.42, -1.02, 0.547), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.453, 1.45).lineTo(-0.453, 0.543).lineTo(0.453, 0.543).lineTo(0.453, 0.845).lineTo(-0.151, 0.845).lineTo(-0.151, 1.147).lineTo(0.453, 1.147).lineTo(0.453, 1.45).lineTo(-0.453, 1.45)...
9
95
0.876111
train_557960cbf4f124a2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.254, -0.496, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.946).threePointArc((-0.55, 0.496), (-1, 0.046)).lineTo(-0.4, 0.046).lineTo(0.4, 0.046).lineTo(1, 0.046).threePointArc((0.55, 0.496), (1, 0.946)).lineTo(0.4, 0.946).lineTo(-0.4, 0....
11
35
0.247545
train_2c5223e204ab6a3f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.414), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.161, 2).extrude(0.828) result = result.cut(cq.Workplane(cq.Plane(origin=(0.313, -0.125, -0.286), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.564, 0.55).extrude(0.268)) result = result.edges()....
3
51
1.828054
train_4f34531fd87a1137
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.06, 0, -0.399), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.391, 2).extrude(0.799) result = result.union(cq.Workplane(cq.Plane(origin=(0.105, -1.256, 0.017), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.651, -1.399).lineTo(0.651, -1.515).lineTo(-...
3
17
2.22274
train_f32850a33a7dac6c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.103, -1, -0.169), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.817, -0.257).threePointArc((0, 0.56), (0.817, -0.257)).lineTo(0.163, -0.257).threePointArc((0, -0.421), (-0.163, -0.257)).lineTo(-0.817, -0.257).close().extrude(1.597) result = resu...
26
95
1.47812
train_ff34c82b7b6767e5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.174, 0.049, 0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.651, 1.256).extrude(0.31) result = result.union(cq.Workplane(cq.Plane(origin=(0.139, 0.313, -0.076), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.102).extrude(0.111)) result = result.ed...
9
84
0.5724
train_bea9dfe054325859
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.462, -0.292, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.432, -0.274).threePointArc((-0.43, -0.227), (-0.422, -0.18)).lineTo(-0.288, 1.035).threePointArc((0.001, 1.292), (0.29, 1.035)).lineTo(0.432, -0.226).threePointArc((0.026, -0.70...
2
20
1.157306