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_d051010140fbd7c6
import cadquery as cq import math result = cq.Workplane('XZ').moveTo(1, 0.097).lineTo(0.72, 0).lineTo(1, -0.097).lineTo(0.19, -0.097).lineTo(0.19, 0.097).lineTo(1, 0.097).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0)) result = result.cut(cq.Workplane(cq.Plane(origin=(0.549, 0, 0), normal=(0, ...
11
62
0.288525
train_4ff485981bbe0c37
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.217), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.434).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.434).lineTo(-0.855, 0.434).lineTo(-0.855, 0.144).lineTo(0.855, 0.144).lineTo(0.855, 0.434).lineTo(1, 0.434).close().extrude(0.656, both=Tru...
8
51
0.388445
train_d259ada7c0b10c33
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.71), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 1.42).lineTo(1, 0.782).lineTo(0.783, 0.782).lineTo(0.783, 0).lineTo(0, 0).lineTo(0, 1.42).lineTo(1, 1.42).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0)) result ...
5
60
2.966939
train_d676e6fdd93ccae4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.437, -0.19), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.282).lineTo(1, -0.145).threePointArc((0.952, -0.242), (0.855, -0.282)).lineTo(-0.927, -0.282).threePointArc((-0.973, -0.263), (-1, -0.219)).lineTo(-1, 0.152).lineTo(-0.86, 0.282).li...
14
256
0.418035
train_ee9566b3d105aa97
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.999).extrude(0.601) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.716).extrude(1.803, both=True)) result = result.union(cq.Wo...
18
142
1.169387
train_128a98c1100f8c1e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.5, 0), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.463, 0.422).lineTo(1, -0.033).lineTo(0.67, -0.422).lineTo(0.133, 0.033).lineTo(0.254, 0.176).lineTo(0.648, -0.158).lineTo(0.735, -0.055).lineTo(0.341, 0.279).lineTo(0.463, 0.422).close().re...
5
12
0.521981
train_97875f58f22e8ae5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.617, -0.592, -0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.033, 0.274).threePointArc((0.052, 0.247), (0.123, 0.154)).threePointArc((0.161, 0.019), (0.156, -0.12)).threePointArc((0.109, -0.228), (0.033, -0.274)).threePointArc((-0.052, -0....
3
30
0.549323
train_66152ce207e28137
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.249, -0.001, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.23, -0.874).threePointArc((-0.492, -1), (-0.45, -0.692)).lineTo(-0.54, -0.393).threePointArc((-0.372, -0.104), (-0.688, 0.073)).lineTo(-0.84, 0.521).lineTo(-0.449, 0.911).threePoi...
11
126
0.757858
train_48bb529634936771
import cadquery as cq import math result = cq.Workplane('XY').circle(0.831).extrude(1, both=True) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.182).extrude(0.937, both=True)) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(...
5
53
3.137373
train_d81d134c3bab461c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.005, 0, -0.809), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.381, 1.041).lineTo(0.381, 0.838).lineTo(0.064, 0.838).lineTo(0.064, 0.326).lineTo(0.399, 0.326).lineTo(0.399, 0).lineTo(0, 0).lineTo(0, 1.041).lineTo(0.381, 1.041).close().revolve(an...
12
194
0.217456
train_b19a6369f8e4ba2d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.052, 0.096, 0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.854, -0.554).threePointArc((-0.854, 0.111), (-0.513, 0.663)).threePointArc((-0.285, 0.885), (-0.057, 0.885)).threePointArc((0.854, -0.221), (-0.74, -0.885)).close().extrude(0.215, ...
15
32
0.342212
train_4847f63784865f6c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.304, -0.126, -1.065), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.609).threePointArc((0.431, 0.431), (0.609, 0)).lineTo(0.295, 0).threePointArc((0.209, 0.209), (0, 0.295)).lineTo(0, 0.609).close().extrude(2.131) result = result.union(cq.Work...
10
30
0.210749
train_927184894cd0b211
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.036, 0, -0.177), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.91, 0.08).lineTo(0.963, 0.017).lineTo(0.848, -0.08).lineTo(0.76, -0.069).lineTo(0.691, -0.005).lineTo(0.706, 0.035).lineTo(0.736, 0.069).lineTo(0.91, 0.08).close().sweep(cq.Workplane(...
4
63
0.336221
train_e6f64fd91c524605
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.133).lineTo(0, 0.044).lineTo(0.894, 0.044).lineTo(0.894, -0.133).lineTo(0, -0.133).lineTo(0, -0.044).lineTo(-0.894, -0.044).lineTo(-0.894, 0.133).lineTo(0, 0.133).close().extrude(2) result ...
4
36
0.165839
train_d0ea00601949ac55
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.412, 0.082, -0.517), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.311, 0.208).lineTo(0.379, 0.14).lineTo(0.379, 0.063).lineTo(0.442, 0).lineTo(0.523, 0).lineTo(0.587, -0.064).lineTo(0.587, -0.141).lineTo(0.52, -0.208).lineTo(0.253, -0.208).lineTo...
6
65
0.477418
train_705759b0a41998b7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.075, 0), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.255, 0.2).lineTo(0.487, 0.087).threePointArc((0.637, 0.166), (0.813, 0.062)).lineTo(1, -0.021).lineTo(0.907, -0.2).lineTo(0.229, 0.15).lineTo(0.255, 0.2).close().revolve(angleDegrees=360,...
3
87
0.398782
train_c4ace736b7104ee5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.044, -0.002, -0.659), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.06, 0.332).threePointArc((0.121, 0.332), (0.181, 0.211)).lineTo(-0.047, -0.188).threePointArc((-0.051, -0.208), (-0.035, -0.22)).lineTo(0.302, -0.332).threePointArc((0.302, -0.39...
21
109
0.276248
train_e57a21d7d1aa40ad
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.151, 0.294).workplane(offset=2).rect(0.385, 0.214).loft() result = result.cut(cq.Workplane(cq.Plane(origin=(-0.548, -0.023, -0.007), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.082, 0.584).line...
5
46
0.340943
train_fa62ca03861c680e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.303, 0.176, 0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.709, 0.824).threePointArc((0.79, 0.79), (0.824, 0.709)).lineTo(0.824, 0.367).threePointArc((0.797, 0.302), (0.732, 0.275)).lineTo(0.459, 0.275).threePointArc((0.329, 0.22), (0.275,...
14
115
0.521151
train_3b8134faab74b6f9
import cadquery as cq import math result = cq.Workplane('XY').moveTo(0.6, 1).lineTo(0.6, 0.6).lineTo(1, 0.6).lineTo(1, -0.2).lineTo(-0.2, -0.2).lineTo(-0.2, -1).lineTo(-0.6, -1).lineTo(-0.6, 0.2).lineTo(-1, 0.2).lineTo(-1, 0.6).lineTo(-0.6, 0.6).lineTo(-0.6, 1).lineTo(0.6, 1).close().extrude(0.429, both=True) result = ...
12
33
1.890359
train_e45ea6f97a60a69e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.245, 0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.635, 0.576).lineTo(0.635, -0.576).lineTo(-0.635, -0.576).lineTo(-0.635, 0.576).lineTo(-0.38, 0.576).lineTo(-0.38, -0.321).lineTo(0.38, -0.321).lineTo(0.38, 0.576).lineTo(0.635, 0.576).c...
5
72
1.679608
train_287eb724375994a9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.629, 1).threePointArc((0.795, 0.93), (0.862, 0.765)).lineTo(0.862, -0.775).lineTo(0.638, -0.775).lineTo(0.638, -1).lineTo(-0.681, -1).threePointArc((-0.81, -0.945), (-0.862, -0.818)).lineT...
12
58
0.668408
train_15b3f6b4e3b42317
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.523, -0.325), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.888, 0.614).lineTo(0.888, 0).lineTo(-0.888, 0).lineTo(-0.888, 0.614).lineTo(-0.546, 0.614).lineTo(-0.546, 0.344).lineTo(0.546, 0.344).lineTo(0.546, 0.614).lineTo(0.888, 0.614).close()...
8
66
0.953733
train_3911e87a12c51699
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.07, 0.101).threePointArc((0.105, 0.067), (0.087, 0)).lineTo(-0.087, -0.101).threePointArc((-0.105, -0.067), (-0.105, 0)).lineTo(0.07, 0.101).close().extrude(2) result = result.edges('|Z')....
2
10
0.044352
train_49dea9b9557ad92c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.114, -0.021, -0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.686, -0.395).threePointArc((-0.254, 1.019), (0.525, -0.07)).lineTo(0.767, -0.978).lineTo(0.373, -0.111).threePointArc((-0.214, 0.867), (-0.767, -0.092)).lineTo(-0.561, -0.326).th...
17
11
0.2426
train_56a48ae7f9935992
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.357, 0.498).workplane(offset=2).rect(0.854, 0.641).loft() result = result.cut(cq.Workplane(cq.Plane(origin=(0.479, -0.285, -0.007), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.749, 1.617).thre...
7
28
0.659466
train_04b2790590fbab36
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.262, 0.109, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.101, 0.786).threePointArc((-0.03, 0.762), (0, 0.706)).lineTo(0, 0.397).threePointArc((0.051, 0.303), (0.173, 0.262)).lineTo(0.486, 0.262).threePointArc((0.613, 0.22), (0.666, 0.121))....
11
48
0.32047
train_ade9b8544ee91619
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.329, 0.803, -0.438), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.562, 1.035).lineTo(0.562, -0.377).threePointArc((-0.562, 0.329), (0.562, 1.035)).close().revolve(angleDegrees=90, axisStart=(1.045, -0.378), axisEnd=(1.045, 0.378)) result = resul...
7
111
2.160795
train_59c8484439494436
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.276), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1).lineTo(1, 0).lineTo(0, -1).lineTo(-1, 0).lineTo(0, 1).close().extrude(0.552) result = result.cut(cq.Workplane(cq.Plane(origin=(1.426, -0.06, -0.152), normal=(0, -1, 0), xDir=(1, 0, 0))...
6
26
1.086681
train_2bf76791813e9186
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.003, -0.161), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.841, 0.454).threePointArc((0.953, 0.433), (1, 0.384)).lineTo(1, -0.353).threePointArc((0.932, -0.424), (0.771, -0.454)).lineTo(-0.567, -0.454).threePointArc((-0.872, -0.397), (-1, -0.2...
4
20
0.412932
train_8be9fd716b163513
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.091, 0.031, 0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.121, 0.234).threePointArc((0.388, 0.332), (0.728, 0.198)).threePointArc((0.674, 0.157), (0.791, 0.103)).threePointArc((0.908, -0.034), (0.735, -0.148)).threePointArc((-0.4, -0.332)...
7
25
0.893632
train_6e36b7dcec5dc876
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.697) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.199).extrude(2.089, both=True)) result = result.union(cq.Workpl...
13
44
0.689493
train_e83f7de5ff43cc6f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.236, -0.653, -0.823), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.002, 0.09).lineTo(0.131, 0.042).threePointArc((0.141, 0.033), (0.141, 0.02)).lineTo(0.099, -0.09).lineTo(0.073, -0.08).threePointArc((0.071, -0.079), (0.071, -0.076)).lineTo(0.078...
11
209
0.352957
train_a182834b6759e703
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.194, 0.058, -0.454), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.106, 0.218).threePointArc((0.073, 0.166), (0.233, 0.069)).threePointArc((0.33, -0.046), (0.338, -0.149)).threePointArc((0.256, -0.212), (0.106, -0.218)).threePointArc((-0.073, -...
9
65
0.402052
train_27ecd88576974422
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.001, 0, -0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.928, -0.12).threePointArc((0.925, -0.188), (0.916, -0.255)).threePointArc((0.9, -0.322), (0.879, -0.387)).threePointArc((0.852, -0.451), (0.819, -0.512)).threePointArc((0.781, -0.571)...
3
65
0.61159
train_07758a65dcf1163d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.049, 0.18, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.622, 0.038).threePointArc((0.167, 0.799), (0.564, -0.149)).lineTo(0.564, -0.746).threePointArc((0.532, -0.799), (0.348, -0.746)).lineTo(0.351, -0.095).threePointArc((0.622, 0.231),...
7
35
0.397461
train_57a280545d051539
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.069, 0.146), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.468, 0.928).threePointArc((-0.351, 0.897), (-0.301, 0.824)).lineTo(-0.301, 0.696).threePointArc((-0.234, 0.598), (-0.075, 0.556)).lineTo(0.78, 0.556).threePointArc((0.867, 0.534), (0....
27
94
0.597269
train_4aa59b5ddd3a7cc3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.151, -0.085, -0.092), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.158, 0.288).lineTo(0.302, 0.177).threePointArc((0.451, 0.222), (0.641, 0.048)).lineTo(0.848, -0.104).lineTo(0.699, -0.288).lineTo(0.093, 0.208).lineTo(0.158, 0.288).close().revol...
5
59
0.557489
train_9cd5a67b679106f9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.448), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.902, 0.578).threePointArc((0.971, 0.557), (1, 0.507)).lineTo(1, -0.184).threePointArc((0.957, -0.258), (0.855, -0.289)).lineTo(0.337, -0.289).threePointArc((0.241, -0.318), (0.2, -0.388))....
11
65
1.290176
train_4550acba9a1d1265
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.294, 0.044, -0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.29, 0.315).threePointArc((0.305, 0.309), (0.312, 0.294)).lineTo(0.312, -0.208).threePointArc((0.28, -0.283), (0.204, -0.315)).lineTo(-0.155, -0.315).threePointArc((-0.265, -0.269),...
8
42
0.275965
train_6d0fbcefece57573
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.016, 0.349), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.676, 0.236).threePointArc((0.597, 0.032), (0.578, -0.208)).lineTo(0.148, -0.324).lineTo(-0.119, -0.984).threePointArc((-0.515, -0.974), (-0.806, -0.705)).threePointArc((-0.795, -0.46)...
8
203
0.664982
train_2c3266f4c52ae596
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.152), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.459, 0.927).lineTo(1, 0.385).lineTo(1, -0.309).lineTo(0.383, -0.927).lineTo(-0.649, -0.927).lineTo(-1, -0.575).lineTo(-1, 0.462).lineTo(-0.537, 0.927).lineTo(0.459, 0.927).close().extrude(...
13
348
0.599903
train_858832e7e602a363
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.662).lineTo(1, 0.397).lineTo(0.201, 0.397).lineTo(0.201, 0.132).lineTo(1, 0.132).lineTo(1, -0.662).lineTo(-0.064, -0.662).lineTo(-0.064, -0.397).lineTo(0.731, -0.397).lineTo(0.731, -0.13...
8
160
0.210458
train_3cc4fa0a387d0bd3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.15, 0, -0.454), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.148, 0.907).lineTo(0.148, 0.148).lineTo(0.3, 0.148).lineTo(0.3, 0).lineTo(0, 0).lineTo(0, 0.907).lineTo(0.148, 0.907).close().extrude(1, both=True) result = result.cut(cq.Workplane(cq...
7
93
0.253542
train_73a96959a279c75f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.214), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.505, 0.427).lineTo(0.921, 0.214).lineTo(1, 0.15).lineTo(1, 0).lineTo(0.883, 0).lineTo(0.883, 0.128).lineTo(0.784, 0.214).lineTo(0, 0.31).lineTo(0, 0.427).lineTo(0.505, 0.427).close().revo...
5
21
0.394969
train_e3d1ca92a46b10c0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -2.22), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.709, 0.813).threePointArc((1.832, 0.758), (1.886, 0.63)).lineTo(1.886, -0.625).lineTo(1.699, -0.813).lineTo(-1.886, -0.813).lineTo(-1.886, 0.556).lineTo(-1.63, 0.556).lineTo(-1.63, 0.813).l...
7
35
3.764751
train_6687472bb7c2bdd7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.101, 0.079, 0.106), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.745, 0.553).lineTo(0.891, -0.246).lineTo(-0.745, -0.553).lineTo(-0.891, 0.246).lineTo(-0.746, 0.274).lineTo(-0.664, -0.161).lineTo(-0.516, -0.133).lineTo(-0.597, 0.302).lineTo(-0....
4
40
0.199698
train_4868e51e4b3dda86
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.339, 0.06, -0.325), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.039, 0.94).lineTo(-0.039, -0.343).lineTo(0.637, -0.343).lineTo(0.637, -0.94).lineTo(-0.637, -0.94).lineTo(-0.637, 0.94).lineTo(-0.039, 0.94).close().extrude(0.298) result = resul...
9
128
1.279548
train_6d4700f38b861d78
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.669).lineTo(1, -0.669).lineTo(-0.986, -0.669).threePointArc((-0.996, -0.664), (-1, -0.654)).lineTo(-1, 0.659).lineTo(-0.991, 0.659).lineTo(-0.991, 0.669).lineTo(1, 0.669).close().extrud...
8
101
0.485282
train_a6a3c135cf919639
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.286, -0.175, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.571).threePointArc((0.404, 0.404), (0.571, 0)).lineTo(0.154, 0).threePointArc((0.109, 0.109), (0, 0.154)).lineTo(0, 0.571).close().extrude(2) result = result.union(cq.Workplane(cq...
3
13
0.524929
train_3b34d371f6ca6598
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.53), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.19, 0.998).lineTo(0.537, 0.86).threePointArc((0.673, 0.717), (0.822, 0.588)).lineTo(0.986, 0.224).threePointArc((0.983, 0.029), (0.992, -0.166)).lineTo(0.814, -0.595).threePointArc((0.706, ...
6
89
0.472581
train_260d8e017754090d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.612, 0.41, 0.533), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.002, 0.878).lineTo(0.466, 0.445).lineTo(-0.002, -0.057).lineTo(-0.122, 0.055).lineTo(0.226, 0.428).lineTo(0.002, 0.637).lineTo(-0.346, 0.264).lineTo(-0.466, 0.376).lineTo(0.002, 0.8...
13
500
0.489189
train_ac13347e3c5097a6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.357).lineTo(1, -0.357).lineTo(-1, -0.357).lineTo(-1, 0.357).lineTo(-0.657, 0.357).lineTo(-0.657, -0.237).lineTo(0.657, -0.237).lineTo(0.657, 0.357).lineTo(1, 0.357).close().extrude(0.519...
13
112
0.239246
train_90dadb90893c23d6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.008, 0, 0.015), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.903, -0.08).threePointArc((0.925, -0.257), (0.769, -0.345)).lineTo(-0.588, -0.06).threePointArc((-0.99, 0.161), (-0.523, 0.254)).lineTo(0.588, 0.021).threePointArc((0.695, 0.345), (0.9...
6
63
0.208744
train_7b12cef0ee8f8c92
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.008, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.403, 0.68).lineTo(0.377, 0.591).threePointArc((0.169, 0.323), (0.424, 0.011)).lineTo(0.403, -0.078).lineTo(0.169, -0.346).lineTo(0.2, -0.435).threePointArc((0.399, -0.702), (0.119, -0.991)...
5
126
1.104627
train_b25c94112c1b0f0b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.397), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.794).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.794).lineTo(-0.762, 0.794).lineTo(-0.762, 0.238).lineTo(0.762, 0.238).lineTo(0.762, 0.794).lineTo(1, 0.794).close().extrude(0.272, both=Tru...
4
23
0.447303
train_6a8bbe3ade1d6bbc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.37, 0.13, 0.373), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.39, 0.411).threePointArc((0.419, 0.392), (0.431, 0.347)).lineTo(0.431, -0.278).threePointArc((0.406, -0.371), (0.347, -0.411)).lineTo(0.15, -0.411).threePointArc((0.105, -0.38), (0.08...
14
154
0.480683
train_9495904f508e682e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.463, -0.395, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.924).threePointArc((0.654, 0.654), (0.924, 0)).lineTo(0.389, 0).threePointArc((0.276, 0.276), (0, 0.389)).lineTo(0, 0.924).close().extrude(2) result = result.union(cq.Workplane(cq...
3
14
1.142194
train_0b204b877e497c1d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.42), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.986, 1).lineTo(0.986, -1).lineTo(-0.986, -1).lineTo(-0.986, 1).lineTo(-0.51, 1).lineTo(-0.51, -0.633).lineTo(0.51, -0.633).lineTo(0.51, 1).lineTo(0.986, 1).close().extrude(0.84) final_resul...
1
10
1.913806
train_41053a57efb151b4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.027, 0.065, -0.713), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.138, 0.015).threePointArc((0.157, 0.018), (0.169, 0.003)).threePointArc((0.162, -0.015), (0.143, -0.018)).threePointArc((0.131, -0.003), (0.138, 0.015)).close().sweep(cq.Workplan...
5
70
0.026038
train_76ba46b6ae133aa8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.278, 0, -0.423), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.721, 0.844).lineTo(0.721, 0).lineTo(-0.721, 0).lineTo(-0.721, 0.844).lineTo(-0.417, 0.844).lineTo(-0.417, 0.305).lineTo(0.417, 0.305).lineTo(0.417, 0.844).lineTo(0.721, 0.844).close()...
9
61
0.413272
train_3193ce2b7c30f2f8
import cadquery as cq import math result = cq.Workplane('XY').moveTo(-0.54, 0.632).lineTo(-0.454, 0.696).lineTo(-0.533, 0.846).lineTo(-0.424, 0.906).lineTo(-0.34, 0.758).lineTo(-0.24, 0.795).lineTo(-0.273, 0.962).lineTo(-0.152, 0.988).lineTo(-0.112, 0.823).lineTo(-0.006, 0.831).lineTo(0.009, 1).lineTo(0.133, 0.991).lin...
10
428
0.558313
train_f07e422f63542051
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.386, -0.116, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.611, 0.604).lineTo(0.611, -0.604).lineTo(-0.611, -0.604).lineTo(-0.611, 0.604).lineTo(0.611, 0.604).close().extrude(0.128) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.037...
28
101
0.124595
train_3fc8a9bb9b65c367
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, 0, 0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.375, -0.704).threePointArc((0.001, -1), (-0.374, -0.704)).lineTo(-0.435, -0.704).lineTo(-0.435, -0.553).lineTo(-0.469, -0.424).lineTo(-0.491, -0.424).lineTo(-0.509, 0.125).lineTo(-0.495...
9
415
1.563746
train_3752e7484a742b9f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.913, 0.001, -0.386), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.742, 0.997).threePointArc((-0.651, 0.97), (-0.613, 0.906)).lineTo(-0.613, -0.367).threePointArc((-0.523, -0.515), (-0.311, -0.578)).lineTo(1.076, -0.578).threePointArc((1.173, -0....
4
50
0.916621
train_8f02943f3ea1e1d6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.077, -0.223), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.131).lineTo(1, 0.102).threePointArc((0.952, 0.089), (0.858, 0.084)).lineTo(-0.326, 0.084).threePointArc((-0.457, 0.076), (-0.513, 0.059)).lineTo(-0.513, -0.047).threePointArc((-0.4...
5
37
0.11809
train_4d03a39048652ff7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0).threePointArc((0, -1), (-1, 0)).threePointArc((0, 1), (1, 0)).close().extrude(0.211) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.42, -0.126, -0.137), normal=(0, 0, 1), xDir=(1...
9
125
0.579581
train_e2f8e11306cbd7ac
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.037, -0.164), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.423, 0.525).threePointArc((0.5, 0.531), (0.526, 0.482)).lineTo(0.526, 0.31).threePointArc((0.554, 0.23), (0.638, 0.169)).lineTo(0.892, 0.056).threePointArc((0.962, -0.007), (0.892, -0....
8
188
0.823163
train_5cf545a432e4af1b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.002, -0.165, -0.239), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.438, 0.749).lineTo(0.438, -0.546).threePointArc((-0.438, 0.102), (0.438, 0.749)).close().moveTo(0.011, 0.442).lineTo(0.026, 0.262).lineTo(0.203, 0.224).lineTo(0.036, 0.154).lineT...
4
53
1.233298
train_897616dc95f5ee2d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.358, -0.288, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.768).threePointArc((0.544, 0.544), (0.768, 0)).lineTo(0.367, 0).threePointArc((0.259, 0.259), (0, 0.367)).lineTo(0, 0.768).close().extrude(2) result = result.union(cq.Workplane(cq...
8
20
0.853136
train_6f38f8270ecac97d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.031, -0.007, -0.248), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.737, -0.08).lineTo(0.984, -0.129).lineTo(0.971, -0.207).lineTo(0.722, -0.165).lineTo(0.7, -0.242).lineTo(0.931, -0.344).lineTo(0.901, -0.418).lineTo(0.668, -0.321).lineTo(0.628, ...
7
156
0.762296
train_b745a5f9fe337d8e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.746, -0.493, -0.559), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.492).threePointArc((1.055, 1.055), (1.492, 0)).lineTo(0.373, 0).threePointArc((0.265, 0.265), (0, 0.373)).lineTo(0, 1.492).close().extrude(1.118) result = result.union(cq.Work...
6
48
1.121345
train_134565a48e5dd099
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.101, 0, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.837, 0.861).threePointArc((0.88, 0.844), (0.898, 0.805)).lineTo(0.898, -0.547).threePointArc((0.799, -0.768), (0.561, -0.861)).lineTo(-0.689, -0.861).threePointArc((-0.836, -0.804), (-...
9
50
0.95096
train_f87b1dd1a1ee3b57
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.421), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.332, 0.983).lineTo(-0.332, -0.436).lineTo(0.981, -0.436).lineTo(0.981, -0.983).lineTo(-0.981, -0.983).lineTo(-0.981, 0.983).lineTo(-0.332, 0.983).close().extrude(0.089, taper=-10.445) res...
4
28
0.746312
train_683fb3e95b35731d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.272, -0.163), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.373, 0.719).lineTo(0.373, -0.728).lineTo(-0.363, -0.728).threePointArc((-0.37, -0.726), (-0.373, -0.719)).lineTo(-0.373, 0.718).threePointArc((-0.37, 0.725), (-0.362, 0.728)).lineTo(0...
20
99
0.366105
train_d5554d6581ba1942
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.191, 0, -0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.125, 0.762).lineTo(0.291, 0.718).threePointArc((0.375, 0.65), (0.48, 0.613)).lineTo(0.66, 0.442).threePointArc((0.687, 0.374), (0.735, 0.319)).lineTo(0.804, 0.079).threePointArc((0.79...
8
112
0.518324
train_32d52d582d84343a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.26, 0.156).threePointArc((0.292, 0.143), (0.305, 0.111)).lineTo(0.305, -0.125).threePointArc((0.296, -0.147), (0.275, -0.156)).lineTo(-0.277, -0.156).threePointArc((-0.297, -0.148), (-0.30...
13
134
0.047491
train_8d376cea3e24467c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.755, -0.155, -0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.07, 0.168).threePointArc((0.1, 0.171), (0.119, 0.148)).threePointArc((0.202, 0.114), (0.236, 0.031)).threePointArc((0.241, 0.022), (0.241, 0.013)).lineTo(0.243, -0.005).lineTo(0....
3
20
0.290364
train_0c8d499252e260f8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.391, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).box(0.936, 1.217, 1.162) result = result.edges().fillet(0.091) result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.391, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.167).extrude(1.873, both=...
9
111
0.998924
train_3c2ac5d348c0306b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.489, -0.268, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.975).threePointArc((0.693, 0.693), (0.975, 0)).lineTo(0.338, 0).threePointArc((0.241, 0.241), (0, 0.338)).lineTo(0, 0.975).close().extrude(2) result = result.union(cq.Workplane(cq...
22
73
1.102937
train_9a446aea55375bd3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.021, 0.524, -0.167), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.068, -0.271).lineTo(0.068, -0.271).lineTo(0.068, 0.135).lineTo(0.268, 0.135).lineTo(0.268, 0.271).lineTo(-0.268, 0.271).lineTo(-0.268, 0.135).lineTo(-0.068, 0.135).lineTo(-0.068, ...
11
98
0.100298
train_f3ec2a17f7f97d96
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(1).extrude(0.198) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.859).extrude(0.593, both=True)) result = result.union(cq.Workpl...
15
53
0.451162
train_5ec4d221f40e8a0d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.612), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.865, 0.409).lineTo(0.865, -0.409).lineTo(-0.865, -0.409).lineTo(-0.865, 0.409).lineTo(-0.619, 0.409).lineTo(-0.619, -0.29).lineTo(0.619, -0.29).lineTo(0.619, 0.409).lineTo(0.865, 0.409).cl...
5
75
0.850938
train_499ebea2375154c7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.552, -0.017, 0.606), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.394, 0.461).lineTo(0.394, 0.074).lineTo(-0.394, 0.074).lineTo(-0.394, 0.2).lineTo(-0.394, 0.461).lineTo(-0.322, 0.461).threePointArc((-0.311, 0.424), (-0.338, 0.396)).threePointA...
7
216
0.456275
train_fb6edc098c0d72c8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.107, -0.574), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.12, 0.77).threePointArc((0.176, 0.74), (0.2, 0.668)).lineTo(0.2, 0.374).threePointArc((0.227, 0.292), (0.291, 0.257)).lineTo(0.51, 0.257).threePointArc((0.573, 0.223), (0.6, 0.142)).li...
11
143
1.700104
train_d8ade06a9fc2d3ac
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.149, 0.302, -0.133), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.173, 0.012).threePointArc((-0.212, 0.017), (-0.096, 0.023)).lineTo(0.135, -0.012).threePointArc((0.212, -0.012), (0.058, -0.023)).lineTo(-0.173, 0.012).close().extrude(0.035, both...
11
156
0.675864
train_d960fdee1cfbaa04
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.076, -0.101, -0.583), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.909, 1.444).threePointArc((1.141, 1.246), (1.285, 0.988)).threePointArc((1.371, 0.726), (1.444, 0.482)).threePointArc((1.522, 0.246), (1.576, 0)).threePointArc((1.556, -0.252), (1...
11
235
0.555785
train_30c00d42c26977b3
import cadquery as cq import math result = cq.Workplane('XY').moveTo(0.255, 0.374).lineTo(0.452, -0.374).lineTo(-0.452, -0.374).lineTo(-0.255, 0.374).lineTo(0.255, 0.374).close().extrude(6.743, both=True).intersect(cq.Workplane('XZ').moveTo(0.334, 1).lineTo(0.452, -1).lineTo(-0.452, -1).lineTo(-0.334, 1).lineTo(0.334, ...
4
32
0.864658
train_8b71357cbd218587
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.222, -0.604, 0.4), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.233, 0.384).lineTo(0.233, -0.384).threePointArc((-0.233, 0), (0.233, 0.384)).close().revolve(angleDegrees=180, axisStart=(-1.041, -0.604), axisEnd=(1.041, -0.604)) result = result....
4
248
1.141179
train_ea944b68baf24045
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 1).lineTo(1, -0.427).threePointArc((0.49, -0.49), (0.427, -1)).lineTo(-1, -1).lineTo(-1, 0.458).threePointArc((-0.5, 0.5), (-0.458, 1)).lineTo(1, 1).close().extrude(0.104) result = result...
12
142
0.344414
train_659767feb6a8cb73
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.192, 0, 0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.803, 0.434).lineTo(0.803, -0.434).lineTo(-0.402, -0.434).lineTo(-0.402, 0).lineTo(-0.803, 0).lineTo(-0.803, 0.434).lineTo(0.803, 0.434).close().extrude(0.355, both=True) result = resul...
24
115
1.007365
train_3289a1c77566eb8f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.128, -0.115, -0.506), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.366, 0.885).lineTo(0.366, 0.684).threePointArc((0.083, 0.555), (0.366, 0.555)).lineTo(0.366, 0.339).lineTo(0.772, 0.339).lineTo(0.876, -0.644).lineTo(0.772, -0.885).lineTo(-0.876,...
6
111
1.60427
train_c4d571a8d5884e77
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.392, 0.34).lineTo(0.392, 0.192).lineTo(0.074, 0.192).lineTo(0.074, -0.34).lineTo(-0.074, -0.34).lineTo(-0.074, 0.192).lineTo(-0.392, 0.192).lineTo(-0.392, 0.34).lineTo(0.392, 0.34).close().ext...
4
22
0.218323
train_e807fc9b790a4400
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.055, -0.045, -0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.139, 0.635).lineTo(0.139, 0.381).lineTo(0.696, 0.381).lineTo(0.696, 0.127).lineTo(0.418, 0.127).lineTo(0.418, -0.381).lineTo(0.139, -0.381).lineTo(0.139, -0.635).lineTo(-0.139, -...
16
229
0.138523
train_1d0f640010a63783
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.377, 0, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.445, 0.405).threePointArc((0.59, 0.344), (0.651, 0.199)).lineTo(0.651, -0.23).threePointArc((0.599, -0.353), (0.475, -0.405)).lineTo(-0.318, -0.405).threePointArc((-0.553, -0.308), (-0...
5
51
0.213351
train_801099a7cd4eb128
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.125, -0.999, 0.223), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.028, 0.259).lineTo(0.107, 0.213).lineTo(0.135, 0.073).lineTo(0.028, -0.021).lineTo(-0.107, 0.025).lineTo(-0.135, 0.164).lineTo(-0.028, 0.259).close().extrude(2) result = result.u...
7
94
0.162061
train_c3d033e744b65e1c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.532, 2).extrude(0.232) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.568, 0.003).lineTo(0.568, -0.003).lineTo(-0.568, -0.003)....
11
26
0.703469
train_eeba85f4f4777951
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.074), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.137).lineTo(0.816, 0).lineTo(1, -0.137).lineTo(0.325, -0.137).lineTo(0.325, 0.137).lineTo(1, 0.137).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0)) result = r...
6
50
0.392346
train_8536797a7d719671
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.071, 0.262, 0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.636, 0.738).threePointArc((0.708, 0.708), (0.738, 0.636)).lineTo(0.738, 0.185).threePointArc((0.714, 0.129), (0.659, 0.105)).lineTo(-0.483, 0.105).threePointArc((-0.514, 0.092), (-...
5
122
1.060618
train_e7968b3930e12161
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.02, -0.005, -0.177), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.652, 0.713).lineTo(-0.191, -0.138).threePointArc((-0.159, -0.169), (-0.118, -0.157)).lineTo(0.317, 0.164).threePointArc((0.326, 0.167), (0.335, 0.162)).lineTo(0.48, 0).threePoint...
28
57
0.377322