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_f5c643ff08f58238
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.157, 1, 0.107), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.414).workplane(offset=0.878).circle(0.456).workplane(offset=1.122).circle(0.488).loft() result = result.edges().chamfer(0.233) result = result.union(cq.Workplane(cq.Plane(origin=(0.291...
13
44
0.968438
train_993a69679bac1844
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.241, 0.062, -0.252), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.519, 0.827).extrude(0.504) result = result.faces('>Z').shell(-0.041) result = result.union(cq.Workplane(cq.Plane(origin=(0.735, -0.031, -0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).r...
4
24
0.146585
train_0724c399566d9554
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.963), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 1).lineTo(1, -0.636).lineTo(0.636, -0.636).lineTo(0.636, -1).lineTo(-1, -1).lineTo(-1, 1).lineTo(1, 1).close().workplane(offset=0.524).moveTo(0.706, 0.706).lineTo(0.706, -0.449).lineTo(0....
11
43
1.546236
train_91b605709e42260e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.349, -0.096, -0.716), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.302, 0.214).extrude(0.172) result = result.union(cq.Workplane(cq.Plane(origin=(0.085, -0.092, -0.549), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.082).extrude(0.141)) result = resu...
7
54
0.537229
train_9991c96205dfd7cc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.265, 0.414, -0.136), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.431, 1.015).threePointArc((-0.003, 1.129), (-0.434, 1.013)).threePointArc((-0.75, 0.695), (-0.865, 0.262)).lineTo(-0.431, -0.485).threePointArc((0.003, -0.6), (0.434, -0.483)).lin...
12
58
1.868111
train_04a1261d564dd3dc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.084, 0.097, 0.285), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.144).sweep(cq.Workplane('XY').spline([(0.084, -0.064), (0.232, -0.129), (0.38, -0.129), (0.528, -0.064)])) result = result.edges().chamfer(0.045) result = result.union(cq.Workplane(...
24
233
0.139173
train_1bb0f08f1e66bf39
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.201, 0.069, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.29, 0.316).lineTo(-0.29, 0.053).lineTo(-0.026, 0.053).lineTo(-0.026, -0.316).lineTo(0.158, -0.316).threePointArc((0.197, -0.223), (0.29, -0.185)).lineTo(0.29, 0.316).lineTo(-0.026, 0.3...
4
29
0.205118
train_59d8ccaba610e501
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.873, -0.355, 0.049), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.295, -0.063).lineTo(-0.295, -0.063).lineTo(-0.295, 1.153).lineTo(0.295, 1.153).lineTo(0.295, -0.063).close().extrude(0.6) result = result.edges().fillet(0.196) result = result.uni...
9
75
0.72029
train_2d871b442aeaa0be
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.192, -0.508, -0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.031, 0.984).extrude(0.07) result = result.union(cq.Workplane(cq.Plane(origin=(0.737, -0.323, -0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.031).extrude(0.01)) result = result...
13
83
0.089306
train_898794e4ef9f14c8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.039, 0.993, -0.527), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.152, 0.052).lineTo(-0.121, 0.106).lineTo(0.152, -0.052).lineTo(0.121, -0.106).lineTo(-0.152, 0.052).close().sweep(cq.Workplane('YZ').spline([(0.234, -0.657), (0.664, -0.657), (0.8...
18
88
0.164647
train_31ffb69b973200cb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.065, 0, -0.514), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.782, 2).extrude(1.029) result = result.cut(cq.Workplane(cq.Plane(origin=(0.51, 0.21, -0.442), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.138, 0.064).lineTo(0.224, 0.14).threePointArc((0...
13
54
3.404847
train_5f5b88b75bd9ba50
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.058, 0, -0.235), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.3, 1.147).extrude(0.8) result = result.union(cq.Workplane(cq.Plane(origin=(-0.119, 0.23, -0.42), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.37, 0.315).extrude(0.196)) result = result.uni...
6
87
1.409458
train_94928ceeaadfb819
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.234, -0.118, -0.597), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.999, 0.604).extrude(0.231) result = result.cut(cq.Workplane(cq.Plane(origin=(0.234, -0.118, -0.6), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.074).extrude(0.135)) result = result.c...
28
136
0.464517
train_92c0da94fe600208
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.403, 0.007, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.598, -0.82).lineTo(0.597, -0.824).lineTo(0.588, 0.789).lineTo(-0.603, 0.81).close().moveTo(0.16, 0.001).lineTo(0.082, 0.141).lineTo(-0.082, 0.14).lineTo(-0.16, -0.001).lineTo(-0.0...
9
52
0.312733
train_549b2b7d1eccf948
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.389, 0, -0.557), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.186, 0.317).lineTo(0.186, 0.317).lineTo(0.195, 0.285).lineTo(0.229, 0.285).lineTo(0.343, -0.067).lineTo(0.317, -0.087).lineTo(0, -0.317).lineTo(-0.317, -0.087).lineTo(-0.343, -0.067...
12
131
0.453311
train_663ecc05f2faeeac
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.493, 0.45, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.639, -0.106).lineTo(-0.639, -0.507).lineTo(0.639, -0.507).lineTo(0.639, -0.106).lineTo(0.239, -0.106).lineTo(0.239, 1.493).lineTo(-0.639, 1.493).lineTo(-0.639, -0.106).close().extrude(...
19
102
1.045859
train_6e503f1e6baa8c3b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.006, -0.003, -0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.005, -0.002).lineTo(0.005, 1.003).threePointArc((-0.003, 0.5), (-0.005, -0.002)).threePointArc((-0.003, -0.5), (0.005, -0.997)).lineTo(0.005, -0.002).close().extrude(0.011) result...
18
137
0.000977
train_0f3628bb3f81b4d6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.509, -0.018, -0.381), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.506, 0.002).lineTo(0.506, 0.037).lineTo(-0.506, 0.037).lineTo(0.506, 0.002).close().extrude(0.074) result = result.edges().fillet(0.006) result = result.faces('>Y').shell(-0.002)...
16
93
0.015898
train_30fc0127d6fccf3f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.268, -0.947, -0.172), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.372, 0).lineTo(-0.24, -0.076).lineTo(0.372, -0.076).lineTo(0.372, 0.076).lineTo(-0.24, 0.076).lineTo(-0.372, 0).close().sweep(cq.Workplane('XY').spline([(-0.268, -0.339), (-0.0...
7
55
0.543769
train_10eb952f5d3cc2f2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.03, 0.124, -0.531), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.929, 1.752).extrude(0.915) result = result.union(cq.Workplane(cq.Plane(origin=(0.028, 0.387, 0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.517, 0.388).extrude(0.151)) result = res...
14
123
0.973733
train_03b9b528578a3bee
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.726).workplane(offset=0.954).circle(0.579).workplane(offset=1.046).circle(0.43).loft() result = result.cut(cq.Workplane(cq.Plane(origin=(2.523 + 0.377 * math.cos(5.021 + 2 * math.pi * 0 / 7), ...
12
37
1.898711
train_db5611fdc21ce38e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.897, -0.334), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.108, -0.045).threePointArc((-0.094, -0.004), (-0.066, 0.028)).threePointArc((0, 0.05), (0.066, 0.028)).lineTo(0.053, 0.267).threePointArc((0.285, 0.106), (0.308, -0.175)).threePointAr...
6
40
0.23401
train_93acc4d9a50e1f5a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.883), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.193, 2).extrude(1.766) result = result.cut(cq.Workplane(cq.Plane(origin=(0.204, 0.333, -0.13), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.273).extrude(1.04)) result = result.cut(cq.Workplan...
4
15
3.645899
train_af5a2a2262a8b4b7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.452, -0.274, -0.243), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.217, 1.274).lineTo(-0.26, 0.957).lineTo(-0.395, 0.947).lineTo(-0.969, 0.526).lineTo(-1.121, 0.391).lineTo(-0.715, -0.074).lineTo(-0.781, -0.394).lineTo(0.011, -0.726).close().move...
14
69
0.306311
train_c1c2614b3c3d2fc6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.382, -0.537, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.773).lineTo(0.657, 1.021).lineTo(1, 0.531).lineTo(0.313, -0.258).lineTo(-1, -0.258).lineTo(-1, 0.773).close().extrude(1.075) result = result.cut(cq.Workplane(cq.Plane(origin=(0.08...
12
49
1.92098
train_0df75198bfad5553
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.522, -0.354, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.64, 1.116).threePointArc((-0.726, 1.081), (-0.762, 0.994)).lineTo(-0.762, 0.354).lineTo(0, 0.354).lineTo(0, -0.407).lineTo(0.64, -0.407).threePointArc((0.726, -0.371), (0.762, -0.285...
3
23
1.257196
train_774474961606d9ce
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.088, -0.366, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.249, 1.269).extrude(0.565) result = result.union(cq.Workplane(cq.Plane(origin=(-0.159, 0.378, -0.052), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.43, 0.239).extrude(0.094)) result = ...
8
55
0.879162
train_b5f2ceebf1717312
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.688, -0.234, -0.015), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.223, -0.223).lineTo(0.223, 0.149).threePointArc((0.201, 0.201), (0.149, 0.223)).lineTo(-0.223, 0.223).lineTo(-0.223, -0.223).lineTo(-0.068, -0.223).lineTo(0.223, -0.223).close()....
7
56
0.471368
train_e0fb1539325444ec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.859, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.976).workplane(offset=0.351).circle(0.89).workplane(offset=0.32).circle(1).workplane(offset=0.407).circle(0.934).workplane(offset=0.306).circle(0.915).workplane(offset=0.334).circle(0.977)...
5
21
4.22207
train_e83c57f3b54dc778
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.194, -0.029, -0.272), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.173, 0.076).threePointArc((-0.188, 0.069), (-0.194, 0.054)).lineTo(-0.194, -0.011).threePointArc((-0.188, -0.026), (-0.173, -0.032)).lineTo(0.173, -0.032).threePointArc((0.188,...
6
56
0.048614
train_34f8cbc0d9637703
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.112, -0.173), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.374, 0.011).lineTo(-0.374, -0.049).lineTo(0.374, -0.049).lineTo(0.374, 0.011).lineTo(0.15, 0.011).lineTo(0.112, 0.049).lineTo(0.075, 0.011).lineTo(-0.075, 0.011).lineTo(-0.112, 0.049...
3
83
0.046383
train_b2e94c2a2c3eb1df
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.856, 1.806).extrude(2) result = result.edges().fillet(0.115) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.291, 0.822, 0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.211, 0.171).extrud...
17
82
5.774085
train_b8c0d322e2d08187
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.5, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.381, 1.001).threePointArc((-0.804, 0.578), (-0.381, 0.155)).lineTo(0.212, 0.155).lineTo(0.212, 0.261).lineTo(0.698, 0.261).lineTo(0.698, 0.451).lineTo(0.804, 0.451).lineTo(0.804, 0.705).lin...
21
257
1.342153
train_65d31f9c72afc2fb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.882, -0.542, -0.215), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.766, 0.419).lineTo(-0.785, 0.419).lineTo(-0.785, 0.977).lineTo(-0.766, 0.977).threePointArc((-0.753, 0.928), (-0.72, 0.89)).lineTo(-0.601, 0.866).lineTo(-0.601, 0.646).lineTo(-0...
9
77
0.475748
train_1fd6fabe8de29d83
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.016, 0.02, -0.758), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.242).sweep(cq.Workplane('XY').spline([(-0.372, 0.02), (-0.247, 0.02), (-0.122, 0.02), (0.053, -0.03), (0.228, -0.079), (0.403, -0.129)])) result = result.edges().chamfer(0.143) resu...
5
33
0.120921
train_c3cde72b4fb44bae
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.073, 0.089, -0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.119, 0.437).lineTo(0.119, 0.437).lineTo(0.119, -0.417).lineTo(-0.119, -0.417).lineTo(-0.119, 0.437).close().extrude(0.274) result = result.edges().fillet(0.02) result = result.un...
8
173
0.644938
train_793bd05f85c9db87
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.789, -0.65, -0.348), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.88, 0.363).lineTo(-1.88, 0.545).lineTo(-1.515, 0.545).lineTo(-1.515, 0.363).lineTo(1.13, 0.363).threePointArc((1.263, 0.459), (1.423, 0.496)).threePointArc((1.745, 0.376), (1.88,...
4
17
0.17827
train_95d5f48ac9082a1d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.673, 0.147), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.383, -0.493).lineTo(0.383, 0.188).threePointArc((0.463, 0.173), (0.529, 0.129)).lineTo(0.383, 0.274).lineTo(0.602, 0.274).lineTo(0.493, 0.383).lineTo(0.383, 0.493).lineTo(0.274, 0.383)....
6
34
0.851024
train_cef022f9515c9284
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.817, 0, 0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.13, 0.116).threePointArc((-0.144, 0.185), (-0.183, 0.243)).lineTo(0.183, -0.122).lineTo(0.068, -0.237).lineTo(-0.015, -0.153).lineTo(-0.028, -0.141).lineTo(-0.13, -0.243).lineTo(-0.13...
4
21
0.089409
train_0e94c0e9808b42d8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.25, -0.137, -0.412), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.5, 0.805).extrude(1.11) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.736, 0.028, -0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.157).extrude(0.651)) result = result.cut...
13
64
1.119256
train_6b3d492fa5de8c5b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.434, 0, -0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.541, 0.541).extrude(0.918) result = result.union(cq.Workplane(cq.Plane(origin=(0.774, -0.032, -0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.164, 0.09).extrude(0.154)) result = result.u...
17
457
0.698185
train_c4fdbbc0734be81d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.721, 0.548, -0.176), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.824, 1.562).lineTo(-0.824, 0.041).lineTo(0.824, 0.041).lineTo(0.824, 1.28).lineTo(-0.635, 1.28).lineTo(-0.635, 1.562).lineTo(-0.824, 1.562).close().extrude(1.319) result = result...
6
33
0.82073
train_2da4d12050f29b80
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.096, -0.043, 0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.666, 0.835).extrude(0.07) result = result.union(cq.Workplane(cq.Plane(origin=(0.096, -0.043, 0.225), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.501, 0.529).extrude(0.01)) result = res...
16
158
0.560835
train_9031c0607710e950
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.263, -0.018, 0.331), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.093, 0.217).lineTo(-0.093, -0.16).lineTo(0.093, -0.16).lineTo(0.093, 0.217).lineTo(-0.093, 0.217).close().revolve(angleDegrees=180, axisStart=(-0.093, 0.217), axisEnd=(-0.093, -0...
26
130
0.071325
train_d0877892f534175f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.89), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.933, -0.46).lineTo(-0.311, 0.617).lineTo(-0.155, 0.617).threePointArc((0, 0.771), (0.155, 0.617)).lineTo(0.311, 0.617).lineTo(0.933, -0.46).lineTo(0.933, -0.771).lineTo(-0.933, -0.771).lin...
3
23
3.399673
train_db27201449ec1213
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.183, -0.075, -0.468), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.126, 1.676).extrude(0.025) result = result.union(cq.Workplane(cq.Plane(origin=(0.11, -0.056, -0.445), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.378).extrude(0.03)) result = result...
8
63
1.667436
train_dcd7e3d6ce626337
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.926, 0.017, -0.01), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.411, -0.191).lineTo(0.46, -0.123).lineTo(0.012, 0.191).lineTo(-0.46, 0.191).lineTo(-0.46, 0.16).lineTo(-0.438, 0.16).threePointArc((-0.428, 0.137), (-0.438, 0.114)).lineTo(-0.46, ...
2
15
0.180766
train_1205bcbc5136a6b8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.142, 0, -0.245), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.16, 0.562).extrude(0.345) result = result.union(cq.Workplane(cq.Plane(origin=(-0.85, 0.026, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.299, 0.295).extrude(0.102)) result = resul...
13
72
0.167692
train_31d29534427c7608
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.25, 0.132, -0.957), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.499, 1.499).extrude(1.499) result = result.union(cq.Workplane(cq.Plane(origin=(-0.562, -0.741, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.14).extrude(0.167)) result = resul...
25
404
2.313573
train_078077dcbf1454bd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.794, 0.291, 0.02), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.98, 0.08).lineTo(-0.98, 0.282).threePointArc((-0.753, 0.51), (-0.98, 0.737)).lineTo(-0.98, 0.938).lineTo(0.98, 0.938).lineTo(0.98, 0.08).lineTo(-0.98, 0.08).close().extrude(1.314) ...
20
136
1.468375
train_55b9c7590b9f3fa9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.451, 0, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.369, -0.313).lineTo(0.186, -0.157).lineTo(0.369, -0.106).lineTo(0.369, 0.313).lineTo(0.196, 0.166).lineTo(0, 0).lineTo(-0.369, 0.313).lineTo(-0.369, -0.313).close().sweep(cq.Workplane('XZ'...
20
147
0.068386
train_d08cd691ae49abc9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.327, -0.155, -0.433), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.376, -0.32).lineTo(-0.263, -0.32).threePointArc((0, 0.546), (0.263, -0.32)).lineTo(0.376, -0.32).lineTo(0.376, -0.504).lineTo(0.263, -0.504).threePointArc((0, -0.424), (-0.263, -...
18
95
0.848855
train_6620da5626be1cfa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.555, -0.802), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.345).lineTo(-0.513, 0.345).threePointArc((0.001, -0.169), (0.514, 0.345)).threePointArc((0.475, 0.541), (0.364, 0.708)).lineTo(0.727, 0.345).lineTo(1, 0.345).lineTo(1, 1.279).line...
11
99
3.331029
train_e469fe012a35a5f6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.042, -0.699, -0.078), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.05, 0.096).lineTo(0.127, 0.096).lineTo(0.127, 0.171).lineTo(0.05, 0.171).lineTo(0.05, 0.247).lineTo(-0.05, 0.247).lineTo(-0.05, 0.171).lineTo(-0.127, 0.171).lineTo(-0.127, 0.096)....
11
176
0.014047
train_ce29e7d538a38900
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1.207, 0.886, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, 2.207).lineTo(-1, 2.207).lineTo(-0.5, 1.707).lineTo(-1, 1.207).lineTo(-1, 0.207).lineTo(0, 0.207).lineTo(0, 1.207).lineTo(1, 1.207).lineTo(1, 2.207).close().extrude(1.773) result = re...
19
124
3.477262
train_e766df36e67cb8c6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.484, -0.01, -0.611), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.389, -0.282).lineTo(-0.389, 0.316).lineTo(-0.266, 0.316).threePointArc((-0.234, 0.247), (-0.202, 0.316)).lineTo(0.38, 0.316).lineTo(0.38, 0.142).threePointArc((0.389, 0.117), (0....
7
89
0.439446
train_1ce6e5bfc16952c7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.154, -0.401, 0.003), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 1.804).lineTo(-0.389, 1.804).lineTo(-0.673, 0.929).threePointArc((-0.528, 0.404), (-0.043, 0.154)).lineTo(-0.043, 0.348).lineTo(-0.043, 0.543).threePointArc((-0.001, 0.541), (0.0...
2
17
1.313668
train_7fadde6df000961d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.532, -0.202, -0.468), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.532, 0.113).lineTo(-0.532, 0.291).lineTo(0.532, 0.291).lineTo(0.532, 0.113).lineTo(-0.532, 0.113).close().revolve(angleDegrees=90, axisStart=(-0.532, 0.113), axisEnd=(-0.532, 0...
11
63
0.283602
train_40ed4b4627dd1a8d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.107, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.288).sweep(cq.Workplane('XY').spline([(0.001, -0.403), (0.334, -0.393), (0.667, -0.334), (1.001, -0.107), (1.334, 0.12), (1.667, 0.18), (2.001, 0.19)])) result = result.edges().chamfer(0...
3
9
0.484212
train_d8b383095957fda6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.043, 0.296, -0.144), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.43, 1.145).extrude(0.544) result = result.union(cq.Workplane(cq.Plane(origin=(0.028, 0.353, 0.398), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.287, 1.031).extrude(0.057)) result = re...
18
72
1.514266
train_d521731c1de60e30
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.124, -0.28, -0.052), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.07, 0.113).lineTo(-0.088, 0.094).lineTo(-0.076, 0.068).lineTo(-0.082, 0.032).lineTo(-0.03, -0.113).lineTo(0.088, -0.07).lineTo(0.025, 0.102).lineTo(-0.018, 0.102).threePointArc((-...
13
124
0.147716
train_b0bfe446fce4d63f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.929, -0.075, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.047, 0.036).lineTo(-0.047, -0.036).lineTo(0.047, -0.036).lineTo(0.047, 0.036).lineTo(-0.047, 0.036).close().sweep(cq.Workplane('XY').moveTo(0.529, -0.21).spline([(0.6, 0.117), (0.144,...
1
6
0.012181
train_6d658b3c969510ee
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.356, 0, -0.2), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.644, 0.186).lineTo(0.43, -0.186).lineTo(0.215, -0.557).lineTo(-0.215, -0.557).lineTo(-0.43, -0.186).lineTo(-0.644, 0.186).lineTo(-0.215, 0.186).lineTo(0, 0.557).lineTo(0.644, 0.186).cl...
2
12
0.89275
train_840233d280bcc2a7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.783, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.395, 0.134).lineTo(0.395, 0.134).lineTo(0.395, 1.715).lineTo(0.079, 1.715).lineTo(0.079, 0.45).lineTo(-0.395, 0.45).lineTo(-0.395, 0.134).close().extrude(1.433) result = result.faces('>Z'...
6
38
0.387527
train_0a23f347c8a6d379
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.41, 0.756, 0.176), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.068, 0.046).lineTo(-0.068, -0.015).lineTo(-0.145, -0.015).lineTo(-0.145, -0.046).lineTo(0.145, -0.046).lineTo(0.145, -0.015).lineTo(0.068, -0.015).lineTo(0.068, 0.046).lineTo(-0.068...
7
68
0.353348
train_fcdd7a6faf505412
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.06, 0, -0.101), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.99, 0.106).extrude(0.114) result = result.union(cq.Workplane(cq.Plane(origin=(0.092, 0.008, 0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.179, 0.07).extrude(0.089)) result = result.uni...
6
54
0.071529
train_ef8f85754c4073ed
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.054, -0.256, -0.036), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.429, 0.214).threePointArc((-0.466, -0.005), (-0.542, -0.214)).lineTo(0.419, -0.214).threePointArc((0.492, -0.003), (0.542, 0.214)).lineTo(-0.429, 0.214).close().extrude(0.523) ...
6
55
0.300574
train_d8a39241e991b02f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.006, 0.26, 0.814), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.047, -0.047).lineTo(0.047, 0.047).lineTo(-0.047, 0).lineTo(0.047, -0.047).close().sweep(cq.Workplane('YZ').spline([(0.26, 0.7), (0.315, 0.753), (0.37, 0.77), (0.426, 0.753), (0.481, ...
8
105
0.056019
train_151d20b101a6093f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.031, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.051, 1.429).extrude(1.808) result = result.union(cq.Workplane(cq.Plane(origin=(-0.558, -0.14, 0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.065).extrude(0.109)) result = result.union(c...
9
57
2.860098
train_d8ba5468e81dbb47
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.201, -0.233, -0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.073, 0.004).lineTo(0.051, 0.053).lineTo(0, 0.071).lineTo(-0.052, 0.054).lineTo(-0.072, -0.003).lineTo(-0.05, -0.051).lineTo(-0.002, -0.074).lineTo(0.052, -0.053).close().moveTo(0....
8
162
0.065661
train_923bed3d7c4c23ae
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.054, 0.351, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.774).lineTo(0, 0.042).lineTo(-0.395, 0.042).lineTo(-0.416, 0.053).lineTo(-0.831, -0.667).lineTo(-0.197, -0.301).lineTo(0, -0.187).lineTo(0.395, 0.042).lineTo(0.198, -0.301).lineTo(0...
9
64
0.630085
train_5ed56a95c59d7976
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.599, -0.144), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.538, 0.4).lineTo(-1, -0.4).lineTo(1, -0.372).lineTo(0.554, 0.4).lineTo(-0.538, 0.4).close().sweep(cq.Workplane('YZ').spline([(-0.599, -0.144), (-0.301, 0.101), (-0.004, 0.183), (0.2...
11
184
0.941407
train_f8ad87e4c416b81f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.224, -0.097, -0.619), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.552, 0.544).extrude(0.642) result = result.union(cq.Workplane(cq.Plane(origin=(-0.755, -0.044, -0.449), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.49, 0.087).extrude(0.251)) result =...
13
203
0.895232
train_d6106fe4136beb9f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.169, -0.284, -0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.947, 1.433).extrude(0.48) result = result.union(cq.Workplane(cq.Plane(origin=(0.156, 0.69, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.354, 0.62).extrude(0.125)) result = resul...
19
76
0.472637
train_a77289bf294dad59
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.156, -0.377), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.563, 0.866).extrude(1.377) result = result.union(cq.Workplane(cq.Plane(origin=(-0.065, 0.424, -0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.102, 0.33).extrude(0.82)) result = result...
19
209
0.373584
train_55717b7efe907e89
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.004, 0.004, 0.003), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.366, -0.756).threePointArc((-0.455, -0.792), (-0.545, -0.762)).threePointArc((-0.589, -0.729), (-0.634, -0.697)).threePointArc((-0.691, -0.62), (-0.684, -0.526)).lineTo(-0.131, 0.7...
1
10
0.417001
train_83e6c97d6a7beb8a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.329, 0.345, -0.263), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.664, 0.602).extrude(0.167) result = result.union(cq.Workplane(cq.Plane(origin=(0.329, 0.345, -0.098), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.443, 0.382).extrude(0.031)) result = r...
14
90
0.187736
train_3cca973c574dfb28
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.026, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.807, 0.98).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(-0.403, 0.057, -0.144), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.052, 0.171).extrude(0.16)) result = result.cut(cq....
12
116
1.500239
train_8113ebcf2aa7f9b5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.098, -0.111, -0.486), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.803, 0.901).extrude(1.446) result = result.faces('>Z').shell(-0.048) result = result.union(cq.Workplane(cq.Plane(origin=(0.385, -0.219, -0.89), normal=(0, 0, 1), xDir=(1, 0, 0))).re...
20
89
0.853802
train_ebfca6e098c4bf95
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.214, 0.7), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.248).lineTo(-1, 0.248).lineTo(1, 0.248).lineTo(1, -0.248).lineTo(-1, -0.248).close().extrude(0.426) result = result.edges().chamfer(0.056) result = result.faces('<Z').shell(-0.029) ...
10
116
0.316687
train_4ee349ee7fc95f09
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.702).workplane(offset=0.957).circle(0.574).workplane(offset=1.043).circle(0.47).loft() result = result.cut(cq.Workplane(cq.Plane(origin=(0.034, -0.141, -0.418), normal=(0, 0, 1), xDir=(1, 0, 0...
6
27
1.448848
train_5532775624f42a56
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.409, 0, 0.572), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.428, 0.437).lineTo(-0.428, 0.105).lineTo(0.179, 0.105).lineTo(0.179, 0.23).lineTo(0.428, 0.23).lineTo(0.428, 0.713).lineTo(0.207, 0.713).lineTo(0.207, 0.437).lineTo(-0.428, 0.437).clo...
5
27
0.835899
train_474effb4218d990b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.051, 0.385, 0.142), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.105, -0.244).threePointArc((-0.122, 0.008), (0.122, 0.244)).lineTo(0.122, -0.244).lineTo(0.105, -0.244).close().extrude(0.184) result = result.union(cq.Workplane(cq.Plane(origin=(...
12
69
0.189688
train_3ee9d1e6cd266d3b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.438, 0.092, 0.115), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.423, 0.091).threePointArc((-0.432, 0), (0.423, -0.091)).threePointArc((0.432, 0), (0.423, 0.091)).close().extrude(0.208) result = result.edges().fillet(0.022) result = result.unio...
9
129
0.872547
train_3bc64c81aa7eb8d8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.621, -0.108, -0.014), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.223, 0.603).lineTo(-0.223, 0.007).lineTo(-0.11, 0.007).lineTo(-0.11, 0.129).lineTo(0.223, 0.129).lineTo(0.223, 0.603).lineTo(-0.223, 0.603).close().extrude(1.108) result = resul...
23
165
0.571185
train_85e424118e614e4c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.83, 0.58, 0.123), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.821, 1.58).lineTo(0.819, 1.58).lineTo(0.821, 1.525).lineTo(0.821, -0.234).lineTo(-0.821, -0.234).lineTo(-0.821, 1.58).close().extrude(1.66) result = result.cut(cq.Workplane(cq.Plane...
7
25
4.877524
train_2269e56f23144363
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.087, -0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.991, 1.825).moveTo(0.123, -0.001).lineTo(0.087, 0.086).lineTo(-0.001, 0.12).lineTo(-0.085, 0.087).lineTo(-0.121, 0.001).lineTo(-0.087, -0.085).lineTo(-0.001, -0.124).lineTo(0.085, -0.087...
11
73
0.485674
train_5863515c2653a408
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.137, -0.1, -0.177), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.319, 0.214).extrude(0.045) result = result.union(cq.Workplane(cq.Plane(origin=(0.137, -0.1, -0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.185, 0.128).extrude(0.007)) result = res...
36
526
0.048793
train_6e46ce3dff6a8f1d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.093, 0, 0.453), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.851, 0.33).threePointArc((-0.279, -0.982), (-0.851, 0.653)).threePointArc((0.094, 0.982), (0.851, 0.33)).close().extrude(1.15) result = result.edges().fillet(0.148) result = result.uni...
25
196
2.444504
train_dbee5035d967172b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.035, -0.047, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.96, 0.082).lineTo(-0.96, 0.082).lineTo(-1, 0.012).lineTo(1, 0.012).lineTo(0.96, 0.082).close().workplane(offset=0.009).moveTo(0.9, 0.08).lineTo(-0.9, 0.08).lineTo(-0.938, 0.015).lineT...
4
16
0.005749
train_6f45464dc9bb9e5f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.597, -0.514, 0.479), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.347, 0.132).lineTo(-0.521, 1.174).lineTo(0.521, 1.174).lineTo(0.347, 0.132).lineTo(0.173, 0.132).lineTo(0, 0.566).lineTo(-0.173, 0.132).lineTo(-0.347, 0.132).close().revolve(angl...
9
65
0.959267
train_db53028849b4a51b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.855, 0, -0.207), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.234).sweep(cq.Workplane('XZ').spline([(-0.855, -0.207), (-0.423, 0.072), (0.009, 0.072), (0.441, -0.207)])) result = result.edges().chamfer(0.161) result = result.cut(cq.Workplane(cq...
14
44
0.183304
train_fd319fc95544b2fb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.673, 0.3, 0.609), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.7).lineTo(-0.152, -0.7).lineTo(-0.152, 1.3).lineTo(0.152, 1.3).lineTo(0.152, -0.7).lineTo(0, -0.7).close().extrude(0.207) result = result.edges().fillet(0.04) result = result.cut...
21
135
0.298962
train_f2b7a5c9468de8f5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.537, -1, 0.047), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.254, 0.092).lineTo(-0.254, 0.105).lineTo(-0.185, 0.105).lineTo(-0.185, 0.092).lineTo(-0.217, 0.092).lineTo(-0.217, -0.044).lineTo(-0.091, -0.044).lineTo(-0.091, 0.105).lineTo(0.254, ...
5
39
0.373333
train_0b56d15e9564fd5c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.069, -0.145, -0.08), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.178, 1.14).threePointArc((0.159, -0.852), (-0.178, 1.111)).threePointArc((-0.001, 1.142), (0.178, 1.14)).close().extrude(0.395) result = result.edges().chamfer(0.07) result = res...
6
30
1.23753
train_cde2344df0aa6659
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.297, 0.194, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.706, 0.632).threePointArc((-1, 0.337), (-0.706, 0.043)).lineTo(1, 0.043).lineTo(0.999, 0.217).lineTo(0.999, 0.452).lineTo(1, 0.632).lineTo(-0.706, 0.632).close().extrude(0.463) result...
11
80
0.56019
train_1b56e1ddef03b08f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.019, 0, 0.23), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.978).workplane(offset=0.122).circle(0.973).workplane(offset=0.112).circle(1).workplane(offset=0.099).circle(0.951).workplane(offset=0.115).circle(0.858).loft() result = result.edges()....
20
121
0.787177
train_c700e543fcaac83d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.379, 0.388, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.215, -0.66).lineTo(-0.575, 0.541).lineTo(-0.215, 0.778).lineTo(0.575, -0.422).lineTo(0.215, -0.66).close().extrude(0.943) result = result.edges().fillet(0.101) result = result.union(cq...
6
83
0.550406
train_10370a2723b76f44
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.594, 0.156, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.36).sweep(cq.Workplane('XY').spline([(0.339, -0.385), (0.503, 0.074), (0.343, 0.556), (0.084, 0.583), (-0.039, 0.172), (0.007, -0.302)])) result = result.cut(cq.Workplane(cq.Plane(origi...
2
8
0.191316
train_df8cea20a33e9c9c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.861, 2).extrude(0.361) result = result.union(cq.Workplane(cq.Plane(origin=(0.093, 0.1, 0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.675, 1.8).extrude(0.037)) result = result.union(cq.Wo...
14
254
1.199811