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_e82b9122a2b51c82
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.015, 0.232, -0.243), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.759, 0.777).extrude(0.317) result = result.union(cq.Workplane(cq.Plane(origin=(-0.061, 0.316, 0.063), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.008, -0.01).lineTo(-0.093, -0.032)...
12
80
0.24619
train_69ba96ee714f7044
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.343, -0.165, -0.171), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.298, 0.154).threePointArc((-0.329, 0.088), (-0.346, 0.018)).threePointArc((0.346, -0.154), (-0.298, 0.154)).close().sweep(cq.Workplane('XY').spline([(0.045, -0.165), (0.304, -0...
7
40
0.70332
train_5c856108af39c98a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.569, 0.696, -0.121), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.04, -0.03).lineTo(-0.04, -0.026).lineTo(-0.031, -0.026).lineTo(-0.031, 0.028).lineTo(-0.031, 0.03).lineTo(-0.03, 0.03).lineTo(-0.03, -0.026).lineTo(0.04, -0.026).lineTo(0.04, -0...
18
125
0.157294
train_27e10b6dab322545
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.842, -0.899, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.969, 0.23).lineTo(1.015, 1.376).lineTo(0.046, 1.987).lineTo(-0.969, 1.454).lineTo(-1.015, 0.308).lineTo(-0.046, -0.303).lineTo(0.969, 0.23).close().extrude(1.799) result = result.edge...
24
133
4.290814
train_066cd98626f59fcb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.132, 0, -0.212), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.736, 1.266).extrude(0.863) result = result.faces('>Z').shell(-0.075) result = result.union(cq.Workplane(cq.Plane(origin=(-0.112, 0.118, -0.413), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(...
25
25
0.543757
train_17bded6f246450c0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.222, -0.475, -0.731), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.297, 0.542).lineTo(-0.297, 0.792).lineTo(0.297, 0.792).lineTo(0.297, 0.534).lineTo(-0.085, 0.534).lineTo(-0.085, -0.001).lineTo(-0.297, -0.001).lineTo(-0.297, 0.542).close().extr...
10
73
0.274788
train_43c1c0e4c9c0937a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.455, -0.091, -0.503), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.09, 0.859).extrude(0.323) result = result.union(cq.Workplane(cq.Plane(origin=(0.455, -0.071, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.809, 0.729).extrude(0.068)) result = ...
13
80
0.448687
train_f76c94adf28525a3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.538, 0.506, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.74, 0.871).lineTo(0.74, 0.086).lineTo(-0.74, 0.086).lineTo(-0.74, 0.99).lineTo(-0.047, 0.99).lineTo(-0.047, 0.871).lineTo(0.74, 0.871).close().workplane(offset=0.2).moveTo(0.316, 0.68)...
2
11
0.829412
train_ee4bd0db500e5c19
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.016, -0.285, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.649, 1.43).extrude(0.633) result = result.union(cq.Workplane(cq.Plane(origin=(-0.297, -0.299, -0.036), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.21, 0.453).threePointArc((-0.27, ...
26
196
0.671901
train_6663ac2d1a73fecd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.98).extrude(0.058) result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.792 + 0.099, 0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.033, 0).lineTo(0.033, -0.011).lineTo(0.044, 0...
23
79
0.178794
train_7d234c772a70c507
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.026, 0.092, 0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.266, 0.459).extrude(0.091) result = result.union(cq.Workplane(cq.Plane(origin=(0.034, 0.092, 0.148), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.114).extrude(0.017)) result = result.u...
28
177
0.123095
train_ac009ddda589b3fc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.854, 0.502, 0.502), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.502, 1.296).lineTo(-0.502, 0.411).lineTo(0.502, 0.411).lineTo(0.502, 1.296).lineTo(-0.502, 1.296).close().revolve(angleDegrees=180, axisStart=(-0.502, 1.296), axisEnd=(-0.502, 0.8...
19
112
1.018501
train_2cdaf47151582e76
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.269, 0.062, 0.012), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.731, 0).lineTo(0.731, -0.148).lineTo(0.268, -0.172).lineTo(0.143, -0.178).lineTo(-0.143, -0.178).lineTo(-0.268, -0.172).lineTo(-0.731, -0.148).lineTo(-0.731, 0.148).lineTo(-0.268,...
16
123
0.016946
train_393de530b302c967
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.596, 0.05, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.336, 0.556).extrude(0.271) result = result.union(cq.Workplane(cq.Plane(origin=(-0.596, 0.069, 0.208), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.222, 0.483).extrude(0.036)) result = r...
19
182
0.913288
train_2c40aa6bc3ec789c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.121, 0.114, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.06, -0.737).lineTo(0.06, -0.855).lineTo(-0.06, -0.855).lineTo(-0.06, 1.097).lineTo(0.06, 1.097).lineTo(0.06, -0.737).close().workplane(offset=0.055).moveTo(0.054, -0.661).lineTo(0.054,...
15
120
0.028363
train_cad75136d9b78458
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.019, 0.774, -0.077), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.097, 0.03).lineTo(-0.064, -0.013).lineTo(-0.064, 0.013).lineTo(-0.045, -0.013).lineTo(-0.032, -0.03).lineTo(-0.032, -0.056).lineTo(0.032, -0.056).lineTo(0.032, -0.03).lineTo(0.0...
8
104
0.01579
train_cf301a06b9434416
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.992, 0.725, -0.248), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.706, 1.019).threePointArc((0, 1.725), (0.706, 1.019)).lineTo(0.706, -0.275).lineTo(-0.706, -0.275).lineTo(-0.706, 1.019).close().extrude(1.368) result = result.edges().chamfer(0....
5
36
3.449588
train_d6327bd6ca9af941
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.18, -0.347, 0.217), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.783, 0.046).lineTo(-0.783, 0.437).lineTo(0.783, 0.437).lineTo(0.783, 0.046).lineTo(-0.783, 0.046).close().extrude(0.266) result = result.edges().chamfer(0.102) result = result.cut...
15
105
0.152443
train_a919046ad8f3d73b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.228, 0.512, 0.003), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.231, 1.512).lineTo(-0.231, -0.488).lineTo(0.231, -0.488).lineTo(0.231, 1.512).lineTo(-0.231, 1.512).close().revolve(angleDegrees=90, axisStart=(-0.231, 1.512), axisEnd=(-0.231, -0...
13
168
0.291259
train_a0f23db12332ad35
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.262, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.558, 0.211).lineTo(-0.138, 0.806).lineTo(0.558, 0.313).lineTo(0.138, -0.281).lineTo(-0.558, 0.211).close().extrude(2) result = result.edges().chamfer(0.127) result = result.cut(cq.Workpl...
4
31
1.115796
train_fd3b379a956051d2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.273, 0.13, -0.113), normal=(0, -1, 0), xDir=(0, 0, 1))).lineTo(0.22, -0.651).lineTo(0.22, 1.179).lineTo(0.22, 1.196).close().workplane(offset=0.069).lineTo(0.235, -0.712).lineTo(0.235, 1.241).lineTo(0.235, 1.259).close().workplane(offset=0.063)....
8
46
0.060395
train_e7ad949999d8e31a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.425, -0.34, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.046).lineTo(1, 0.046).lineTo(1, 0.634).lineTo(-1, 0.634).lineTo(-1, 0.458).lineTo(-0.235, 0.458).lineTo(-0.235, 0.222).lineTo(-1, 0.222).lineTo(-1, 0.046).close().extrude(0.851) re...
2
17
0.653993
train_ab1ecfb163eb15a3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.187, 0, -0.078), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.078, -0.658).lineTo(0.078, -0.813).lineTo(-0.078, -0.813).lineTo(-0.078, 1.187).lineTo(0.078, 1.187).lineTo(0.078, -0.658).close().revolve(angleDegrees=360, axisStart=(0.078, -0.658),...
11
71
0.145593
train_636c4a37043ff458
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.291, -0.24, -0.549), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.709, 0.029).lineTo(-0.709, 0.681).lineTo(-0.116, 0.734).lineTo(0.552, 0.607).lineTo(0.709, 0.576).lineTo(0.546, 0.029).lineTo(-0.709, 0.029).close().extrude(0.661) result = resul...
29
92
0.470559
train_515f06a2c79dcae3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.815, -0.653), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.768).lineTo(-1, 0.863).lineTo(-0.048, 0.863).lineTo(-0.048, 1.815).lineTo(0.048, 1.815).lineTo(0.048, 0.863).lineTo(1, 0.863).lineTo(1, 0.768).lineTo(0.048, 0.768).lineTo(0.048, -...
6
44
0.342663
train_e1f86ee20ddd471b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.685, 0, 0.515), normal=(1, 0, 0), xDir=(0, 0, 1))).lineTo(-0.514, -0.816).lineTo(-0.514, 0.816).close().sweep(cq.Workplane('XZ').spline([(0.35, -0.09), (0.369, 0.217), (0.232, 0.461), (0.01, 0.514), (-0.179, 0.348), (-0.237, 0.051)])) result = r...
4
10
0.268001
train_468d8878d64b6b61
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.069, 0, -0.262), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.524, 0.203).lineTo(-0.656, 0.378).lineTo(0.656, 0.378).lineTo(0.656, 0.203).lineTo(0.437, -0.087).lineTo(0.218, -0.378).lineTo(-0.218, -0.378).lineTo(-0.218, -0.203).lineTo(-0.305, -0...
16
14
0.611498
train_193ca4c5c630967a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.196, 0, -0.327), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.608, 1.645).extrude(0.653) result = result.union(cq.Workplane(cq.Plane(origin=(0.786, 0.267, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.214).extrude(0.194)) result = result.cu...
3
13
1.708492
train_ddd9000c60465a1f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.393, 0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.142, 0.311).lineTo(0.164, 0.332).lineTo(-0.164, 0.332).lineTo(-0.142, 0.311).lineTo(-0.142, 0.026).lineTo(0.142, 0.026).lineTo(0, 0.168).lineTo(0.142, 0.311).close().revolve(angleDegree...
6
49
0.16428
train_b1606c8d19bb7912
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.028, -0.17, -0.406), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.289, -0.123).lineTo(-0.289, 0.18).lineTo(0.289, 0.18).lineTo(0.289, -0.123).lineTo(-0.289, -0.123).close().extrude(0.468) result = result.edges().fillet(0.038) result = result.un...
12
173
0.184273
train_e2f838a995d5af0d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.09, -0.406), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.91).extrude(0.812) result = result.union(cq.Workplane(cq.Plane(origin=(-0.006, -0.644, 0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.427, 0.246).extrude(0.257)) result = result.un...
4
64
1.549857
train_3efa9ca0e0053d89
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.527, 1.782).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.17, -0.53, -0.561), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.144).extrude(1.255)) result = result.cut(cq.Workplane(c...
19
159
2.936342
train_d66f0174fbab4716
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.217, -0.171, 0.722), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.295).sweep(cq.Workplane('XZ').spline([(-0.128, 0.014), (-0.045, -0.061), (0.045, -0.061), (0.128, 0.014), (0.128, 0.094), (0.045, 0.169), (-0.045, 0.169), (-0.128, 0.094)])) result...
17
32
1.203874
train_30f6f9482896dbc2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.08, -0.247, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.761, 0.274).lineTo(-0.152, 0.03).lineTo(0.761, 0.274).lineTo(-0.761, 0.274).close().extrude(0.444) result = result.union(cq.Workplane(cq.Plane(origin=(0.08, -0.095, 0.464), normal=...
10
77
0.753743
train_65039b9b778b8ea8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.439, -0.47), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.251, -0.409).lineTo(-0.251, 0.757).lineTo(0.251, 0.757).lineTo(0.251, -0.561).lineTo(-0.251, -0.561).lineTo(-0.251, -0.409).close().extrude(0.484) result = result.edges().fillet(0.059...
14
129
0.288563
train_3b2f6ef7375e5d1c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.719, -0.828, 0.071), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.398, 1.279).lineTo(0.398, 1.279).lineTo(0.398, 0.715).lineTo(0, 0.715).lineTo(0, -0.188).lineTo(-0.398, -0.188).lineTo(-0.398, 1.279).close().revolve(angleDegrees=90, axisStart=...
17
112
0.478933
train_fad019fa5eb330c8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.014, -0.012, 0.192), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.037, 0.822).threePointArc((0, -0.794), (0.037, 0.822)).lineTo(0.037, 0.71).threePointArc((0, 0.711), (-0.037, 0.71)).lineTo(-0.037, 0.822).close().extrude(0.03) result = result.e...
7
62
0.05955
train_3bfcda5e2df929e1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.556, 0.157, -0.239), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.18, 0.157).lineTo(-0.076, 0.411).threePointArc((-0.18, 0.156), (-0.074, -0.098)).lineTo(0.18, 0.157).close().extrude(0.429) result = result.edges().chamfer(0.1) result = result.un...
9
65
0.086295
train_05ad805259969f7e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.003, 0.001, -0.021), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.808, 0.647).threePointArc((-0.856, 0.049), (-0.918, -0.549)).lineTo(0.808, -0.647).threePointArc((0.869, -0.031), (0.918, 0.586)).lineTo(-0.808, 0.647).close().workplane(offset=...
5
44
2.426504
train_f5a35bb424de7991
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.007, -0.42), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.478, 0.354).threePointArc((-0.48, 0.309), (-0.478, 0.263)).threePointArc((-0.162, -0.165), (0.362, -0.071)).lineTo(0.48, 0.086).threePointArc((0.16, 0.791), (-0.478, 0.354)).close()....
8
34
2.383972
train_18b18d9eb9877ec2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.327), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.471, 0.471).threePointArc((-0.942, 0), (-0.471, -0.471)).lineTo(0.471, -0.471).threePointArc((0.942, 0), (0.471, 0.471)).lineTo(-0.471, 0.471).close().workplane(offset=0.11).moveTo(-0.454...
14
186
0.861601
train_2bea592dc1166a52
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.765, 2).extrude(0.781) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.33, -0.335, -0.523), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.212, 0.547).extrude(0.937)) result = result.cut(cq.W...
4
12
2.616362
train_7daeb0bfe31e6506
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.593, 0.425, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.593, 1.07).threePointArc((0.929, 0.353), (0.593, -0.361)).threePointArc((0, -0.575), (-0.593, -0.361)).threePointArc((-0.929, 0.353), (-0.593, 1.07)).lineTo(-0.593, 1.245).threePointArc...
1
7
2.693559
train_44c9239789365a8d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.44, 0.994, -0.035), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.294, 0.389).threePointArc((-0.566, -0.185), (0.061, -0.285)).threePointArc((0.566, -0.389), (0.534, 0.126)).threePointArc((0.377, -0.007), (0.177, -0.059)).threePointArc((0.18, 0.0...
2
16
1.357907
train_b9cf791f2934710d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.129, 0.164, -0.522), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.743, 1.398).extrude(0.574) result = result.union(cq.Workplane(cq.Plane(origin=(0.167, 0.162, -0.74), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.718, 0.305).extrude(0.233)) result = r...
11
64
1.368085
train_c891e06d3ec757e1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.031, -0.143, -0.515), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.307, 0.739).extrude(0.077) result = result.union(cq.Workplane(cq.Plane(origin=(-0.015, -0.097, -0.439), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.854, -0.055).lineTo(0.854, -0.0...
25
248
0.62481
train_b8d47a1520ed6f64
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.05, -0.022, -0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.577, 1.658).extrude(0.075) result = result.union(cq.Workplane(cq.Plane(origin=(-0.419, -0.289, -0.157), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.594, 0.392).lineTo(0.06, 0.392)....
5
48
0.81876
train_90ba2e3c99c43777
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.075, 0.022), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.678, -0.253).threePointArc((-0.911, -0.157), (-1.007, 0.075)).threePointArc((-0.911, 0.306), (-0.678, 0.403)).lineTo(-0.166, 0.403).threePointArc((-0.128, 0.408), (-0.093, 0.423)).th...
18
287
2.64801
train_7a71226897da2a9d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.037, 0.179), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.732, -1.037).threePointArc((0, -0.794), (0.732, -1.037)).lineTo(0.732, 0.305).threePointArc((0, 1.037), (-0.732, 0.305)).lineTo(-0.732, -1.037).close().extrude(0.357) result = result....
9
48
0.767695
train_b7ef7a18dea0c652
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.004, -0.45, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.778, 1.099).extrude(0.232) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.004, -0.335, -0.801), normal=(0, 1, 0), xDir=(1, 0, 0))).circle(0.024).moveTo(0.009, -0.011).lineTo(0...
12
180
0.326331
train_3b57b468983c713b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.102, 0.112, -0.054), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.076, -0.888).threePointArc((-0.001, -0.447), (-0.157, -0.027)).threePointArc((-0.18, 0.041), (-0.188, 0.112)).lineTo(0.076, 0.112).lineTo(0.076, 1.112).lineTo(0.188, 1.112).lineTo...
8
108
0.063106
train_9bef314a6eb46bcc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.373), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.367, 2).extrude(0.256) result = result.union(cq.Workplane(cq.Plane(origin=(-0.147 + 0.0365, 0, -0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.016, 0.023).lineTo(-0.016, -0.023).lineTo...
27
176
0.164204
train_ce8821c3a1e01905
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.552, 1, 0.019), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.568, 0.157).lineTo(0.568, -0.213).lineTo(0.254, 0.753).lineTo(-0.568, 1.35).lineTo(-0.568, 0.157).close().extrude(2) result = result.edges().chamfer(0.121) result = result.cut(cq.Work...
9
56
1.623582
train_4d43d15bcb8b65e5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.476), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.283).extrude(0.951) result = result.faces('>Z').shell(-0.091) result = result.edges().chamfer(0.044)
3
51
0.706151
train_6fa424eebb2a0f6f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.283, -0.17, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.433, 1.166).extrude(0.195) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.283, 0.181, -0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.151, 0.488).extrude(0.084)) result = r...
16
121
0.277078
train_2ed1cefec236affd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.172, 0.048, -0.223), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.75, 0.079).lineTo(-0.828, 0).lineTo(-0.75, -0.079).lineTo(0.75, -0.079).lineTo(0.805, -0.056).lineTo(0.828, 0).lineTo(0.805, 0.056).lineTo(0.75, 0.079).lineTo(-0.75, 0.079).close...
16
145
0.088123
train_48599abe8eeb684c
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.134).workplane(offset=0.738).circle(0.1).workplane(offset=0.53).circle(0.128).workplane(offset=0.732).circle(0.135).loft() result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.799 + 0.133, ...
8
108
0.085184
train_492f065ff4bb6c82
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.018, -0.055, 0.035), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.37, 0.261).lineTo(-0.37, -0.261).lineTo(0.328, -0.261).lineTo(0.328, -0.283).lineTo(-0.392, -0.283).lineTo(-0.392, 0.283).lineTo(0.392, 0.283).lineTo(0.392, -0.044).lineTo(0.37, -...
3
20
0.093095
train_7069913f067959d0
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.209).workplane(offset=0.723).circle(0.127).workplane(offset=0.753).circle(0.246).workplane(offset=0.537).circle(0.196).loft() result = result.edges().chamfer(0.192) result = result.cut(cq.Work...
18
18
0.18174
train_220cc53e9bc29f2f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.919, -0.049, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1).sweep(cq.Workplane('XY').spline([(-0.414, -0.049), (0.09, -0.147), (0.596, -0.505)])) result = result.edges().chamfer(0.079) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.793...
9
51
3.463183
train_8b765867bdfcc8f2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.695, 0.211, 0.224), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.07, -0.703).threePointArc((-0.262, -0.411), (-0.226, 0.03)).lineTo(-0.305, 0.63).threePointArc((-0.172, 0.555), (-0.136, 0.703)).lineTo(0.011, 0.524).lineTo(0.297, -0.186).threePo...
2
18
0.119652
train_398c62236f38ddb5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.219, 0.393, -0.016), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.577, 1.219).threePointArc((0.371, 0.433), (0.577, -0.781)).threePointArc((-0.256, 0.071), (-0.577, 1.219)).close().extrude(0.786) result = result.faces('>Z').shell(-0.06)
2
7
0.230704
train_ec733ecb6ab0e026
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 1.034, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.145, 0.034).threePointArc((-0.355, 0.534), (0.145, 1.034)).lineTo(0.355, 1.034).lineTo(0.355, 0.904).lineTo(0.145, 0.904).threePointArc((-0.225, 0.534), (0.145, 0.164)).lineTo(0.199, 0.164)...
8
83
0.835365
train_e3eb78e369927964
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.001, 0.085, -0.413), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.331, 0.72).extrude(1.081) result = result.cut(cq.Workplane(cq.Plane(origin=(0.092, -0.002, 0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.055).extrude(0.3)) result = result.cut...
9
37
1.064068
train_9e456e3685dddd43
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.182, 0, 0.059), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.202, 0.316).lineTo(-0.202, -0.316).lineTo(0.138, -0.316).threePointArc((0.183, -0.297), (0.202, -0.252)).lineTo(0.202, 0.252).threePointArc((0.183, 0.297), (0.138, 0.316)).lineTo(-0.2...
2
13
0.35308
train_ee4a6b63b3312c0f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.923, -0.104, -0.637), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.057, 0.112).lineTo(-0.057, 0.024).threePointArc((-0.076, 0.005), (-0.057, -0.015)).lineTo(-0.057, -0.112).lineTo(0.076, -0.112).lineTo(0.076, 0.112).lineTo(-0.057, 0.112).close...
1
8
0.016531
train_e267fffcc80cb627
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.16, -0.029, 0.1), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.072, -0.767).lineTo(-0.072, -0.63).threePointArc((0, 0.84), (0.072, -0.63)).lineTo(0.072, -0.767).lineTo(-0.072, -0.767).close().extrude(0.117) result = result.edges().fillet(0.028...
9
203
0.233669
train_2a957f3dacc9d7f9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.08, 0.76, -0.261), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.08, 0.24).lineTo(-0.24, 0.08).lineTo(0.08, 0.08).lineTo(0.08, -0.08).lineTo(-0.08, -0.08).lineTo(-0.08, -0.24).lineTo(0.08, -0.24).lineTo(0.24, -0.08).lineTo(0.24, 0.08).lineTo(0....
4
24
0.251427
train_ba232e66a29a95f0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.5, -0.214, -0.5), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.5, -0.12).lineTo(0.5, -0.204).lineTo(0.004, -0.204).lineTo(0.004, -0.12).lineTo(-0.5, -0.12).lineTo(-0.5, 0.549).lineTo(0.004, 0.549).lineTo(0.004, 0.632).lineTo(0.5, 0.632).lineTo(...
1
8
1.115398
train_070dbcc04fd8d327
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.53, -0.066, -0.156), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.295, -0.511).lineTo(0.295, -0.42).lineTo(0.318, -0.42).lineTo(0.318, 0.091).lineTo(0.295, 0.091).lineTo(0.295, 0.238).lineTo(0.318, 0.238).lineTo(0.318, 0.511).lineTo(-0.295, 0.5...
4
37
0.302555
train_b367415bcee3e87c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.018, 0, 0.73), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1.063).workplane(offset=0.418).circle(0.92).workplane(offset=0.443).circle(0.777).workplane(offset=0.414).circle(0.634).loft() result = result.edges().fillet(0.15) result = result.faces('...
14
62
1.090665
train_6a79c85ffb704bb2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.62, -0.644, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.706, 1.352).threePointArc((-0.707, -0.063), (0.707, -0.063)).threePointArc((0.707, 1.351), (-0.706, 1.352)).close().extrude(1.276) result = result.edges().fillet(0.337) result = resul...
4
14
3.727086
train_e7975cba8e271d35
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.364, 0, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.78, 1.255).extrude(0.682) result = result.union(cq.Workplane(cq.Plane(origin=(0.313, 0.147, 0.538), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.223).extrude(0.331)) result = result.union...
11
83
0.702403
train_bc387c2df530f670
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.284, -2.262, 0.145), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.285, 1.061).lineTo(-0.126, 0.471).lineTo(0.126, 0.471).lineTo(0.285, 1.061).lineTo(0.777, 0.777).lineTo(1.061, 0.285).lineTo(0.471, 0.126).lineTo(0.471, -0.126).lineTo(0.345, -0.3...
2
14
1.119137
train_c7d0616983acf01f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.363, -0.848), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.073).extrude(1.375) result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.331 * math.cos(5.45 + 2 * math.pi * 0 / 8), 0.325 + 0.331 * math.sin(5.45 + 2 * math.pi * 0 / 8), -0.312...
26
161
2.944857
train_faa15a00f91d3b38
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.616, -0.297, -0.143), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.141, 0.052).lineTo(0.607, 0.052).lineTo(0.607, 0.555).lineTo(-0.607, 0.555).lineTo(-0.607, 0.319).lineTo(0.141, 0.319).lineTo(0.141, 0.052).close().extrude(0.777) result = result...
8
80
0.20521
train_77985cb3318a92ae
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.023, 0.249, -0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.734, 0.005).lineTo(0.551, 0.533).lineTo(-0.02, 0.751).lineTo(-0.548, 0.534).lineTo(-0.779, 0.005).lineTo(-0.55, -0.552).lineTo(0.006, -0.761).lineTo(0.555, -0.508).close().moveTo(-...
15
115
0.189509
train_dbf03d94a8bd57ce
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.65, -0.738, 0.376), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.376, -0.021).lineTo(-0.376, -0.129).lineTo(-0.108, -0.021).lineTo(0.376, -0.021).lineTo(0.376, 0.14).lineTo(0.108, 0.14).lineTo(0.108, 1.43).lineTo(-0.108, 1.43).lineTo(-0.108, 0....
6
54
0.855663
train_153e214f2c7638f1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.043, -0.453), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.114, 1.915).extrude(0.907) result = result.union(cq.Workplane(cq.Plane(origin=(0.112, 0.957, 0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.043).extrude(0.048)) result = result.cut...
8
35
1.854683
train_20ee12de39077c48
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.539, -0.261, -0.057), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.921, 0.842).extrude(0.094) result = result.union(cq.Workplane(cq.Plane(origin=(-0.202, 0.105, -0.015), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.315, 0.882).threePointArc((-0.006,...
16
95
0.469314
train_9d4fbba69da89a4a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.247, -0.992, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.247, 1.879).lineTo(0.247, 1.769).lineTo(0.15, 1.326).threePointArc((0.035, 1.355), (-0.082, 1.374)).lineTo(-0.082, 1.283).lineTo(-0.082, 1.19).lineTo(-0.082, -0.008).lineTo(-0.247, -...
8
64
0.229095
train_9d96a7852fc5050f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.016, 0, -0.564), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.645, 1.217).extrude(1.128) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.503 + 0.122, 0.226, -1.633), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.057, 0.036).lineTo(-0.057, 0.03...
27
14
2.262843
train_6c70fe81db489917
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.396, -0.709, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.429, -0.018).lineTo(0.298, -0.018).lineTo(0.298, -0.149).lineTo(0.429, -0.149).lineTo(0.429, 1.567).lineTo(0.298, 1.567).lineTo(0.298, 1.436).lineTo(-0.429, 1.436).lineTo(-0.429, -0....
3
22
1.524509
train_34641f1b92fc7db6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.063, 0, -0.714), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.228, 1.176).extrude(1.714) result = result.union(cq.Workplane(cq.Plane(origin=(-0.612, 0.07, 0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.131, 0.16).extrude(0.161)) result = result....
11
71
2.510926
train_2e0a1a2fd88e4268
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.155, -0.311), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.23, 0.082).lineTo(-0.23, 0.173).lineTo(-0.184, 0.173).lineTo(-0.184, 0.242).lineTo(0.23, 0.242).lineTo(0.23, 0.013).lineTo(-0.184, 0.013).lineTo(-0.184, 0.082).lineTo(-0.23, 0.082)....
9
106
0.075802
train_3b8b3ebf940e59c0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.162, -0.256, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.54, 0.669).threePointArc((0.594, 0.569), (0.648, 0.468)).lineTo(-0.573, -0.154).threePointArc((-0.609, -0.085), (-0.648, -0.017)).lineTo(0.54, 0.669).close().extrude(1.494) result = ...
16
111
0.236931
train_31c86b4f7072bb9e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.419, 2).extrude(0.624) result = result.cut(cq.Workplane(cq.Plane(origin=(0.539, 0.225, -0.077), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.357, 0.697).extrude(0.206)) result = result.edges()....
22
233
1.258829
train_e5cb697ba57a3ea9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.607, -1.177, -0.127), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1.536, 2.468).lineTo(0.811, 0.235).lineTo(-1.536, 0.235).lineTo(1.536, 2.468).close().workplane(offset=0.571).moveTo(1.202, 2.226).lineTo(0.635, 0.478).lineTo(-1.202, 0.478).lineTo...
18
80
0.819923
train_c549394d41671ee7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.176, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.098, 0.485).extrude(0.936) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.029, -0.027, -0.551), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.099).extrude(0.374)) result = result.cut(cq...
24
237
0.378989
train_0171eb6c5000194d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.564, -0.279, 0.157), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.064).lineTo(0.15, -0.196).lineTo(0.15, -0.217).threePointArc((0.155, -0.216), (0.161, -0.214)).threePointArc((0.3, -0.156), (0.421, -0.064)).lineTo(0.436, -0.091).threePointAr...
5
41
0.108493
train_2f9c7d9a7ec599a7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.056, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.78, 0.618).extrude(1.639) result = result.union(cq.Workplane(cq.Plane(origin=(0.378, 0.138, -0.721), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.094, 0.077).extrude(0.206)) result = result.cu...
8
58
0.857018
train_a5837c1b4327f2d7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.018, -1.124, -0.549), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.606, 2.188).lineTo(-0.606, 0.787).lineTo(0.606, 0.087).lineTo(-0.606, 2.188).close().extrude(1.097) result = result.edges().chamfer(0.073) result = result.cut(cq.Workplane(cq.Pla...
9
43
0.668714
train_7ea85dd7846d6d84
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.537, -0.58, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 1.537).lineTo(-0.4, 1.437).lineTo(-0.4, -0.363).lineTo(0, -0.363).lineTo(0, -0.463).lineTo(0.5, -0.463).lineTo(0.5, 1.537).lineTo(-0.5, 1.537).close().extrude(1.16) result = result...
10
48
1.380884
train_6eec4b1203157292
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.856, -0.561), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.597, -0.08).threePointArc((-0.755, 0.856), (0.597, 1.792)).lineTo(0.597, 1.224).threePointArc((0.755, 0.856), (0.597, 0.488)).lineTo(0.597, -0.08).close().extrude(2.012) result = resu...
3
11
2.135975
train_243b51cfd65bd50e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.133, -0.117, -0.715), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.99, 0.832).extrude(1.715) result = result.union(cq.Workplane(cq.Plane(origin=(0.161, 0.409, 0.228), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.124).extrude(0.458)) result = result....
12
114
1.037124
train_f4a2167129f24885
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.917, 2).extrude(0.625) result = result.union(cq.Workplane(cq.Plane(origin=(0.213, -0.329, -0.441), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.374).extrude(0.268))
2
8
2.509184
train_0b18c29bf6a198e4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.008, 0.02, -0.369), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.16, 0.16).extrude(0.416) result = result.union(cq.Workplane(cq.Plane(origin=(0.153, -0.012, -0.161), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.161, 0.108).lineTo(-0.839, 0.108).li...
10
86
0.027016
train_a5968ae36f4d669a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.479, -0.015, 0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.091, -0.871).lineTo(-0.091, -0.886).lineTo(0.091, -0.886).lineTo(0.091, 0.931).lineTo(-0.091, 0.931).lineTo(-0.091, -0.871).close().extrude(0.192) result = result.cut(cq.Workplane...
16
205
0.382084
train_ec18f0fc19ffa5c5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.48), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.638).extrude(0.751) result = result.union(cq.Workplane(cq.Plane(origin=(0.437, 0.122, 0.264), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.133).extrude(0.216)) result = result.edges().fille...
3
30
0.967808
train_25ea6d2a21cebf64
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.099), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.333, 0.333).lineTo(0.333, -0.279).lineTo(0.266, -0.209).lineTo(0.266, -0.266).lineTo(-0.209, -0.266).lineTo(-0.279, -0.333).lineTo(-0.333, -0.333).lineTo(-0.333, 0.333).lineTo(-0.279, 0....
3
25
0.399878