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_b931ef351eacba93
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1.709, 0.005, 0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 2.374).lineTo(-0.5, 1.045).lineTo(0.5, 1.045).lineTo(0.5, 2.374).lineTo(-0.5, 2.374).close().revolve(angleDegrees=360, axisStart=(-0.5, 2.374), axisEnd=(-0.5, 1.045)) result = re...
5
19
2.543034
train_76d4614ec30377f0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.404, -0.674, 0.223), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.388, 0.714).lineTo(-0.388, -0.079).lineTo(0.388, -0.079).lineTo(0.388, 1.428).lineTo(-0.388, 1.428).lineTo(-0.388, 0.714).close().revolve(angleDegrees=270, axisStart=(-0.388, 0.71...
7
105
0.740388
train_9dcb122daccfea33
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.744, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.046).lineTo(-0.067, -0.046).lineTo(-0.067, 0.02).lineTo(-0.093, 0.02).lineTo(-0.093, 0.046).lineTo(0.093, 0.046).lineTo(0.093, 0.02).lineTo(0.067, 0.02).lineTo(0.067, -0.046).lineTo(0,...
1
11
0.016414
train_ab920f5ca674c18c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.212, 0, -0.363), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.576, 0.703).extrude(0.726) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.112, 0.049, -0.181), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.171).extrude(0.131)) result = result.cut(...
17
164
0.645647
train_c66f1f33089aeef6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.895), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.788).workplane(offset=0.202).circle(0.887).workplane(offset=0.234).circle(0.695).workplane(offset=0.254).circle(0.852).workplane(offset=0.26).circle(0.771).workplane(offset=0.24).circle(0....
14
67
1.86015
train_3cf34a282e3e654f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.052, 0.003, -0.078), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.048, 0.06).threePointArc((0, 0.108), (-0.048, 0.06)).lineTo(-0.048, -0.108).lineTo(0.048, -0.108).lineTo(0.048, 0.06).close().extrude(0.059) result = result.edges().chamfer(0.005)...
32
230
0.111965
train_827db3416969b490
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.48, -0.355, -0.088), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.36, 1.48).threePointArc((0.661, 0.812), (0.713, 0.08)).threePointArc((0.421, -0.245), (0, -0.366)).threePointArc((-0.421, -0.245), (-0.713, 0.08)).threePointArc((-0.661, 0.812), (...
6
52
1.442426
train_31aacbf38e22627f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.66, 0.543), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.235).sweep(cq.Workplane('YZ').spline([(0.568, 0.113), (-0.001, 0.404), (-0.635, 0.214), (-0.412, -0.223), (0.313, -0.224)])) result = result.edges().chamfer(0.154) result = result.cut(...
5
29
0.370684
train_566e0a4fe923145f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.229, 0.573, -0.078), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.535).lineTo(-0.222, 0).lineTo(0, 0.535).lineTo(0.083, 0.334).lineTo(0.044, 0.178).lineTo(0.126, 0.096).lineTo(0.144, 0.188).lineTo(0.222, 0).lineTo(0.107, 0).lineTo(0.104, -0.0...
5
35
0.291546
train_00fda0b3c8001ba8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.604, -0.726, 0.06), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.127, 0.045).lineTo(0.127, 0.105).lineTo(0.013, 0.105).lineTo(-0.031, 0.149).lineTo(-0.127, 0.053).lineTo(-0.067, -0.149).lineTo(0.127, 0.045).close().transformed(offset=(0.395, -0...
1
15
0.023092
train_f41762c78c2b607d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.422, -0.069, -0.762), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.567, 0.601).extrude(0.099) result = result.union(cq.Workplane(cq.Plane(origin=(-0.422, -0.069, -0.663), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.175).extrude(0.008)) result = re...
21
176
0.334967
train_3699519319c3e78e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.274, -0.986, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.163, -0.58).lineTo(0.26, 0.58).lineTo(0.163, 0.58).lineTo(-0.26, -0.58).lineTo(-0.163, -0.58).close().sweep(cq.Workplane('XY').spline([(-0.274, -2.208), (0.165, -2.575), (0.605, -2.7...
3
13
0.223359
train_37cbcc16b862ecb6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.16, 0.011, -0.194), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.344, 0.07).lineTo(0.344, 0.004).lineTo(-0.344, 0.004).lineTo(-0.344, 0.07).lineTo(0.344, 0.07).close().extrude(0.239) result = result.edges().fillet(0.027) result = result.union(cq...
26
233
0.349728
train_7adafe5cf980ffbc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.332, 0.376, 0.078), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.332, 1.354).threePointArc((-0.332, 0.368), (0.197, -0.695)).lineTo(0.197, -0.22).threePointArc((0.026, 0.386), (0.332, 0.938)).lineTo(0.332, 1.354).close().extrude(0.753) result = ...
6
33
0.514368
train_0d331e873b09f78b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.869, -0.252, -0.266), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.129).transformed(offset=(0.182, 0.161, 0.002), rotate=(0, 0, 0)).circle(0.121).transformed(offset=(0.364, 0.215, 0.07), rotate=(10, 0, 0)).circle(0.048).transformed(offset=(0.547...
1
3
0.024252
train_e521938db79e18fa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.16, -0.369, -0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.334, 1.263).extrude(0.856) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.602, -0.369, 0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.071).extrude(0.526)) result = result...
24
121
1.019578
train_680b916142fff655
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.497), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.496, 0.204).extrude(0.316) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.062).extrude(0.222)) result = result.union(cq.Workpl...
12
65
0.071675
train_324e0ce2b0bc0a5d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.15, -0.131, 0.449), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.426, -0.685).lineTo(0.426, -0.685).lineTo(0.426, 0.685).lineTo(-0.426, 0.685).lineTo(-0.426, -0.685).close().workplane(offset=0.334).moveTo(-0.538, -0.865).lineTo(0.538, -0.865)....
13
131
0.475718
train_283778ae83337051
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.45, 0.278, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.287, 0.681).lineTo(-0.031, 0.681).lineTo(0.163, 0.681).lineTo(0.287, 0.682).lineTo(0.287, -0.339).lineTo(0.159, -0.34).lineTo(-0.287, -0.34).lineTo(-0.287, 0.681).close().extrude(1.116...
18
96
0.610071
train_01d9a1e3a46f807d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.335, 2).extrude(0.155) result = result.union(cq.Workplane(cq.Plane(origin=(0.326, 0.02, 0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.11, 0.135).extrude(0.038)) result = result.union(cq....
9
47
0.365851
train_73a2d166adb71311
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.314, 0, -0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.133, 0.332).lineTo(-0.012, 0.332).lineTo(-0.012, 0.09).lineTo(-0.133, 0.09).lineTo(-0.012, -0.099).lineTo(0.133, -0.099).lineTo(0.133, 0.332).close().extrude(0.38) result = result.edg...
23
295
0.032707
train_1d80d3e90e57874e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.011, -0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.072, 0.209).threePointArc((0, 0.218), (0.072, 0.209)).lineTo(0.072, 0.386).threePointArc((0.4, 0.161), (0.431, -0.236)).threePointArc((0.4, -0.301), (0.359, -0.361)).lineTo(0.206, -0...
13
123
0.313921
train_aaacf914e6953988
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.425, 1.826).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.123, -0.29, -1.033), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.412).extrude(1.324)) result = result.cut(cq.Workplane...
4
24
4.360462
train_008232d56c1c9871
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.044, -0.255), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.209, -0.563).lineTo(-0.031, -0.22).threePointArc((0.07, -0.168), (0.182, -0.145)).lineTo(0.104, 1.044).lineTo(-0.156, -0.041).lineTo(-0.207, -0.518).threePointArc((-0.209, -0.54), (-0...
11
92
0.099927
train_bec9bdcdf2d33705
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.134, 0, -0.288), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.031, 2).extrude(0.576) result = result.faces('>Z').shell(-0.068) result = result.union(cq.Workplane(cq.Plane(origin=(-0.509, 0.216, -0.195), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.1...
3
14
0.357285
train_ee64b93bbf9d5bb2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.32, -0.165, -0.091), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.222, -0.42).lineTo(0.222, 0.569).lineTo(-0.222, 0.569).lineTo(-0.222, -0.42).lineTo(0.222, -0.42).close().extrude(0.28) result = result.edges().fillet(0.03) result = result.union...
26
308
0.917811
train_c8b803e534ccfb13
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.765, 0.119, 0.311), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.689, -0.339).threePointArc((-0.402, 0.052), (0.022, 0.289)).threePointArc((0.355, 0.339), (0.689, 0.289)).lineTo(0.689, 0.101).lineTo(0.653, 0.101).threePointArc((0.355, 0.149), ...
13
79
0.477303
train_b9827423c70d7624
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.647, -0.259, -0.132), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.744, -0.106).lineTo(-0.744, -0.319).lineTo(0.744, -0.319).lineTo(0.744, 0.319).lineTo(-0.744, 0.319).lineTo(-0.744, -0.106).close().sweep(cq.Workplane('XY').spline([(-0.173, -0...
16
70
0.529729
train_7523c963b4d3e6d3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.273, -0.177, 0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.2, 0.206).extrude(0.121) result = result.cut(cq.Workplane(cq.Plane(origin=(0.233, -0.26 + 0.0415, 0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.021).lineTo(-0.018, -0.021)....
13
55
0.085327
train_66d293d7b28a194f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.325).extrude(0.091) result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.53 + 0.076, 0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.049, -0.14).lineTo(0.049, 0.09).lineTo(0, 0.14...
18
60
0.179975
train_6d6d19bbbba1a888
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.363, 0.408, -0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.565, -0.001).lineTo(0.404, 0.396).lineTo(0.008, 0.568).lineTo(-0.386, 0.379).lineTo(-0.543, -0.015).lineTo(-0.391, -0.389).lineTo(0.001, -0.548).lineTo(0.408, -0.404).close().moveTo(...
20
139
1.212163
train_1dc723388fe79b9e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.169, 0.45, 0.007), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.376, 0.047).lineTo(-0.376, -0.047).lineTo(0.376, -0.047).lineTo(0.376, 0.047).lineTo(0.085, 0.047).lineTo(0.085, 0).lineTo(-0.085, 0).lineTo(-0.085, 0.047).lineTo(-0.376, 0.047).cl...
24
214
0.230546
train_42c3cc1cb9659101
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.075, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.119, -0.001).threePointArc((0.123, 0), (0.124, 0.004)).threePointArc((-0.015, 0.052), (-0.124, -0.048)).threePointArc((-0.122, -0.052), (-0.118, -0.051)).threePointArc((-0.01, 0.024), (0....
3
16
0.013911
train_adce064352475dfd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.818, 0.662, 0.141), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.725, 1.818).lineTo(-0.725, -0.182).lineTo(0.725, -0.182).lineTo(0.725, 1.818).lineTo(-0.725, 1.818).close().revolve(angleDegrees=90, axisStart=(-0.725, 1.818), axisEnd=(-0.725, 1....
9
51
2.384926
train_4a13eda4c5b83b4e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.159, 0.058), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.596).sweep(cq.Workplane('YZ').spline([(-0.764, -0.695), (-0.308, -0.422), (0.149, -0.295), (0.605, -0.313)])) result = result.edges().chamfer(0.241) result = result.cut(cq.Workplane(cq...
15
67
1.162272
train_6496c22128ca55d9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.355), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.763).extrude(0.71) result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.479, -0.047), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.423).extrude(0.093)) result = result.cut(cq.Workplane(...
8
31
2.388211
train_59dd901e7eb54354
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.102, 0.614, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.234, -0.204).lineTo(-0.066, 0.114).threePointArc((0.084, 0.204), (0.234, 0.114)).threePointArc((0.229, -0.053), (0.084, -0.135)).lineTo(0.084, -0.204).lineTo(-0.234, -0.204).close().s...
2
14
0.272522
train_52643dce9c6010a2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0.287, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.042, -0.112).lineTo(-0.01, -0.064).lineTo(0.092, -0.081).lineTo(0.115, -0.048).lineTo(0.001, -0.046).lineTo(0.016, -0.028).lineTo(-0.035, 0.112).lineTo(-0.042, 0.102).lineTo(-0.061, 0.075)...
1
12
0.012749
train_c6e1d55ec19bc35b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.554, 0.378, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.246, -0.119).threePointArc((-0.175, -0.293), (0, -0.365)).threePointArc((0.175, -0.293), (0.246, -0.119)).lineTo(0.246, 1.227).threePointArc((0.175, 1.4), (0, 1.473)).threePointArc((-...
5
37
0.521487
train_d474a643fb493b6e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.535, 0.574, -0.164), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.908, 0.046).lineTo(0.527, 1.157).threePointArc((0.809, 0.634), (0.908, 0.046)).lineTo(-0.908, 0.046).close().extrude(1.069) result = result.edges().chamfer(0.09) result = result....
28
100
0.722209
train_2afb3aacb25fab63
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.879, -0.211, 0.173), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.064, -0.121).lineTo(0.064, -0.121).lineTo(0.064, 0.064).lineTo(0.052, 0.064).lineTo(0.035, 0.092).lineTo(0.052, 0.121).lineTo(-0.064, 0.121).lineTo(-0.064, 0.064).lineTo(0.035, 0...
11
101
0.153277
train_e0b3479b0b808467
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.222), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.232, 2).extrude(0.445) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.222, -1.023), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.045, 0.09).lineTo(0.045, -0.09).lineTo(-0.045, -0.09)....
11
60
0.808426
train_c0a7ef0b2d733bf9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.001, 0.003, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.001, -0.008).lineTo(0.512, 0.871).lineTo(-0.485, 0.831).lineTo(-0.999, -0.022).lineTo(-0.518, -0.877).lineTo(0.462, -0.828).close().moveTo(0.074, 0.379).lineTo(0.081, 0.373).lineT...
14
146
0.421148
train_80dd10dbd2f6d551
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.044, -0.057, -0.581), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.654, 1.886).extrude(1.162) result = result.union(cq.Workplane(cq.Plane(origin=(-0.799 + 0.2515, 0.153, 0.245), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.104, -0.042).lineTo(-0.1...
35
91
2.821032
train_aa6b40457c43aff5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.49, 0.136, 0.032), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.33, 0.519).threePointArc((-0.521, 0.328), (-0.33, 0.136)).lineTo(-0.074, 0.136).lineTo(0.266, 0.136).threePointArc((0.202, 0.328), (0.266, 0.519)).threePointArc((0.378, 0.613), (0....
20
96
0.739899
train_1ed1f9e9601f7cca
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.409, 0.147), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.659, -0.413).lineTo(-0.413, -0.659).lineTo(0.659, 0.413).lineTo(0.413, 0.659).lineTo(-0.659, -0.413).close().sweep(cq.Workplane('YZ').spline([(0.236, -0.599), (0.169, -0.208), (-0.20...
2
11
0.667385
train_06e8983b45ee9ad0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.101, -0.205, -0.357), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.408, 1.591).extrude(0.911) result = result.union(cq.Workplane(cq.Plane(origin=(-0.405, 0.79, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.21).extrude(0.353)) result = resul...
16
111
1.827144
train_3aab5b410f2025dd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.67), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.287, 0.276).extrude(0.303) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.374), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.197, 0.169).extrude(0.148)) result = result.union(cq.Wo...
12
140
0.049909
train_20b49cdda515860e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, -0.036, 0.745), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.735, -0.963).lineTo(-0.735, 0.18).threePointArc((-0.026, 0.963), (0.735, 0.229)).lineTo(0.735, -0.85).threePointArc((0.634, -0.911), (0.529, -0.963)).lineTo(-0.531, -0.963).lineT...
6
80
3.364177
train_6e8ec556c00c882a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.904, 0.734, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.171, 0.501).threePointArc((0.232, 0.904), (-0.171, 1.307)).lineTo(-0.403, 1.307).lineTo(-0.403, 1.904).lineTo(-0.232, 1.904).lineTo(-0.232, 1.478).lineTo(-0.171, 1.478).threePointArc(...
3
61
0.578905
train_2db9c0a5996e2c70
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.365, 0, 0.393), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.255).sweep(cq.Workplane('XZ').spline([(-0.338, 0.082), (-0.132, -0.009), (0.091, -0.009), (0.298, 0.082), (0.298, 0.18), (0.091, 0.271), (-0.132, 0.271), (-0.338, 0.18)])) result = resu...
5
87
0.376869
train_a98d11354cb91e36
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.017, -0.416, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.535, 0.077).lineTo(-0.535, 0.077).lineTo(-0.535, 0.719).lineTo(0.535, 0.719).lineTo(0.535, 0.077).close().extrude(1.648) result = result.cut(cq.Workplane(cq.Plane(origin=(0.282, 0.285...
16
117
1.224022
train_47d010b5b7602cdd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.826, 0, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.588).workplane(offset=0.426).circle(0.539).workplane(offset=0.447).circle(0.561).loft() result = result.edges().fillet(0.244) result = result.union(cq.Workplane(cq.Plane(origin=(0.91,...
5
20
1.376764
train_6ba309578dd8251a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.276, 0.389, 0.234), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.662, 0.879).threePointArc((-0.75, 0.525), (-0.662, 0.171)).threePointArc((-0.635, 0.125), (-0.605, 0.081)).threePointArc((0, -0.225), (0.605, 0.081)).threePointArc((0.635, 0.125),...
13
95
1.355198
train_a0b96de8348972fd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.804), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.727).extrude(1.609) result = result.cut(cq.Workplane(cq.Plane(origin=(0.448, 0.68, -0.521), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.575, 0.385).extrude(1.027)) result = result.edges().c...
3
51
5.314847
train_f6a2d00b3cb120c6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.719, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.916, -0.035).lineTo(0.916, 1.125).lineTo(0.433, 1.125).lineTo(0.433, 0.054).lineTo(0, 0.054).lineTo(0, 1.125).lineTo(-0.916, 1.125).lineTo(-0.916, -0.035).lineTo(0.2, -0.035).lineTo(0.2, -...
12
121
2.364239
train_15086836baa0a528
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.207, 0.118, 0.003), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.159, 1.118).threePointArc((-0.174, 0.118), (0.159, -0.882)).lineTo(0.174, -0.882).threePointArc((-0.162, 0.118), (0.174, 1.118)).lineTo(0.159, 1.118).close().extrude(0.415) result ...
3
26
0.010616
train_eff427972dc19efb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.006, 0.176, -0.054), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.149, 0.824).lineTo(-0.149, 0.108).lineTo(0.149, 0.108).lineTo(0.149, 0.824).lineTo(-0.149, 0.824).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.274, 0)) result =...
11
68
0.400497
train_8cd6d1321b0d9f7e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.447, 0.202, -0.629), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.101, 1.101).extrude(1.312) result = result.faces('>Z').shell(-0.092) result = result.union(cq.Workplane(cq.Plane(origin=(0.489, 0.356, 0.666), normal=(0, 0, 1), xDir=(1, 0, 0))).rect...
17
269
0.820674
train_16854cbca24220d9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.961, 0.496, 1.222), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.525, 0.525).lineTo(-0.525, 0.017).lineTo(-0.589, 0.017).lineTo(-0.589, -0.174).lineTo(-0.525, -0.174).lineTo(-0.525, -0.589).lineTo(0.589, -0.589).lineTo(0.589, 0.525).lineTo(0.127...
27
7
0.278303
train_90737871837564da
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.627, -0.539, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.612, 1.218).lineTo(-0.612, -0.461).lineTo(-0.233, -0.461).lineTo(-0.233, 1.218).lineTo(0.612, 1.218).lineTo(0.612, 1.539).lineTo(-0.361, 1.539).lineTo(-0.361, 1.218).lineTo(-0.612, 1...
6
38
0.423694
train_f80ed6d1fca89fcf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.462, -0.058, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.541, 0.014).lineTo(0.261, 0.461).lineTo(-0.285, 0.46).lineTo(-0.538, 0.004).lineTo(-0.274, -0.451).lineTo(0.281, -0.467).close().moveTo(-0.382, -0.109).lineTo(-0.086, -0.11).line...
13
134
1.086995
train_0f15e6f32f399500
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.22), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.622, -1.072).lineTo(0.622, -0.195).threePointArc((0.755, 0.252), (0.622, 0.698)).threePointArc((-0.067, 1.072), (-0.755, 0.698)).lineTo(-0.755, -0.195).lineTo(-0.755, -1.072).lineTo(0.622, ...
16
131
0.354908
train_11d917e3b62a5434
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0.216, 0.017), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.037, -0.136).lineTo(0.297, -0.136).lineTo(0.223, -0.062).lineTo(0.037, 0.124).lineTo(0, 0.161).lineTo(-0.037, 0.124).lineTo(-0.037, 0.198).lineTo(-0.074, 0.161).lineTo(-0.111, 0.124)....
7
62
0.274612
train_1ae2ca82df0c839f
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.725, 1.63).extrude(1.136) result = result.union(cq.Workplane(cq.Plane(origin=(0.11, -0.201, 0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.185).extrude(0.407)) result = result.union(cq.Work...
14
63
2.693685
train_f072ff177ef60c53
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.589, -0.768, -0.478), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 1.17).lineTo(-0.253, 1.17).lineTo(-0.49, 0.933).lineTo(-0.49, 0.245).lineTo(-0.252, 0.009).lineTo(0.252, 0.009).lineTo(0.49, 0.245).lineTo(0.49, 0.933).lineTo(0.253, 1.17).lineT...
21
146
1.059354
train_f6eedf74037a2fdc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.898, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.49, 1.826).lineTo(-0.49, 1.657).lineTo(-0.742, 1.657).lineTo(-0.742, 0.091).lineTo(0.622, 0.091).lineTo(0.622, -0.029).lineTo(0.742, -0.029).lineTo(0.742, 1.657).lineTo(0.369, 1.657).lin...
15
61
0.663523
train_10402985b3df0518
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.017, -0.916, -0.938), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.046, 0.148).lineTo(-0.046, 0.132).lineTo(-0.062, 0.117).lineTo(-0.062, 0.07).lineTo(-0.054, 0.064).lineTo(-0.054, 0.037).lineTo(-0.062, 0.031).lineTo(-0.062, -0.102).lineTo(-0.0...
18
286
0.245482
train_f32447377df357f2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.276, -0.342, 0.1), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.296, -0.594).threePointArc((0, 1.157), (0.296, -0.594)).lineTo(-0.296, -0.594).close().extrude(0.566) result = result.edges().chamfer(0.087) result = result.union(cq.Workplane(cq.P...
7
113
1.392986
train_72ce66f52fa1777e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.452, 0.682, -0.276), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.358, -0.244).threePointArc((0.138, 0.455), (-0.358, 0.996)).threePointArc((0.273, 0.534), (0.358, -0.244)).close().extrude(1.254) result = result.edges().fillet(0.05) result = res...
25
95
0.133449
train_9153c2cbb68773e7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.128, 0, -0.625), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.744, 1.637).extrude(1.249) result = result.union(cq.Workplane(cq.Plane(origin=(0.864, -0.202, 0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.136).extrude(0.432)) result = result.ed...
3
39
3.584071
train_b0e1ef0d6988c2b5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.425, -0.322, 0.441), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.174, -0.069).lineTo(-0.174, 0.197).lineTo(-0.068, 0.197).lineTo(-0.068, 0.022).lineTo(-0.001, -0.045).lineTo(0.174, -0.045).lineTo(0.174, -0.151).lineTo(-0.092, -0.151).lineTo(-0...
9
142
0.083307
train_2a09daebea16a975
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.078, -0.579, 0.053), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.001, -0.001).lineTo(0.003, 0.003).lineTo(0.008, -0.001).lineTo(0.108, 0.099).lineTo(0.104, 0.104).lineTo(0.099, 0.108).lineTo(-0.01, -0.001).lineTo(-0.108, -0.099).lineTo(-0.104,...
5
103
0.023172
train_c6a4daca457b34c2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.168, 0, -0.496), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.168, 0.044).lineTo(-0.168, 0.002).lineTo(-0.038, 0.002).lineTo(-0.038, 0.023).lineTo(0.038, 0.023).lineTo(0.038, 0.002).lineTo(0.168, 0.002).lineTo(0.168, 0.044).lineTo(-0.168, 0.044...
5
104
0.015321
train_3be90a17ff2e9d46
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.074, -0.018, -0.228), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.034, 0.079).lineTo(0.1, 0.04).lineTo(0.069, -0.03).lineTo(0.053, -0.105).threePointArc((-0.024, -0.13), (-0.1, -0.105)).lineTo(-0.024, -0.097).lineTo(-0.024, -0.065).lineTo(-0.0...
9
57
0.04061
train_c56c6115fadc3fcc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.174, 0.344, -0.062), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.077, 0.018).threePointArc((-0.077, 0.01), (0.077, 0.001)).lineTo(0.186, 0.001).threePointArc((-0.186, 0.01), (0.186, 0.018)).lineTo(0.077, 0.018).close().extrude(0.106) result = r...
13
126
0.116197
train_8019da1bfbbcac44
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.035, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.856, 1.041).extrude(1.691) result = result.union(cq.Workplane(cq.Plane(origin=(0.427, 0.236, -0.669), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.071, 0.163).extrude(0.189)) result = result.c...
12
79
1.524685
train_4b20137b5d524c89
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.212, -0.32, -0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.072, 0.876).extrude(0.224) result = result.union(cq.Workplane(cq.Plane(origin=(-0.173, -0.024, 0.032), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.274, -0.316).lineTo(0.274, 0.232)...
20
261
0.546722
train_4bb12decdbf7798d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.247, 0.076, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.33, 0.4).extrude(0.216) result = result.union(cq.Workplane(cq.Plane(origin=(0.442, 0.141, 0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.063, 0.159).extrude(0.057)) result = resul...
12
55
0.065282
train_3dc821c303ea0913
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.706, -0.002), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.513, 0.899).threePointArc((-0.066, 0.529), (-0.329, -0.105)).threePointArc((-0.484, -0.235), (-0.614, -0.08)).threePointArc((-0.285, 0.713), (0.439, 1.174)).threePointArc((0.614, 1.07...
3
17
1.147739
train_3867c0c9b01d43cd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.057, -0.077, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.484, 1.495).extrude(1.817) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.651 + 0.198, -0.077, -1.272), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.08, 0.134).lineTo(-0.08, 0.037...
20
84
3.713431
train_08b26067ab72c9f1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.005, 0.167, -0.647), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.225, 0.201).threePointArc((-0.321, 0.105), (-0.225, 0.009)).lineTo(0.225, 0.009).threePointArc((0.321, 0.105), (0.225, 0.201)).lineTo(-0.225, 0.201).close().extrude(0.17) result =...
8
70
0.332194
train_1d00f86649060e69
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.184, -0.007, -0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.477, -0.01).lineTo(0.33, 0.324).lineTo(0.006, 0.486).lineTo(-0.321, 0.322).lineTo(-0.475, -0.019).lineTo(-0.337, -0.334).lineTo(-0.006, -0.472).lineTo(0.334, -0.352).close().moveT...
17
224
0.147778
train_cf3aae2c28645bd2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.175, -0.199), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.979, 1.237).extrude(0.573) result = result.faces('<X').shell(-0.026) result = result.union(cq.Workplane(cq.Plane(origin=(-0.107, -0.892, -0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).circ...
6
28
0.180658
train_f150f5dfa135527a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.358, -1.073, -0.007), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1.008, 1.073).threePointArc((0.873, 0.569), (0.504, 0.2)).lineTo(-0.504, 0.2).lineTo(-1.008, 1.073).lineTo(-0.504, 1.946).lineTo(0.504, 1.946).lineTo(1.008, 1.073).close().extrude(...
9
84
1.900557
train_42e592af37f20a81
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.295, -0.88), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.924, 1.409).extrude(1.76) result = result.union(cq.Workplane(cq.Plane(origin=(-0.245, 0.679, -0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.621, 0.642).extrude(0.899)) result = resul...
3
51
5.052178
train_2832c9d250c65d11
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.002, -0.033, -0.662), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.968, 0.843).extrude(1.662) result = result.union(cq.Workplane(cq.Plane(origin=(-0.159, 0.421, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.034).extrude(0.107)) result = res...
14
42
1.386167
train_485601b1d2a1e4b3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.596, 0.844, -1.634), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(2.634, 0.094).lineTo(2.634, 1.463).lineTo(-2.634, 1.411).lineTo(2.634, 0.094).close().extrude(1.192) result = result.edges().fillet(0.479) result = result.cut(cq.Workplane(cq.Plane(...
5
31
1.699083
train_8a8bfe060a589095
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.045, 0.286, 0.111), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.069, 0.149).lineTo(-0.069, 0.01).lineTo(0.068, 0.01).threePointArc((0.069, 0.08), (0.062, 0.149)).lineTo(-0.069, 0.149).close().revolve(angleDegrees=180, axisStart=(-0.069, 0.149...
10
105
0.189647
train_128d926fef83056f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.215).workplane(offset=0.335).circle(0.228).workplane(offset=0.468).circle(0.153).workplane(offset=0.339).circle(0.159).workplane(offset=0.375).circle(0.133).workplane(offset=0.482).circle(0.12...
2
5
0.187387
train_be0b7b7734b6b19f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.401, 0.01, 0.127), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.252, 0.252).lineTo(-0.252, 0.115).lineTo(0.115, -0.252).lineTo(0.252, -0.252).lineTo(0.252, 0.252).lineTo(-0.252, 0.252).close().sweep(cq.Workplane('XZ').spline([(-0.707, -0.182), ...
13
65
0.112133
train_0e8cb9788151f71f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.294, -0.198, -0.493), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.926, 1.603).extrude(0.987) result = result.cut(cq.Workplane(cq.Plane(origin=(0.294, -0.198, 0.242), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.096, 0.865).extrude(0.259)) result = re...
8
52
0.365212
train_1e448e7597f3fa25
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.007, -1, -0.024), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.273, -0.167).threePointArc((0.283, -0.15), (0.291, -0.132)).threePointArc((0.075, 0.08), (-0.215, 0.167)).threePointArc((-0.291, 0.117), (-0.202, 0.132)).threePointArc((0.073, 0.041)...
7
26
0.032028
train_da7770bc0afbd3e0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.76, 0.542, -0.083), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.554, 1.213).lineTo(0.554, 0.048).lineTo(0.344, 0.925).lineTo(-0.554, 0.854).lineTo(0.215, 1.323).lineTo(0.35, 1.279).lineTo(0.554, 1.213).close().workplane(offset=0.556).moveTo(0.5...
2
35
0.448634
train_4ab3592abd9916ea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.398, 0.235, -0.4), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.8, 0.8).extrude(0.8) result = result.union(cq.Workplane(cq.Plane(origin=(-0.461, 0.809, 0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.237, 0.382).extrude(0.208)) result = result.u...
17
74
0.719894
train_38a6734d3ba006ec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.011, -0.91, -0.226), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.032, -0.037).threePointArc((0.058, -0.064), (0.032, -0.09)).threePointArc((0.004, -0.086), (-0.021, -0.073)).threePointArc((-0.058, 0), (-0.021, 0.073)).threePointArc((0.004, 0.0...
22
113
0.017296
train_e7a211defa00e7f8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.402, -0.069, -0.607), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.195, 1.36).extrude(0.548) result = result.union(cq.Workplane(cq.Plane(origin=(-0.076, -0.002, -0.016), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.486, 0.431).lineTo(0.622, 0.431)...
2
14
1.172483
train_34b55bbd820a0ccf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.54, 0.555, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.173, 0.46).lineTo(0.173, -0.46).lineTo(-0.173, 0).lineTo(-0.173, 0.46).lineTo(0.173, 0.46).close().sweep(cq.Workplane('XY').spline([(0.54, 0.232), (0.856, 0.361), (1.173, 0.447), (1.49, ...
7
23
0.100472
train_f864d60720155bc2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.307, 0, -0.347), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.386, 0.965).extrude(0.529) result = result.union(cq.Workplane(cq.Plane(origin=(0.679, 0.211, -0.295), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.642, 0.352).extrude(0.256)) result = resu...
11
84
0.696234
train_4d461c578530e260
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.075, -0.207, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.259, 0.05).lineTo(0.293, 0.05).lineTo(0.44, 0.93).lineTo(0.293, 0.93).lineTo(0.176, 0.417).lineTo(0.058, 0.605).lineTo(-0.058, 0.605).lineTo(-0.176, 0.417).lineTo(-0.293, 0.93).l...
16
94
1.37044