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_ff92f39dfe66bcf9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.14, 0, 0.058), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.86, 0.199).lineTo(-0.86, -0.199).lineTo(0.86, -0.199).lineTo(0.86, 0.199).lineTo(-0.86, 0.199).close().extrude(0.116) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.481, -0.028, ...
8
37
0.074771
train_56200fa815eeb91f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.089, 0.016, -0.144), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.077, 0.001).lineTo(0.312, 0.984).lineTo(-0.878, 0.605).lineTo(-0.899, -0.654).lineTo(0.327, -1.016).close().moveTo(0.139, 0.115).lineTo(0.184, 0.16).lineTo(0.184, 0.431).lineTo(0....
15
112
0.566724
train_7890a1396848bc65
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.036, -0.13, -0.102), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.104, -0.191).lineTo(-0.193, -0.195).lineTo(-0.193, 0.195).lineTo(0, 0.195).lineTo(0, 0.002).lineTo(0.193, 0.002).lineTo(0.193, -0.124).lineTo(0.104, -0.191).close().extrude(0.117)...
24
145
0.019628
train_85e194d525c76177
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.246, 0.104, -0.12), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.166, 0.896).lineTo(0.166, 0.896).threePointArc((-0.14, -0.806), (-0.166, -0.81)).lineTo(-0.166, 0.896).close().extrude(0.335) result = result.union(cq.Workplane(cq.Plane(origin=(0...
9
57
0.298215
train_9af62ec05d4fc6a6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.134, -0.118), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.124, 1.126).threePointArc((0, -0.867), (0.124, 1.126)).threePointArc((0, 1.134), (-0.124, 1.126)).close().extrude(0.236) result = result.edges().chamfer(0.04) result = result.cut(cq....
12
62
0.696388
train_9963bc16b86703da
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.028, 0.147), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.045, 0.197).threePointArc((0.904, 0.087), (0.752, -0.007)).threePointArc((0.383, -0.073), (0.029, -0.197)).threePointArc((-0.544, -0.1), (-1.045, 0.197)).lineTo(1.045, 0.197).close().e...
5
37
0.153936
train_4b17a729d6043890
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.272, -0.273), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.64, 1.21).extrude(0.189) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.114, 0.187, -0.217), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.212, 1.452).extrude(0.018)) result = result.c...
17
110
0.681826
train_c8bcded28c6baf9f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.2), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.298, -0.078).lineTo(-0.298, 0.078).lineTo(0.114, 0.078).lineTo(0.114, 0.896).lineTo(0.298, 0.896).lineTo(0.298, 0.078).lineTo(0.237, 0.078).lineTo(0.237, -0.078).lineTo(0.298, -0.078).lin...
2
25
0.532307
train_eb4b437baa6d7b95
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.814), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.199, 2).extrude(1.628) result = result.cut(cq.Workplane(cq.Plane(origin=(0.05, -0.147, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.209).extrude(0.974)) result = result.cut(cq.Workpl...
12
94
1.931906
train_9b8296df0f057f0a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.011, -0.071, 0.023), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.973, 0.317).threePointArc((-0.933, 0.193), (-0.877, 0.073)).threePointArc((-0.76, -0.094), (-0.614, -0.237)).lineTo(-0.614, 0.073).lineTo(-0.35, 0.073).lineTo(-0.091, 0.073).lineT...
7
35
0.213613
train_74d992819657a2c8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.347, 0, -0.413), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.306, 0.893).extrude(0.826) result = result.faces('>Z').shell(-0.085) result = result.union(cq.Workplane(cq.Plane(origin=(0.421, -0.056, -0.098), normal=(0, 1, 0), xDir=(0, 0, 1))).moveT...
4
22
0.440563
train_11aa0e96ef56c419
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.644, 0, -0.436), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.483).sweep(cq.Workplane('XZ').spline([(-0.644, -0.436), (-0.355, -0.015), (-0.066, 0.195), (0.223, 0.195), (0.511, -0.015), (0.8, -0.436)])) result = result.edges().fillet(0.179) res...
12
29
0.893192
train_6fcbebcfb898c14e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.8, -0.689), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.517).sweep(cq.Workplane('YZ').spline([(-0.8, -0.689), (0.039, -0.35), (0.878, -0.238)])) result = result.edges().chamfer(0.378) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0...
10
80
0.515556
train_c46591058da713a0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.022, -0.018, -0.571), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.978, -0.031).lineTo(0.517, 0.845).lineTo(-0.481, 0.91).lineTo(-1.022, 0.044).lineTo(-0.491, -0.874).lineTo(0.509, -0.856).close().center(0, 0.488).circle(0.16).moveTo(-0.412, -0.8...
13
107
1.904383
train_dbf74c55fdd19333
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.681).extrude(0.864) result = result.union(cq.Workplane(cq.Plane(origin=(-0.39, 0.099, -0.48), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.077, -0.194).threePointArc((-0.078, -0.175), (-...
11
93
1.689675
train_126726f8793c13d5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.076, -0.147, -0.062), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.924).lineTo(0.23, -0.924).lineTo(0.23, 1.081).threePointArc((0, 1.071), (-0.23, 1.081)).lineTo(-0.23, -0.924).lineTo(0, -0.924).close().extrude(0.293) result = result.edges()...
17
137
0.250201
train_5a61324848f241ee
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.849, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.9).workplane(offset=0.699).circle(0.892).workplane(offset=0.569).circle(0.89).workplane(offset=0.581).circle(0.897).loft() result = result.edges().chamfer(0.174) result = result.cut(cq.Wor...
9
88
4.103141
train_79c2aa166b2d81b3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.008, 0, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.263, 2).extrude(0.47) result = result.union(cq.Workplane(cq.Plane(origin=(0.055, 0.1, 0.179), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.501, 0.891).threePointArc((0.513, 0.862), (0.5...
13
50
0.873849
train_5e0931649631ea78
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.213, -0.748, 0.144), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.522, 0.959).lineTo(0.522, -0.533).lineTo(-0.522, -0.533).lineTo(-0.522, 0.959).lineTo(0.522, 0.959).close().extrude(1.013) result = result.edges().fillet(0.247) result = result.un...
12
118
0.950715
train_83521680edf29734
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.054, 1, -0.083), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.601, 0.181).threePointArc((-0.123, -0.059), (0.118, -0.538)).lineTo(0.601, -0.538).threePointArc((0.218, 0.281), (-0.601, 0.665)).lineTo(-0.601, 0.181).close().extrude(2) result = re...
17
221
0.890627
train_4d05f82582041dc7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.091, -0.233, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.266, -0.719).lineTo(-0.158, 0.719).lineTo(0.266, -0.659).lineTo(0.265, -0.659).lineTo(0.056, -0.707).lineTo(-0.051, -0.719).lineTo(-0.266, -0.719).close().sweep(cq.Workplane('XY').spl...
19
63
0.238724
train_95f9d17dff164651
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.517, -0.235, 0.114), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.907, 0.831).lineTo(0.437, 0.055).lineTo(0.907, 0.327).lineTo(-0.437, 1.102).lineTo(-0.907, 0.831).close().revolve(angleDegrees=90, axisStart=(-0.907, 0.831), axisEnd=(0.437, 0.05...
8
33
0.31846
train_39028180ed81fa7f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.016, 0, -0.092), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.12, -1).lineTo(-0.12, 1).lineTo(0.12, 1).lineTo(0.12, -1).lineTo(-0.12, -1).close().revolve(angleDegrees=90, axisStart=(-0.12, -1), axisEnd=(-0.12, 0.707)) result = result.edges().f...
15
93
0.070462
train_2e10f359c12ff076
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.154, -0.089, -0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.846, 0.435).lineTo(0.846, 0.435).lineTo(0.846, 0.012).lineTo(-0.846, 0.012).lineTo(-0.846, 0.435).close().extrude(0.33) result = result.edges().fillet(0.031) result = result.uni...
21
78
0.493125
train_ee96f988e93a81af
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.692, 0.004, 0.001), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.135, 0.28).threePointArc((0.242, 0.301), (0.301, 0.209)).lineTo(0.291, -0.206).threePointArc((0.262, -0.273), (0.194, -0.301)).lineTo(-0.211, -0.301).threePointArc((-0.301, -0.24)...
9
92
0.357602
train_2dfe5d4447956bda
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.791, 0.023, -0.806), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.418, 0.047).extrude(0.053) result = result.union(cq.Workplane(cq.Plane(origin=(0.915, 0.031, -0.755), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.01).extrude(0.045)) result = result....
10
67
0.250704
train_c86bfe277d48351d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.306, -0.132), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.155, 1).threePointArc((-0.155, 0), (0.155, -1)).lineTo(0.155, 1).close().sweep(cq.Workplane('YZ').spline([(-0.029, -0.339), (-0.055, -0.255), (-0.124, -0.19), (-0.221, -0.158)])) resul...
2
10
0.18431
train_5ead24c01b938913
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.268, 0.194), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.618, 0.478).lineTo(0.618, 0.653).lineTo(-0.618, 0.653).lineTo(-0.618, -0.653).lineTo(0.618, -0.653).lineTo(0.618, 0.478).close().workplane(offset=0.044).moveTo(0.597, 0.462).lineTo(0.5...
4
24
0.400298
train_8c7998c1b4f359ba
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.038, -1, -0.177), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.032, -0.038).lineTo(0.019, -0.038).lineTo(0.019, -0.053).lineTo(0.197, -0.053).threePointArc((0.197, -0.045), (0.198, -0.038)).lineTo(0.208, -0.038).lineTo(0.208, -0.053).threePoin...
6
43
0.125354
train_88c4e26d30d3163d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.144, -0.189, -0.51), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.037, 1.621).extrude(1.021) result = result.faces('>Z').shell(-0.044) result = result.union(cq.Workplane(cq.Plane(origin=(-0.503, -0.364, -0.408), normal=(0, 0, 1), xDir=(1, 0, 0))).r...
4
21
0.38757
train_84d62b8fe37b6bcf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.695, 0.071, 0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.385, 0.232).extrude(0.05) result = result.cut(cq.Workplane(cq.Plane(origin=(0.668, 0.019, 0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.016).extrude(0.013)) result = result.unio...
16
159
0.28795
train_a2780ceb833237f4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 1.028, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.028).lineTo(1, 1.028).lineTo(1, 0.426).lineTo(0.507, 0.426).threePointArc((0.468, 0.442), (0.452, 0.48)).lineTo(0.452, 0.74).lineTo(-1, 0.74).lineTo(-1, 1.028).close().revolve(angleDegr...
7
26
0.703126
train_4c148985cfc2cb1a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.058, -0.236, -0.594), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.021, 0.395).threePointArc((0.15, 0.429), (0.248, 0.521)).threePointArc((0.096, 0.119), (-0.248, 0.377)).lineTo(-0.248, 0.664).threePointArc((-0.237, 0.59), (-0.206, 0.521)).thre...
9
41
0.120202
train_cdf5882cac89d72c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.972, 0, 0.421), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.052).sweep(cq.Workplane('XZ').spline([(0.972, 0.154), (1.456, 0.165), (1.94, 0.266), (2.424, 0.367), (2.908, 0.377)])) result = result.edges().fillet(0.019) result = result.cut(cq.Workp...
3
8
0.001802
train_449309772da87b4e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.172, 0.083, -0.102), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.182, 0.308).lineTo(0.182, 0.231).lineTo(0.085, 0.075).threePointArc((0.017, 0.026), (-0.065, 0.039)).lineTo(-0.182, 0.111).lineTo(-0.062, 0.308).lineTo(0.182, 0.308).close().extr...
18
185
0.215222
train_c44c578d5c93f9f0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.677, -0.378, -0.115), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.235, -0.222).threePointArc((-0.302, -0.176), (-0.383, -0.162)).threePointArc((-0.55, 0), (-0.383, 0.162)).threePointArc((-0.302, 0.176), (-0.235, 0.222)).threePointArc((-0.001, ...
4
23
0.518481
train_45e06e0290dbb103
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.524, 0.661, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.28).sweep(cq.Workplane('XY').spline([(0.524, 0.074), (0.475, 0.349), (0.268, 0.537), (-0.011, 0.558), (-0.244, 0.404), (-0.334, 0.139), (-0.243, -0.125)])) result = result.edges().chamf...
10
46
0.298618
train_2fe0dc2abe1353cf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.962, 0.144, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.036, 0.102).lineTo(-0.036, -0.102).lineTo(0.036, -0.102).lineTo(0.036, 0.102).lineTo(-0.036, 0.102).close().transformed(offset=(0.169, -0.078, 0.033), rotate=(90, 0, 0)).moveTo(-...
10
54
0.288027
train_45d73d6a994822e0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.452, 0.291, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.496, 1.291).lineTo(0.496, -0.709).lineTo(-0.496, -0.709).lineTo(-0.496, 1.291).lineTo(0.496, 1.291).close().extrude(0.904) result = result.edges().chamfer(0.1) result = result.cut(cq.W...
11
84
1.429451
train_aadaf707730b71a4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.285, 0.142, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.051, 0.004).lineTo(-0.068, 0.009).lineTo(0.008, 0.275).lineTo(0.026, 0.27).lineTo(0.046, 0.341).lineTo(0.068, 0.418).lineTo(0.068, 0.325).lineTo(0.061, 0.327).lineTo(0.043, 0.265).li...
2
32
0.010371
train_0f965ee1dcc0bfce
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.034, -0.093, -0.088), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.022, 0.092).lineTo(0.022, -0.088).lineTo(-0.022, -0.088).lineTo(-0.022, 0.003).lineTo(0, 0.003).lineTo(0, 0.056).lineTo(-0.022, 0.056).lineTo(-0.022, 0.092).lineTo(0.022, 0.092)....
9
201
0.005218
train_40f83242e326b5b7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.269, -0.087, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.027, 0.193).lineTo(0.024, 0.189).lineTo(0.023, 0.019).lineTo(0.147, 0.029).lineTo(0.147, -0.023).lineTo(0.021, -0.028).lineTo(0.029, -0.194).lineTo(-0.025, -0.196).lineTo(-0.024...
7
109
0.265378
train_677af1b7780fa36c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.029, -0.3, -0.849), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.324, 0.067).threePointArc((-0.37, 0.269), (-0.324, 0.471)).lineTo(-0.571, 0.471).lineTo(-0.571, 0.74).lineTo(0.1, 0.74).threePointArc((0.571, 0.269), (0.1, -0.202)).threePointArc((...
27
148
0.554885
train_f01daad4292674ec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.093, -0.683, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.666, 1.141).lineTo(-0.666, 1.285).lineTo(0.524, 1.285).lineTo(0.524, 1.219).lineTo(0.638, 1.219).lineTo(0.638, 1.285).lineTo(0.666, 1.285).lineTo(0.666, 1.141).lineTo(0.524, 1.141).l...
4
31
3.308426
train_cb1f53ef4dc8a678
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.64, -0.703, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.405, -0.547).lineTo(0.405, 0.057).lineTo(0.405, 1.222).lineTo(-0.405, 1.826).lineTo(-0.405, -0.547).close().extrude(1.405) result = result.edges().fillet(0.188) result = result.cut(cq...
9
39
1.772753
train_dd41755164ed2275
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.617, 0, 0.159), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.383, -0.383).lineTo(0.17, -0.17).lineTo(0.239, -0.155).lineTo(0, 0).lineTo(0.17, 0.17).lineTo(0.155, 0.239).lineTo(-0.17, 0.17).lineTo(-0.239, 0.155).lineTo(-0.17, -0.17).lineTo(-0.38...
6
29
0.001809
train_053b799791388a73
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.074, 1, -0.187), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.079).workplane(offset=0.353).circle(0.098).workplane(offset=0.468).circle(0.089).workplane(offset=0.464).circle(0.064).loft() result = result.edges().chamfer(0.06) result = result.uni...
23
95
0.098596
train_abc1f8ddbfe46963
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.068, 0, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.863, 0.302).extrude(0.192) result = result.union(cq.Workplane(cq.Plane(origin=(-0.402, -0.039, -0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.611, 0.164).extrude(0.127)) result = re...
9
48
0.348188
train_c85e1383dc5ddf79
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.216, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.067).sweep(cq.Workplane('XY').spline([(-0.477, -0.216), (-0.327, -0.107), (-0.177, -0.568), (-0.028, -0.763), (0.122, -0.547), (0.271, -0.081), (0.421, 0.283), (0.57, -0.216)])) result =...
2
10
0.023575
train_8d7d7a7d2aa5d0b8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.263, -1, -0.443), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.219, -0.125).lineTo(-0.219, 0.042).threePointArc((-0.134, 0.104), (-0.032, 0.125)).threePointArc((0.097, 0.09), (0.189, -0.007)).threePointArc((0.211, -0.064), (0.219, -0.125)).line...
3
20
0.260884
train_6ae259b8583a028a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.27), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.721, 2).extrude(0.54) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.27, -1.389), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.234, 0.087).lineTo(-0.001, -0.089).lineTo(-0.234, 0.089)....
11
60
1.309513
train_0c1e6cd752cedb4f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.004, -0.009, -0.242), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.996, -0.492).lineTo(0.972, -0.494).lineTo(1.004, 0.511).lineTo(-0.974, 0.494).close().moveTo(-0.188, 0.114).lineTo(-0.208, 0.14).lineTo(-0.188, 0.167).lineTo(-0.181, 0.168).line...
18
147
0.706099
train_1bfb3d5dc68d4e73
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.47), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1).lineTo(0.265, -0.458).lineTo(0.866, -0.5).lineTo(0.529, 0).lineTo(0.866, 0.5).lineTo(0.265, 0.458).lineTo(0, 1).lineTo(-0.265, 0.458).lineTo(-0.866, 0.5).lineTo(-0.529, 0).lineTo(-0.86...
12
117
0.908943
train_855c849214da314b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.048, 0.127, -0.047), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.496, -0.13).threePointArc((-0.003, 0.29), (0.49, -0.13)).threePointArc((0.496, -0.21), (0.49, -0.29)).lineTo(-0.496, -0.29).lineTo(-0.496, -0.13).close().sweep(cq.Workplane('XZ')....
14
42
0.581362
train_c01fb1e3691beefc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.126, 0.21, -0.307), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.747, 1.025).extrude(0.938) result = result.faces('>Z').shell(-0.076) result = result.union(cq.Workplane(cq.Plane(origin=(0.321, -0.084, -0.632), normal=(0, 0, 1), xDir=(1, 0, 0))).cir...
19
63
0.553572
train_54db0553954414fc
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.305).sweep(cq.Workplane('XZ').spline([(0.946, -0.193), (0.697, -0.078), (0.274, -0.062), (-0.133, -0.16), (-0.043, -0.231), (0.303, -0.299), (0.766, -0.285)])) result = result.edges().fille...
4
11
0.843525
train_dc911009b47db50b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.452, -0.401, 0.275), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.5).workplane(offset=0.145).circle(0.504).workplane(offset=0.19).circle(0.504).workplane(offset=0.176).circle(0.595).workplane(offset=0.174).circle(0.442).loft() result = result.ed...
13
64
0.930645
train_fdab44ded683f468
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.178, -0.575, -0.263), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.737, 0.042).lineTo(-0.737, 0.985).lineTo(-0.616, 1.107).lineTo(0.327, 1.107).lineTo(0.327, 0.985).lineTo(0.737, 0.575).lineTo(0.327, 0.164).lineTo(0.327, 0.042).lineTo(-0.737, 0...
9
103
0.283467
train_0ad325b3022565f8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.201, -0.039, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.619, -0.46).lineTo(-0.521, -0.46).lineTo(-0.521, 0.352).lineTo(0.521, 0.352).lineTo(0.521, -0.46).lineTo(0.619, -0.46).lineTo(0.619, 0.46).lineTo(-0.619, 0.46).lineTo(-0.619, -0.46)...
8
69
0.486927
train_964864b610377bd6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.111, -0.703, -0.228), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.184, 0.307).lineTo(-0.184, -0.307).lineTo(0.184, -0.307).lineTo(0.184, -0.143).lineTo(0.125, -0.143).lineTo(0.125, 0.143).lineTo(0.184, 0.143).lineTo(0.184, 0.307).lineTo(-0.184...
11
92
0.635766
train_97a5f4e26e891597
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.288, -0.625), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.221).extrude(1.251) result = result.union(cq.Workplane(cq.Plane(origin=(-0.471, 0.596, 0.143), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.65, 0.604).extrude(0.243)) result = result.ed...
20
117
2.411699
train_346ffa87d4e381ea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.061, 0, 0.13), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.82, -0.373).lineTo(0.783, -0.373).lineTo(0.783, -0.298).lineTo(0.708, -0.298).lineTo(0.708, -0.373).lineTo(0.671, -0.373).lineTo(0.671, 0.065).lineTo(0.335, 0.065).lineTo(0.335, 0.233)....
2
25
0.443511
train_369bf883189c55a0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.506, 0, -0.501), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.478).sweep(cq.Workplane('XZ').spline([(-0.506, -0.501), (-0.17, 0.185), (0.166, 0.185), (0.503, -0.501)])) result = result.edges().chamfer(0.128) result = result.cut(cq.Workplane(cq....
8
28
1.327709
train_2fbad2aa5ec24765
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.988).workplane(offset=0.602).circle(0.886).workplane(offset=0.649).circle(0.816).workplane(offset=0.749).circle(0.783).loft() result = result.edges().chamfer(0.267) result = result.cut(cq.Work...
7
20
2.972663
train_6442e953c5909246
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.017, -0.392, -0.715), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.2, 0.449).lineTo(0.2, 0.05).lineTo(0.285, -0.036).lineTo(0.2, -0.121).lineTo(0.114, -0.036).lineTo(-0.285, -0.435).lineTo(-0.285, 0.449).lineTo(-0.2, 0.449).close().extrude(0.78...
7
75
0.404992
train_421854c9e4445202
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.02, 0, -0.338), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.499, 2).extrude(0.625) result = result.union(cq.Workplane(cq.Plane(origin=(0.056, 0.1, 0.286), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.348, 1.8).extrude(0.07)) result = result.union(cq...
15
123
1.697496
train_bb661dd9403f2fb6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.823, -0.087), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.441, 0).lineTo(0.374, -0.337).threePointArc((0.441, 0), (0.374, 0.337)).lineTo(-0.441, 0).close().sweep(cq.Workplane('YZ').spline([(-0.174, -0.544), (0.038, 0.031), (0.25, 0.318), (0....
1
5
0.478201
train_d655b8caa8509927
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.636), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.271).extrude(0.954) result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.063, 0.313), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.144).extrude(0.163)) result = result.union(cq.Wo...
17
114
1.92221
train_298f0b48156cd58b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.727, -0.138, -0.086), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.914, 0.203).threePointArc((0.692, 0.06), (0.433, 0.011)).lineTo(-0.914, 0.011).lineTo(-0.914, 0.203).lineTo(0.914, 0.203).close().extrude(0.868) result = result.edges().fillet(0....
30
203
0.314775
train_68fdf317ca2ddb00
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.008, -0.002, -0.268), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.008, -0.997).lineTo(0.974, -0.993).lineTo(0.992, 1).lineTo(-0.998, 1.001).close().moveTo(-0.492, -0.048).lineTo(-0.316, 0.048).lineTo(-0.14, -0.048).lineTo(-0.492, -0.048).close(...
17
120
1.409246
train_3eb9aee1c532ea1a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.516), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.9, 2).extrude(1.355) result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.425 * math.cos(4.813 + 2 * math.pi * 0 / 8), 0 + 0.425 * math.sin(4.813 + 2 * math.pi * 0 / 8), -0.839), normal...
15
54
4.959184
train_c45548a9fc625dad
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.003, 0.092, -0.185), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.674, 0.262).lineTo(-0.609, 0.175).lineTo(-0.563, 0.112).lineTo(-0.563, -0.112).lineTo(-0.393, -0.112).lineTo(-0.281, -0.262).lineTo(-0.281, -0.486).lineTo(0.281, -0.486).lineTo(...
14
113
1.567091
train_89f09e0aa01ee988
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.275, -0.32, -0.425), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.58, 0.011).threePointArc((-0.302, 0.527), (0.282, 0.579)).lineTo(0.464, 0.502).lineTo(0.58, 0.451).lineTo(0.58, 0.011).lineTo(0.464, 0.011).lineTo(-0.58, 0.011).close().extrude(1...
17
117
0.436406
train_f65d305c43f54553
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.245, 0.939, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.294).sweep(cq.Workplane('XY').spline([(0.245, 0.322), (0.394, 0.497), (0.544, 0.602), (0.693, 0.638), (0.842, 0.602), (0.992, 0.497), (1.141, 0.322)])) result = result.cut(cq.Workplane(...
7
3
0.209659
train_30af22e886e903ff
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.813, -0.529, -0.524), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.933, 2.117).lineTo(0.933, 0.076).lineTo(-0.933, 0.076).lineTo(0.933, 2.117).close().extrude(1.057) result = result.edges().fillet(0.36) result = result.union(cq.Workplane(cq.Plan...
3
25
1.480978
train_c8c1d12819390d02
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.259, -0.248, -0.65), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.145, -0.123).threePointArc((-0.093, -0.28), (-0.145, 0)).threePointArc((-0.093, 0.28), (0.145, 0.123)).lineTo(0.145, -0.123).close().sweep(cq.Workplane('YZ').spline([(0.12, -0.84...
5
24
0.399471
train_1eff616be8f91a0e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.362, 0.231, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.592).workplane(offset=0.186).circle(0.588).workplane(offset=0.198).circle(0.636).workplane(offset=0.166).circle(0.582).loft() result = result.edges().fillet(0.116) result = result.unio...
22
43
0.752102
train_fef8f482c9f3b98a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.054, 0, -0.507), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.246, 2).extrude(1.013) result = result.cut(cq.Workplane(cq.Plane(origin=(0.153, -0.14, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.027).extrude(0.056)) result = result.cut(cq.W...
9
32
2.497494
train_01fae23bd5c176f4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.262, 0, 0.882), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.336, 0.302).lineTo(-0.336, 0.707).lineTo(-0.336, -0.302).lineTo(0.336, -0.707).lineTo(0.336, 0.302).close().sweep(cq.Workplane('XZ').spline([(0.262, 0.113), (0.348, 0.249), (0.435, 0.33...
5
18
0.204292
train_f35f84b5ade3e718
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.803, 0.045), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.053, 0.197).lineTo(-0.145, 0.145).lineTo(-0.197, 0.053).lineTo(-0.088, 0.023).lineTo(-0.088, -0.023).lineTo(-0.064, -0.064).lineTo(-0.023, -0.088).lineTo(-0.053, -0.197).lineTo(0.053...
3
30
0.014276
train_43616f814e1d3bf4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.06, 0.412, -0.782), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.207, 0.545).threePointArc((0.21, 0.58), (0.218, 0.614)).lineTo(-0.199, -0.521).threePointArc((-0.209, -0.546), (-0.218, -0.572)).lineTo(-0.193, -0.506).threePointArc((-0.031, -0.27...
9
204
0.340238
train_ce174df65ddd76a9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.112, -0.519, -0.068), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.522).sweep(cq.Workplane('YZ').spline([(-0.991, -0.327), (-0.632, -0.327), (-0.272, -0.327), (0.302, -0.519), (0.877, -0.712)])) result = result.edges().chamfer(0.18) result = resu...
5
21
0.419843
train_3c78328584509763
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.066, -0.038, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.088, -0.212).lineTo(-0.088, 1.038).lineTo(0.087, 1.038).lineTo(0.088, -0.962).lineTo(-0.088, -0.962).lineTo(-0.088, -0.212).close().extrude(0.332) result = result.edges().fillet(...
15
87
0.123267
train_66fde92ebe228ec8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.054, 0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.045, 0.106).threePointArc((0.056, 0.11), (0.052, 0.1)).lineTo(0.052, 0.009).lineTo(0.052, 0.003).lineTo(0.045, 0.003).lineTo(-0.045, 0.003).threePointArc((-0.056, -0.002), (-0.052, 0.0...
4
21
0.012702
train_e9499a015f706bbc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.737, -0.093, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.996).sweep(cq.Workplane('XY').spline([(0.601, -0.093), (0.356, 0.16), (0.024, 0.304), (-0.341, 0.314)])) result = result.edges().chamfer(0.141) result = result.cut(cq.Workplane(cq.Pl...
12
140
0.413191
train_86aadf1a35f6b9d2
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.716).workplane(offset=0.379).circle(0.406).workplane(offset=0.283).circle(0.578).workplane(offset=0.301).circle(0.694).workplane(offset=0.31).circle(0.635).workplane(offset=0.358).circle(0.414...
9
3
1.844171
train_18dc9e23f567cfdd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.235, -0.708, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.64).lineTo(-1, 0.64).lineTo(-1, 0.034).threePointArc((0, 0.534), (1, 0.034)).lineTo(1, 0.64).close().extrude(0.47) result = result.edges().chamfer(0.035) result = result.union(cq.W...
5
52
0.25628
train_48dd5052b16e3775
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.286, 0.353, -0.18), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.035, 1.208).extrude(1.036) result = result.cut(cq.Workplane(cq.Plane(origin=(0.073, 0.353, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.09).extrude(0.773)) result = result.cu...
15
103
1.603204
train_dc708f0ff9d6e8a6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.852, -1, -0.167), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.327, 1.612).threePointArc((-0.543, 1.306), (-0.587, 0.934)).threePointArc((0.587, 0.399), (0.55, 1.69)).threePointArc((0.1, 1.79), (-0.327, 1.612)).close().revolve(angleDegrees=90, ...
11
59
1.445832
train_376bf72c8c9eaceb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.774, 2).extrude(0.086) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.71 + 0.1775, -0.8 + 0.2665, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.011, 0.037).lineTo(0, 0.073).lin...
14
249
0.299368
train_dd5f598ad9054375
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.78, 0.139), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.119, -0.2).lineTo(0.122, -0.22).lineTo(0.14, -0.194).lineTo(0.183, -0.13).lineTo(0.234, -0.055).lineTo(-0.022, -0.052).lineTo(-0.047, -0.091).lineTo(-0.163, 0.22).lineTo(-0.234, 0.121)...
1
11
0.015124
train_c5b041b012ba6882
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.408, 1.201).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.106, -0.073, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.636, 0.496).extrude(1.229)) result = result.cut(cq.Work...
14
71
2.53736
train_ae8c9745e6aa581c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.304, -0.249, -0.191), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.809, 0.304).lineTo(-0.809, 0.304).lineTo(-0.809, -0.194).lineTo(0.809, -0.194).lineTo(0.809, 0.304).close().revolve(angleDegrees=180, axisStart=(0.809, 0.304), axisEnd=(-0.187, 0...
8
17
0.574882
train_4d39e5877ff82ba6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.396), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.835, 2).extrude(0.793) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.86, 0.762).moveTo(-0.013, 0.072).lineTo(-0.041, 0.06).lineTo(...
16
101
1.56149
train_88ffb9d1e23b7029
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.38, -0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.847, 0.891).extrude(0.054) result = result.cut(cq.Workplane(cq.Plane(origin=(0.085, 0.246, 0.015), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.216, 0.445).extrude(0.012)) result = result.cu...
15
96
0.049171
train_28b4b0a6c61e18dc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.365, -0.572, -0.12), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.472, 0.552).threePointArc((0, -0.635), (-0.472, 0.552)).threePointArc((0, 0.74), (0.472, 0.552)).close().extrude(1.145) result = result.edges().fillet(0.191) result = result.union...
16
155
1.419376
train_dc8505ca61fa902c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.041, 0.151, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.718, 0.904).extrude(1.686) result = result.union(cq.Workplane(cq.Plane(origin=(-0.023, -0.444, -0.478), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.158).extrude(0.82)) result = result.cu...
15
96
1.09873
train_160407901464d1e6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.366, -0.586), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.538, -0.172).threePointArc((-0.487, -0.206), (-0.428, -0.218)).lineTo(0, -0.218).lineTo(0.428, -0.218).threePointArc((0.487, -0.206), (0.538, -0.172)).threePointArc((0.572, -0.122), ...
27
129
1.664564
train_92642ff2fb4f00ce
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.093, -0.132, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.216).lineTo(-1, 0.014).lineTo(0.899, 0.014).threePointArc((1, 0.115), (0.899, 0.216)).lineTo(-1, 0.216).close().extrude(0.264) result = result.edges().chamfer(0.019) result = resu...
12
51
0.083741
train_677c7bf2815497c2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.644, -0.234, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.37, 0.098).lineTo(0.37, 0.098).lineTo(0.37, 0.585).lineTo(-0.37, 0.585).lineTo(-0.37, 0.098).close().workplane(offset=0.227).moveTo(-0.57, -0.035).lineTo(0.57, -0.035).lineTo(0.57, 0...
4
15
1.426766