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_e4f1838248687e11
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.009, 0, 0.439), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.596, 0.399).threePointArc((-0.523, 0.313), (-0.452, 0.226)).threePointArc((-0.378, 0.158), (-0.334, 0.066)).lineTo(0.722, 0.066).lineTo(0.722, 0.399).lineTo(0.855, 0.399).threePointA...
9
118
1.120522
train_b07880c7ed853977
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.079, 0.078, -0.353), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.546, 1.248).extrude(0.951) result = result.union(cq.Workplane(cq.Plane(origin=(-0.11, -0.621, -0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.197, 0.162).extrude(0.053)) result = ...
11
58
1.304661
train_188debe5ad7427f7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.581, -0.651, -0.57), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.006, 0.252).threePointArc((0.206, 0.23), (0.419, 0.218)).threePointArc((0.306, 0.116), (0.167, 0.052)).threePointArc((0.111, 0.04), (0.053, 0.034)).threePointArc((-0.227, 0.107),...
16
95
0.383325
train_9393e2dbc1bb24f0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.265, 0, -0.555), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.374, 2).extrude(1.505) result = result.union(cq.Workplane(cq.Plane(origin=(0.672, -0.281, -0.25), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.267).workplane(offset=0.173).circle(0.265)...
2
11
4.252968
train_9a9b131c2ab504df
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.924), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.95, 2).extrude(1.848) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.253, -0.501, -0.739), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.526).extrude(0.722)) result = result.cut(cq.Workp...
33
162
3.370412
train_f34f2add27b7ccbb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.002, -0.002, -0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.985, -0.761).lineTo(0.996, -0.799).lineTo(0.998, 0.802).lineTo(-1.002, 0.8).close().moveTo(0.143, 0.303).lineTo(0.022, 0.315).lineTo(-0.093, 0.279).lineTo(-0.114, 0.267).lineTo(-...
15
268
0.437601
train_86fa59c13a77c2d1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.55, 0.176, 0.368), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.901, 0.731).extrude(0.376) result = result.cut(cq.Workplane(cq.Plane(origin=(0.493, 0.254, 0.304), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.053).extrude(0.451)) result = result.face...
25
55
0.733644
train_9ed4bb370daa5893
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.099, -0.19), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.007, 1.801).extrude(0.38) result = result.cut(cq.Workplane(cq.Plane(origin=(0.07, -0.487, 0.075), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.449, 0.346).lineTo(-0.449, 0.184).lineTo(0...
10
42
0.663811
train_26e1d969f0c8ddbe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.471, 0.203, -0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.481, 0.331).extrude(0.055) result = result.union(cq.Workplane(cq.Plane(origin=(-0.471, 0.203, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.337, 0.181).extrude(0.008)) result =...
26
461
0.268058
train_0b71019e53f7d00e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.258, -0.699, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.568).lineTo(-1, 0.834).lineTo(1, 0.834).lineTo(0.799, 0.568).lineTo(1, 0.568).lineTo(0.667, 0.125).lineTo(0.333, -0.318).lineTo(-0.333, -0.318).lineTo(-0.667, 0.125).lineTo(-0.667...
2
24
1.480821
train_d88b5ef63a4f47e1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.045, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.361, 0.289).lineTo(0.361, -0.289).lineTo(-0.361, -0.289).lineTo(-0.361, 0.289).lineTo(0.361, 0.289).close().extrude(2) result = result.edges().chamfer(0.135) result = result.union(cq.Workp...
11
95
0.703188
train_480de74bf7de0dbe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.841, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.482, 0.047).lineTo(-0.482, 0.797).lineTo(0.482, 0.797).lineTo(0.482, 0.047).lineTo(-0.482, 0.047).close().extrude(0.852) result = result.edges().chamfer(0.264) result = result.union(cq.Wo...
7
128
0.309994
train_cd85a67fdae2e123
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.625, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.241, 0.089).lineTo(-0.241, 0.375).lineTo(0.241, 0.375).lineTo(0.241, 0.089).lineTo(-0.241, 0.089).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.163, 0)) result = result.e...
11
59
0.208046
train_3d6f96fb21cbeeaf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.018, 0.12, 0.905), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.36, 0.249).threePointArc((-0.237, -0.361), (0.36, -0.188)).threePointArc((0.201, 0.361), (-0.36, 0.249)).close().extrude(0.901) result = result.edges().fillet(0.297) result = resul...
13
75
0.474178
train_2c0778d606454a97
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.022, 0, -0.358), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.107, 0.762).extrude(0.716) result = result.faces('>Z').shell(-0.053) result = result.union(cq.Workplane(cq.Plane(origin=(-0.751, 0.099, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0...
5
101
0.212368
train_8a1d84cd6bab6927
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.283, 0.374).extrude(0.498) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.511), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.096).extrude(0.318)) result = result.union(cq.Workplane(...
12
115
0.079828
train_dfb142529c4196ee
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.693, 0, -0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.5, 1.193).lineTo(0.5, 1.112).lineTo(0.4, 1.008).lineTo(0.4, 0.378).lineTo(0.5, 0.273).lineTo(0.5, 0.193).lineTo(0.42, 0.193).lineTo(0.314, 0.293).lineTo(-0.314, 0.293).lineTo(-0.42, 0.1...
2
39
0.495835
train_accf8127c8e17f89
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.043, 0.22, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.248, -0.227).threePointArc((0.035, -0.298), (-0.174, -0.217)).threePointArc((-0.202, -0.189), (-0.227, -0.159)).threePointArc((-0.289, 0.057), (-0.199, 0.263)).lineTo(-0.162, 0.298).thr...
4
29
0.183119
train_3c76aa5d9710e555
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.187, -0.193, -0.286), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.257).workplane(offset=0.112).circle(0.236).workplane(offset=0.147).circle(0.216).workplane(offset=0.121).circle(0.195).loft() result = result.edges().fillet(0.082) result = resu...
19
237
0.712995
train_dbf04b677f70c6a8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.351, -0.065, 0.261), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.211).lineTo(0.211, 0).lineTo(0, -0.211).lineTo(-0.211, 0).lineTo(0, 0.211).close().sweep(cq.Workplane('XZ').spline([(0.351, 0.261), (0.042, 0.482), (-0.365, 0.5), (-0.698, 0.30...
6
49
0.18374
train_7f63e7e302a5004c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.16, -0.429), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.422, 1.16).lineTo(0.422, -0.84).lineTo(-0.422, -0.84).lineTo(-0.422, 1.16).lineTo(0.422, 1.16).close().extrude(0.905) result = result.edges().fillet(0.187) result = result.cut(cq.Workp...
21
112
1.214128
train_1418456ba220c997
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.981, -0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.676, 1.333).lineTo(-0.676, 1.981).lineTo(0.676, 1.981).lineTo(0.676, 0.657).threePointArc((0, -0.019), (-0.676, 0.657)).lineTo(-0.676, 1.333).close().extrude(0.939) result = result.e...
4
124
4.220318
train_21723033b5ccb700
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.017, -0.127, 0.028), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.076, -0.106).threePointArc((-0.041, -0.2), (-0.11, -0.067)).lineTo(-0.066, 0.033).threePointArc((-0.061, 0.195), (-0.049, 0.2)).threePointArc((0.105, 0.195), (0.11, 0.184)).lineT...
3
28
0.040559
train_f21cafdb079c2d20
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.329, 1.089, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.986, 1.256).threePointArc((1, 1.089), (0.986, 0.922)).lineTo(0.471, 0.922).threePointArc((0.352, 0.735), (0.163, 0.617)).lineTo(0.163, 0.103).threePointArc((-0.004, 0.089), (-0.171, 0....
6
61
0.88836
train_b7b25c5bbefa4f36
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.097, 0, -0.534), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.807, 1.636).extrude(1.179) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.258, -0.032, -0.734), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.075).extrude(1.416)) result = result.cu...
13
36
3.398278
train_ad302fc04049fe6e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.576), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.092, 0.101).extrude(0.214) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.37), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.031).extrude(0.1)) result = result.union(cq.Workplane...
14
90
0.004894
train_708f4451c8858b43
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.111, 0.345, -0.181), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.462, -0.351).lineTo(-0.462, -0.245).lineTo(-0.819, 0.111).lineTo(-0.462, 0.467).lineTo(-0.462, 0.573).lineTo(-0.356, 0.573).lineTo(0, 0.93).lineTo(0.356, 0.573).lineTo(0.462, 0.4...
3
27
0.744866
train_1fb77dc12812e6c3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.199, 0.075, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.199, 0.444).lineTo(-0.199, 0.338).lineTo(-0.036, 0.097).lineTo(0, 0.044).lineTo(-0.128, -0.145).lineTo(0.199, -0.145).lineTo(0.199, 0.444).lineTo(-0.199, 0.444).close().extrude(0.568...
3
57
0.08042
train_e329a965bab80cc0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.071, 0, 0.057), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.43, -0.511).threePointArc((0.668, 0), (0.43, 0.511)).lineTo(0.43, 0.668).lineTo(0.231, 0.628).threePointArc((-0.668, 0.005), (0.221, -0.63)).lineTo(0.43, -0.668).lineTo(0.43, -0.511)....
7
55
0.090796
train_61686db042ac46a6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.051, 0.248, 0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.263, 1.505).extrude(0.337) result = result.union(cq.Workplane(cq.Plane(origin=(-0.051, -0.209, 0.36), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.111, 0.742).threePointArc((0.238, ...
11
111
0.963457
train_33ffc0446069d967
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.23, 0.138, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.431, 0.706).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(-0.163, 0.092, -0.527), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.398, 0.297).extrude(1.327)) result = result.un...
19
226
0.704136
train_c773ba2cf7f37fe8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.477, -0.467, -0.851), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.058, 0.1).threePointArc((0.101, -0.101), (-0.1, 0.058)).lineTo(-0.122, 0.079).threePointArc((0.122, -0.122), (-0.079, 0.122)).lineTo(-0.058, 0.1).close().sweep(cq.Workplane('XY...
7
77
0.687009
train_ef489301ab3a5704
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.013, -0.004, -0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.013, -0.001).lineTo(0.712, 0.695).lineTo(0.008, 0.995).lineTo(-0.683, 0.7).lineTo(-0.987, -0.012).lineTo(-0.686, -0.683).lineTo(0.024, -0.987).lineTo(0.676, -0.691).close().moveT...
8
82
0.642536
train_90e405fa4c616bfe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.502, 0.033, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.225).sweep(cq.Workplane('XY').spline([(-0.441, -0.038), (-0.185, -0.141), (0.09, -0.141), (0.346, -0.038), (0.346, 0.074), (0.09, 0.177), (-0.185, 0.177), (-0.441, 0.074)])) result = re...
10
5
0.197841
train_b32087be77db4c75
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.42, -0.482, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.234).lineTo(1, -0.234).lineTo(1, 0.612).threePointArc((0.971, 0.85), (0.887, 1.074)).lineTo(-0.887, 1.074).threePointArc((-0.971, 0.85), (-1, 0.612)).lineTo(-1, -0.234).lineTo(0, -...
14
153
1.968585
train_442f930bd5355387
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, 0, 0.028), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.576).sweep(cq.Workplane('XZ').spline([(-0.335, -0.555), (-0.168, -0.416), (0.001, -0.37), (0.168, -0.416), (0.336, -0.555)])) result = result.edges().fillet(0.22) result = result.cut(cq...
6
20
1.230334
train_7ddede70da73e17f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.1, -0.087, -0.229), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.88, 1.158).extrude(0.458) result = result.faces('>Z').shell(-0.038) result = result.union(cq.Workplane(cq.Plane(origin=(0.007, 0.729, -0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0...
7
24
0.170146
train_af5523ed2bb60473
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.037, 0, -0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.477, 0.588).extrude(0.849) result = result.union(cq.Workplane(cq.Plane(origin=(0.037, 0, 0.327), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.26, 0.333).extrude(0.673)) result = result.unio...
13
131
0.227481
train_ff4444dae38db062
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.005, 1, -0.068), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.674, 0.759).threePointArc((0.637, 0.672), (0.724, 0.634)).threePointArc((0.539, 0.552), (0.364, 0.452)).threePointArc((0.22, 0.348), (0.087, 0.232)).threePointArc((-0.014, 0.127), (-0....
1
14
0.479778
train_61b45233b5149574
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.055, -0.143, -0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.338, 0.216).extrude(0.064) result = result.union(cq.Workplane(cq.Plane(origin=(0.055, -0.081, 0.055), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.006, -0.01).lineTo(-0.05, -0.01).l...
22
295
0.354249
train_9a42aaa4947db240
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.001, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.461, 1.001).lineTo(0.195, 1.001).lineTo(-0.461, -0.608).lineTo(-0.461, -1.001).lineTo(-0.311, -1.001).lineTo(0.461, 0.892).lineTo(0.461, 1.001).close().revolve(angleDegrees=90, axisStart=(...
2
32
0.872514
train_773e9f8eb2e9f71d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.081, -0.203, -0.523), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.477, 0.106).lineTo(-0.477, 0.011).lineTo(0.477, 0.011).lineTo(0.477, 0.106).lineTo(-0.477, 0.106).close().extrude(0.405) result = result.union(cq.Workplane(cq.Plane(origin=(0.00...
9
47
0.029355
train_6b532da8d2e4eae9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.079, 0.044, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.015, 0.004).threePointArc((0, 0.153), (-1.015, 0.004)).lineTo(1.015, 0.004).close().extrude(0.086) result = result.edges().chamfer(0.015) result = result.union(cq.Workplane(cq.Plane(or...
9
37
0.015255
train_cf89e21be2063972
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.631), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.004, 1.047).extrude(1.172) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.51), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.262).extrude(0.49)) result = result.union(cq.Workplane...
12
97
1.081926
train_223b70cfb3d5b086
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.136, 0.186, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.436, 0.648).lineTo(-0.436, 0.683).lineTo(-0.627, 0.683).lineTo(-0.627, -0.223).lineTo(0.627, -0.223).lineTo(0.627, -0.057).lineTo(0.592, -0.057).lineTo(0.592, 0.16).lineTo(0.627, 0.1...
8
65
3.363215
train_fa93e1598cfc6327
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.223, 0, -0.434), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.555, 0.302).extrude(0.669) result = result.union(cq.Workplane(cq.Plane(origin=(-0.765, 0.005, -0.225), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.469, 0.114).extrude(0.195)) result = resu...
12
67
0.252434
train_5ff2f2ef6c5ab184
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.222, 0.5, -0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.518).lineTo(0.5, 0.609).threePointArc((0.357, 0.579), (0.388, 0.722)).lineTo(0.297, 0.722).lineTo(-0.297, 0.722).lineTo(-0.297, 0.559).threePointArc((-0.308, 0.53), (-0.337, 0.51...
17
123
0.691784
train_a91851d99d04b4a7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.05, 0.405), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.001, -0.501).threePointArc((0, 0.501), (-1.001, -0.501)).lineTo(-0.647, -0.501).threePointArc((0, 0.146), (0.647, -0.501)).lineTo(1.001, -0.501).close().extrude(0.809) result = result....
12
101
0.457882
train_199e827f5cdb516d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.39, -0.025, -0.072), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.076, -0.083).lineTo(0.076, 0.083).lineTo(0.068, 0.083).lineTo(0.068, 0.092).lineTo(0.085, 0.092).lineTo(0.085, -0.092).lineTo(-0.085, -0.092).lineTo(-0.085, 0.092).lineTo(-0.076,...
14
139
0.695396
train_dcf8025a6ab99fca
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.727, 0.253, 0.675), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.029, 0.029).lineTo(-0.029, 0.19).lineTo(-0.146, 0.19).lineTo(-0.146, -0.19).lineTo(-0.029, -0.19).lineTo(-0.029, -0.029).lineTo(0.146, -0.029).lineTo(0.146, 0).lineTo(-0.029, 0).li...
5
36
0.14369
train_e1e18e99e1f2a29d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.709, -0.21), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.296, 0.325).threePointArc((0.274, 0.346), (0.252, 0.364)).lineTo(0, 0.219).lineTo(-0.252, 0.364).threePointArc((-0.274, 0.346), (-0.296, 0.325)).threePointArc((-0.358, 0.243), (-0.398, ...
3
35
0.218794
train_135e7d80d83238bc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.873, 0, 0.048), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.71).lineTo(0.093, 0.71).lineTo(0.093, 0.292).lineTo(0.161, -0.01).lineTo(0.187, -0.01).lineTo(0.187, -0.127).lineTo(-0.187, -0.127).lineTo(-0.161, -0.01).lineTo(-0.093, -0.01).lineT...
11
50
0.422534
train_8cc5005bed1a7c84
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.315, -0.073, -0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.81, 0.426).extrude(0.279) result = result.faces('>Z').shell(-0.031) result = result.union(cq.Workplane(cq.Plane(origin=(0.851, 0.025, -0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).rec...
7
77
0.071391
train_75f6361242d60fb5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.099), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.243).workplane(offset=0.183).circle(0.162).workplane(offset=0.219).circle(0.122).workplane(offset=0.171).circle(0.04).loft() result = result.edges().fillet(0.061) result = result.union(cq...
11
38
0.1046
train_94c6eaa29835670a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.062, 0, -0.847), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.187, 1.089).extrude(1.431) result = result.union(cq.Workplane(cq.Plane(origin=(-0.131, -0.087, 0.555), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.19, 0.458).extrude(0.292)) result = resu...
5
23
1.940474
train_11fad80c6c97dd9e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.247, -0.002, -0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.107, 0.011).extrude(0.013) result = result.union(cq.Workplane(cq.Plane(origin=(-0.278, -0.004, 0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.002).extrude(0.017)) result = res...
6
69
0.161144
train_80f088657ea35850
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.016, -1.236, -0.498), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.56, 0.241).threePointArc((-0.56, 1.236), (0.56, 2.231)).threePointArc((0.442, 1.236), (0.56, 0.241)).close().extrude(0.996) result = result.edges().fillet(0.139) result = result.c...
9
84
1.560809
train_023d7c5da2ff7775
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.051, -1, 0.053), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.729, -0.73).threePointArc((-0.65, 0.321), (0.275, 0.825)).threePointArc((0.507, 0.8), (0.729, 0.728)).threePointArc((0.275, -0.277), (-0.729, -0.73)).close().extrude(2) result = resu...
11
85
2.544039
train_1783f3543310894e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.352, -0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.649, 1.297).extrude(0.424) result = result.union(cq.Workplane(cq.Plane(origin=(0.082, -0.287, 0.339), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.584).extrude(0.062)) result = result.un...
12
57
0.825438
train_803b4ae85591fe98
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.154, -0.959), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.036, 1.691).extrude(0.946) result = result.union(cq.Workplane(cq.Plane(origin=(-0.019, -0.829, -0.608), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.171).extrude(0.5)) result = result.uni...
18
65
1.195174
train_587189a0d64973fa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.093, -0.052, -0.27), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.341, 1.304).extrude(0.231) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.461, -0.202, -0.212), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.638, 0.337).extrude(0.077)) result = ...
20
184
0.872468
train_a6edef08d5838655
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.689, -0.149, 0.895), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.242, 0.216).lineTo(0.242, 0).lineTo(-0.242, -0.216).lineTo(-0.242, 0.216).close().extrude(0.516) result = result.union(cq.Workplane(cq.Plane(origin=(-0.027, -0.149, 0.507), norma...
5
31
0.453324
train_cab760f2115d99b0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.276, -0.455, 0.205), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.389).workplane(offset=0.104).circle(0.415).workplane(offset=0.096).circle(0.195).workplane(offset=0.129).circle(0.344).workplane(offset=0.122).circle(0.371).workplane(offset=0.12...
15
144
0.333499
train_66eb5276061fde46
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.031, 0, 0.159), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.019, 0.03).lineTo(0.019, 0.079).lineTo(-0.019, 0.079).lineTo(-0.019, 0.03).lineTo(0.019, 0.03).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.018, 0)) result = result....
11
164
0.088174
train_11225d2df55077a2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.262, -0.902, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 0.754).lineTo(1, 0.04).lineTo(-1, 0.04).lineTo(-1, 0.754).lineTo(1, 0.754).close().extrude(0.783) result = result.edges().fillet(0.089) result = result.union(cq.Workplane(cq.Plane(or...
23
100
1.354271
train_e45a492e64157177
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.887, 2).extrude(0.252) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.126, -1.353), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.075).extrude(0.517)) result = result.cut(cq.Workplane(...
12
38
0.661139
train_f0f650fcb7c7a25c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.467, 0.534, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.556, 1.298).threePointArc((0, 1.467), (0.556, 1.298)).lineTo(0.556, -0.364).threePointArc((0, -0.533), (-0.556, -0.364)).lineTo(-0.556, 1.298).close().extrude(1.069) result = result.e...
17
142
1.392225
train_0e77b257c341773a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.072, 0, 0.605), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.396, -0.773).threePointArc((0.12, -0.815), (0.561, -0.545)).lineTo(0.958, -0.083).lineTo(0.64, 0.435).threePointArc((0.248, 0.773), (-0.268, 0.815)).lineTo(-0.86, 0.674).lineTo(-0.909...
10
67
2.590794
train_48b4ce720575439b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.119, 0.203, -0.784), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.763, 1.452).extrude(0.735) result = result.union(cq.Workplane(cq.Plane(origin=(0.207, -0.378, 0.007), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.32, -0.015).lineTo(-0.32, -0.049)....
18
123
1.522709
train_83364ce2af122c06
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.027, 0.154, -0.113), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.168, 0.664).extrude(0.099) result = result.union(cq.Workplane(cq.Plane(origin=(0.032, 0.187, -0.015), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.299).extrude(0.012)) result = resul...
12
54
0.135581
train_1eadf24e19b46af2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.577, -0.409, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.92, 0.256).lineTo(-0.92, 0.563).lineTo(0.92, 0.563).lineTo(0.92, 0.256).lineTo(-0.92, 0.256).close().workplane(offset=0.515).moveTo(-0.929, 0.254).lineTo(-0.929, 0.564).lineTo(0.929,...
25
104
0.520328
train_51d535c4034dd7f5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.402, 0.741, 0.13), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.897, -0.646).lineTo(-0.38, -0.129).lineTo(0.151, 0.402).lineTo(0.897, -0.083).lineTo(0.681, 0.932).lineTo(0.635, 1.148).lineTo(-0.38, 0.932).lineTo(-0.897, 1.45).lineTo(-0.897, -0....
4
45
2.670922
train_6123340fc2ec34fc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.184, -0.139, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.011).lineTo(-1, 0.189).lineTo(0.731, 0.267).threePointArc((0.921, 0.196), (1, 0.011)).lineTo(0.743, 0.011).lineTo(0.743, 0.189).lineTo(0.558, 0.189).threePointArc((0.504, 0.107), ...
7
79
0.121641
train_be82535f2049744e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.03, 0, -0.515), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.12, 0.12).extrude(0.233) result = result.faces('>Z').shell(-0.009) result = result.union(cq.Workplane(cq.Plane(origin=(-0.019, 0.008, -0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.1...
8
72
0.165412
train_d41663c724952540
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.068, -0.008), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.047, 0.999).lineTo(-0.022, -1).lineTo(-0.047, -0.999).lineTo(0.022, 1).lineTo(0.047, 0.999).close().sweep(cq.Workplane('YZ').spline([(0.068, -0.064), (0.078, -0.01), (0.049, 0.039), ...
1
6
0.002438
train_9933dd5a7c1383b3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.328, 0, -0.795), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.47, 0.056).threePointArc((0.502, 0), (0.47, -0.056)).lineTo(0.112, -0.272).threePointArc((0, -0.303), (-0.112, -0.272)).lineTo(-0.47, -0.056).threePointArc((-0.502, 0), (-0.47, 0.056)...
1
10
0.673212
train_c1e31387a6215952
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.795), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.092, 1.07).extrude(1.336) result = result.union(cq.Workplane(cq.Plane(origin=(0.09, 0.178, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.25).extrude(0.226)) result = result.cut(cq.Workpla...
12
102
1.245564
train_3541328b6d632136
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.035, -0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.91, 1.212).extrude(0.191) result = result.union(cq.Workplane(cq.Plane(origin=(0.271, -0.807, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.193).extrude(0.032)) result = result.un...
18
113
0.388286
train_a66093a33baaf211
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.417, -0.081, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.41, 0.164).threePointArc((-0.214, 0.348), (0.02, 0.481)).threePointArc((0.232, 0.547), (0.45, 0.571)).threePointArc((0.542, 0.15), (0.44, -0.267)).threePointArc((0.412, -0.32), (0.38...
2
18
0.4941
train_266a9d047d857247
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.189, 0, 0.054), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.767, -1).lineTo(0.792, -0.992).lineTo(0.771, 1).lineTo(-0.79, 0.994).close().moveTo(-0.278, 0.184).lineTo(-0.218, 0.184).lineTo(-0.216, 0.029).lineTo(-0.095, 0.031).lineTo(-0.096, -0....
14
106
0.353967
train_0e58375fa0155f3c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.673).sweep(cq.Workplane('XZ').spline([(-0.684, -0.164), (-0.342, 0.168), (0, 0.278), (0.342, 0.168), (0.684, -0.164)])) result = result.edges().chamfer(0.034) result = result.cut(cq.Workplane(c...
9
36
1.545663
train_3c61469e1a201745
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.35, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.219, -0.35).lineTo(0.219, -0.35).lineTo(0.219, 0.442).lineTo(-0.219, 0.76).lineTo(-0.219, -0.35).close().revolve(angleDegrees=360, axisStart=(-0.219, -0.35), axisEnd=(0.219, -0.35)) result...
7
50
1.173961
train_76e33f2874d5f70b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.043, 0.746, -0.06), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.876, 0.219).lineTo(-0.876, 0.14).threePointArc((-0.736, 0), (-0.876, -0.14)).lineTo(-0.876, -0.219).lineTo(0.876, -0.219).lineTo(0.876, -0.14).threePointArc((0.736, 0), (0.876, 0....
8
40
0.50729
train_66b9565d181c1220
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.338, 0.241, 0.234), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.619, 1.338).lineTo(-0.619, -0.514).threePointArc((-0.567, -0.535), (-0.545, -0.588)).lineTo(0.493, -0.588).threePointArc((0.619, -0.64), (0.567, -0.514)).lineTo(0.567, 1.264).line...
4
28
0.990938
train_1c72c8480251d044
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.181, 0.972, 0.19), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.27, 0.905).lineTo(1.27, 0.905).lineTo(-1.27, -0.788).lineTo(-1.27, 0.905).close().workplane(offset=0.337).moveTo(-1.207, 0.863).lineTo(1.207, 0.863).lineTo(-1.207, -0.747).lineTo(-...
17
127
1.828604
train_7c22395b7795ec3b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.155, -0.329, -0.155), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.565, -0.457).lineTo(-0.565, 0.683).lineTo(0, 0.834).lineTo(0.565, 0.683).lineTo(0.565, -0.455).lineTo(-0.565, -0.457).close().extrude(1.329) result = result.edges().chamfer(0.117...
14
100
1.434013
train_1f8c8f5f805f150d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.198, 0.16, 0.844), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.292, -0.219).lineTo(-0.292, 0.219).lineTo(0.117, 0.219).lineTo(0.292, 0.044).lineTo(0.292, -0.219).lineTo(-0.292, -0.219).close().extrude(1.687) result = result.edges().chamfer(0....
14
87
0.47812
train_8e216114661dbd52
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.415, 0.187, -0.07), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.306, -0.801).lineTo(-0.306, 0.916).lineTo(0.306, 0.916).lineTo(0.306, -0.801).lineTo(-0.306, -0.801).close().extrude(0.577) result = result.edges().chamfer(0.031) result = result....
17
207
0.650887
train_3d6b5e4a46dd604b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.005, 0.769, 0.99), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.233, 0.185).lineTo(-0.21, 0.145).lineTo(-0.127, 0).lineTo(-0.043, -0.144).threePointArc((-0.063, -0.167), (-0.064, -0.198)).threePointArc((-0.02, -0.23), (0.024, -0.198)).threePoin...
4
28
0.00434
train_781dfb34c32b8bc1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.192, -0.466, -0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.751, -0.523).lineTo(0.745, -0.534).lineTo(0.736, 0.518).lineTo(-0.751, 0.512).close().moveTo(-0.137, -0.001).lineTo(-0.166, 0.069).lineTo(-0.235, 0.099).lineTo(-0.304, 0.069).lin...
29
295
0.668074
train_7f65d65c7ce2ff6c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.063, 0, -0.011), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.113, 0.159).extrude(0.02) result = result.union(cq.Workplane(cq.Plane(origin=(-0.007, 0.003, -0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.027, 0.082).extrude(0.006)) result = resul...
12
129
0.000541
train_509ed81037beb310
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.288, 0, -0.548), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.425, 1.4).extrude(1.095) result = result.cut(cq.Workplane(cq.Plane(origin=(0.387, -0.049, 0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.202).extrude(0.296)) result = result.edges()....
19
180
1.567834
train_dffea3ceabbfd383
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.045, -0.38, -0.645), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.483, 1.241).extrude(0.162) result = result.union(cq.Workplane(cq.Plane(origin=(0.029, -0.318, -0.484), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.558).extrude(0.01)) result = resul...
13
112
1.110134
train_60f4019073f5bda2
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(2, 1.563).extrude(0.535) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.267, -1.567), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.061).moveTo(-0.047, 0).lineTo(-0.051, 0.004).lineTo(-0...
11
102
1.360164
train_20a0e04dd0c324be
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.294, -0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.402, 1.412).extrude(0.426) result = result.union(cq.Workplane(cq.Plane(origin=(0.234, 0.687, -0.055), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.653, 0.626).extrude(0.171)) result = resul...
14
60
0.674567
train_e7db5d439171e4fe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.28, -0.834, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.211, -0.395).threePointArc((-0.211, 0), (0.211, 0.395)).threePointArc((0.185, 0), (0.211, -0.395)).close().sweep(cq.Workplane('XY').spline([(0.28, -0.397), (0.407, -0.181), (0.368, 0.0...
12
15
0.188694
train_6f137702a50edd7a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.231, -0.706, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.714, -0.34).lineTo(-0.714, 0.802).lineTo(0, 0.802).lineTo(0, 1.231).lineTo(0.714, 1.231).lineTo(0.714, -0.769).lineTo(0, -0.769).lineTo(0, -0.34).lineTo(-0.714, -0.34).close().extrud...
12
86
2.92823
train_a2b5fbb04cd3df2f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.557).workplane(offset=0.563).circle(0.546).workplane(offset=0.447).circle(0.51).workplane(offset=0.479).circle(0.569).workplane(offset=0.511).circle(0.568).loft() result = result.edges().chamf...
11
81
1.049711
train_5e827b86f4421796
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.61), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.717, 2).extrude(1.219) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.275 * math.cos(1.81 + 2 * math.pi * 0 / 5), 0.61 + 0.275 * math.sin(1.81 + 2 * math.pi * 0 / 5), -1.91), normal=...
7
26
4.184526
train_67c3fcc6dff30e6d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.721, -0.09), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.096, 0.502).threePointArc((-0.47, 0.254), (-0.497, -0.194)).threePointArc((-0.47, -0.253), (-0.434, -0.304)).lineTo(-0.855, -0.548).threePointArc((-0.031, -0.989), (0.792, -0.548)).l...
1
12
1.46572