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_5810449fe80bb856
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.522, -0.643, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.948).lineTo(-1, 0.371).lineTo(-1, 0.07).lineTo(0, 0.647).lineTo(1, 0.07).lineTo(1, 0.371).lineTo(0, 0.948).close().extrude(1.109) result = result.edges().fillet(0.042) result = res...
10
108
0.465498
train_1c95c53f37307cf9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.266, -0.387, -0.564), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.468, 1.198).extrude(0.449) result = result.union(cq.Workplane(cq.Plane(origin=(0.016, -0.151, -0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.078).extrude(0.742)) result = resu...
8
33
1.046972
train_488bec8bcb17e375
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.062, -0.481, 0.538), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.113).lineTo(0.101, 0.113).threePointArc((0, 0.012), (-0.101, 0.113)).lineTo(-0.05, 0.113).threePointArc((-0.036, 0.077), (0, 0.062)).lineTo(0, 0.113).close().extrude(0.139) res...
6
120
0.039319
train_885cb2b281d6dc70
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.387, -0.425, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.994, 0.779).lineTo(-0.994, 0.106).lineTo(0.994, 0.106).lineTo(0.994, 0.779).lineTo(-0.994, 0.779).close().workplane(offset=0.476).moveTo(-0.932, 0.759).lineTo(-0.932, 0.127).lineTo(0...
20
131
0.735357
train_a1addcdd0cbd04a1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.941, -0.23, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.018, -0.459).lineTo(0.021, -0.427).lineTo(-0.011, -0.427).lineTo(0.016, -0.178).lineTo(0.021, -0.136).lineTo(-0.079, -0.037).lineTo(-0.044, 0.22).lineTo(0.073, 0.351).lineTo(0.109, 0.39...
3
33
0.097931
train_76ebdcdbf68f37c7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.029, 0.108), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.782, 0.051).threePointArc((-0.783, 0.029), (-0.782, 0.007)).lineTo(-1, 0.007).lineTo(-1, -0.167).lineTo(-0.761, -0.167).threePointArc((1, 0.059), (-0.772, 0.167)).threePointArc((-0.77...
9
146
0.522676
train_19634ee32d7a200d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.02, 0.044, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.793, 0.848).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(0.186, -0.424, -0.485), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.129, 0.089).extrude(0.122)) result = result.un...
15
234
1.299922
train_46a861194846f489
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.955).extrude(0.66) result = result.cut(cq.Workplane(cq.Plane(origin=(0.159, -0.359, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.416, -0.033).lineTo(-0.359, 0.023).lineTo(-0.315, ...
12
64
2.439855
train_b47f69dfbbd4d7ba
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.096, -0.062, -0.536), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.231, 0.011).threePointArc((0.316, 0.096), (0.231, 0.182)).lineTo(-0.231, 0.182).threePointArc((-0.316, 0.096), (-0.231, 0.011)).lineTo(0.231, 0.011).close().extrude(0.22) result ...
9
51
0.022996
train_bdd63d81e9bee296
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.373, 0.008, -0.378), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.631, -0.01).lineTo(0.325, 0.544).lineTo(-0.298, 0.53).lineTo(-0.627, 0.013).lineTo(-0.32, -0.552).lineTo(0.301, -0.56).close().moveTo(-0.083, 0.002).lineTo(-0.164, 0.115).lineTo(-...
15
159
0.307228
train_43135a7e53dbf711
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.284, 0.667, -2.189), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(4.125, 2.147).extrude(2.21) result = result.cut(cq.Workplane(cq.Plane(origin=(0.322, 0.355, -1.185), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.482).extrude(0.652)) result = result.c...
26
5
0.030024
train_8019622c79e001fc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.193, 0.02, 0.508), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.156, 0.627).lineTo(-0.297, 0.627).lineTo(-0.297, -0.221).lineTo(0.297, -0.221).lineTo(0.297, 0.5).lineTo(0.156, 0.5).lineTo(0.156, 0.274).lineTo(-0.156, 0.274).lineTo(-0.156, 0.627...
12
130
0.457529
train_2512dbe058e0506d
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.612, 1.803).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.419 * math.cos(1.327 + 2 * math.pi * 0 / 4), 0 + 0.419 * math.sin(1.327 + 2 * math.pi * 0 / 4), -1.3), normal=(0, 0...
5
38
5.5784
train_00a278c38ab8e491
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.245, -0.055, -0.073), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.024, 0.331).lineTo(0.042, 0.331).lineTo(0.042, 0.034).lineTo(0.09, -0.18).lineTo(-0.024, -0.18).lineTo(-0.024, -0.263).lineTo(-0.09, -0.263).lineTo(-0.09, 0.331).lineTo(-0.024, ...
16
71
0.019457
train_efb88e21affb973f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.504, 0.881, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.33, -0.34).lineTo(-0.198, -0.34).lineTo(-0.198, 0.188).lineTo(0.33, 0.188).lineTo(0.33, 0.628).lineTo(-0.198, 0.805).lineTo(-0.198, 0.98).lineTo(0.198, 0.98).lineTo(0.198, 1.347).line...
10
61
0.661962
train_4fea7ae13a7370c7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.115, -0.558, -0.888), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.419, -0.012).lineTo(0.113, 0.401).lineTo(-0.334, 0.23).lineTo(-0.323, -0.233).lineTo(0.121, -0.388).close().moveTo(0.076, 0.001).lineTo(0.022, 0.071).lineTo(-0.061, 0.044).lineTo...
14
173
1.040104
train_79302b9fa9b2637f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.746, -0.898, -0.056), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.102).lineTo(-0.06, 0.067).lineTo(-0.06, 0.038).lineTo(-0.048, 0.038).lineTo(-0.048, -0.078).lineTo(-0.06, -0.071).lineTo(-0.06, -0.102).lineTo(0.06, -0.102).lineTo(0.06, 0.06...
22
250
0.110104
train_28acbca232fb5714
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.036, 0.217, 0.106), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.12, 0.528).lineTo(0, 0.408).lineTo(-0.12, 0.528).lineTo(-0.405, 0.528).threePointArc((-0.422, 0.408), (-0.405, 0.288)).lineTo(-0.12, 0.288).lineTo(-0.12, 0.003).threePointArc((0, -...
17
131
0.292309
train_dad36645408eca78
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.172, 0, -0.728), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.272, 0.027).lineTo(0.272, 0.045).lineTo(0.045, 0.045).lineTo(0.045, 0.212).lineTo(-0.082, 0.212).lineTo(-0.082, 0.045).lineTo(-0.272, 0.045).lineTo(-0.272, 0.027).lineTo(0.272, 0.027)...
6
180
0.062193
train_7d1a67df7eabd29a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.142, 0.353, -0.025), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.379, 0.11).threePointArc((-0.244, 0.043), (-0.094, 0.02)).threePointArc((0.379, 0.665), (-0.379, 0.921)).threePointArc((-0.314, 0.723), (-0.292, 0.516)).threePointArc((-0.314, 0.3...
13
82
0.691253
train_5164af91eabc1670
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.087, -0.162, -0.513), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.054, 0.383).lineTo(-0.054, -0.188).lineTo(0.054, -0.188).lineTo(0.054, 0.512).lineTo(-0.054, 0.512).lineTo(-0.054, 0.383).close().revolve(angleDegrees=360, axisStart=(-0.054, 0.3...
17
154
0.080309
train_992e1bd6e9230398
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.306, 0.307, 0.025), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.415).lineTo(-0.361, 0.415).lineTo(-0.361, 0.56).lineTo(-0.506, 0.56).lineTo(-0.506, 0.053).lineTo(0.506, 0.053).lineTo(0.506, 0.415).lineTo(0, 0.415).close().extrude(0.614) resu...
4
17
0.254005
train_e839d0714f9fe2d1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.686, -0.962), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 1.193).lineTo(-1, -0.209).lineTo(1, -0.209).lineTo(1, -0.187).threePointArc((0.92, 0.194), (0.7, 0.517)).threePointArc((0.914, 0.826), (0.999, 1.193)).lineTo(-1, 1.193).close().extr...
19
130
2.453585
train_81a30097d727a24e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.051, -0.5, -0.474), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.316, 1.001).extrude(0.998) result = result.union(cq.Workplane(cq.Plane(origin=(-0.109, -0.155, 0.519), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.037).extrude(0.137)) result = resul...
5
32
1.340577
train_48582a0fff0448a6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.586, 0.031), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.594, -0.446).lineTo(-0.299, 0.446).lineTo(-0.594, 0.054).lineTo(-0.42, -0.446).lineTo(0.594, -0.446).close().sweep(cq.Workplane('YZ').spline([(-0.188, -0.475), (0.136, -0.415), (0.459, ...
6
30
0.582936
train_6269a787879156aa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.53, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.987, 0.53).lineTo(1, 0.53).lineTo(1, 0.05).lineTo(-1, 0.05).lineTo(-1, 0.529).lineTo(-0.987, 0.53).close().revolve(angleDegrees=270, axisStart=(-0.987, 0.53), axisEnd=(1, 0.53)) result = r...
3
16
0.10852
train_b50cd751dded4aec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.14, -0.623, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.353, -0.018).lineTo(0.353, 0.501).lineTo(-0.353, 0.501).lineTo(-0.353, -0.018).lineTo(0.353, -0.018).close().extrude(0.974) result = result.faces('>Z').shell(-0.035) result = result.uni...
6
48
0.367257
train_fccdd39e7ca2c369
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.259, 0.24, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.881, 0.881).extrude(0.909) result = result.union(cq.Workplane(cq.Plane(origin=(-0.215, 0.284, -0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.396).extrude(0.092)) result = result.un...
13
88
1.571688
train_071710248920634f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.875).extrude(0.558) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.75 + 0.25, 0.168, -1.579), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.055).extrude(2.6)) result = result.cut(cq.W...
15
19
1.051173
train_cdd51f30b6601746
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.039, 0.038, 0.625), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.156, 0.31).threePointArc((0.003, 0.359), (-0.156, 0.335)).threePointArc((-0.055, -0.359), (0.156, 0.31)).close().sweep(cq.Workplane('XZ').spline([(0.039, 0.195), (0.256, 0.281), (0....
4
80
0.289975
train_6d1f3e5e8c4a0d84
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.686).extrude(0.063) result = result.union(cq.Workplane(cq.Plane(origin=(0.69, 0, -0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.2, 0.564).extrude(0.189)) result = result.cut(cq.Workpla...
4
75
0.222585
train_c82046379063b32b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.23, -0.172), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.159, 0.05).lineTo(-0.179, 0.05).lineTo(-0.179, -0.05).lineTo(-0.069, -0.05).threePointArc((-0.035, -0.042), (0, -0.05)).lineTo(0.021, -0.05).threePointArc((0.055, -0.042), (0.089, -0.0...
6
86
0.13983
train_d9a645d43379f734
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.041, -0.018, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.261, 0.68).lineTo(-0.388, 1.018).lineTo(-0.848, 0.125).lineTo(-0.463, -0.595).lineTo(0.766, -0.382).close().moveTo(-0.628, 0.253).lineTo(-0.108, 0.25).lineTo(-0.106, 0.158).lineTo(...
11
54
0.75464
train_f5dd6413a7c5f971
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.605, 0, 0.172), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.395).lineTo(-0.395, 0).lineTo(0, 0.395).lineTo(0.046, 0.349).lineTo(0, 0.163).lineTo(0.111, 0.163).lineTo(0.131, 0.264).lineTo(0.15, 0.359).lineTo(0.231, 0.163).lineTo(0.395, 0).l...
1
12
0.07671
train_eedc4c42333083cb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.848, -0.422, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.31).lineTo(-0.667, -0.133).lineTo(-0.333, -0.576).lineTo(0.333, -0.576).lineTo(0.333, -0.31).lineTo(-0.333, -0.31).lineTo(-0.466, -0.133).lineTo(0.667, -0.133).lineTo(1, 0.31).line...
4
37
2.251717
train_8283e79d85cacd15
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.326, 0.072, -0.241), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.348, 0.769).extrude(0.449) result = result.union(cq.Workplane(cq.Plane(origin=(0.625, -0.381, 0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.147, 0.153).extrude(0.049)) result = r...
9
35
0.427924
train_2798e63b10fb0a83
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.213, 0.273, -0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.068, 1.381).extrude(0.253) result = result.union(cq.Workplane(cq.Plane(origin=(-0.213, 0.273, 0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.582, 1.063).extrude(0.047)) result = ...
16
118
0.50816
train_857aa8eca39c0b94
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.23, -0.135, -0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.777, 0.478).extrude(0.089) result = result.union(cq.Workplane(cq.Plane(origin=(0.243, -0.135, -0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.095).extrude(0.049)) result = resu...
23
90
0.11675
train_2c86687d503c60c0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.155, 0.104, -0.177), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.339).workplane(offset=0.34).circle(0.298).workplane(offset=0.3).circle(0.297).loft() result = result.edges().fillet(0.1) result = result.union(cq.Workplane(cq.Plane(origin=(0.255,...
21
75
0.368088
train_d24ebd7be31d4291
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.012, -0.523), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.782).extrude(0.849) result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.077, 0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.802).extrude(0.127)) result = result.union(cq.W...
19
143
3.071962
train_cae16cbfaa838b89
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.352, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.038, 0.004).lineTo(0.038, -0.031).lineTo(0.046, -0.038).lineTo(-0.046, -0.038).lineTo(-0.046, 0.038).lineTo(-0.038, 0.038).lineTo(-0.038, 0.031).lineTo(0.038, 0.031).lineTo(0.038, 0.004).c...
1
9
0.01013
train_80585e7fe78d3688
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.26, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.793, 0.216).lineTo(0.577, 0).lineTo(0.361, 0).threePointArc((0.258, -0.042), (0.216, -0.144)).lineTo(0.216, -0.216).lineTo(-0.216, -0.216).lineTo(-0.216, -0.18).threePointArc((-0.248, -0.104...
3
35
0.284624
train_b6eb3a11cf846c70
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.359, 0, -0.294), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.267).sweep(cq.Workplane('XZ').spline([(0.132, -0.621), (0.135, -0.497), (-0.021, -0.396), (-0.271, -0.361), (-0.514, -0.405), (-0.653, -0.511), (-0.63, -0.636)])) result = result.edg...
9
34
0.329676
train_57c53099d2a908b2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.223, -0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.777).moveTo(0, -0.149).lineTo(0.034, -0.047).lineTo(0.142, -0.046).lineTo(0.055, 0.018).lineTo(0.088, 0.121).lineTo(0, 0.058).lineTo(-0.088, 0.121).lineTo(-0.055, 0.018).lineTo(-0.142...
12
45
0.626249
train_10cb8c252be929ab
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.208, -0.473, -0.306), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.283, 1.053).extrude(0.613) result = result.faces('<X').shell(-0.073) result = result.cut(cq.Workplane(cq.Plane(origin=(0.347, -0.555, 0.095), normal=(0, 0, 1), xDir=(1, 0, 0))).rect...
12
130
0.549525
train_63de6bbb5e45c317
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.001, 0.063), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.043).lineTo(-0.041, -0.043).lineTo(-0.045, 0.043).lineTo(0.045, 0.043).lineTo(0.041, -0.043).lineTo(0, -0.043).close().sweep(cq.Workplane('XZ').spline([(-0.494, 0.012), (-0.326, -...
9
59
0.030001
train_b543d87f97eecb40
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.306, -0.22), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.179).workplane(offset=0.328).circle(0.152).workplane(offset=0.328).circle(0.225).workplane(offset=0.337).circle(0.188).workplane(offset=0.314).circle(0.232).loft() result = result.unio...
23
82
0.23655
train_2239c39982a95e89
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.109, -0.095), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.266, 0.237).lineTo(-0.266, 0.845).lineTo(0, 1.121).lineTo(0.266, 0.845).lineTo(0.266, -0.891).lineTo(-0.266, -0.891).lineTo(-0.266, 0.237).close().extrude(0.263) result = result.edge...
16
112
0.199704
train_cf52e83b81f26aea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.183, -0.067), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.268, -0.117).threePointArc((-0.402, 0.183), (-0.268, 0.483)).threePointArc((0, 0.585), (0.268, 0.483)).threePointArc((0.402, 0.183), (0.268, -0.117)).threePointArc((0, -0.22), (-0.2...
8
36
0.991222
train_c02dd231f37efc36
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.166, 0.367, -0.15), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.322, 0.043).lineTo(-0.322, 0.043).lineTo(-0.322, 0.514).lineTo(0.261, 0.514).lineTo(0.322, 0.452).lineTo(0.322, 0.043).close().extrude(0.621) result = result.edges().fillet(0.09) r...
11
184
0.269405
train_064be5bc527860cd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.143, -0.471, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.008, 0.587).extrude(0.175) result = result.union(cq.Workplane(cq.Plane(origin=(-0.037, -0.875, -0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.154, 0.251).extrude(0.081)) result ...
34
353
0.270147
train_9c715f3ca9de883a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.461, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.26).workplane(offset=0.214).circle(0.259).workplane(offset=0.194).circle(0.226).workplane(offset=0.147).circle(0.25).workplane(offset=0.148).circle(0.252).workplane(offset=0.169).circle(0....
17
79
0.107558
train_7b2135ee941f43e5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.947, 2).extrude(0.478) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.048, 0.14, -0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.065, 2.4).extrude(0.023)) result = result.cut(cq.Work...
7
23
0.893726
train_a604d49bbe33b8d8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.778, -0.951, 0.153), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.934, -0.222).lineTo(-0.934, 1.79).threePointArc((0.116, 1.537), (0.934, 0.832)).lineTo(-0.121, -0.222).lineTo(-0.934, -0.222).close().extrude(1.901) result = result.edges().chamf...
13
164
4.455263
train_cfb7b4d8bfcc2298
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.145, 0.12, -0.096), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.024, -0.188).lineTo(-0.077, -0.188).lineTo(-0.077, -0.094).lineTo(-0.039, -0.094).threePointArc((-0.033, -0.084), (-0.024, -0.077)).lineTo(-0.024, -0.035).threePointArc((-0.042, 0...
9
192
0.377558
train_3382400ab84357f4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.626, 1, 0.09), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.782, 0.822).threePointArc((0, 0.04), (0.782, 0.822)).lineTo(0.391, 0.822).threePointArc((0, 1.212), (-0.391, 0.822)).lineTo(-0.782, 0.822).close().extrude(2) result = result.edges().fi...
10
56
2.235184
train_ffa89b452a8f81c2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.12, -0.455, -0.515), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.759, 1.09).extrude(0.835) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.395, -0.566, -0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.221, 0.581).extrude(0.21)) result = res...
23
76
0.939215
train_c941eb1b428001ae
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.447), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.026, -0.146).lineTo(-0.177, -1.121).lineTo(0.944, -0.146).lineTo(1.135, 0.021).lineTo(1.026, 0.146).lineTo(0.177, 1.121).lineTo(-0.944, 0.146).lineTo(-1.135, -0.021).lineTo(-1.026, -0.146...
22
165
0.893037
train_d784766352e9b995
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.519, -0.341, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.691, -0.481).threePointArc((0, 0.21), (-0.691, -0.481)).lineTo(-0.691, 0.481).lineTo(0.691, 0.481).lineTo(0.691, -0.481).close().sweep(cq.Workplane('XY').spline([(0.519, 0.806), (0.18...
2
9
0.242935
train_10ec6c3b93510ece
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.053, -0.109, -0.189), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.201, -0.14).lineTo(-0.201, 0.263).lineTo(-0.067, 0.263).lineTo(-0.067, 0.129).lineTo(0.067, 0.129).lineTo(0.067, 0.263).lineTo(0.201, 0.129).lineTo(0.201, -0.005).lineTo(0.067,...
28
360
0.172859
train_e2b40a2178d917eb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.453, -0.99), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.477, -0.25).threePointArc((-1, 0.297), (-0.461, 0.828)).lineTo(0.461, 0.828).threePointArc((1, 0.286), (0.453, -0.25)).lineTo(-0.477, -0.25).close().extrude(1.98) result = result.edge...
5
24
2.923855
train_1e4c4136332082c1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.321, 0, -0.307), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.359, 1.03).extrude(0.613) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.321, 0, -0.399), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.833, 0.631).extrude(0.797)) result = result.uni...
10
84
0.589203
train_ce6ce3a437138355
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.521, -0.245), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.495, 0.986).threePointArc((-1, 0.541), (-0.534, 0.055)).lineTo(0.534, 0.055).threePointArc((1, 0.521), (0.534, 0.986)).lineTo(-0.495, 0.986).close().extrude(0.491) result = result.ed...
7
34
0.576687
train_83b14b4a64637a9d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.544, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.017, 0.223).threePointArc((0, 0.224), (-0.017, 0.223)).threePointArc((-0.25, 0.08), (-0.258, -0.194)).threePointArc((-0.25, -0.209), (-0.241, -0.224)).lineTo(-0.138, -0.164).threePointArc((...
3
21
0.019688
train_e93c1f0d6a1983d8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.069, -0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.009, 1.093).threePointArc((0.004, 0.012), (0.009, -1.069)).lineTo(-0.009, -1.069).lineTo(-0.009, 1.093).close().extrude(0.026) result = result.edges().fillet(0.001) result = result.cu...
8
38
0.000643
train_2c1149f99759bfbe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.199, 0.222, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.856, -0.302).threePointArc((0.958, -0.26), (1, -0.158)).lineTo(1, 0.602).threePointArc((0.958, 0.703), (0.856, 0.746)).lineTo(-0.856, 0.746).threePointArc((-0.958, 0.703), (-1, 0.602))...
6
54
0.730187
train_62d219835506dfc0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.405, 1, 0.223), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.397).sweep(cq.Workplane('XY').spline([(-0.405, 0.025), (-0.501, 0.457), (-0.725, 0.736), (-1.006, 0.771)])) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.139, -0.14, 0.279), nor...
5
19
0.38556
train_a8ec5b891ff8a346
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.731, 0.418, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.4, -0.238).lineTo(-0.733, -0.238).lineTo(-0.733, 1.229).lineTo(0.733, 1.229).lineTo(0.733, 0.895).lineTo(-0.4, 0.895).lineTo(-0.4, -0.238).close().workplane(offset=0.389).moveTo(-0.35...
9
66
1.259445
train_ca36474187af2dc7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.336, -0.034, 0.219), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.505).workplane(offset=0.398).circle(0.528).workplane(offset=0.332).circle(0.364).workplane(offset=0.325).circle(0.555).loft() result = result.edges().fillet(0.179) result = result...
19
212
0.858904
train_cc20707357c60404
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.164, 0, -0.456), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.672, 1.771).extrude(0.912) result = result.faces('>Z').shell(-0.045) result = result.union(cq.Workplane(cq.Plane(origin=(0.831, 0.23, 0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.3...
3
16
0.488112
train_ded7ef1d7ff976b5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.131, -0.345, -0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.612, -0.436).lineTo(0.607, -0.421).lineTo(0.617, 0.421).lineTo(-0.588, 0.434).close().moveTo(0.008, 0.073).lineTo(-0.092, 0.035).lineTo(-0.071, -0.072).lineTo(-0.027, -0.086).lin...
7
112
0.369479
train_244b6de90aee7270
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.519, 0.911, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.199).sweep(cq.Workplane('XY').spline([(0.519, 0.294), (0.286, 0.369), (0.056, 0.284), (-0.076, 0.075), (-0.054, -0.172), (0.111, -0.354)]))
1
3
0.099313
train_afebeac1f30ea3fa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.731, -0.539, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.458, 0.057).threePointArc((0, -0.461), (-0.458, 0.057)).threePointArc((0, 0.461), (0.458, 0.057)).close().sweep(cq.Workplane('XY').spline([(-0.301, -0.539), (-0.381, -0.371), (-0.563, ...
1
4
0.092448
train_826c68684510611f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.799, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1.009, 1.454).lineTo(0, -0.166).lineTo(-1.009, 1.454).lineTo(1.009, 1.454).close().extrude(2) result = result.edges().chamfer(0.367) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 +...
8
20
2.37515
train_6b13321250041987
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.001, -1, 0.47), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.093, 0.052).lineTo(-0.093, -0.045).threePointArc((-0.096, -0.052), (-0.089, -0.05)).lineTo(0.089, -0.05).threePointArc((0.096, -0.052), (0.093, -0.045)).lineTo(0.093, 0.048).lineTo(0...
1
9
0.015113
train_c8ccf0ac45fbfc5c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.55).extrude(0.699) result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, 0.558, 0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.051).extrude(0.045)) result = result.cut(cq.Workplane...
11
37
2.130679
train_06015ef290ba66c2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.833), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.566, 1.134).extrude(1.415) result = result.union(cq.Workplane(cq.Plane(origin=(0.006, -0.106, 0.558), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.247).extrude(0.442)) result = result.cut(cq....
15
117
2.504188
train_864d6868e774c949
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.02, 0.527).extrude(0.835) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.191), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.157).extrude(0.662)) result = result.union(cq.Workplane(c...
11
51
0.426164
train_51ee68f037207ef0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.924), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.937, 2).extrude(1.849) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.442, 0.728, -0.739), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.286).extrude(1.181)) result = result.cut(cq.Workp...
12
160
5.61183
train_fcc18d932c7e82b8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.233, 0, -0.194), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.188, 2).extrude(1.074) result = result.union(cq.Workplane(cq.Plane(origin=(0.209, -0.018, -0.566), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.399, 1.055).extrude(0.383)) result = result.u...
11
61
1.404581
train_a8a5bad1b605977c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.109, 0, 0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.151, 0.154).extrude(0.185) result = result.union(cq.Workplane(cq.Plane(origin=(0.038, 0, 0.441), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.163, 0.113).extrude(0.06)) result = result.unio...
9
34
0.007976
train_fc132b38cd2fbff1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.681, -0.034, -0.391), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.481, 0.514).lineTo(0.481, -0.098).lineTo(-0.481, -0.098).lineTo(-0.481, 0.514).lineTo(0.481, 0.514).close().extrude(1.193) result = result.edges().chamfer(0.124) result = result....
36
140
0.727735
train_99efa5c61f08e444
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.235, 0.077, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.935, 0.01).threePointArc((1, 0.075), (0.935, 0.14)).lineTo(-0.935, 0.14).threePointArc((-1, 0.075), (-0.935, 0.01)).lineTo(0.935, 0.01).close().extrude(0.471) result = result.edges().f...
4
23
0.116918
train_c91ad38cb78048aa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.031, 0, -0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.737, 0.016).lineTo(0.969, 0.237).lineTo(0.7, 0.411).lineTo(0.048, 0.687).lineTo(-0.657, 0.757).lineTo(-0.969, 0.744).lineTo(-0.904, 0.439).lineTo(-0.785, -0.266).lineTo(-0.794, -0.535)...
10
60
0.711536
train_b3a3c5fe64ee15f4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.298, -0.518), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.494, 1.404).extrude(1.035) result = result.union(cq.Workplane(cq.Plane(origin=(-0.362, 0.692, -0.329), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.343, 0.616).extrude(0.559)) result = res...
3
51
2.258985
train_f281f66621762c99
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.36, -0.357, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.03).lineTo(-1, 0.069).lineTo(-0.423, 0.069).lineTo(-0.418, 0.087).lineTo(-0.38, 0.087).lineTo(-0.243, 0.628).lineTo(-0.281, 0.628).lineTo(-0.267, 0.683).lineTo(0.844, 0.683).lineTo...
2
23
0.684926
train_7b27829924a44708
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.355, -0.088, 0.877), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.514, -0.241).threePointArc((0.034, 0.026), (-0.514, -0.006)).threePointArc((-0.373, 0.149), (-0.185, 0.241)).threePointArc((0.198, 0.048), (0.514, -0.241)).close().sweep(cq.Workpl...
6
52
0.889071
train_50213b018e3f6800
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.052, 0.016, 0.753), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.605, 1.048).threePointArc((-0.5, 0.288), (-0.605, -1.048)).lineTo(-0.089, -0.75).threePointArc((0.006, -0.003), (0.605, 0.453)).lineTo(0.605, 1.048).close().extrude(1.506) result =...
12
101
0.825626
train_a695ab49d0b1b57d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.375, -0.698), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.09, -0.21).lineTo(-0.104, -0.03).lineTo(-0.526, -0.03).lineTo(-0.512, 0.15).lineTo(-0.118, 0.15).lineTo(-0.166, 0.78).lineTo(-0.18, 0.96).lineTo(0.45, 0.96).lineTo(0.463, 0.78).lineT...
11
109
1.177056
train_a516f4291cc70c25
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.019, -0.393, -0.361), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.743, 1.11).extrude(1.072) result = result.cut(cq.Workplane(cq.Plane(origin=(0.636, -0.393, -0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.537, 0.099).extrude(0.75)) result = res...
11
81
1.844895
train_639f72dc4d5bf404
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.232, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.131, 0.065).lineTo(0.15, -0.065).threePointArc((0.113, -0.049), (0.075, -0.065)).threePointArc((0.038, -0.049), (0, -0.065)).threePointArc((-0.075, -0.043), (-0.15, -0.065)).lineTo(-0.113,...
2
15
0.061166
train_6f33ae17c938e281
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.579, -0.443, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.266, 0.911).lineTo(-0.003, 0.909).lineTo(-0.272, 0.907).lineTo(-0.405, 0.674).lineTo(-0.538, 0.44).lineTo(-0.402, 0.207).lineTo(-0.266, -0.025).lineTo(0.003, -0.023).lineTo(0.272, -0....
20
142
0.229217
train_9d81032337ba32dd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.008, 0.307, -0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.793, -0.014).lineTo(0.373, 0.693).lineTo(-0.371, 0.672).lineTo(-0.777, 0.014).lineTo(-0.399, -0.657).lineTo(0.376, -0.667).close().moveTo(-0.148, -0.223).lineTo(0.148, -0.224).lin...
12
112
0.452291
train_e5a1a2c133bc32ec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.066, -0.03, -0.493), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.868, 1.014).extrude(0.901) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.272, 0.29, -0.495), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.359, 0.121).extrude(0.072)) result = res...
10
43
1.690034
train_a9c3f262c024efe5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.392), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.857, 0.733).lineTo(-0.918, 0.768).lineTo(-1, 0.721).lineTo(-1, 0.626).lineTo(-0.977, 0.612).lineTo(-0.977, -0.612).lineTo(-0.918, -0.578).lineTo(-0.836, -0.626).lineTo(-0.836, -0.721).lin...
7
24
2.229703
train_794f79f7c7760700
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.656, 0.674, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.291).threePointArc((-0.818, 0.474), (0, -0.344)).threePointArc((0.208, -0.317), (0.402, -0.239)).threePointArc((0.818, 0.474), (0.402, 1.186)).threePointArc((0.208, 1.264), (0, 1.29...
9
17
2.727521
train_0ca21dffdaf564e2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.048, 0.147, 0.165), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.438).threePointArc((0.231, -0.372), (0.392, -0.194)).threePointArc((0, 0.438), (-0.392, -0.194)).threePointArc((-0.231, -0.372), (0, -0.438)).close().sweep(cq.Workplane('YZ').s...
5
18
1.264273
train_ee12bb03b9f914ff
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.697, 0, 0.02), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.321).sweep(cq.Workplane('XZ').spline([(0.151, -0.376), (0.491, -0.371), (0.83, -0.333), (1.17, -0.232), (1.509, -0.194), (1.849, -0.189)])) result = result.edges().fillet(0.229) result...
7
24
0.474887
train_02e791d4ebc25a52
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.419, 0.066, -0.061), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.061, 1.066).lineTo(0.061, -0.918).threePointArc((0, -0.934), (-0.061, -0.918)).lineTo(-0.061, 1.066).lineTo(0.061, 1.066).close().revolve(angleDegrees=180, axisStart=(0.061, 1.066)...
7
83
0.083304
train_3ed576f0bbd8bd8c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.251, -0.052, -0.054), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.042, -0.012).threePointArc((0, 0.008), (0.042, -0.012)).lineTo(0.047, -0.012).lineTo(0.047, 0.012).lineTo(-0.047, 0.012).lineTo(-0.047, -0.012).lineTo(-0.042, -0.012).close().sw...
8
78
0.049861