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_1a789f2ead7df931
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.181, -0.473, 0.215), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.785, 0.334).lineTo(-0.785, 0.334).lineTo(-0.785, 0.028).lineTo(0.785, 0.028).lineTo(0.785, 0.334).close().extrude(0.945) result = result.edges().fillet(0.08) result = result.cut(c...
33
148
0.38404
train_c7c834bb6e3ba79e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.754, 0.215, 0.013), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.68).workplane(offset=0.281).circle(0.638).workplane(offset=0.273).circle(0.686).workplane(offset=0.34).circle(0.683).workplane(offset=0.279).circle(0.623).workplane(offset=0.345).c...
13
33
1.000231
train_e17bbfdc50f9c8bb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.092, -0.003, 0.212), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.208).workplane(offset=0.065).circle(0.202).workplane(offset=0.058).circle(0.208).workplane(offset=0.074).circle(0.259).workplane(offset=0.071).circle(0.204).workplane(offset=0.082...
11
69
0.154248
train_85a9a71cdc6fc35e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.471, -0.112, 0.728), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.012, -0.009).lineTo(0.006, -0.003).lineTo(0.009, -0.003).lineTo(0.006, 0.009).lineTo(0, 0.003).lineTo(-0.009, 0.008).lineTo(-0.006, -0.003).lineTo(-0.012, -0.009).lineTo(0.012, -0...
2
19
0.094195
train_0e2bf615dd1f2250
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.406, 0.413, -0.071), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.296, -0.125).lineTo(0.296, -0.125).lineTo(0.296, 0.322).lineTo(0.207, 0.322).threePointArc((0.146, 0.468), (0, 0.528)).lineTo(0, 0.322).lineTo(0, 0.232).lineTo(-0.207, 0.232).lin...
20
140
0.418324
train_338c56f9f33bb372
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.032, 0.307, -0.074), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.148).sweep(cq.Workplane('YZ').spline([(0.127, -0.23), (0.156, -0.138), (0.126, -0.046), (0.053, 0.001), (-0.028, -0.02), (-0.078, -0.099), (-0.072, -0.197)])) result = result.union...
7
63
0.150799
train_7e85243126de70a8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.009, -0.249, -0.823), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.114, 0.751).lineTo(-0.821, -0.662).threePointArc((-0.114, -0.751), (0.593, -0.662)).threePointArc((0.707, -0.631), (0.821, -0.594)).lineTo(-0.114, 0.751).close().sweep(cq.Workp...
2
9
1.268431
train_6a23751d646a5475
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.494), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.723).extrude(0.144) result = result.union(cq.Workplane(cq.Plane(origin=(0.276, 0.04, -0.351), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.218).extrude(0.059)) result = result.union(cq.Wor...
7
69
0.655326
train_4e31c7514b963dc5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.071, -0.759), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.477, 1.339).extrude(1.657) result = result.union(cq.Workplane(cq.Plane(origin=(0.527, -0.232, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.056).extrude(0.247)) result = result.union(...
4
19
3.284985
train_58040be93480f05b
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.457).workplane(offset=0.354).circle(0.507).workplane(offset=0.277).circle(0.465).workplane(offset=0.347).circle(0.505).workplane(offset=0.356).circle(0.542).workplane(offset=0.314).circle(0.50...
21
238
0.868973
train_9a28c10bfa5a49df
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.078, 0.073, -0.388), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.568, 1.204).extrude(0.68) result = result.union(cq.Workplane(cq.Plane(origin=(-0.705, 0.133, 0.331), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.056, 0.038).lineTo(0.056, -0.038).l...
15
80
0.527371
train_21092fd925baca66
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.325, 0.533), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.438, -0.438).lineTo(0.438, 0.438).lineTo(-0.438, 0.438).lineTo(-0.438, 0.284).lineTo(-0.273, 0.178).lineTo(-0.195, 0.195).lineTo(0, 0).lineTo(0.178, 0.273).lineTo(0.195, 0.195).lineTo(0...
2
20
0.801113
train_36ddb67ec56d3e2e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.653), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.931, 0.724).lineTo(0.931, 1).lineTo(0.793, 0.862).lineTo(-0.931, -0.862).lineTo(-0.793, -1).lineTo(0.931, 0.724).close().extrude(1.306) result = result.cut(cq.Workplane(cq.Plane(origin=(-0...
28
62
0.584632
train_83affdd911ec1a0d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.223).extrude(0.294) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.147, -0.942), normal=(0, 1, 0), xDir=(1, 0, 0))).circle(0.041).extrude(0.585)) result = result.cut(cq.Workplane(...
12
41
0.430031
train_56bb9251faff795b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.155, -0.2), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.987, 1.247).extrude(0.604) result = result.faces('>Z').shell(-0.064) result = result.union(cq.Workplane(cq.Plane(origin=(0.101, -0.879, 0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.3...
8
23
0.324207
train_ec243c66e9077d4c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.037, 0.187, -0.34), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.469, 1.552).extrude(0.578) result = result.faces('>Y').shell(-0.069) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.037, 0.187, 0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).circl...
12
51
0.46764
train_41ae3176d7e394c0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.379, 0.242, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.6, 0.215).lineTo(0.6, -0.621).lineTo(0.418, -0.621).lineTo(0.509, -0.548).lineTo(0.418, -0.476).lineTo(0.418, 0.215).lineTo(-0.455, 0.215).lineTo(-0.455, 1.088).lineTo(-0.527, 1.179).l...
3
32
0.282667
train_2edfe3e2efd66425
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.657, -0.062, -0.931), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.066, 0.05).lineTo(-0.058, 0.034).threePointArc((-0.069, 0.033), (-0.079, 0.038)).lineTo(-0.034, -0.006).lineTo(-0.019, -0.067).threePointArc((-0.018, -0.056), (-0.011, -0.048))...
9
64
0.061774
train_344fe061fd6a2a6e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.205, -0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.954, 0.965).extrude(0.062) result = result.union(cq.Workplane(cq.Plane(origin=(0.048, 0.253, -0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.429).extrude(0.005)) result = result.uni...
7
78
0.111822
train_d81a6871565a098d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.647, -0.056, 0.547), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.491).transformed(offset=(0.056, 0.069, 0.104), rotate=(10, 0, 0)).circle(0.123).transformed(offset=(0.112, 0.137, 0.134), rotate=(0, 45, 0)).circle(0.347).transformed(offset=(0.1...
2
5
1.253151
train_274e90669adbd16e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.484, -0.011, 0.082), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.013, 0.086).threePointArc((0.026, 0.11), (0.031, 0.138)).lineTo(0.031, -0.138).threePointArc((0.026, -0.11), (0.013, -0.086)).lineTo(-0.013, -0.052).threePointArc((-0.031, 0), (-0....
10
61
0.091607
train_d840ff10054ed6f9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.918, 1.852).extrude(1.482) result = result.cut(cq.Workplane(cq.Plane(origin=(0.113, 0.02, -1.252), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.136, 0.353).extrude(1.779)) result = result.union(cq....
7
55
1.918727
train_50620db8b6822515
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.974).workplane(offset=0.982).circle(0.835).workplane(offset=1.018).circle(0.895).loft() result = result.cut(cq.Workplane(cq.Plane(origin=(2.773 + 0.386 * math.cos(0.393 + 2 * math.pi * 0 / 4),...
15
33
4.124569
train_1c311b6fa1025818
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.1, -0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.394, 0.347).extrude(0.21) result = result.union(cq.Workplane(cq.Plane(origin=(-0.043, -0.039, -0.041), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.043, 0.1).lineTo(0.034, 0.02).threePoint...
9
77
0.056271
train_571524c35b25e768
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.788, -0.765, -0.038), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.426, -0.253).lineTo(-1.056, -0.253).lineTo(1.056, 1.858).lineTo(1.056, 1.229).lineTo(-0.426, -0.253).close().workplane(offset=0.358).moveTo(-0.378, -0.132).lineTo(-0.935, -0.132...
3
38
0.779778
train_1526f9a4ae28496b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.084, 0.134, 0.212), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.21, 0.343).lineTo(-0.21, -0.304).lineTo(0.21, -0.304).lineTo(-0.21, 0.343).close().extrude(0.321) result = result.edges().chamfer(0.02) result = result.union(cq.Workplane(cq.Plane...
11
67
0.076185
train_b787003f9c2cf45e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.471, 0.11, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.275).workplane(offset=0.235).circle(0.251).workplane(offset=0.308).circle(0.227).workplane(offset=0.331).circle(0.203).workplane(offset=0.288).circle(0.178).workplane(offset=0.309).circ...
17
94
0.1098
train_e9765e42dbfd6d77
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.338, 0.315, 0.4), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.378, 0.278).lineTo(0.378, 0.303).lineTo(0.429, 0.303).lineTo(0.429, 0.252).lineTo(0.404, 0.252).lineTo(0.404, -0.252).lineTo(0.429, -0.252).lineTo(0.429, -0.303).lineTo(0.378, -0.303...
18
65
0.941403
train_f6b70644c190062a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.443), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.47, 2).extrude(1.253) result = result.union(cq.Workplane(cq.Plane(origin=(0.237, -0.076, -0.81), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.524, 0.406).extrude(0.391)) result = result.cut(cq....
8
97
3.4294
train_27e22ccfa43d36b1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.074, 0.348), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.206, 0.348).lineTo(-0.206, -0.348).lineTo(0.002, -0.348).lineTo(0.002, -0.142).lineTo(0.206, -0.142).lineTo(0.206, 0.348).lineTo(-0.206, 0.348).close().sweep(cq.Workplane('XZ').spline(...
5
59
0.313779
train_e86f3c0d4b80d35c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.834, -0.452, 0.127), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.126).transformed(offset=(0.083, -0.139, 0.073), rotate=(0, 0, 10)).circle(0.088).transformed(offset=(0.167, 0, 0.154), rotate=(0, 45, 0)).circle(0.097).transformed(offset=(0.25, ...
10
144
0.769365
train_915b93d17445800d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.605, -0.456, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.407, -0.264).threePointArc((-0.604, -0.282), (-0.751, -0.414)).lineTo(0.162, 1.168).threePointArc((0.278, 1.283), (0.437, 1.326)).threePointArc((0.751, 0.974), (0.365, 0.7)).thr...
7
14
0.72983
train_71914619026257ba
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.273, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.4, 1.39).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(0.677, -0.134, -0.548), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.296).extrude(0.368)) result = result.union(cq.Wor...
4
39
3.93979
train_c845dd9352cb2168
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.077, 0.408, 0.192), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.281).workplane(offset=0.142).circle(0.301).workplane(offset=0.122).circle(0.294).workplane(offset=0.165).circle(0.169).loft() result = result.edges().fillet(0.122) result = result...
19
73
0.204715
train_1b829075a4e4558d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.239, 0.225, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.115, -0.646).threePointArc((0, -0.762), (0.115, -0.646)).lineTo(0.115, 0.773).threePointArc((0, 0.888), (-0.115, 0.773)).lineTo(-0.115, -0.646).close().extrude(0.379) result = result....
10
8
0.002618
train_898cba3ac2792919
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.441, 0, -0.692), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.528, 0.704).extrude(0.708) result = result.union(cq.Workplane(cq.Plane(origin=(-0.071, -0.009, -0.622), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.127).extrude(0.4)) result = result.un...
15
232
0.748738
train_a13898beaaede784
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.426, -0.072, 0.213), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.228).sweep(cq.Workplane('XY').spline([(0.287, -0.318), (0.525, -0.311), (0.763, -0.261), (1, -0.072), (1.238, 0.118), (1.476, 0.168), (1.713, 0.175)])) result = result.edges().ch...
11
66
0.374243
train_92736cfa1e0ac728
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.166, 0.155, -0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.837, -0.737).lineTo(0.834, -0.728).lineTo(0.821, 0.72).lineTo(-0.85, 0.745).close().moveTo(0.097, 0.207).lineTo(0.071, 0.277).lineTo(-0.002, 0.304).lineTo(-0.069, 0.277).lineTo(-0...
11
102
0.524722
train_854e4fc851fb7175
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.06, 0, 0.488), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.487, 0.11).lineTo(-0.487, 0.083).threePointArc((-0.513, 0.059), (-0.487, 0.034)).lineTo(-0.487, 0.01).lineTo(0.513, 0.01).lineTo(0.513, 0.033).lineTo(0.513, 0.083).lineTo(0.513, 0.11)....
17
156
0.196703
train_60f3db8d6f5e19df
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.343, -0.265, -0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.2, -0.238).lineTo(-0.086, -0.238).lineTo(-0.09, -0.195).threePointArc((-0.039, -0.18), (0.01, -0.198)).lineTo(0.01, -0.238).lineTo(0.039, -0.238).lineTo(0.023, -0.134).lineTo(0...
6
59
0.205136
train_8aaa533dcf6bfb89
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.457, -0.222, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.085, 1.282).extrude(0.086) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.587, -0.132, 0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.217, 1.538).extrude(0.025)) result = r...
19
394
0.207171
train_7a3366e09c2aaf44
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.962, -0.383, 0.023), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.048, -0.038).lineTo(-0.048, 0.035).lineTo(-0.043, 0.035).lineTo(-0.043, 0.038).lineTo(-0.028, 0.038).lineTo(-0.028, 0.035).lineTo(-0.019, 0.035).lineTo(-0.019, 0.038).lineTo(-0....
2
26
0.010833
train_e7d4e20cdbad1886
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.302, -0.334), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.787, 1.396).extrude(0.668) result = result.union(cq.Workplane(cq.Plane(origin=(0.182, 0.672, -0.268), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.147, 0.656).extrude(0.262)) result = resu...
9
45
0.620917
train_72954e20a4cde12d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.413, -0.16, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.111, 1.16).lineTo(0.014, 0.713).lineTo(-0.435, 0.637).lineTo(-0.464, 0.556).lineTo(-0.587, 0.142).lineTo(-0.68, -0.459).lineTo(0.387, -0.84).close().moveTo(0.227, 0.004).lineTo(0.1...
12
111
0.301381
train_5d4497743d6cc0bb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.476, 0.182, 0.337), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.537).workplane(offset=0.229).circle(0.523).workplane(offset=0.238).circle(0.502).workplane(offset=0.208).circle(0.584).loft() result = result.edges().fillet(0.21) result = result.u...
11
138
0.943146
train_370cd6ddbf917092
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.609, -0.009, -0.064), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.152).workplane(offset=0.305).circle(0.237).workplane(offset=0.258).circle(0.232).workplane(offset=0.269).circle(0.201).workplane(offset=0.226).circle(0.143).workplane(offset=0.29...
10
42
0.134204
train_19bd659cef6c4ae1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.392, 0.601, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.726).lineTo(-1, 0.059).lineTo(0, 0.059).lineTo(0, 0.392).lineTo(1, 0.392).lineTo(1, 0.726).lineTo(-1, 0.726).close().extrude(1.203) result = result.edges().chamfer(0.073) result = ...
12
38
1.165809
train_59628f6b2bf5c42e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.085, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.402, 0.085).lineTo(1, 0.085).lineTo(1, 0.437).lineTo(-1, 0.437).lineTo(-1, 0.085).lineTo(0.402, 0.085).close().revolve(angleDegrees=360, axisStart=(0.402, 0.085), axisEnd=(1, 0.085)) resul...
4
9
0.743237
train_d189d5a27a9f997c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.382), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.304).extrude(0.552) result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.065, 0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.587).extrude(0.075)) result = result.union(cq.Workp...
6
30
1.448209
train_4e34b3f5dd45ee66
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.234, -0.134, 0.058), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.056, 0.109).lineTo(0.056, 0.053).lineTo(0.151, 0.053).lineTo(0.151, -0.004).lineTo(-0.151, -0.004).lineTo(-0.151, 0.109).lineTo(0.056, 0.109).close().extrude(0.426) result = resul...
42
252
0.125003
train_b528ccac967a6b7d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.062, 0, -0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.37, 2).extrude(0.344) result = result.cut(cq.Workplane(cq.Plane(origin=(0.157, 0.131, -0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.065).extrude(0.036)) result = result.cut(cq.Wor...
10
47
0.835772
train_057f085e94ef7e99
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.351, -0.095, -0.61), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.089, 0.402).threePointArc((-0.212, 0.278), (-0.089, 0.154)).lineTo(-0.089, 0.119).lineTo(-0.069, 0.154).lineTo(0, 0.278).lineTo(0.068, 0.154).lineTo(0.088, 0.119).lineTo(0.088, 0...
9
64
0.108412
train_ac4e57df692054b9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.072, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.123, 1.437).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(-0.56, 0.234, -0.489), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.147, 0.096).extrude(0.183)) result = result.cut(cq...
5
37
3.128618
train_5b9f63d7e72bc1c9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.043, 0, -0.394), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.76, 2).extrude(0.701) result = result.union(cq.Workplane(cq.Plane(origin=(0.045, 0.1, 0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.793).extrude(0.116)) result = result.union(cq.W...
17
88
2.447645
train_d62636bc3096a61e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.085, -0.117, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.009).lineTo(-1, 0.249).lineTo(1, 0.249).lineTo(1, 0.009).lineTo(-1, 0.009).close().extrude(0.234) result = result.edges().chamfer(0.029) result = result.cut(cq.Workplane(cq.Plane(...
5
127
0.109888
train_bccbc6434d7202f2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.684, -1, 0.037), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.979, 1.663).lineTo(-0.653, 1.663).lineTo(-0.653, 0.684).lineTo(0.48, 1.663).lineTo(0.979, 1.663).lineTo(-0.154, 0.684).lineTo(0.979, -0.295).lineTo(0.48, -0.295).lineTo(-0.404, 0.469...
9
127
3.119961
train_7d85f87b3b426fe5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.028, 0.532, -0.19), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.914, 0.936).extrude(0.031) result = result.union(cq.Workplane(cq.Plane(origin=(-0.105, 0.157, -0.154), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.32, 0.38).lineTo(-0.32, -0.308).li...
16
270
0.548265
train_8faef3a0fb4c8338
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.411, 0.184, -0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.347, 0.347).extrude(0.398) result = result.union(cq.Workplane(cq.Plane(origin=(0.115, 0.1, 0.062), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.331, 0.484).threePointArc((0.938, 0.2...
13
126
0.529741
train_24cdb4c500242399
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.136, -0.666), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.774).extrude(1.333) result = result.union(cq.Workplane(cq.Plane(origin=(0.321, 0.381, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.142).extrude(0.287)) result = result.edges(...
3
39
2.060077
train_22001c9cf95007d2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.739, 0.309), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.196, 0.261).threePointArc((0.087, -0.065), (-0.196, -0.261)).lineTo(-0.196, 0.261).lineTo(0.196, 0.261).close().sweep(cq.Workplane('YZ').spline([(-0.739, -0.146), (-0.433, -0.107), (-0...
2
9
0.037963
train_494ad73dfe043602
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.01, 0.209, 0.242), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.683, -0.47).lineTo(-0.683, 0.872).threePointArc((-0.091, 0.877), (0.493, 0.777)).threePointArc((0.658, 0.164), (0.683, -0.47)).lineTo(-0.683, -0.47).close().extrude(0.626) result =...
9
94
0.791052
train_dd910bea941b04ca
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.336), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.619, -0.809).lineTo(-0.619, -0.429).lineTo(-1, -0.429).lineTo(-1, 0.809).lineTo(1, 0.809).lineTo(1, -0.429).lineTo(0.619, -0.429).lineTo(0.619, -0.809).lineTo(-0.619, -0.809).close().extr...
8
76
2.234045
train_53a252f7f795dcb6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.011, 0.238), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.046).lineTo(-1, -0.171).lineTo(1, -0.171).lineTo(1, -0.046).lineTo(0.875, 0.171).lineTo(0.75, -0.046).lineTo(0.5, -0.046).lineTo(0.375, 0.171).lineTo(0.25, -0.046).lineTo(-0.25, ...
7
130
0.14273
train_224152a454f6dc71
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.722, -0.052, -0.525), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.556, 0.556).extrude(1.05) result = result.union(cq.Workplane(cq.Plane(origin=(0.737, 0.277, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.053).extrude(0.15)) result = result....
13
235
0.393648
train_fe3ebaf096cdc29b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.362, 0.032, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.02, -0.121).lineTo(-0.096, -0.121).lineTo(-0.044, 0.179).lineTo(0.037, 0.179).lineTo(0.096, -0.179).lineTo(-0.096, -0.179).lineTo(-0.096, -0.141).lineTo(0.057, -0.141).lineTo(0.057, -...
2
14
0.107317
train_1410ff400c31da03
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.016, 0.019, -0.579), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.307, 0.797).extrude(0.587) result = result.faces('>Z').shell(-0.057) result = result.union(cq.Workplane(cq.Plane(origin=(0.181, -0.289, -0.623), normal=(0, -1, 0), xDir=(0, 0, 1))).m...
9
126
0.407485
train_fb282d765ea55343
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.039, -0.526, -0.133), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.15, -0.111).lineTo(0.15, 0.378).lineTo(-0.15, 0.378).lineTo(-0.066, -0.111).lineTo(0.15, -0.111).close().extrude(1.467) result = result.edges().fillet(0.107) result = result.unio...
5
63
0.530071
train_f3a73c7f7429982b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.659, -0.494), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.553).workplane(offset=0.654).circle(0.445).workplane(offset=0.663).circle(0.337).loft() result = result.edges().fillet(0.262) result = result.union(cq.Workplane(cq.Plane(origin=(0.163...
5
20
0.836947
train_8be435a7552aeb64
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.213, 0.005, -0.004), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.015, 0.553).lineTo(-0.015, 0.787).lineTo(0.015, 0.787).lineTo(0.015, -0.742).lineTo(-0.015, -0.742).lineTo(-0.015, 0.553).close().extrude(0.015) result = result.edges().fillet(0...
14
62
0.000598
train_2aca7fce7b81e3d0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.032, 0, 0.244), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.356, 0.644).threePointArc((0, 1), (0.356, 0.644)).lineTo(0.356, -0.644).threePointArc((0, -1), (-0.356, -0.644)).lineTo(-0.356, 0.644).close().extrude(0.488) result = result.edges()....
3
20
0.572745
train_ec757811ecc874c0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.033, -0.035), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.016, -0.967).lineTo(0.016, 1.033).lineTo(-0.016, 1.033).lineTo(-0.016, -0.967).lineTo(0.016, -0.967).close().revolve(angleDegrees=360, axisStart=(0.016, -0.967), axisEnd=(0.016, 1.033)...
4
16
0.007114
train_41f20908bda1f87d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.017, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.413, 0.392).extrude(1.77) result = result.union(cq.Workplane(cq.Plane(origin=(-0.111, 0.195, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.018).extrude(0.178)) result = result.cut(cq...
9
79
0.25889
train_8211db53331bf44f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.005, 0.008, -0.395), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.977, -0.001).lineTo(0.72, 0.687).lineTo(-0.01, 0.992).lineTo(-0.692, 0.719).lineTo(-0.987, 0.009).lineTo(-0.703, -0.704).lineTo(-0.024, -1.008).lineTo(0.664, -0.696).close().moveTo...
10
101
1.29598
train_67bbde61e387c8b4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.046, 0, -0.582), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.017, 0.251).lineTo(-0.201, 0.125).threePointArc((-0.234, 0), (-0.201, -0.125)).threePointArc((-0.109, -0.217), (0.017, -0.251)).threePointArc((0.142, -0.217), (0.234, -0.125)).lineTo...
9
148
0.255316
train_0372f4ff39af2441
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.407, -0.289, -0.258), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(1.112).sweep(cq.Workplane('XY').spline([(-0.407, -1.326), (-0.63, -1.08), (-0.993, -0.936), (-1.411, -0.929)])) result = result.cut(cq.Workplane(cq.Plane(origin=(0.57, -1.645, -0.5...
7
26
1.4906
train_db29cb6445b9e62d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.45, 0.408, 0.809), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.025, 1.027).lineTo(-1.025, 1.027).lineTo(-1.025, -1.027).lineTo(1.025, 1.027).close().revolve(angleDegrees=90, axisStart=(1.025, 1.027), axisEnd=(-1.025, 1.027)) result = result.edg...
31
61
0.421508
train_adbc09aea456557d
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.203, 2).extrude(1.363) result = result.cut(cq.Workplane(cq.Plane(origin=(0.172, -0.005, -0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.618, 1.052).extrude(0.74)) result = result.cut(cq.Wo...
12
52
2.325554
train_58c7b30491e00fa0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.549, 1.86).extrude(0.673) result = result.union(cq.Workplane(cq.Plane(origin=(0.305, 1.272, -0.199), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.147, 0.272).lineTo(0.463, 0.272).lineTo(0.46...
5
23
1.707194
train_c3373581edde0f3f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.305, 0.231), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.695).lineTo(-0.155, 0).lineTo(-0.267, -0.5).lineTo(-0.31, -0.695).lineTo(0.31, -0.695).lineTo(0.267, -0.5).lineTo(0.155, -0.5).lineTo(0.155, 0).lineTo(0, 0.695).close().sweep(cq.Wo...
3
16
0.174673
train_80b1770ee17d679f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.038, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.279).lineTo(0.594, -0.118).lineTo(-0.594, -0.118).lineTo(0, 0.279).close().extrude(2) result = result.edges().chamfer(0.153) result = result.cut(cq.Workplane(cq.Plane(origin=(0.123, -0...
7
33
0.341352
train_0773eb2ca61b3940
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.451, -0.676), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.246, 1.098).extrude(0.861) result = result.union(cq.Workplane(cq.Plane(origin=(-0.105, -0.251, -0.529), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.181).extrude(0.374)) result = result.u...
18
58
1.014366
train_bdc70b4f4a8ef5ef
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.111, -0.587, -0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.629, 0.111).lineTo(0.042, 0.111).lineTo(0.042, -0.155).lineTo(0.629, -0.155).lineTo(0.629, 0.155).lineTo(0.042, 0.134).lineTo(-0.629, 0.111).close().transformed(offset=(0.173, -...
2
11
0.01909
train_b362e4a173a7a0aa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.029, 0.243, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.097, 0.539).lineTo(-0.209, -0.48).lineTo(-0.097, -0.48).lineTo(0.209, 0.539).lineTo(0.097, 0.539).close().workplane(offset=0.085).moveTo(0.056, 0.323).lineTo(-0.12, -0.264).lineTo(-0.0...
2
8
0.086636
train_eae246b48e440ece
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.28, -0.887, -0.231), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.806, 0.758).threePointArc((0.541, 0.242), (0, 0.035)).threePointArc((-0.541, 0.242), (-0.806, 0.758)).threePointArc((0, 0.846), (0.806, 0.758)).close().extrude(1.28) result = resu...
26
179
1.334736
train_2468a98605ced3a1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.781, -0.134), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.709, 1.305).lineTo(0.709, 1.305).lineTo(0.709, -0.114).lineTo(0, 0.595).lineTo(-0.709, 1.305).close().extrude(2) result = result.edges().chamfer(0.379) result = result.cut(cq.Workpla...
12
52
1.095632
train_3f5f5f71c05bab6c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.051, 0.333, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.975, 0.099).lineTo(1, 0.074).lineTo(-1, 0.074).lineTo(-1, 0.586).lineTo(-0.975, 0.561).lineTo(-0.975, 0.099).lineTo(0.975, 0.099).close().workplane(offset=0.394).moveTo(0.932, 0.11).li...
2
23
0.062096
train_cb26fa54849a10d1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.104, -0.219), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.432).extrude(0.438) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.14, -0.205, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.051).extrude(0.04)) result = result.cut(cq.Wo...
11
49
1.219659
train_e9444bfaf66180b2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.69, 0.636), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.153).sweep(cq.Workplane('YZ').spline([(0.142, -0.083), (0.232, 0.081), (-0.019, 0.241), (-0.329, 0.279), (-0.56, 0.137), (-0.574, -0.05), (-0.345, -0.223), (-0.076, -0.245)])) result =...
5
25
0.206855
train_134b14a2016c7d9f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.432), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.084).extrude(0.827) result = result.cut(cq.Workplane(cq.Plane(origin=(0.272, -0.076, 0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.133, 1.301).extrude(0.027)) result = result.cut(cq.W...
12
74
1.63428
train_bdcf32c5f99cea87
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.517, -0.871, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.567).lineTo(-1, 0.27).lineTo(-0.578, 0.27).lineTo(-0.578, 0.447).lineTo(-0.229, 0.447).lineTo(-0.229, 0.349).lineTo(0.131, 0.349).lineTo(0.229, 0.447).lineTo(0.578, 0.447).lineTo(...
3
33
1.498405
train_9dc7bdd1baec8022
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.468, 0.745), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.039, 0.093).threePointArc((0.079, 0.083), (0.111, 0.057)).lineTo(0.146, 0.01).threePointArc((0.165, -0.017), (0.18, -0.046)).threePointArc((0.186, -0.097), (0.191, -0.15)).threePointArc...
11
58
0.212255
train_ef6a279895164395
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.41, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.87, 0.335).threePointArc((-0.058, 0.319), (-0.87, 0.77)).lineTo(-0.125, 0.05).lineTo(0.87, 0.335).close().extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.05, 0.669, -0.268),...
3
13
0.327465
train_44b5a3b15c04082c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.024, -0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.466).extrude(0.771) result = result.cut(cq.Workplane(cq.Plane(origin=(0.937, 0.428, 0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.066).extrude(0.187)) result = result.cut(cq.Wor...
9
32
2.440928
train_8056f2b7f26ea3ad
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.292, 0.082), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.175, -0.629).lineTo(-0.175, -0.326).lineTo(-0.239, -0.326).lineTo(-0.239, -0.693).lineTo(0.239, -0.693).lineTo(0.239, 0.693).lineTo(0.175, 0.693).lineTo(0.175, -0.629).lineTo(-0.175, -...
2
24
0.26529
train_2f885c733c101e2a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.89, -0.77, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.114).lineTo(-0.63, 0.622).lineTo(0.63, 0.622).lineTo(0.482, 0.426).lineTo(0.482, 0.129).lineTo(0.852, 0.622).lineTo(0.852, 0.917).lineTo(1, 1.114).lineTo(-0.777, 1.114).lineTo(-1, 1...
3
24
1.399805
train_0cf823054b7fc9b7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.56), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.655).lineTo(-1, -0.614).lineTo(-0.99, -0.614).lineTo(-0.99, 0.655).lineTo(0.949, 0.655).lineTo(0.949, -0.614).lineTo(1, -0.614).lineTo(1, -0.655).lineTo(0.908, -0.655).lineTo(0.908, -0...
5
33
2.231625
train_3de7272fb8dcb54b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.86, -0.682, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.587).lineTo(-0.745, 0.587).lineTo(-0.745, 1.317).lineTo(1, 1.317).lineTo(1, 0.047).lineTo(-0.745, 0.047).lineTo(-0.745, 0.393).lineTo(-1, 0.393).lineTo(-1, 0.587).close().extrude(1...
13
119
1.500871
train_e143d67a90c25784
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.489, 0.063, -0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.022, 0.766).extrude(0.131) result = result.cut(cq.Workplane(cq.Plane(origin=(0.334, 0.197, 0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.508, 0.346).extrude(0.058)) result = resu...
17
204
0.151639
train_88afb1c50124a6e6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.07, -0.475, -0.504), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.487, 0.17).lineTo(-0.496, 0.106).lineTo(0.496, -0.031).lineTo(0.48, 0.037).lineTo(-0.487, 0.17).close().extrude(0.95) result = result.union(cq.Workplane(cq.Plane(origin=(-0.033, ...
13
179
0.069529
train_c7ea58a8b11d3d4a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.487, -0.978, -0.034), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.034, 1.043).threePointArc((-0.895, 1.559), (-0.517, 1.938)).lineTo(0.517, 1.938).threePointArc((0.895, 1.559), (1.034, 1.043)).threePointArc((0.895, 0.526), (0.517, 0.148)).thre...
6
53
1.429226