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_b59d2577e6ae27b1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.687, -0.039, 0.016), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.834, 1.039).threePointArc((0.879, 0.035), (1.014, -0.961)).lineTo(-1.014, -0.961).lineTo(-1.014, 1.039).lineTo(0.834, 1.039).close().extrude(1.374) result = result.edges().fillet(...
8
54
4.193298
train_ffe042bc42a92f30
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.51, 0.205), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.257, -0.157).lineTo(0.078, -0.157).lineTo(-0.018, -0.131).lineTo(-0.006, -0.086).lineTo(-0.269, -0.016).lineTo(-0.257, 0.029).lineTo(0.006, -0.042).lineTo(0.224, -0.101).lineTo(0.121, ...
2
25
0.217483
train_67c5408c1b2afa08
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.476, -0.488, -0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.58, 0.765).extrude(0.462) result = result.union(cq.Workplane(cq.Plane(origin=(-0.066, -0.635, 0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.255, 0.174).extrude(0.075)) result =...
22
314
1.167658
train_659b4a33d4dc2f6c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.143, 0.179, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.173, 0.117).extrude(0.02) result = result.union(cq.Workplane(cq.Plane(origin=(-0.143, 0.132, -0.129), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.009, -0.144).lineTo(0, -0.197).lin...
18
217
0.171881
train_8a85cde5fd90058f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.287, 0, 0.326), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.436).sweep(cq.Workplane('XZ').spline([(-0.884, -0.199), (-0.734, 0.11), (-0.586, -0.326), (-0.436, -0.508), (-0.287, -0.072), (-0.138, 0.11), (0.011, -0.326), (0.161, -0.508), (0.31, -...
2
3
0.621333
train_37511829365ccd6a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.056, -0.103, -0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.478, 1.042).extrude(0.56) result = result.faces('>Z').shell(-0.046) result = result.union(cq.Workplane(cq.Plane(origin=(-0.887, -0.079, -0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).r...
7
36
0.386911
train_4c880236140b75d0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.071, -0.718), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.87, 1.858).extrude(1.26) result = result.union(cq.Workplane(cq.Plane(origin=(0.567, -0.505, -0.147), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.269, 0.773).lineTo(0.269, 0.371).lineTo(...
19
78
1.649086
train_be8b9eebe0407d31
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.248, 0.09, -0.344), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.129, 0.118).threePointArc((-0.153, 0.108), (-0.164, 0.084)).lineTo(-0.164, 0.043).threePointArc((-0.153, 0.019), (-0.129, 0.009)).lineTo(0.129, 0.009).threePointArc((0.153, 0.019)...
9
88
0.397246
train_c6e4c746d81e2acd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.516, 0.095, 0.376), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.484, 0.242).lineTo(-0.242, 0).lineTo(0, -0.242).lineTo(0, 0).lineTo(0.242, 0).lineTo(0.484, -0.242).lineTo(0.484, 0.242).lineTo(-0.484, 0.242).close().sweep(cq.Workplane('XZ').sp...
10
61
0.308713
train_9ed66be194c4766e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(2.094, 0.568, 0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.199, 2.017).threePointArc((0, 0.871), (1.199, 2.017)).lineTo(-1.199, 2.017).close().revolve(angleDegrees=180, axisStart=(1.199, 2.017), axisEnd=(-1.199, 2.017)) result = result.ed...
19
55
0.869127
train_bd4d6c25e40a154f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.108, -0.001, -0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.102, -0.012).lineTo(0.304, 1.001).lineTo(-0.834, 0.633).lineTo(-0.887, -0.605).lineTo(0.359, -0.999).close().center(-0.387, 0.3).circle(0.103).center(0.775, 0).circle(0.128).move...
10
65
0.597617
train_38df820e5e526f3e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.951, 0, 0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.003, 0.003).lineTo(0.003, 0.049).lineTo(-0.003, 0.049).lineTo(-0.003, 0.003).lineTo(-0.049, 0.003).lineTo(-0.049, -0.003).lineTo(-0.003, -0.003).lineTo(-0.003, -0.049).lineTo(0.003, -0...
2
20
0.000323
train_c1cf110e326b2f57
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.526, -0.411, -0.089), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.449, 1.013).lineTo(0.449, 1.008).lineTo(0.449, 0.016).lineTo(-0.449, 0.008).lineTo(-0.449, 1.013).close().extrude(0.92) result = result.union(cq.Workplane(cq.Plane(origin=(0.509...
21
81
0.952623
train_15b83d0c842c4406
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.007, -0.856, -0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.04, -0.034).lineTo(-0.04, 0.027).threePointArc((-0.043, 0.034), (-0.037, 0.031)).lineTo(0.039, 0.031).lineTo(0.043, 0.031).lineTo(0.043, 0.027).lineTo(0.043, -0.03).lineTo(0.043,...
11
130
0.017447
train_692caa7916a5be70
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.001, 0.099, -0.101), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.38, -0.261).threePointArc((-0.081, 0.118), (0.38, 0.261)).lineTo(0.38, -0.261).lineTo(-0.38, -0.261).close().sweep(cq.Workplane('XY').spline([(-0.78, -0.32), (-0.557, -0.311), (-...
3
17
0.401064
train_67aecef725ba4193
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.601), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.036, 2).extrude(1.202) result = result.cut(cq.Workplane(cq.Plane(origin=(0.113, 0.215, 0.407), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.301).extrude(0.199)) result = result.edges().fillet...
13
72
1.39785
train_c72e9f3961446269
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.161, -0.333), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.485).extrude(0.121) result = result.union(cq.Workplane(cq.Plane(origin=(-0.109, 0.041, -0.215), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.213).extrude(0.032)) result = result.union...
16
106
0.438594
train_d2ea66f1f10d4fc1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.006, -0.778, -0.555), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.483, 0.672).threePointArc((0.636, 1.214), (0.309, 1.672)).threePointArc((-0.006, 1.428), (-0.321, 1.672)).threePointArc((-0.636, 0.94), (-0.006, 0.452)).threePointArc((0.262, 0.50...
11
58
1.332216
train_4ed75fd63c9e15db
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.172, -0.538), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.864, 1.657).extrude(1.075) result = result.union(cq.Workplane(cq.Plane(origin=(0.065, 0.818, -0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.159, 0.364).extrude(0.355)) result = resu...
11
145
1.463355
train_7fd15bfc3ef5d934
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.055), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.599, 0.4).lineTo(0.599, -0.343).lineTo(-0.656, -0.343).lineTo(-0.656, -0.4).lineTo(0.656, -0.4).lineTo(0.656, 0.4).lineTo(0.599, 0.4).close().sweep(cq.Workplane('XZ').spline([(-0.061, -0....
2
8
0.234508
train_3223f7e07005d22d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.28, -0.248, 0.199), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.569, 1.248).lineTo(0.569, 0.108).lineTo(-0.569, 0.108).lineTo(-0.569, 1.164).lineTo(-0.401, 1.164).lineTo(-0.401, 1.248).lineTo(0.569, 1.248).close().extrude(0.855) result = result...
5
29
1.050972
train_e478089ec36e6fb9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.688, 0.445, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.92, 1.495).lineTo(0.92, 1.415).lineTo(-1, 1.415).lineTo(-1, -0.119).lineTo(-0.92, -0.119).lineTo(-0.92, -0.039).lineTo(0.92, -0.039).lineTo(0.92, -0.119).lineTo(1, -0.119).lineTo(1, 1....
13
93
2.086597
train_b69ff0da215514cc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.13, -0.14, -0.14), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.112, 0.63).lineTo(0.126, 0.63).lineTo(0.126, -0.63).lineTo(-0.126, -0.63).lineTo(-0.126, 0.63).lineTo(-0.112, 0.63).close().workplane(offset=0.017).moveTo(-0.11, 0.616).lineTo(0.12...
12
190
0.174915
train_094fa75987792264
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.015, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.565, 0.794).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(-0.282, 0.011, 0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.016).extrude(0.218)) result = result.cut(cq.Workp...
10
82
0.884862
train_3b22940daf57f153
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.06, 0.037, 0.31), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.452, -0.488).threePointArc((-0.94, 0), (-0.452, 0.488)).lineTo(0.94, 0.488).lineTo(0.94, -0.488).lineTo(-0.452, -0.488).close().extrude(0.673) result = result.edges().chamfer(0.102...
5
35
1.110522
train_da2b3240ff742152
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.465), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.393, 0.678).extrude(0.742) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.243), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.225, 0.373).extrude(0.379)) result = result.union(cq.Wo...
14
111
0.271707
train_6b6b09799148d6aa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.543, 0.729, -0.303), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.488, 0.402).lineTo(-0.488, 1.057).lineTo(0.488, 1.057).lineTo(0.488, 0.402).lineTo(-0.488, 0.402).close().revolve(angleDegrees=90, axisStart=(-0.488, 0.402), axisEnd=(-0.488, 0.41...
16
89
0.291206
train_36634ddf65e2cf55
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.01, 0.116, 0.779), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.226, 0.501).lineTo(-0.453, -0.501).lineTo(0.453, -0.178).lineTo(0.39, 0.438).lineTo(-0.226, 0.501).close().extrude(0.26) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.01 + ...
19
94
0.301286
train_34f50d8a593ce3e8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.008, 0, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.527, 0.291).extrude(0.497) result = result.union(cq.Workplane(cq.Plane(origin=(-0.881, 0.032, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.238, 0.168).extrude(0.126)) result = resu...
15
52
0.171953
train_3dbdcc632aac8de1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.072, 0.061, -0.216), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.794, 0.061).lineTo(0.794, 0.007).lineTo(-0.794, 0.007).lineTo(-0.794, 0.114).lineTo(0.794, 0.114).lineTo(0.794, 0.061).close().extrude(0.109) result = result.edges().chamfer(0.052...
14
38
0.009743
train_879455dcf95ba411
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.281, -0.502, -0.318), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.247, 0.545).lineTo(-0.247, 0.522).lineTo(0.247, 0.522).lineTo(0.247, -0.498).lineTo(-0.247, -0.498).lineTo(-0.247, 0.545).close().extrude(0.505) result = result.edges().chamfer(...
13
144
0.280044
train_7211e134e31138fe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.272, -0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.568, 1.456).extrude(0.048) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.627 + 0.3135, -0.31 + 0.194, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.17, -0.104).lineTo(0.17,...
8
65
0.100623
train_dc245f8094888b46
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.02), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.184, 0.318).threePointArc((0.225, 0.415), (0.321, 0.455)).lineTo(0.321, 0.727).threePointArc((0.225, 0.768), (0.184, 0.864)).lineTo(-0.088, 0.864).threePointArc((-0.321, 0.96), (-0.225, 0.7...
5
26
1.113664
train_a31ca3c89ec52607
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.01, 0.22, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.914, -0.016).lineTo(0.45, 0.78).lineTo(-0.462, 0.747).lineTo(-0.893, -0.02).lineTo(-0.47, -0.785).lineTo(0.471, -0.782).close().moveTo(-0.267, -0.177).lineTo(-0.309, -0.102).lineTo(...
14
91
0.297388
train_90ff9f876642e789
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 1, -0.275), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.678, -0.58).lineTo(-0.678, 0.645).lineTo(-0.547, 0.645).lineTo(-0.547, -0.515).lineTo(0.547, -0.515).lineTo(0.547, 0.645).lineTo(0.678, 0.645).lineTo(0.678, -0.58).lineTo(0.613, -0.58).li...
4
25
0.596969
train_febe53c0171aa909
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.003, -0.217, 0.346), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.138, 0.584).lineTo(0.138, 0.584).lineTo(0.138, -0.518).lineTo(-0.138, -0.518).lineTo(-0.138, 0.584).close().extrude(0.303) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.059...
14
332
0.308
train_00621e7faaa585b1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.049, 0, -0.387), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.902, 1.847).extrude(0.74) result = result.cut(cq.Workplane(cq.Plane(origin=(0.049, 0.148, -1.587), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.031, 0.025).lineTo(0, 0.038).lineTo(-0.031,...
18
26
2.515184
train_bd8003efeece1457
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.356).workplane(offset=0.642).circle(0.448).workplane(offset=0.659).circle(0.858).workplane(offset=0.699).circle(0.885).loft() result = result.edges().fillet(0.259) result = result.cut(cq.Workp...
11
83
1.3173
train_7d66e2fe2b24335f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.028, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.794, 0.925).extrude(0.616) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.107, 0.213, -1.018), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.543, 0.077).extrude(0.739)) result = result.edg...
15
145
0.840203
train_c2ba6e8d4e016f4c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.19, -0.495, -0.279), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.751, 0.386).threePointArc((0, -0.079), (0.751, 0.386)).lineTo(-0.751, 0.386).close().extrude(1.235) result = result.edges().chamfer(0.087) result = result.union(cq.Workplane(cq.P...
23
137
0.447754
train_3181436fee336ccb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.232, -0.299, -0.075), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.408, -0.001).lineTo(-0.408, 0.745).lineTo(-0.233, 0.264).lineTo(0.408, -0.001).close().extrude(0.868) result = result.edges().chamfer(0.082) result = result.union(cq.Workplane(cq....
6
65
0.932692
train_73c99c120b99afb7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.128, -0.543, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.291, 0.895).threePointArc((0, 1.002), (0.291, 0.895)).lineTo(0.291, 0.215).lineTo(-0.291, 0.215).lineTo(-0.291, 0.895).close().revolve(angleDegrees=360, axisStart=(0.291, 0.895), axis...
17
64
0.427192
train_a4219c68dba957be
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.005, 0.549, -0.57), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.01, 0.005).lineTo(0.008, 0.005).lineTo(0.008, 0.012).lineTo(0.006, 0.012).lineTo(0.006, 0.006).lineTo(-0.006, 0.006).lineTo(-0.006, 0.012).lineTo(-0.008, 0.012).lineTo(-0.008, 0.00...
4
28
0.000105
train_cef17bca204bccd4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.688).extrude(0.126) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.156, -0.134, 0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.11).extrude(0.059)) result = result.cut(cq.Workpl...
10
32
0.146385
train_70e874dcf56cea56
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -1, -0.061), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.308, 0.617).lineTo(0.106, 0.617).lineTo(-0.289, -0.558).threePointArc((-0.282, -0.598), (-0.247, -0.617)).lineTo(-0.308, -0.617).lineTo(0.247, -0.617).lineTo(0.308, -0.617).lineTo(0.308,...
2
12
0.246089
train_de08890fa157acc0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.512, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.819, 0.073).lineTo(-0.819, 0.952).lineTo(0.819, 0.952).lineTo(0.819, 0.073).lineTo(-0.819, 0.073).close().extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.308, -0.102, -0.5...
9
122
2.358136
train_e38a857ac2c20a3b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.567), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.502).extrude(1.133) result = result.cut(cq.Workplane(cq.Plane(origin=(0.475, 0.265, 0.338), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.621, 0.567).extrude(0.235)) result = result.cut(cq.Wo...
12
106
2.404903
train_0a49a86ffa6018b9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.207, 0.039, -0.664), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.038, -0.053).lineTo(0.042, -0.053).lineTo(0.042, -0.042).lineTo(0.038, -0.042).lineTo(0.038, 0).lineTo(0.057, 0).lineTo(0.057, 0.053).lineTo(-0.057, 0.053).lineTo(-0.057, 0).line...
21
131
0.370781
train_f86aace66c4d60b3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.578), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.918, 1.62).extrude(1.292) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.317, -0.05, -0.617), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.382, 0.595).extrude(1.551)) result = result.edge...
11
93
3.159628
train_73f455e1287a497e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.333, -0.198, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, -0.392).lineTo(1, 0.512).lineTo(-1, 0.512).lineTo(-1, -0.392).lineTo(1, -0.392).close().extrude(1.269) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.375, -0.292, 0.063), norma...
13
71
1.528928
train_26bf1c7e0bff3866
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.585, -0.293, -0.248), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.381).transformed(offset=(0.443, 0.014, 0.169), rotate=(0, 0, 10)).circle(0.66).transformed(offset=(0.886, 0, 0.479), rotate=(0, 0, 0)).circle(0.555).loft() result = result.edges(...
5
18
0.750855
train_c08c35c57475ce7e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.004, 0.009, 0.163), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.119, 0.02).lineTo(-0.119, -0.02).threePointArc((0.002, -0.01), (0.119, 0.02)).lineTo(-0.119, 0.02).close().sweep(cq.Workplane('XZ').spline([(-0.943, 0.137), (-0.47, 0.152), (0.004,...
15
107
0.011163
train_c4aee558180a338d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.04, 0.443, 0.061), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.555, -0.191).threePointArc((0, 0.364), (-0.555, -0.191)).lineTo(-0.185, -0.191).threePointArc((0, -0.006), (0.185, -0.191)).lineTo(0.555, -0.191).close().extrude(0.885) result = res...
25
123
0.258245
train_51adf12f5e03faaf
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.506).workplane(offset=0.382).circle(0.638).workplane(offset=0.442).circle(0.671).workplane(offset=0.453).circle(0.562).workplane(offset=0.329).circle(0.673).workplane(offset=0.394).circle(0.54...
3
9
1.949252
train_fa7560236dcb4ed9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.003), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.859, 0.645).threePointArc((0.896, 0.644), (0.928, 0.633)).threePointArc((0.997, 0.477), (0.854, 0.384)).threePointArc((0.794, 0.408), (0.753, 0.457)).lineTo(0.753, 0.356).threePointArc((0...
1
16
0.48505
train_342eca08b2d4c4da
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.048, 0, -0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.138, 0.954).extrude(1.209) result = result.cut(cq.Workplane(cq.Plane(origin=(0.014, -0.067, 0.245), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.304, 1.145).extrude(0.419)) result = result.c...
15
127
0.678126
train_493b3332f8f809ac
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.249, -0.242, -0.503), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.352, 1.516).extrude(1.006) result = result.cut(cq.Workplane(cq.Plane(origin=(0.049, -0.128, -0.674), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.177, 0.213).extrude(1.207)) result = r...
24
255
1.450507
train_a8708a942ccd533f
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.37, 1.518).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.218, 0.376, 0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.132).extrude(0.82))
2
8
4.115583
train_3e9629cc9530d482
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.012, -0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.02, 0.012).lineTo(1.02, 0.012).lineTo(0.918, 0.257).lineTo(-0.918, 0.257).lineTo(-1.02, 0.012).close().extrude(0.393) result = result.edges().fillet(0.039) result = result.faces('<X')...
14
115
0.253873
train_3fd265a71e8d6014
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.325, 0.797, -0.208), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, -0.526).lineTo(0.236, -0.526).lineTo(0.236, 0.567).threePointArc((0.218, 0.474), (0.165, 0.397)).lineTo(0.165, 0.567).threePointArc((0, 0.402), (-0.165, 0.567)).lineTo(-0.165, 0....
20
612
0.736338
train_8d6dd77a301b6b3e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.093), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.1).sweep(cq.Workplane('XZ').spline([(-0.204, -0.389), (0.298, -0.389), (0.843, -0.721), (1.389, -1.054)])) result = result.cut(cq.Workplane(cq.Plane(origin=(0.716, 0, -0.204), normal=(0,...
4
9
0.013414
train_8de8ed6889a4aa99
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.247, -0.644, -0.004), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.149, 0.149).lineTo(0.149, 0.149).lineTo(0.149, 0).threePointArc((0.105, -0.105), (0, -0.149)).threePointArc((-0.105, -0.105), (-0.149, 0)).lineTo(-0.149, 0.149).close().sweep(cq...
10
118
0.075357
train_0619e29fd132d25a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.024, -0.121, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.237, 0.012).lineTo(-0.274, -0.024).lineTo(-0.246, -0.523).lineTo(0.205, -0.523).lineTo(0.274, 0.523).lineTo(-0.237, 0.012).close().sweep(cq.Workplane('XY').spline([(-0.93, -0.121), (-...
2
11
0.662814
train_db03424b02ca5422
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.339, -0.417, -0.096), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.181, -0.583).lineTo(0.452, -0.583).lineTo(0.452, 0.757).lineTo(-0.452, 0.757).lineTo(-0.452, 0.379).lineTo(0.181, 0.379).lineTo(0.181, -0.583).close().extrude(0.813) result = res...
11
42
0.731819
train_3cfef160e403091f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.215, 0.078, -0.332), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.326, 0.328).extrude(0.357) result = result.union(cq.Workplane(cq.Plane(origin=(-0.135, 0.038, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.032, 0.042).extrude(0.696)) result = res...
5
37
0.064645
train_4e140db490a0fff3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.198, -0.024, 0.196), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.292).sweep(cq.Workplane('XY').spline([(0.83, -0.024), (0.67, 0.198), (0.43, 0.325), (0.16, 0.333)])) result = result.union(cq.Workplane(cq.Plane(origin=(0.555, -0.41, -0.038), nor...
22
109
1.602003
train_018d0679427f5574
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.164), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.628, 1.016).extrude(0.836) result = result.faces('>X').shell(-0.025) result = result.union(cq.Workplane(cq.Plane(origin=(0.027, 0.072, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.189, 0...
10
38
0.12977
train_7264900d8b5248ed
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.651, -0.014, -0.197), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.803, -0.619).lineTo(-0.803, 0.03).lineTo(0.154, 0.03).lineTo(0.803, 0.679).lineTo(0.803, -0.619).lineTo(-0.803, -0.619).close().extrude(1.301) result = result.union(cq.Workplane...
9
67
1.534013
train_060eed17b1abd758
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.798, 0, 0.027), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.058, 0.13).lineTo(-0.099, -0.078).lineTo(-0.122, -0.104).lineTo(-0.202, -0.13).lineTo(-0.058, -0.13).lineTo(-0.032, -0.104).lineTo(0.202, 0.13).lineTo(-0.058, 0.13).close().sweep(cq....
1
9
0.00651
train_cc15fc637bbec762
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.3, 0, -0.418), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.399, 0.626).extrude(0.836) result = result.union(cq.Workplane(cq.Plane(origin=(-0.678, 0.085, -0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.644, 0.278).extrude(0.445)) result = result...
4
75
0.757708
train_5159404005e125aa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.152, 0.205), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.221, 0.152).lineTo(-0.526, 0.152).lineTo(-0.526, 0.001).threePointArc((-0.442, -0.056), (-0.412, -0.152)).lineTo(0.221, -0.152).lineTo(0.526, -0.152).lineTo(0.526, 0.152).lineTo(0.221,...
21
77
0.115286
train_238f3d1cc1842200
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.234, -0.388), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.156).extrude(0.777) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.14, 0.47, -0.078), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.201).extrude(0.23)) result = result.edges().fil...
16
118
1.69273
train_d72a78f48a882850
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.723, -0.43, -0.142), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.572, 0.062).threePointArc((-0.858, 0.55), (-0.572, 1.038)).threePointArc((-0.125, 1.081), (0.209, 0.781)).threePointArc((0.465, 0.959), (0.772, 0.911)).threePointArc((0.837, 0.73...
24
107
1.113593
train_3ae101adc25412ab
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.163, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.249, 1.507).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.021, 0.106, -0.473), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.118, 1.809).extrude(0.35)) result = result.edges().c...
7
77
3.261797
train_8bfb1a3e427956d1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.205, 0.874, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.331, 0.874).lineTo(-0.331, 0.874).lineTo(-0.331, 0.708).lineTo(-0.96, 0.708).lineTo(-0.331, 0.079).lineTo(0.331, 0.079).lineTo(0.96, 0.708).lineTo(0.331, 0.708).lineTo(0.331, 0.874).clo...
15
82
1.860186
train_472e3bf898751e3e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.098, -0.095, -0.013), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.058, 1.087).lineTo(-0.058, -0.89).lineTo(0.058, -0.89).lineTo(0.058, 1.087).lineTo(-0.058, 1.087).close().workplane(offset=0.061).moveTo(-0.057, 1.059).lineTo(-0.057, -0.862).li...
11
102
0.022727
train_d97b6048d411235e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.184), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.153, 0.806).lineTo(0.509, 0.806).threePointArc((0.816, 0.499), (0.509, 0.192)).lineTo(-0.816, 0.192).lineTo(-0.816, 0.499).lineTo(-0.816, 0.806).lineTo(-0.153, 0.806).close().revolve(angl...
27
226
1.718348
train_952b2d1332f3b950
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.575, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.924, 0.003).threePointArc((-0.794, 0.476), (-0.44, 0.815)).lineTo(-0.44, 1.147).lineTo(0.44, 1.147).lineTo(0.44, 0.815).threePointArc((0.794, 0.476), (0.924, 0.003)).lineTo(0.708, 0.003)...
8
55
3.059479
train_96236bcb668ac885
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.122, -0.14, -0.466), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.389, 1.201).extrude(1.144) result = result.faces('>Z').shell(-0.052) result = result.union(cq.Workplane(cq.Plane(origin=(-0.466, -0.232, -0.678), normal=(0, 0, 1), xDir=(1, 0, 0)))....
6
35
0.604371
train_5ef0387e59ae77d2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.707, -0.114, -0.417), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.586, 0.586).extrude(0.666) result = result.union(cq.Workplane(cq.Plane(origin=(-0.243, -0.114, -0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.513, 0.224).extrude(0.354)) result ...
12
63
0.422416
train_9976b861bd06a52f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.338, 0, -0.393), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.324, 1.772).extrude(0.997) result = result.faces('>X').shell(-0.075) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.22, 0.011, -0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0....
9
81
0.88406
train_694168d827fd15c1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.567, 0.478, 0.067), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.516, 0.904).threePointArc((-0.123, 0.896), (0.174, 1.153)).lineTo(0.516, 0.208).lineTo(-0.174, -0.041).lineTo(-0.516, 0.904).close().workplane(offset=0.287).moveTo(-0.592, 0.955)....
23
164
0.498327
train_823f2156ea03f271
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.542, 0.888, 0.158), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.424, 0.251).lineTo(-0.424, 0.973).lineTo(0.226, 0.973).threePointArc((0.332, 0.993), (0.424, 1.052)).lineTo(-0.424, 0.251).close().revolve(angleDegrees=360, axisStart=(-0.424, 0.25...
7
44
0.22462
train_990955853cb2eefd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1.152, 0.451, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.824, 1.328).threePointArc((0, 2.152), (0.824, 1.328)).lineTo(0.824, 0.152).lineTo(0.074, 0.152).lineTo(-0.074, 0.152).lineTo(-0.824, 0.152).lineTo(-0.824, 1.328).close().extrude(0.958...
10
39
2.402206
train_5d816da0ddb21852
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.259, 0.922).lineTo(-0.319, 0.822).lineTo(-0.35, 0.766).threePointArc((-0.389, 0.598), (-0.35, 0.43)).lineTo(-0.319, 0.375).lineTo(-0.259, 0.274).lineTo(-0.259, 0.196).lineTo(-0.155, 0.196).li...
6
51
0.976607
train_327737eb46abf02c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.786), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.488).extrude(1.573) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.212 * math.cos(3.396 + 2 * math.pi * 0 / 6), 0 + 0.212 * math.sin(3.396 + 2 * math.pi * 0 / 6), -1.023), normal...
15
90
4.133085
train_4dae06d7a43a1ce2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.655, 0.032), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.277, 0.216).lineTo(0.277, 0.122).lineTo(-0.281, 0.122).threePointArc((-0.501, 0), (-0.281, -0.122)).threePointArc((-0.24, -0.085), (-0.217, -0.036)).lineTo(0.356, -0.036).lineTo(0.356, ...
4
29
0.224393
train_77bf91cd23971f30
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.005, 0.01, -0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.984, 0.012).lineTo(0.519, 0.838).lineTo(-0.501, 0.817).lineTo(-0.995, 0.009).lineTo(-0.512, -0.813).lineTo(0.483, -0.858).close().moveTo(-0.234, 0.549).lineTo(-0.244, 0.52).lineTo(-...
11
114
0.770435
train_7c5ec5021a14e3c0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.032, -0.358, -0.589), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.238, 1.008).extrude(0.745) result = result.union(cq.Workplane(cq.Plane(origin=(0.094, -0.307, 0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.114, 0.907).extrude(0.12)) result = r...
19
104
0.570734
train_0428f3d520bbe797
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.168, 0, -0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.664, 1.076).extrude(0.653) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.631, 0.103, 0.029), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.206, 0.1).lineTo(-0.021, 0.258).lineTo(-0...
15
65
0.933409
train_85f2d702d76a454b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.415, 0.029), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.32, -0.128).lineTo(0.32, -0.299).lineTo(0.32, -0.214).lineTo(-0.32, -0.214).lineTo(-0.32, 0.299).lineTo(0.32, 0.299).lineTo(0.32, -0.128).close().sweep(cq.Workplane('XY').spline([(-0...
2
12
0.266667
train_68b7dfefc2a58252
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.023, 0, -0.268), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.142, 0.17).lineTo(-0.142, 0.125).lineTo(-0.161, 0.091).lineTo(-0.227, 0.091).lineTo(-0.227, -0.091).lineTo(-0.205, -0.091).lineTo(-0.224, -0.125).lineTo(-0.203, -0.162).lineTo(-0.16,...
4
41
0.274984
train_9f28b671c044563f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.001), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.269, 0.93).threePointArc((0, 1), (-0.27, 0.93)).threePointArc((-0.553, 0.483), (-0.331, 0.003)).lineTo(0.331, 0.003).threePointArc((0.41, 0.075), (0.474, 0.162)).threePointArc((0.553, 0.447...
16
15
1.625915
train_81eb37bf4f6eb129
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.142, 0.178, 0.011), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.134, -0.858).lineTo(0.134, 1.142).lineTo(-0.134, 1.142).lineTo(-0.134, -0.858).lineTo(0.134, -0.858).close().extrude(0.355) result = result.edges().fillet(0.049) result = result.cu...
7
67
0.183748
train_e7d60556ab59bbf0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.57, -0.974, -0.185), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.07).lineTo(-0.027, 0.032).lineTo(-0.054, -0.007).threePointArc((-0.047, -0.01), (-0.041, -0.012)).lineTo(-0.064, -0.059).threePointArc((0, -0.07), (0.064, -0.059)).lineTo(0.041...
2
20
0.103864
train_0fb39e08b7e95acc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.637, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.56).workplane(offset=0.182).circle(0.714).workplane(offset=0.218).circle(0.695).workplane(offset=0.268).circle(0.971).workplane(offset=0.201).circle(0.856).workplane(offset=0.24).circle(0....
17
128
1.617255
train_9a429623f2c1cd54
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.067, -0.101, 0.094), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.097, 0.195).threePointArc((-0.166, 0.166), (-0.195, 0.097)).lineTo(-0.195, -0.097).threePointArc((-0.166, -0.166), (-0.097, -0.195)).lineTo(0.195, -0.195).lineTo(0.195, 0.195).l...
11
60
0.258731
train_68300587c164225b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.116, -0.388, -0.003), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.486, 0.365).lineTo(0.486, 0.779).lineTo(-0.486, 0.779).lineTo(-0.486, 0.365).lineTo(-0.058, 0.365).lineTo(-0.058, -0.05).lineTo(0.486, -0.05).lineTo(0.486, 0.365).close().revolve...
12
90
0.322359
train_0ae2cf5c9f5ed2f4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.013, -0.234), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.114).sweep(cq.Workplane('XZ').spline([(-0.381, -0.707), (-0.133, -0.586), (0.115, -0.746), (0.362, -0.852), (0.61, -0.758), (0.857, -0.707)])) result = result.edges().chamfer(0.092)...
3
12
0.051663
train_ee0dd878a47d680e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.581, 0.462, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.286).lineTo(-1, 0.303).lineTo(0, 0.303).lineTo(0, 0.071).lineTo(0.983, 0.071).lineTo(0.983, 0.87).lineTo(1, 0.87).lineTo(1, 0.054).lineTo(-0.017, 0.054).lineTo(-0.017, 0.286).lineT...
1
12
0.059874