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_a775413cc913bee6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.207, -0.041, 0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.006, 0.001).lineTo(0.128, 0.001).lineTo(0.128, 0.021).lineTo(-0.128, 0.021).lineTo(-0.128, 0.001).lineTo(0.006, 0.001).close().extrude(0.065) result = result.edges().chamfer(0.009)...
9
104
0.006542
train_b733dffbe62f687e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.073, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.148).sweep(cq.Workplane('YZ').spline([(0.073, -1.031), (0.188, -1.11), (0.304, -1.158), (0.419, -1.173), (0.534, -1.158), (0.65, -1.11), (0.765, -1.031)])) result = result.union(cq.Workpla...
3
16
0.032987
train_27f2e8b2a722d733
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.203, -0.08, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.123, 0.434).lineTo(0.797, 0.434).lineTo(0.797, 0.035).lineTo(-0.797, 0.035).lineTo(-0.797, 0.434).lineTo(-0.123, 0.434).close().extrude(0.376) result = result.union(cq.Workplane(c...
8
77
0.405031
train_586a67aaa059ed5e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.266), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.249).extrude(0.531) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.266, -1.566), normal=(1, 0, 0), xDir=(0, 1, 0))).rect(0.32, 0.237).center(-0.024, -0.014).circle(0.032).extrude(...
15
88
0.806792
train_1a093a6f4f327ad6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.52, 0, 0.549), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.451, 1.059).lineTo(-0.451, 0.157).lineTo(-0.338, 0.157).lineTo(-0.338, 0.947).lineTo(0.451, 0.947).lineTo(0.451, 1.059).lineTo(-0.451, 1.059).close().revolve(angleDegrees=360, axisStar...
6
30
0.727614
train_1e6e3dc1ecd61560
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.484, 0.082, -0.459), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.066, 0.066).lineTo(-0.049, 0.066).lineTo(-0.049, 0.049).lineTo(-0.066, 0.049).lineTo(-0.066, -0.066).lineTo(0.049, -0.066).lineTo(0.049, -0.049).lineTo(0.066, -0.049).lineTo(0.0...
10
79
0.49924
train_d44c41cb8496c27e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.033, 0, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.269, 0.796).extrude(0.543) result = result.union(cq.Workplane(cq.Plane(origin=(-0.819, -0.139, -0.217), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.362, 0.358).extrude(0.278)) result = re...
6
90
0.529576
train_c5cd418d909a8202
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.375, 0.153, 0.625), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.375, 0.323).lineTo(-0.375, 0.048).lineTo(0.375, 0.048).lineTo(0.375, 0.307).lineTo(0.359, 0.307).lineTo(0.359, 0.323).lineTo(-0.375, 0.323).close().revolve(angleDegrees=180, axisS...
11
25
0.245441
train_f9026e4cbaf773bf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.29, -0.067), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.69, 0.524).lineTo(0.69, 0.055).lineTo(-0.69, 0.055).lineTo(-0.69, 0.524).lineTo(0.69, 0.524).close().extrude(2) result = result.edges().chamfer(0.21) result = result.cut(cq.Workplane(c...
24
262
0.861318
train_c11d6b7effaa760e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.231), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.226, -0.939).lineTo(-0.226, 0.939).lineTo(-0.032, 0.939).lineTo(-0.032, -0.744).lineTo(0.226, -0.744).lineTo(0.226, -0.939).lineTo(-0.226, -0.939).close().workplane(offset=0.247).moveTo(-...
7
69
0.203626
train_bf7cca6b87cc9791
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.751, 0.999).lineTo(-0.751, 0.859).lineTo(0, 0.859).lineTo(0, 0.295).lineTo(-0.751, 0.295).lineTo(-0.751, 0.154).lineTo(0.751, 0.154).lineTo(0.751, 1).lineTo(0, 1).lineTo(-0.751, 0.999).close()...
7
48
2.900234
train_8e66a57a0520a94e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.135, 0.744, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.763).workplane(offset=0.73).circle(0.837).workplane(offset=0.757).circle(0.865).loft() result = result.union(cq.Workplane(cq.Plane(origin=(0.854, -0.208, -0.649), normal=(0, 0, 1), xD...
2
6
3.285793
train_5ad1681aaa954bfb
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.621, 1.4).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.331, 0.45, -0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.252).extrude(0.666)) result = result.cut(cq.Workplane(cq...
11
53
4.268687
train_2e2f499844839cf8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.106, -0.033, -0.498), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.377).workplane(offset=0.09).circle(0.462).workplane(offset=0.096).circle(0.134).workplane(offset=0.122).circle(0.289).loft() result = result.edges().chamfer(0.098) result = resul...
7
44
0.185119
train_0ce56d8c98766033
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.493, -0.152, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.126, 0.353).threePointArc((0.06, 0.022), (0.126, -0.353)).lineTo(0.123, 0.281).lineTo(-0.126, 0.353).close().transformed(offset=(-0.165, 0.269, 0.131), rotate=(0, 0, 0)).moveTo(-0.13...
1
5
0.059291
train_6330025f69069e05
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.03, -0.033, 0.147), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.03, 0.12).lineTo(1.03, -0.035).threePointArc((-0.012, -0.12), (-1.03, 0.12)).lineTo(-0.975, 0.12).lineTo(-0.538, 0.12).lineTo(-0.517, 0.12).lineTo(-0.096, 0.12).lineTo(0.183, 0.12...
17
90
0.080625
train_3efcced9cd4a1f89
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.824, 0, 0.12), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.637, 0).lineTo(-0.637, -1).threePointArc((-0.477, -0.727), (-0.16, -0.733)).lineTo(0.637, 0).lineTo(-0.16, 0.733).threePointArc((-0.477, 0.727), (-0.637, 1)).lineTo(-0.637, 0).close()...
13
108
0.68901
train_2a17aa28266cb07c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.35, 0, -0.144), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.081, 0.214).lineTo(-0.054, -0.214).lineTo(0.081, -0.214).lineTo(0.081, 0.214).lineTo(-0.081, 0.214).close().sweep(cq.Workplane('XZ').spline([(-0.35, -0.144), (0.188, -0.144), (0.44, ...
8
33
0.03039
train_5b0eb79f67668387
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.796).extrude(0.154) result = result.union(cq.Workplane(cq.Plane(origin=(0.44, -0.612, 0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.09, 0.119).extrude(0.033)) result = result.cut(cq.Wo...
8
24
0.487258
train_0b34a8735972b482
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.058, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.747, 0.556).lineTo(-0.747, -0.44).lineTo(0.747, -0.44).lineTo(0.747, 0.556).lineTo(-0.747, 0.556).close().extrude(1.464) result = result.edges().fillet(0.087) result = result.union(cq.Wo...
9
71
2.011754
train_a47b0f0c0a216a5d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.566), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.346).extrude(1.016) result = result.union(cq.Workplane(cq.Plane(origin=(0.376, -0.324, -0.945), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.848, 0.331).extrude(0.408)) result = result.union...
11
42
1.806979
train_8badac9fff627068
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.121, 0.074, 0.48), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.52, 0.044).lineTo(-0.52, -0.044).lineTo(0.52, -0.044).lineTo(0.439, 0.044).lineTo(-0.52, 0.044).close().sweep(cq.Workplane('XY').spline([(0.121, -0.01), (0.088, 0.035), (0.034, 0.04...
10
70
0.037293
train_fceea03406ff55ac
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.363, -0.37), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.025, 1.273).extrude(0.74) result = result.union(cq.Workplane(cq.Plane(origin=(-0.058, 0.401, 0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.315, 0.282).extrude(0.179)) result = result...
3
17
1.02677
train_f03edce5ef145f67
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.458, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.192).sweep(cq.Workplane('XY').spline([(-0.47, 0.458), (-0.259, 0.12), (-0.047, -0.049), (0.165, -0.049), (0.377, 0.12), (0.589, 0.458)])) result = result.edges().chamfer(0.031)
2
5
0.090015
train_5190cffa4f151030
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.365, 0.021), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.317, 1.294).lineTo(-0.95, 0.66).lineTo(-0.95, 0.027).lineTo(-0.317, -0.606).lineTo(-0.317, 0.027).lineTo(0.317, 0.027).lineTo(-0.317, 0.66).lineTo(0.95, 0.66).lineTo(0.317, 1.294).li...
5
83
2.847178
train_c6fe67383404c621
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.469), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.878, 0.379).threePointArc((-0.872, 0.274), (-0.853, 0.171)).threePointArc((-0.742, -0.09), (-0.553, -0.303)).threePointArc((-0.49, -0.35), (-0.422, -0.391)).lineTo(-0.422, -0.649).threePo...
2
19
0.937143
train_27699f3b8cb3d267
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.458, 0.013, -0.165), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.171, -0.062).lineTo(-0.171, 0.203).lineTo(0.171, 0.203).lineTo(0.171, -0.782).threePointArc((0, 0.842), (-0.171, -0.782)).lineTo(-0.171, -0.153).lineTo(-0.171, -0.062).close().wo...
13
170
0.708392
train_825373b7d7ed334b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.243, -0.593, 0.049), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.485, -0.757).lineTo(0.485, 1.243).lineTo(-0.485, 1.243).lineTo(-0.485, -0.757).lineTo(0.485, -0.757).close().extrude(1.187) result = result.edges().fillet(0.155) result = result.u...
27
227
2.001428
train_268cdf2817d8eec4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.037, -0.457, -0.468), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.198).sweep(cq.Workplane('YZ').spline([(0.011, -0.784), (0.49, -0.784), (0.729, -0.931), (0.968, -1.079)])) result = result.edges().chamfer(0.117) result = result.union(cq.Workpl...
8
29
0.198307
train_5c419e04e1c99dbf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.109, -0.025), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.055, 0.047).lineTo(-0.072, 0.01).lineTo(0.055, -0.047).lineTo(0.072, -0.01).lineTo(-0.055, 0.047).close().sweep(cq.Workplane('YZ').spline([(0.03, -0.149), (0.086, -0.143), (0.142, -0....
6
34
0.007742
train_7e5193b56de6e82a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.066, -0.1, -0.269), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.003, 0.503).lineTo(0.04, 0.503).lineTo(0.04, -0.492).lineTo(-0.04, -0.492).lineTo(-0.04, -0.375).lineTo(-0.003, -0.375).lineTo(-0.003, 0.503).close().extrude(0.055) result = resu...
13
206
0.212203
train_cc606d4bc1318f11
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.121, -0.42, -0.365), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.969, 1.161).extrude(0.259) result = result.union(cq.Workplane(cq.Plane(origin=(-0.072, 0.16, -0.089), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.174, 0.677).lineTo(-0.405, 0.276)....
4
53
0.708883
train_72c641cd8f305b48
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.942), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.315, 2).extrude(1.313) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.414, -0.375, -0.59), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.512, 0.623).extrude(0.822)) result = result.cut(cq....
15
112
2.532337
train_4217131fe86de0a2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.144, 0.176, 0.272), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.065, 0.824).threePointArc((-0.003, 0.756), (-0.065, 0.683)).lineTo(-0.065, -0.683).threePointArc((-0.003, -0.756), (0.065, -0.824)).lineTo(0.065, 0.824).close().sweep(cq.Workplane(...
22
138
0.066799
train_3d69b34097824192
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.636), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.456, 0.614).extrude(0.851) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.203), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.146).extrude(0.399)) result = result.union(cq.Workpla...
11
39
0.257513
train_6ede79dd895ebf5c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.425), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.002, -0.57).lineTo(0.998, 0.006).lineTo(0.995, 0.582).lineTo(0.494, 0.868).threePointArc((-0.006, 0.998), (-0.505, 0.861)).lineTo(-1.002, 0.57).lineTo(-0.998, -0.006).threePointArc((-0.861...
8
42
1.471939
train_abc4eba849f92eac
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.05, 0, -0.298), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.209, 0.654).extrude(0.139) result = result.union(cq.Workplane(cq.Plane(origin=(-0.201, 0.084, -0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.551, 0.21).extrude(0.028)) result = result...
18
164
0.247082
train_688813ff3462d43c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.119, -0.356, -0.658), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.599, 1.288).extrude(1.316) result = result.union(cq.Workplane(cq.Plane(origin=(-0.411, 0.469, -0.526), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.519, 0.445).extrude(0.63)) result =...
14
88
2.150492
train_f52be4a7a50b246a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.326, -0.278, -0.258), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.258, 0.019).lineTo(1.258, 0.019).lineTo(1.258, 0.633).lineTo(-0.239, 0.633).lineTo(-1.258, 0.019).close().extrude(0.555) result = result.edges().fillet(0.198) result = result.cu...
7
45
0.547572
train_4323451ab24243e0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.06, -0.133, -0.503), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.13, -0.142).lineTo(-0.007, 0.049).lineTo(-0.067, 0.142).lineTo(-0.052, 0.142).lineTo(0, 0.06).lineTo(0.052, 0.142).lineTo(0.06, 0.154).lineTo(0.067, 0.142).lineTo(0.007, 0.049)....
20
175
0.07988
train_3804886104ed8605
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.035), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.772).threePointArc((0.546, -0.546), (0.772, 0)).threePointArc((0.648, 0.419), (0.318, 0.704)).threePointArc((0, 0.772), (-0.318, 0.704)).threePointArc((-0.648, 0.419), (-0.772, 0)).th...
11
48
3.301183
train_0f546f4277a496f9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.106, 0.067, 0.377), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.431, 0.106).lineTo(-0.183, 0.106).threePointArc((-0.308, 0.111), (-0.431, 0.126)).lineTo(-0.431, 0.067).lineTo(-0.431, 0.008).lineTo(-0.052, 0.008).lineTo(0.431, 0.008).lineTo(0.43...
12
171
0.074843
train_b67408be649da85d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.2, -0.052, -0.176), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.026, -0.05).lineTo(0.026, 0.074).lineTo(-0.026, 0.074).lineTo(-0.026, -0.05).lineTo(0.026, -0.05).close().revolve(angleDegrees=90, axisStart=(0.026, -0.05), axisEnd=(0.026, 0.074)...
15
164
0.183957
train_3d4ac994a8281288
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.376, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.49, -0.206).lineTo(0.49, -0.184).lineTo(0.369, -0.184).lineTo(0.369, 0.206).lineTo(0.258, 0.206).lineTo(0.258, -0.124).lineTo(-0.379, -0.124).lineTo(-0.379, 0.206).lineTo(-0.49, 0.206).line...
1
12
0.157207
train_56c6f74639e9b6ea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.086, -1.925, -0.833), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.642, 1.091).lineTo(0.642, 1.091).lineTo(0.642, 2.271).lineTo(0.527, 2.271).lineTo(0.524, 2.274).lineTo(0.522, 2.271).lineTo(0.522, 2.758).lineTo(-0.522, 2.758).lineTo(-0.522, 2....
9
49
1.541585
train_9c448304bb683bf8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.072, -0.476, -0.301), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.89, 1.047).extrude(0.481) result = result.union(cq.Workplane(cq.Plane(origin=(0.439, -0.278, -0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.156, 0.265).extrude(0.268)) result =...
29
319
0.651094
train_15305ec1438ca343
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.105, 0, -0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.7, 1.038).extrude(0.283) result = result.cut(cq.Workplane(cq.Plane(origin=(0.105, 0, -0.212), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.935, 0.524).extrude(0.368)) result = result.union(...
11
26
0.382516
train_e545d50fb49caf13
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.109, 0.653, -0.078), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.786, 0.695).extrude(0.21) result = result.cut(cq.Workplane(cq.Plane(origin=(0.109, 0.758, -0.529), normal=(0, 1, 0), xDir=(1, 0, 0))).circle(0.062).moveTo(-0.024, 0.02).lineTo(-0.024...
11
79
0.243768
train_75df7a591dd3a87f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.01, -0.068, -0.057), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.34, 0.281).extrude(0.102) result = result.union(cq.Workplane(cq.Plane(origin=(0.197, -0.068, -0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.042).extrude(0.061)) result = resul...
15
77
0.0517
train_04d13ea31f66be3f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.01, 0, 0.309), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.409, -0.144).threePointArc((0.553, 0), (0.409, 0.144)).lineTo(0.409, 0.289).lineTo(-0.264, 0.289).threePointArc((-0.553, 0), (-0.264, -0.289)).lineTo(-0.264, -0.144).lineTo(0.409, -0.1...
2
10
0.668726
train_9b021519befda89c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.274, 0, 0.176), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.278).sweep(cq.Workplane('XZ').spline([(0.527, -1.05), (0.612, -1.042), (0.696, -0.985), (0.781, -0.77), (0.865, -0.556), (0.95, -0.499), (1.034, -0.49)])) result = result.edges().chamf...
3
11
0.194641
train_34014386b1311a9a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.939, -0.007), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.507, 1.1).lineTo(-0.507, 1.106).lineTo(0.035, 0.051).lineTo(0.507, 1.1).close().extrude(2) result = result.edges().chamfer(0.291) result = result.union(cq.Workplane(cq.Plane(origin=(0...
8
47
0.697914
train_959d6c2a983fd644
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.727, -0.905), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.466, 0.273).lineTo(0.466, 0.248).threePointArc((0.217, 0), (0.466, -0.248)).lineTo(0.466, -0.273).lineTo(-0.466, -0.273).lineTo(-0.466, 0.273).lineTo(0.466, 0.273).close().transformed...
1
8
0.27394
train_dda6658bff30f99d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.011), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.758).sweep(cq.Workplane('XZ').spline([(-1.658, -0.528), (-0.829, -1.098), (0, -1.287), (0.83, -1.098), (1.659, -0.528)])) result = result.edges().fillet(0.534) result = result.cut(cq.Workp...
9
30
2.498439
train_ae391be87a11b154
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.055, -0.254, -0.272), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.289, 0.289).extrude(0.358) result = result.faces('>Z').shell(-0.022) result = result.union(cq.Workplane(cq.Plane(origin=(-0.043, -0.233, 0.085), normal=(0, 0, 1), xDir=(1, 0, 0)))....
13
349
0.082564
train_b130b66c0a0f2ed3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.805, 0.439, 0.132), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.309, 1.445).threePointArc((0.442, 0.905), (0.662, 0.398)).lineTo(-0.201, -0.071).threePointArc((0.004, -0.411), (0.24, -0.73)).lineTo(-0.456, -0.208).lineTo(-0.662, 0.227).lineTo(-...
10
157
2.907782
train_7aa1e7a061c02804
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.583, 1.728).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.083, 0.125, 0.648), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.335, 0.405).extrude(0.361)) result = result.cut(cq.Workpl...
9
79
5.024283
train_69fecf8122ac5720
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.511, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.002, 0.066).lineTo(-0.532, 0.596).threePointArc((-0.001, 0.819), (0.532, 0.6)).lineTo(0.002, 0.066).close().extrude(1.825) result = result.edges().chamfer(0.194) result = result.cut(...
13
55
0.627229
train_d58bfc4c3e341d08
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.288), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.436, 2).extrude(0.576) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.288, -1.221), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.097).extrude(0.668)) result = result.cut(cq.Workplane(...
14
83
1.085436
train_cc4a4a27766c34a0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.352, 0, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.083, -0.352).lineTo(0.083, -0.352).lineTo(0.025, 0.643).lineTo(-0.083, 0.654).lineTo(-0.083, -0.352).close().revolve(angleDegrees=360, axisStart=(-0.083, -0.352), axisEnd=(0.083, -0.352)...
4
43
0.305194
train_13a56921ce769f4d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.412, 0, -0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.176, 0.994).extrude(0.013) result = result.union(cq.Workplane(cq.Plane(origin=(0.425, -0.027, -0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.967, 0.562).extrude(0.007)) result = resu...
7
97
0.102717
train_6909138a3228079f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.169, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.007, -0.445).lineTo(-0.064, -0.445).lineTo(-0.108, -0.372).lineTo(-1.007, -0.372).lineTo(-0.558, 0.375).lineTo(-0.516, 0.445).lineTo(0.387, 0.445).lineTo(0.429, 0.375).lineTo(0.471, 0....
9
105
0.653133
train_86fc226d3ef582ee
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.756, 2).extrude(0.396) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.198, -1.34), normal=(1, 0, 0), xDir=(0, 1, 0))).rect(0.508, 0.118).center(-0.017, 0.004).rect(0.178, 0.047).extr...
15
75
0.977224
train_5848c31ccf08ee14
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.005, -0.09, 0.437), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.33, 0.137).lineTo(-0.33, 1.09).lineTo(0.33, 1.09).lineTo(0.33, -0.91).lineTo(-0.33, -0.91).lineTo(-0.33, 0.137).close().revolve(angleDegrees=90, axisStart=(-0.33, 0.137), axisEnd=(...
15
74
0.594889
train_30a71d8573ad9c92
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.605, 0.597, 0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.223, -0.424).threePointArc((-0.538, 0.605), (0.223, 1.634)).lineTo(0.538, 0.605).lineTo(0.223, -0.424).close().extrude(1.125) result = result.edges().fillet(0.098) result = result....
12
39
1.335718
train_28a0b9161bce1a2b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.485, -0.126, -0.352), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.03, 0.672).extrude(0.704) result = result.cut(cq.Workplane(cq.Plane(origin=(0.309, -0.166, -0.472), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.074).extrude(0.845)) result = result....
36
382
0.499713
train_cd3a41caccf10514
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.8), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.127, 1.632).extrude(1.8) result = result.cut(cq.Workplane(cq.Plane(origin=(0.238, 0.11, -1.106), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.196).extrude(2.16)) result = result.edges().fillet(...
15
102
3.041821
train_a1c5f7ffbd3b32ed
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.01, -0.339, -0.798), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.263, 0.187).lineTo(0, -0.036).lineTo(0.132, -0.148).lineTo(0.263, -0.111).lineTo(0.263, 0.05).lineTo(0.139, 0.082).lineTo(-0.263, 0.187).close().extrude(0.679) result = result.ed...
6
49
0.049744
train_0b4c71ac707b91e6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.119, -0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.849, 1.762).extrude(1.002) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.74 + 0.2465, 0.62, -1.646), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.109, -0.014).lineTo(-0.109, -0.03...
14
66
3.077836
train_14b69e9d10a88baa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.003, 0.3, -0.003), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.972, -0.071).threePointArc((-0.004, -0.061), (-0.972, 0.061)).threePointArc((0.005, 0.071), (0.972, -0.071)).close().sweep(cq.Workplane('YZ').spline([(0.141, -0.096), (0.142, -0.032...
6
48
0.028594
train_055b44059eaa22bd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.004, 0.103, -0.927), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.075, 0.012).lineTo(-0.075, 0.086).lineTo(-0.064, -0.081).lineTo(0.075, 0.012).close().extrude(0.205) result = result.edges().fillet(0.014) result = result.union(cq.Workplane(cq.Pl...
9
57
0.009578
train_ab562925cba2f68b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.666, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.164, 0.546).lineTo(0.164, 0.027).lineTo(-0.218, 0.027).lineTo(-0.218, -0.027).lineTo(0.164, -0.027).lineTo(0.164, -0.546).lineTo(0.218, -0.546).lineTo(0.218, 0.546).lineTo(0.164, 0.546).cl...
14
68
0.376475
train_ccf279654ef4883c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.547, -0.03), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.539, 0.009).lineTo(0.206, 1.287).lineTo(0.539, 0.009).lineTo(-0.539, 0.009).close().extrude(2) result = result.edges().chamfer(0.234) result = result.cut(cq.Workplane(cq.Plane(origin=...
8
64
0.493635
train_1b1f4fcaea32a0b8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.824, -0.597, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.037, 0.167).lineTo(-0.037, -0.167).lineTo(0.037, -0.167).lineTo(-0.012, -0.083).lineTo(-0.012, 0.115).lineTo(0.037, 0.167).lineTo(-0.037, 0.167).close().sweep(cq.Workplane('XY').spl...
2
11
0.002608
train_87d7a3273df6836b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.547, -0.287, 0.157), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.583, 0.313).lineTo(-0.843, 0.313).lineTo(-0.843, -0.096).lineTo(-0.501, -0.096).lineTo(-0.48, -0.205).lineTo(-0.843, -0.205).lineTo(-0.843, -0.313).lineTo(0.843, -0.313).lineTo(0...
11
56
0.691145
train_14cf37603ce1044a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.012, 0.936, -0.085), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.344).workplane(offset=0.143).circle(0.311).workplane(offset=0.116).circle(0.414).workplane(offset=0.109).circle(0.35).workplane(offset=0.139).circle(0.39).workplane(offset=0.119)...
13
132
0.424595
train_27e5f81d30bba103
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.121, 0, -0.224), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.758, 0.927).extrude(0.448) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.121, 0, -0.291), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.787, 0.504).extrude(0.582)) result = result.un...
7
15
0.576187
train_bf45ec320e139bd4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.191, 0, -0.507), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.618, 1.829).extrude(1.014) result = result.union(cq.Workplane(cq.Plane(origin=(0.803, -0.371, -0.148), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.393, 0.525).extrude(0.207)) result = res...
20
70
2.194571
train_3f45ce9844b132e0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.46, -0.003, -0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.54, -0.004).lineTo(0.254, 0.459).lineTo(-0.258, 0.47).lineTo(-0.532, 0.003).lineTo(-0.253, -0.445).lineTo(0.268, -0.463).close().moveTo(-0.275, 0.231).lineTo(-0.107, 0.233).lineTo(...
26
184
0.137327
train_fc3adf602ed25cc3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.018, 0.013, 0.273), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.065, -0.042).threePointArc((0.103, 0.16), (-0.103, 0.15)).threePointArc((0.014, 0.082), (0.065, -0.042)).close().extrude(0.14) result = result.edges().chamfer(0.045) result = resul...
12
101
0.015504
train_b71de9502dbfb779
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.685, 0, -0.534), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.001, 0.031).lineTo(0.034, 0.081).lineTo(0.115, 0.191).lineTo(0.192, 0.298).lineTo(0.094, 0.063).lineTo(0.315, -0.062).lineTo(0.058, -0.05).lineTo(-0.001, -0.298).lineTo(-0.061, -0.05...
4
28
0.163433
train_a9aa4cb6b14771f4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.256, -0.429), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.422, 1.489).extrude(0.857) result = result.union(cq.Workplane(cq.Plane(origin=(0.295, 0.717, -0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.547, 0.566).extrude(0.205)) result = resu...
5
19
1.671539
train_938e9cb4efefd43e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.057, 0.168, 0.077), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.112).lineTo(-0.097, -0.056).lineTo(0, -0.112).lineTo(0.097, -0.056).lineTo(0, 0.112).close().sweep(cq.Workplane('YZ').spline([(0.168, 0.077), (0.013, 0.182), (-0.16, 0.127), (-...
16
108
0.071062
train_8d8629e69da82ef2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.207, -0.008, 0.301), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.217, 0.089).lineTo(0.217, 0.039).lineTo(0.182, 0.041).lineTo(0.178, 0.051).lineTo(0.145, 0.053).lineTo(0.025, 0.061).lineTo(-0.103, 0.07).lineTo(-0.217, 0.078).lineTo(-0.213, 0.08...
9
157
0.03069
train_2749cbf710a79cd8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.279, -0.127), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.451, 1.19).lineTo(-0.606, -0.361).lineTo(0.606, 0.533).lineTo(-0.451, 1.19).close().extrude(1.603) result = result.edges().chamfer(0.126) result = result.union(cq.Workplane(cq.Plane...
16
103
1.192172
train_c3f81d784e8b1c25
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.509, 0.566, 0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.675, 0.147).threePointArc((-0.049, -0.215), (0.578, 0.147)).threePointArc((0.675, 0.509), (0.578, 0.871)).threePointArc((-0.049, 1.233), (-0.675, 0.871)).lineTo(-0.675, 0.147).clo...
14
110
1.716028
train_3dd06a6a30117ae0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.836, -0.386, -0.065), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.06, 0.041).threePointArc((-0.022, -0.048), (-0.06, -0.164)).lineTo(-0.025, 0.164).lineTo(0.06, 0.041).close().sweep(cq.Workplane('XY').spline([(-0.836, 0.076), (-0.688, 0.297), ...
20
94
0.121498
train_45854acb0b6bafc7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.35, -0.003, -0.793), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.207, 0.005).lineTo(0.207, 0.19).lineTo(-0.108, 0.126).threePointArc((-0.207, 0.005), (-0.108, -0.115)).lineTo(0.207, -0.18).lineTo(0.207, 0.005).close().extrude(0.701) result = re...
13
121
0.12396
train_54c309e09bbd467c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.554, -0.095), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.421, 0.343).lineTo(-0.421, 0.074).lineTo(-0.659, 0.074).threePointArc((-0.027, -0.343), (0.604, 0.074)).threePointArc((0.645, 0.206), (0.659, 0.343)).lineTo(0.366, 0.343).lineTo(-0.4...
8
44
0.307881
train_34d053395d369c9e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.169, -0.242), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.184, 0.847).threePointArc((0, -0.867), (0.184, 0.847)).threePointArc((0, 0.867), (-0.184, 0.847)).close().extrude(0.313) result = result.edges().fillet(0.048) result = result.union(...
6
44
0.65827
train_3a8ade1b351782f5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.2, 0.177, -0.541), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.198, 0.384).threePointArc((0.25, 0.377), (0.298, 0.357)).threePointArc((0.37, 0.285), (0.397, 0.185)).lineTo(0.397, -0.212).threePointArc((0.37, -0.311), (0.298, -0.384)).lineTo(0....
10
55
0.804933
train_8f4c7c65d41e7fb7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.882, -0.023, -0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.098, 0.151).lineTo(0.098, -0.097).lineTo(-0.118, -0.097).lineTo(-0.118, -0.116).lineTo(-0.077, -0.116).lineTo(-0.077, -0.151).lineTo(-0.041, -0.151).lineTo(-0.041, -0.116).lineTo...
10
64
0.044156
train_fe27560a713d6d35
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.622, 0.85).extrude(1.705) result = result.union(cq.Workplane(cq.Plane(origin=(-0.36, -0.072, 0.679), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.577, 0.418).extrude(0.321)) result = result.cut(cq....
8
32
2.087365
train_2f375e78c26fc195
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.003, -0.216, -0.517), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.316, 0.924).extrude(1.034) result = result.union(cq.Workplane(cq.Plane(origin=(-0.168, 0.447, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.231).extrude(0.568)) result = res...
20
217
1.126977
train_0f22cddbd5fddd6e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.241, 0, -0.681), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.518, 1.526).extrude(1.667) result = result.faces('>Z').shell(-0.111) result = result.union(cq.Workplane(cq.Plane(origin=(0.665, -0.133, -0.986), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0...
5
101
1.340909
train_35ca0929d630607a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.889).workplane(offset=0.54).circle(0.833).workplane(offset=0.469).circle(0.778).workplane(offset=0.49).circle(0.723).workplane(offset=0.5).circle(0.667).loft() result = result.edges().chamfer(...
12
42
3.369898
train_2f680d0d1de7806a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.501, 1.458, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.487, 1.458).lineTo(0.487, 1.458).lineTo(0.487, 1.261).lineTo(-0.29, 1.261).lineTo(-0.29, 0.457).lineTo(-0.487, 0.457).lineTo(-0.487, 1.458).close().revolve(angleDegrees=180, axisStart=...
5
47
0.214251
train_fd497b372004185d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.119, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.125, 1.074).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(0.55, -0.194, -0.161), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.264, 0.166).extrude(0.656)) result = result.cut(c...
9
91
2.217309
train_274a312727984e3e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.5, 0, 0.5), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.5, -0.436).lineTo(0.5, 0.436).lineTo(-0.5, 0.436).lineTo(-0.5, -0.436).lineTo(0.5, -0.436).close().revolve(angleDegrees=180, axisStart=(0.5, -0.436), axisEnd=(0.5, 0.436)) result = result...
16
139
1.360554
train_cc4f67a5c061717f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.141, 0.346, -0.044), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.154, 1.141).lineTo(0.154, -0.859).lineTo(-0.154, -0.859).lineTo(-0.154, 1.141).lineTo(0.154, 1.141).close().extrude(0.504) result = result.edges().fillet(0.055) result = result.cu...
27
159
0.165681