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_a235aad9f7f7dd4b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.995, 0.065, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.266, -0.027).threePointArc((-0.267, 0), (-0.266, 0.027)).threePointArc((-0.193, 0.179), (-0.041, 0.253)).threePointArc((-0.014, 0.226), (0.014, 0.253)).threePointArc((0.166, 0.179), (0...
2
6
0.031623
train_b33f9009e1276912
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.189, 0.46, 0.656), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.526, 0.293).threePointArc((0.166, 0.297), (-0.138, 0.488)).lineTo(-0.739, -0.055).threePointArc((-0.061, -0.481), (0.739, -0.488)).lineTo(0.526, 0.293).close().revolve(angleDegrees=...
4
11
1.549627
train_90308f485abaab6c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.07, -0.074, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.117).lineTo(0.106, 0.117).lineTo(0.106, 0.011).lineTo(-0.106, 0.011).lineTo(-0.106, 0.117).lineTo(0, 0.117).close().extrude(0.138) result = result.edges().chamfer(0.011) result = re...
17
84
0.007517
train_c3108d7cf47c0a0e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.005, 0, 0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.133, 1.488).extrude(0.148) result = result.union(cq.Workplane(cq.Plane(origin=(-0.058 + 0.009, 0, 0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.003, -0.003).lineTo(-0.001, -0.001)....
15
114
0.195022
train_02cfb901c8028c20
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.008, -0.001, -0.26), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.992, -0.026).lineTo(0.487, 0.843).lineTo(-0.513, 0.881).lineTo(-1.008, 0.015).lineTo(-0.487, -0.86).lineTo(0.517, -0.879).close().center(0, 0.387).rect(0.297, 0.37).moveTo(-0.115, ...
14
68
0.900132
train_6a2e84ede9cc5617
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.148, -0.209, 0.412), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.343, 0.433).lineTo(0.343, -0.173).lineTo(-0.343, -0.173).lineTo(-0.343, 0.433).lineTo(0.343, 0.433).close().extrude(0.791) result = result.edges().fillet(0.103) result = result.cu...
32
151
0.299578
train_f9b62d793f4e581c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.077, -0.218, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.269, -0.927).lineTo(-0.269, 1.104).lineTo(0.269, 0.998).lineTo(0.269, -0.911).lineTo(-0.269, -0.927).close().extrude(0.436) result = result.edges().fillet(0.123) result = result.cut(...
4
39
0.417502
train_0156892a148b8e69
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.719, 0.232), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.314, 0.033).threePointArc((0, -0.281), (0.314, 0.033)).lineTo(0.248, 0.033).threePointArc((0, 0.281), (-0.248, 0.033)).lineTo(-0.314, 0.033).close().sweep(cq.Workplane('YZ').spline([...
2
8
0.059006
train_8669354ab6218c75
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0, -0.239), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.388).workplane(offset=0.316).circle(0.386).workplane(offset=0.358).circle(0.381).workplane(offset=0.324).circle(0.351).workplane(offset=0.313).circle(0.466).workplane(offset=0.283).circle...
7
36
0.890341
train_eaa7186c2bf523fb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.186, 0, -0.465), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.629, 1.959).extrude(1.188) result = result.union(cq.Workplane(cq.Plane(origin=(-0.795, 0.276, 0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.205).extrude(0.193)) result = result.uni...
4
64
3.982838
train_c8615b632c8779d8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.396, -0.835, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.262, 0.224).lineTo(-0.273, 0.224).lineTo(-0.021, -0.213).lineTo(-0.022, -0.213).lineTo(-0.022, -0.245).lineTo(0.01, -0.245).lineTo(0.01, -0.213).lineTo(-0.002, -0.213).lineTo(0.25, 0...
2
20
0.152147
train_49671491240ffbb1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.013, 0.126, -0.208), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.029).sweep(cq.Workplane('YZ').spline([(0.023, -0.213), (-0.032, -0.235), (-0.045, -0.346), (0.006, -0.409), (0.046, -0.315)])) result = result.edges().chamfer(0.005) result = resu...
6
35
0.007001
train_2dc3eb3b528232ed
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.074, 0, 0.401), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.214).sweep(cq.Workplane('XZ').spline([(0.424, -0.002), (0.415, 0.113), (0.317, 0.218), (0.166, 0.194), (0.066, 0.076), (0.066, -0.079), (0.166, -0.197), (0.317, -0.222), (0.415, -0.11...
10
35
0.315241
train_6940b36bb2c27499
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.748, 0.134), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.339, 0.233).lineTo(-0.339, 0.252).lineTo(-0.446, 0.252).lineTo(-0.446, 0.106).lineTo(-0.427, 0.106).lineTo(-0.427, -0.087).lineTo(-0.446, -0.087).lineTo(-0.446, -0.252).lineTo(-0.4, ...
2
22
0.147104
train_2eaaab805b84c7c9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.363, 0.286, 0.977), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.157, 0.305).lineTo(-0.187, 0.305).lineTo(-0.197, 0.276).lineTo(-0.304, -0.054).lineTo(-0.313, -0.083).lineTo(-0.289, -0.101).lineTo(-0.007, -0.305).lineTo(0.017, -0.287).lineTo(0....
2
15
0.075393
train_7ce439f7a314bbc8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.571, -0.446, -0.143), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.467, 0.368).lineTo(0.467, -0.193).lineTo(-0.392, -0.193).lineTo(-0.392, -0.224).lineTo(-0.282, -0.224).lineTo(-0.282, -0.368).lineTo(-0.467, -0.368).lineTo(-0.467, 0.368).lineTo...
10
79
0.557957
train_f6c48aecdcb7cebc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.073, 0, -0.739), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.138, 0.649).extrude(1.739) result = result.union(cq.Workplane(cq.Plane(origin=(-0.568, -0.193, 0.499), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.148, 0.098).extrude(0.129)) result = resu...
12
76
1.133598
train_5f1af161d46d0626
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.567, 0.03, 0.177), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.801, 1.484).lineTo(0.135, -0.627).threePointArc((-0.332, -0.97), (-0.801, -0.627)).threePointArc((-0.79, -0.302), (-0.578, -0.055)).lineTo(-0.332, -0.48).lineTo(-0.087, -0.055).line...
6
88
1.095771
train_296f18c050dcd20a
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.635, 1.459).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.156, -0.034, 0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.342, 0.781).extrude(0.983)) result = result.edges().cha...
3
51
4.415434
train_40369324476e2d99
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.107, -0.626), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.445).extrude(1.073) result = result.union(cq.Workplane(cq.Plane(origin=(-0.43, 0.156, 0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.262).extrude(0.2)) result = result.edges().f...
4
35
3.145652
train_7fd9ed2f6df43bd9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.107, 0.003), normal=(1, 0, 0), xDir=(0, 0, 1))).lineTo(0.997, 0.215).lineTo(-0.997, 0.213).lineTo(-1.003, 0.213).close().sweep(cq.Workplane('XZ').spline([(-0.247, -0.27), (-0.148, -0.356), (-0.049, -0.399), (0.05, -0.399), (0.149, -0.356), (0...
5
24
0.01005
train_75c9eff8f8e863b3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.529, -0.451, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.079, 0.471).lineTo(-0.182, -0.471).lineTo(-0.079, -0.471).lineTo(0.182, 0.471).lineTo(0.079, 0.471).close().sweep(cq.Workplane('XY').spline([(-0.529, -1.21), (-0.078, -1.62), (0.373, ...
3
16
0.174854
train_c162fab9a72b2dda
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.231, -0.028, -0.185), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.22, -0.582).lineTo(0.22, 0.83).lineTo(0.157, 0.83).lineTo(-0.22, -0.582).lineTo(0.22, -0.582).close().extrude(0.5) result = result.edges().chamfer(0.015) result = result.union(cq...
18
121
0.186032
train_7accd63c3aa8a561
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.625, 0.487, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.556, 0.656).threePointArc((-0.538, 0.799), (-0.487, 0.933)).lineTo(-0.487, 1.178).lineTo(-0.242, 1.178).threePointArc((0.035, 1.246), (0.312, 1.178)).lineTo(0.556, 1.178).lineTo(0.556...
10
52
0.745188
train_a0e21688a710512d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.917, 0.049, -0.485), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.328, 0.666).lineTo(0.617, 0.377).lineTo(0.328, -0.568).lineTo(-0.617, -0.279).lineTo(-0.328, 0.666).close().extrude(1.834) result = result.edges().fillet(0.408) result = result.u...
19
77
1.697828
train_d71b9f3cbb99d9c6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.438, 0.049, -0.085), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.017, -1.319).lineTo(0.09, 1.437).threePointArc((0, 1.438), (-0.09, 1.437)).lineTo(0.017, -1.319).close().extrude(0.098) result = result.edges().fillet(0.025) result = result.faces...
12
94
0.035999
train_b1ea18559e131ed3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.311), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.54).extrude(0.38) result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.077, 0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.386).extrude(0.056)) result = result.union(cq.Work...
5
25
1.371424
train_b7da2b5ab7347a0e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.611), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.696, 2).extrude(0.952) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.096, -0.152, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.353, 1.149).extrude(0.497)) result = result.edges(...
11
124
2.771049
train_3bcc707ab0b93b31
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.106, 0.694, 0.158), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.002, -0.195).threePointArc((-0.454, 0.326), (0.125, 0.7)).threePointArc((0.454, 0.262), (0.125, -0.177)).threePointArc((0.062, -0.191), (-0.002, -0.195)).close().extrude(1.596) r...
16
116
0.633394
train_4455d901d8c6731a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.444), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.644).extrude(1.331) result = result.union(cq.Workplane(cq.Plane(origin=(-0.015, 0.066, -0.887), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.187, 0.871).extrude(0.485)) result = result.edges...
13
133
3.707264
train_e73800468738f23d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.281, -0.354, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.242, -0.488).threePointArc((-0.012, -0.719), (0.219, -0.488)).lineTo(0.219, 0.175).threePointArc((0.242, 0.281), (0.219, 0.387)).lineTo(0.219, 1.05).threePointArc((-0.012, 1.281), (-...
17
168
0.295045
train_1250d11e994bd7d1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.049, -0.595), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.469, 0.68).lineTo(-0.469, -0.951).lineTo(-0.16, -0.951).lineTo(-0.16, -0.618).lineTo(0.16, -0.618).lineTo(0.16, -0.951).lineTo(0.469, -0.951).lineTo(0.469, 0.68).lineTo(-0.16, 0.68)....
11
107
1.25824
train_c1725e83fcd71eee
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.727, 0.584, -0.149), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.111).sweep(cq.Workplane('XY').spline([(0.178, 0.524), (0.299, 0.316), (0.43, 0.316), (0.552, 0.524), (0.552, 0.748), (0.43, 0.956), (0.299, 0.956), (0.178, 0.748)])) result = resul...
14
83
0.691747
train_a6cd9856ce6b7b77
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.121, 0.315, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.982, 0.384).lineTo(0.982, 1.11).lineTo(0.545, 1.11).lineTo(0.545, 0.602).lineTo(-0.89, 0.602).threePointArc((-0.95, 0.564), (-1, 0.515)).lineTo(-1, 0.144).lineTo(-1, 0.057).lineTo(-0.8...
14
109
1.10103
train_0a36ffc3fd8fe6a0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.447, 0.089, -0.089), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.498, -0.168).lineTo(-0.395, 0.352).lineTo(-0.39, 0.347).lineTo(0.105, 0.516).lineTo(0.498, 0.172).lineTo(0.397, -0.341).lineTo(-0.098, -0.51).lineTo(-0.099, -0.516).lineTo(-0.498...
3
15
2.008159
train_749d75ef190e22dd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.08, -0.213, 0.261), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.06, 0.054).lineTo(0.034, 0.027).lineTo(0.031, 0.041).lineTo(-0.034, 0.027).lineTo(-0.06, 0.054).lineTo(-0.06, 0.033).lineTo(-0.048, 0.025).lineTo(0, -0.006).lineTo(-0.031, -0.054)....
13
136
0.277603
train_4102dc6c162a7fa0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.15, 0.205, -0.37), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.44).sweep(cq.Workplane('XZ').spline([(0.729, -0.982), (0.614, -0.523), (0.245, -0.227), (-0.228, -0.214), (-0.613, -0.49), (-0.753, -0.942)])) result = result.edges().chamfer(0.176...
17
201
1.486599
train_e2f45d460dbdbced
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.779, 2).extrude(0.045) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.711 + 0.3555, -0.8 + 0.2, -0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.041, 0.1).lineTo(-0.041, -0.133).li...
9
94
0.156059
train_4abea00783c7c6bf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.806, 0.34, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.437, -0.194).lineTo(0.437, -0.194).lineTo(0.437, 0.856).lineTo(-0.437, 0.856).lineTo(-0.437, -0.194).close().extrude(0.885) result = result.edges().chamfer(0.095) result = result.union...
4
56
1.508863
train_f24e1751275927c0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.374, 0.507, 0.626), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.309).sweep(cq.Workplane('YZ').spline([(0.507, 0.514), (0.124, 0.641), (-0.203, 0.276), (-0.285, -0.374), (-0.077, -0.936)])) result = result.edges().chamfer(0.031) result = result....
3
24
0.521013
train_3edb2597a37a7613
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.11, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.196).workplane(offset=0.382).circle(0.212).workplane(offset=0.345).circle(0.242).workplane(offset=0.431).circle(0.208).workplane(offset=0.38).circle(0.216).workplane(offset=0.463).circle(0....
18
77
0.206049
train_96ed6e1569bb47d8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.094, 0.17, 0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.646, 1.086).extrude(0.401) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.228, 0.246, 0.444), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.459, -0.303).lineTo(-0.107, 0.141).li...
48
130
0.419053
train_7c4282819e2bf9ef
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.008, 0, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.397, 0.402).extrude(0.183) result = result.union(cq.Workplane(cq.Plane(origin=(0.222, -0.051, 0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.031, 0.018).extrude(0.022)) result = resul...
6
112
0.030742
train_71ff18b4e00a1c24
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.037, -0.266, -0.415), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.286, 0.763).extrude(0.993) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.076, -0.24, -0.584), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.163, 0.118).extrude(1.191)) result = ...
13
149
1.47581
train_78dd805f23a031c5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.898, -0.065), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.421, -0.074).threePointArc((0.421, 0.412), (0.421, 1.383)).threePointArc((0.065, 1.74), (-0.421, 1.87)).lineTo(-0.421, 0.898).lineTo(-0.421, -0.074).close().extrude(1.527) result = r...
8
47
1.530692
train_f62864876655398f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.749), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.841, 2).extrude(1.498) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.528, -0.296, -0.341), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.826, 1.008).extrude(0.714)) result = result.edges(...
29
227
2.533938
train_a7298def3a7ba478
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.009, -0.289, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.249, 0.177).lineTo(-0.249, -0.507).lineTo(-0.095, -0.507).lineTo(-0.095, 0.177).lineTo(0.249, 0.177).lineTo(0.249, 0.307).lineTo(-0.147, 0.307).lineTo(-0.147, 0.991).lineTo(-0.198, 0....
14
64
0.304327
train_c6da704048f85080
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.28, 0.219, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.44, 1.138).extrude(0.145) result = result.union(cq.Workplane(cq.Plane(origin=(-0.28, 0.219, 0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.335).extrude(0.026)) result = result.u...
15
127
0.260061
train_83c15400952996c1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.291, -0.21, 0.439), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.293, 0.441).lineTo(-0.366, 0.441).lineTo(-0.366, -0.138).lineTo(0.366, -0.138).lineTo(0.366, 0.441).lineTo(-0.293, 0.441).close().extrude(0.774) result = result.edges().fillet(0.2...
31
191
0.524383
train_505d2a1b5c19ad1e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.073, -0.048, -0.437), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.045, 1.904).extrude(1.059) result = result.union(cq.Workplane(cq.Plane(origin=(0.32, -0.564, -0.575), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.068, 0.082).extrude(0.14)) result = r...
7
70
2.108138
train_c6aeb3a19213d1f3
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.246, 1.84).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.113, 0.526, -0.356), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.127, 0.191).lineTo(-0.323, 0.664).lineTo(-0.127, 0.8...
12
56
3.295304
train_055b9dcf202871cb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.187, 0.252, -0.239), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.534, 0.48).threePointArc((0.761, 0.252), (0.534, 0.024)).lineTo(-0.761, 0.024).lineTo(-0.761, 0.48).lineTo(0.534, 0.48).close().extrude(0.374) result = result.edges().fillet(0.101...
9
47
0.201145
train_f37c87baa5807b69
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.327, -0.845, 0.261), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.106).lineTo(-0.015, 0.106).lineTo(-0.015, 0.097).lineTo(-0.075, 0.097).lineTo(-0.075, 0.032).lineTo(-0.05, 0.032).lineTo(-0.05, -0.018).lineTo(0, -0.018).lineTo(0, 0.032).lineT...
14
294
0.644226
train_ad902358dfaee768
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.365, 0.317, 0.052), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.47, -0.637).threePointArc((0.47, 0.365), (-0.47, 1.367)).lineTo(-0.47, -0.637).close().extrude(0.651) result = result.edges().chamfer(0.022) result = result.union(cq.Workplane(cq....
6
116
0.946622
train_b8757da8aa36d3d3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.099, 0.425), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.276, -0.2).lineTo(-0.25, -0.235).lineTo(0.301, 0.166).lineTo(0.276, 0.2).lineTo(0.25, 0.235).lineTo(-0.301, -0.166).lineTo(-0.276, -0.2).close().sweep(cq.Workplane('XZ').spline([(-0...
2
11
0.064426
train_f6b934fbafe22137
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.63), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.347, -0.947).lineTo(1, -0.947).lineTo(1, 0.947).lineTo(-0.895, 0.947).lineTo(-0.895, -0.07).lineTo(-1, -0.07).lineTo(-1, -0.351).lineTo(-0.895, -0.351).lineTo(-0.895, -0.947).lineTo(0.347, ...
8
52
2.075242
train_0827d4aea0d14838
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.209, -0.502, -0.149), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.148, 0.373).lineTo(0.171, 0.373).lineTo(0.171, 0.426).lineTo(0.05, 0.446).lineTo(0.048, 0.447).threePointArc((0.033, 0.456), (0.027, 0.472)).lineTo(0.027, 0.668).lineTo(0.192, 0...
13
91
0.077849
train_50fa8fbf0d1ff40f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.642, 0.505, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.096, 0.358).lineTo(-0.038, 0.143).lineTo(0.038, 0.143).lineTo(0.096, 0.358).lineTo(0.262, 0.262).lineTo(0.358, 0.096).lineTo(0.143, 0.038).lineTo(0.143, -0.038).lineTo(0.105, -0.105).l...
1
20
0.167752
train_137095562fa49e92
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.022, 0.039, -0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.385, 0.68).extrude(0.855) result = result.union(cq.Workplane(cq.Plane(origin=(0.022, -0.063, 0.759), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.219, 0.323).extrude(0.241)) result = r...
12
58
0.258614
train_82db394d10a4c6b7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.22), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.656).extrude(0.441) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.22, -1.521), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.082, 0.082).lineTo(0, 0.082).lineTo(-0.058, 0.058).lineT...
12
39
1.142681
train_c92e09161df424a4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.572, -1.378, 0.122), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.59, 0.355).lineTo(-0.59, 1.771).lineTo(0.59, 1.771).lineTo(0.59, 0.355).lineTo(-0.59, 0.355).close().revolve(angleDegrees=90, axisStart=(-0.59, 0.355), axisEnd=(-0.59, 1.771)) r...
14
116
0.839133
train_afaa7bfac89dd116
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.818), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.16, 2).extrude(1.636) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.118, 0.752, -0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.692, 0.523).extrude(0.523)) result = result.cut(cq.W...
3
13
3.607904
train_b803a7c86ca0e35e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.572, 0.653, -0.164), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.836, -0.061).lineTo(-0.836, 1.367).lineTo(0.836, 1.367).lineTo(0.836, -0.061).lineTo(-0.836, -0.061).close().extrude(0.921) result = result.edges().chamfer(0.379) result = result...
8
64
1.165439
train_faf499f3075f1ff8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.148, -0.484), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.225, 0.71).extrude(1.484) result = result.union(cq.Workplane(cq.Plane(origin=(0.266, 0.167, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.412, 0.423).extrude(0.545)) result = result.uni...
5
23
1.32603
train_26e98d8eb34d6b77
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.002, 0.042, 0.414), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.116, 0.058).lineTo(0.171, -0.058).lineTo(-0.171, -0.058).lineTo(-0.116, 0.058).lineTo(0.116, 0.058).close().sweep(cq.Workplane('XY').spline([(0.465, 0.042), (0.42, 0.065), (0.291,...
8
53
0.171214
train_60a75d23cd77b981
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.031, 0.512, -0.218), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.139, 0.209).lineTo(-0.656, 0.209).lineTo(-0.656, 0.545).lineTo(-0.527, 0.545).lineTo(-0.527, 0.338).lineTo(-0.268, 0.338).lineTo(-0.268, 0.855).lineTo(0.406, 0.855).threePointArc(...
10
97
0.108232
train_6700d789f8d5ad97
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.57, -0.454, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.757, 0.43).lineTo(-0.928, 0.206).lineTo(-0.939, 0.205).lineTo(0.92, -0.424).lineTo(0.939, -0.43).lineTo(0.879, -0.4).lineTo(0.637, -0.276).lineTo(-0.341, 0.25).lineTo(-0.393, 0.246)....
2
15
0.022681
train_1b5c4266940dd908
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.097, 0.166), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.439).threePointArc((0.185, -0.404), (0.345, -0.304)).lineTo(0, 0.068).lineTo(0.371, 0.412).threePointArc((-0.345, 0.439), (-0.371, -0.277)).threePointArc((-0.203, -0.397), (0, -0.4...
10
71
0.455554
train_184d4ba94e17a5b5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.5, -0.689, -0.019), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.018, 0.689).lineTo(0.006, 0.689).lineTo(0.006, 0.045).lineTo(-0.136, -0.311).lineTo(-0.129, -0.311).lineTo(0.139, -0.311).lineTo(0.139, 0.689).lineTo(0.018, 0.689).close().revolve(...
3
26
0.274925
train_a8155c4c7b0322ed
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.436, -0.77), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.081, 0.062).lineTo(0.081, 0.061).lineTo(-0.082, 0.061).lineTo(-0.082, 0.062).threePointArc((-0.091, 0.058), (-0.094, 0.05)).lineTo(-0.094, -0.001).lineTo(-0.094, -0.051).threePointArc(...
15
283
0.068058
train_1c83ec0d0c765d16
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.404, 0.371, -0.219), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.256, 0.327).threePointArc((0, 0.071), (0.256, 0.327)).lineTo(0.256, 0.481).threePointArc((0, 0.737), (-0.256, 0.481)).lineTo(-0.256, 0.327).close().extrude(0.741) result = result...
12
90
0.395399
train_fc12ace1d8d4a2be
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.078, -0.038, 0.103), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.044, -0.124).threePointArc((-0.068, 0.06), (-0.044, 0.244)).threePointArc((0, 0.25), (0.044, 0.244)).threePointArc((0.068, 0.06), (0.044, -0.124)).threePointArc((0.025, -0.188), ...
23
181
0.176125
train_5d725d0b856d46ea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.705, -0.483, -0.447), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.258, 0.309).threePointArc((0.353, 0.511), (0.237, 0.701)).lineTo(-0.001, 0.701).lineTo(-0.307, 0.701).threePointArc((-0.353, 0.506), (-0.313, 0.309)).lineTo(-0.022, 0.309).threeP...
7
65
0.380178
train_6cc93b8a47182494
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.035, -0.375, 0.452), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.548, 0.035).lineTo(-0.521, 0.035).lineTo(-0.006, 0.926).lineTo(0.006, 0.904).lineTo(-0.456, 0.103).lineTo(-0.468, 0.08).lineTo(0.482, 0.08).lineTo(0.468, 0.103).lineTo(0.02, 0.88...
6
84
0.51377
train_2e9ccbdd737f7fbe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.369, -0.452), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.022).lineTo(-1, 0.716).lineTo(1, 0.716).lineTo(1, 0.022).lineTo(-1, 0.022).close().extrude(0.905) result = result.edges().fillet(0.26) result = result.cut(cq.Workplane(cq.Plane(or...
7
63
1.019114
train_798764b0b640a959
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, 0.479, -0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.044, 0.058).extrude(0.02) result = result.union(cq.Workplane(cq.Plane(origin=(-0.004, 0.47, -0.037), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.002, 0.53).lineTo(0.002, -0.484).thre...
6
112
0.001201
train_644cbc286c53ed7a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.646), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.026).extrude(1.293) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.273 * math.cos(1.562 + 2 * math.pi * 0 / 4), 0.646 + 0.273 * math.sin(1.562 + 2 * math.pi * 0 / 4), -1.946), no...
31
93
2.230827
train_5ea41547ae262388
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.006, 0, 0.209), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.801, 0.715).threePointArc((-0.91, 0.578), (-0.994, 0.425)).threePointArc((-0.832, 0.239), (-0.774, 0)).threePointArc((-0.832, -0.239), (-0.994, -0.425)).threePointArc((-0.91, -0.578)...
7
56
1.043132
train_d01dbf4c3a7c39f1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.193, -0.156, -0.355), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.239, -0.478).lineTo(0.239, 0.724).lineTo(0.105, 0.791).lineTo(0.105, 0.584).threePointArc((-0.239, 0.123), (0.105, -0.338)).lineTo(0.105, -0.396).lineTo(0.239, -0.478).close().ext...
23
185
0.524211
train_3b24ea9c8379c23c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.032, 1, 0.01), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.783).workplane(offset=0.449).circle(0.714).workplane(offset=0.396).circle(0.79).workplane(offset=0.341).circle(0.807).workplane(offset=0.438).circle(0.598).workplane(offset=0.376).circ...
17
139
1.378731
train_ed49e660b934b59f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.319, -0.306, -0.543), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.483, -0.27).lineTo(-0.461, -0.816).threePointArc((-0.483, 0.226), (0.377, 0.816)).lineTo(0.483, -0.27).close().revolve(angleDegrees=180, axisStart=(0.483, -0.27), axisEnd=(-0.46...
22
158
1.646967
train_1f25bb578486ddf7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.591), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.627, 1.297).extrude(1.22) result = result.union(cq.Workplane(cq.Plane(origin=(-0.093, 0.257, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.158).extrude(0.436)) result = result.cut(cq.Work...
16
108
0.780653
train_39670840857cd99e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.545, 0.127, 0.023), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.099, 0.012).lineTo(0.099, 0.21).lineTo(0.056, 0.166).lineTo(0.051, 0.189).lineTo(-0.056, 0.166).lineTo(-0.099, 0.21).lineTo(-0.099, 0.012).lineTo(0.099, 0.012).close().extrude(0.2)...
5
128
0.053001
train_2a60944b8442312d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.102, 0.45, -0.008), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.034, -0.325).lineTo(-0.363, 0.145).lineTo(-0.534, 0.39).lineTo(-0.178, 1.875).lineTo(-0.071, 0.247).threePointArc((0.534, -0.406), (-0.23, -0.863)).threePointArc((-0.383, -0.779),...
7
63
0.687139
train_fe420b7568c22dac
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.61, 0.814, -0.592), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.054, 0.045).lineTo(0.054, -0.045).lineTo(-0.054, -0.045).lineTo(-0.054, 0.045).lineTo(0.054, 0.045).close().transformed(offset=(0.128, -0.774, 0.059), rotate=(0, 0, 0)).moveTo(0.13...
14
87
0.219914
train_155c67898d90b648
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.421, 0.163, -0.478), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.443, 0.02).lineTo(0.327, 0.328).lineTo(-0.006, 0.465).lineTo(-0.313, 0.317).lineTo(-0.435, 0.017).lineTo(-0.32, -0.301).lineTo(0.001, -0.459).lineTo(0.303, -0.298).close().moveTo(-...
10
94
0.421417
train_751e5594f78c3807
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.115, 0.02, 0.22), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.518, 0.655).extrude(0.324) result = result.cut(cq.Workplane(cq.Plane(origin=(0.115, 0.02, 0.401), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.036).extrude(0.147)) result = result.union(...
25
176
0.44829
train_f06bffb633cdafba
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.144, 0, -0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.711, 1.398).extrude(0.048) result = result.union(cq.Workplane(cq.Plane(origin=(0.22, 0.044, -0.455), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.52, 0.688).extrude(0.035)) result = result....
9
48
1.037144
train_20a1f4c5db8e5db2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.031, 0.193, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.06, -0.807).lineTo(0, -0.807).lineTo(0.058, 0.847).lineTo(0.06, 0.907).lineTo(0, 0.907).lineTo(-0.002, 0.847).lineTo(-0.06, -0.807).close().extrude(0.114) result = result.edges().fill...
5
50
0.013079
train_bc728a08f2213cb2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.293, 0, 0.226), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.181).sweep(cq.Workplane('XZ').spline([(1.047, -0.454), (0.759, 0.155), (0.112, 0.462), (-0.604, 0.329), (-1.066, -0.184)])) result = result.edges().chamfer(0.087) result = result.cut(...
15
26
0.206228
train_f441b3a7febd3e63
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.436, -0.831, 0.447), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.553, 0.845).lineTo(0.553, 0.016).lineTo(-0.553, 0.016).lineTo(-0.553, 0.845).lineTo(0.553, 0.845).close().extrude(1.101) result = result.edges().chamfer(0.041) result = result.uni...
10
76
0.952258
train_3e948eb78973bf21
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.302, 0.179, -0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.698, 0.006).lineTo(0.489, 0.488).lineTo(-0.021, 0.715).lineTo(-0.475, 0.474).lineTo(-0.685, -0.009).lineTo(-0.471, -0.478).lineTo(-0.001, -0.708).lineTo(0.515, -0.514).close().move...
23
170
0.378292
train_19b7b256a72a273f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.251, 0.222, -0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.412, 0.869).extrude(0.294) result = result.cut(cq.Workplane(cq.Plane(origin=(0.181, 0.282, -0.394), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.101, 1.043).extrude(0.108)) result = res...
24
152
0.295189
train_e1b86291bc741fa9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.576, -0.137, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.594, 0.032).lineTo(-0.594, 0.242).lineTo(0.594, 0.242).lineTo(0.594, 0.032).lineTo(-0.594, 0.032).close().workplane(offset=0.301).moveTo(-0.827, -0.009).lineTo(-0.827, 0.283).lineTo(...
23
223
0.490347
train_99c518263ad4cf8a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.01, 0.298, 0.209), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.022, 0.03).threePointArc((0, 0.007), (-0.022, 0.03)).lineTo(-0.022, -0.004).lineTo(-0.022, -0.03).lineTo(-0.017, -0.03).lineTo(-0.003, -0.03).lineTo(0.003, -0.03).lineTo(0.003, -0.0...
7
95
0.641478
train_e1fa009464bc9369
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.321, 0.575, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.288, 1.484).lineTo(0.288, 1.575).threePointArc((0.198, 1.5), (0.256, 1.399)).lineTo(-0.373, -0.303).threePointArc((-0.377, -0.318), (-0.379, -0.334)).lineTo(-0.288, -0.334).lineTo(-0.2...
4
31
0.229496
train_06f601aa0064b5d9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.031, -0.146, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.23, 0.529).extrude(0.388) result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.479, -0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.25, 0.155).extrude(0.146)) result = resul...
22
140
0.389313
train_94d1683e0e76f09e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.37, 0.197, 0.265), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.348, -0.618).lineTo(0.348, -0.63).lineTo(-0.348, -0.63).lineTo(-0.348, -0.052).lineTo(-0.003, -0.052).lineTo(-0.003, 1.041).lineTo(-0.348, 1.041).lineTo(-0.348, 1.134).lineTo(0, 1.1...
5
31
0.714516
train_93b1b59212c56f06
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.448), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.232, 2).extrude(0.896) result = result.cut(cq.Workplane(cq.Plane(origin=(0.293, 0.182, -0.6), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.085).extrude(1.076)) result = result.edges().chamfer...
10
69
1.947079
train_06bc296832a88f4f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.294, -0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.429, 1.412).extrude(1.039) result = result.union(cq.Workplane(cq.Plane(origin=(0.339, -0.676, 0.357), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.466, 0.648).extrude(0.205)) result = resul...
3
14
2.20225