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_339cbb629b5ec421
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.053, 0.051, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.416, 0.098).threePointArc((-0.417, 0.053), (0.416, 0.008)).lineTo(1, 0.008).threePointArc((-1, 0.053), (1, 0.098)).lineTo(0.416, 0.098).close().extrude(0.103) result = result.cut(cq.Wo...
14
78
0.261263
train_fc7cdd30a6b08b03
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.077, -0.432, 0.112), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.047, 0.173).lineTo(0.615, 0.173).lineTo(0.615, 0.741).lineTo(-0.615, 0.741).lineTo(-0.615, 0.173).lineTo(-0.047, 0.173).close().revolve(angleDegrees=180, axisStart=(-0.047, 0.173...
11
107
1.388589
train_ec07f97f3a238c66
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.626, -0.055), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.246, 0.136).lineTo(-0.252, 0.111).lineTo(-0.235, 0.111).lineTo(-0.296, -0.128).lineTo(-0.313, -0.128).lineTo(-0.315, -0.136).lineTo(0.315, -0.136).lineTo(0.313, -0.128).lineTo(0.279, ...
17
60
0.167016
train_f208d899c3981257
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.103, 0.076, -0.276), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.529, 0.393).extrude(0.352) result = result.cut(cq.Workplane(cq.Plane(origin=(0.156, -0.089, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.235, 0.067).extrude(0.081)) result = res...
27
124
0.099609
train_0450558b5d814cc2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.384, -0.112, -0.182), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.409, 0.554).lineTo(-0.409, 0.069).lineTo(0.033, 0.069).lineTo(0.033, -0.33).lineTo(0.409, -0.33).lineTo(0.409, 0.163).lineTo(-0.074, 0.163).lineTo(-0.074, 0.554).lineTo(-0.409,...
6
59
0.169586
train_1a3dbf48b839004c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.662, 0.612, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.588, 0.182).lineTo(-0.588, 0.338).lineTo(0.588, 0.338).lineTo(0.469, 0.182).lineTo(0.588, 0.182).lineTo(0.392, -0.078).lineTo(0.274, -0.078).lineTo(0.195, -0.182).lineTo(-0.195, -0.18...
4
34
0.194189
train_0c45e87ee6c3eca3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.175), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.213, -0.036).lineTo(-0.088, -0.161).threePointArc((0.036, -0.213), (0.161, -0.161)).threePointArc((0.213, -0.036), (0.161, 0.088)).lineTo(0.036, 0.213).lineTo(-0.088, 0.088).lineTo(-0.2...
8
16
0.160686
train_fb3630c9b6696c6a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.047, 0, -0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.136, 0.999).extrude(0.94) result = result.union(cq.Workplane(cq.Plane(origin=(0.047, 0, 0.745), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.779, 0.684).extrude(0.15)) result = result.faces...
9
73
1.527602
train_dfa4e4ecdad7dfd0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.58, -0.726, 0.483), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.165).lineTo(-0.447, 0.285).lineTo(-0.426, 0.361).lineTo(-0.055, 0.262).lineTo(-0.231, 0.566).lineTo(-0.462, 0.966).lineTo(0.462, 0.966).lineTo(0.062, 0.735).lineTo(0, 0.699).lin...
4
33
0.903863
train_b00b425f80b2312e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.836, 0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.528, 0.164).lineTo(-0.528, -0.032).lineTo(-0.462, -0.032).threePointArc((-0.33, 0.098), (-0.198, -0.032)).lineTo(0.198, -0.032).threePointArc((0.33, -0.164), (0.462, -0.032)).lineTo(0...
1
10
0.076746
train_183771a7ff55cef5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.995, 0.149, 0.262), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(-0.341, -0.799).lineTo(-0.421, 0.356).lineTo(-0.341, 0.356).lineTo(-0.341, 0.502).close().sweep(cq.Workplane('XZ').spline([(0, -0.604), (0.284, -0.596), (0.569, -0.555), (0.853, -0....
5
19
0.449555
train_44a9f825a96742ef
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.04, -0.179), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.308, -0.308).lineTo(0.308, 0.308).lineTo(0.173, 0.173).lineTo(0.244, -0.158).lineTo(0, 0).lineTo(0.173, -0.173).lineTo(-0.158, -0.244).lineTo(-0.173, -0.173).lineTo(-0.244, 0.158).lin...
2
16
0.205334
train_28360f9cf96af82c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.02, -1.026, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.788).lineTo(1, 1.289).lineTo(1, 0.287).lineTo(-1, 0.788).close().revolve(angleDegrees=360, axisStart=(-1, 0.788), axisEnd=(1, 1.289)) result = result.edges().chamfer(0.95) result ...
5
16
0.472322
train_d95b133b14b1734f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.159, 0, 0.031), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.854, 0.274).lineTo(-0.854, -0.13).lineTo(-0.969, -0.13).lineTo(-0.969, -0.188).threePointArc((-0.919, -0.31), (-0.795, -0.361)).lineTo(0.552, -0.361).threePointArc((0.639, -0.338), (0...
4
56
0.812288
train_e4db93556a4cdaea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.254, 0.11), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.554).lineTo(-0.327, 0.365).lineTo(-0.327, 0.207).lineTo(-0.26, 0.207).lineTo(-0.26, -0.425).lineTo(-0.327, -0.386).lineTo(-0.327, -0.554).lineTo(0.327, -0.554).lineTo(0.327, 0.365).l...
26
240
0.472611
train_6c6ab6b5ea447e6f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.5, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.373, 0.588).threePointArc((-0.424, 0.59), (-0.423, 0.539)).threePointArc((-0.253, 0.463), (-0.07, 0.495)).threePointArc((-0.102, 0.312), (-0.026, 0.142)).threePointArc((0.025, 0.141), (0.02...
2
15
0.137348
train_8e067528414b1ada
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.142, -0.382, -0.198), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.343, 0.034).threePointArc((-0.344, 0), (-0.343, -0.034)).threePointArc((-0.243, -0.244), (-0.034, -0.343)).lineTo(0.036, -0.343).threePointArc((0.245, -0.244), (0.344, -0.034))....
19
106
0.648004
train_841fd98a3fa78ae3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.298, 0, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.405, 0.586).extrude(0.288) result = result.union(cq.Workplane(cq.Plane(origin=(-0.683, -0.051, -0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.633, 0.332).extrude(0.075)) result = res...
13
99
0.221371
train_8418913d67dcc140
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.838, 0.675).extrude(0.684) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.324), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.214).extrude(0.313)) result = result.union(cq.Workplane(...
7
26
0.486201
train_53646d249bdb2d10
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.75, -0.014), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.986, 0.046).lineTo(-0.986, -0.116).lineTo(0.638, -0.116).lineTo(0.638, -0.046).lineTo(0.986, -0.046).lineTo(0.986, 0.046).lineTo(-0.568, 0.046).lineTo(-0.568, 0.116).lineTo(-0.986, 0...
4
71
0.346327
train_ad602b91d6e622f0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.008, 0.044, 0.176), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.146, -0.23).threePointArc((0, 0.272), (-0.146, -0.23)).threePointArc((0, -0.272), (0.146, -0.23)).close().sweep(cq.Workplane('YZ').spline([(-0.107, -0.008), (-0.027, 0.084), (0.053,...
15
70
0.084042
train_190291d01d19dbad
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.111, 0, 0.139), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.119, 1).lineTo(-0.111, 0.487).lineTo(-0.103, -0.026).lineTo(-0.088, -1).lineTo(-0.119, 1).close().sweep(cq.Workplane('XZ').moveTo(0.056, 0).spline([(0.04, 0.073), (-0.024, 0.125), (-0....
2
23
0.00122
train_0677509fc46f58f1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.053, -0.024, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.82, 0.871).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(0.408, 0.081, 0.337), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.11, 0.078).extrude(0.171)) result = result.uni...
13
140
1.329436
train_92cf2d031d640c3f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.005, -0.101, 0.08), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.138, 0.345).threePointArc((0.375, 0.248), (0.277, 0.484)).lineTo(0.277, 0.761).lineTo(0.277, 0.899).lineTo(0.138, 0.899).lineTo(-0.138, 0.899).threePointArc((-0.179, 0.801), (-0.277...
8
41
0.936573
train_fec7e7da0fbdf805
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.081, -0.08, 0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.049, -0.014).lineTo(-0.049, 0.084).lineTo(0.049, 0.084).lineTo(0.049, -0.001).threePointArc((0.04, -0.004), (0.036, -0.014)).lineTo(-0.036, -0.014).lineTo(-0.049, -0.014).close().e...
19
125
0.020701
train_89535c779f7615ce
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.563, -0.324), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.221, 0.258).lineTo(0.258, 0.258).lineTo(0.258, -0.258).lineTo(-0.258, -0.258).lineTo(-0.258, 0.258).lineTo(-0.221, 0.258).close().sweep(cq.Workplane('YZ').spline([(-1.079, -0.901), (...
8
41
0.582553
train_5dc87553e1950802
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.188, 0.668), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.332, 0.322).lineTo(-0.137, 0.127).lineTo(-0.332, 0.597).lineTo(0.057, 0.597).lineTo(0.332, 0.322).close().revolve(angleDegrees=360, axisStart=(0.332, 0.322), axisEnd=(-0.137, 0.127)) re...
6
62
0.218782
train_4954807dff290052
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.212, 0.914, 0.475), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.519).workplane(offset=0.361).circle(0.527).workplane(offset=0.41).circle(0.51).workplane(offset=0.367).circle(0.507).workplane(offset=0.406).circle(0.508).loft() result = result.e...
16
108
1.553547
train_bbd648b6e4eeb50b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.43, -0.402, -0.381), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.381, 0.236).lineTo(0.381, -0.373).lineTo(-0.381, -0.373).lineTo(-0.381, 1.455).threePointArc((-0.16, 1.287), (-0.076, 1.024)).lineTo(-0.076, 0.236).lineTo(0.381, 0.236).close().r...
4
34
1.133139
train_bcb30badf8d7942f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.971, 0.92, -0.178), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.039, 0.029).lineTo(-0.039, -0.014).threePointArc((0, -0.029), (0.039, -0.014)).lineTo(0.039, 0.029).lineTo(0.01, 0.029).lineTo(-0.01, 0.029).lineTo(-0.039, 0.029).close().sweep(cq....
4
28
0.057119
train_cf6d69379f308476
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.033, -0.059, -0.401), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.007, 0.191).lineTo(0.05, 0.191).lineTo(0.076, 0.149).lineTo(0.084, 0.137).lineTo(0.126, 0.072).lineTo(0.112, 0.068).lineTo(0.112, -0.177).lineTo(0.126, -0.191).lineTo(-0.085, -0....
8
50
0.11372
train_0eab68482c0dac7f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.345, 0.06, -0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.31, 1.003).extrude(0.604) result = result.union(cq.Workplane(cq.Plane(origin=(-0.501, 0.245, 0.202), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.46, 0.372).extrude(0.12)) result = resul...
29
159
0.618784
train_ffb25d8686223b94
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.103, -0.291, -0.759), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.398, 1.419).extrude(1.003) result = result.faces('>X').shell(-0.085) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.143, -0.146, -0.766), normal=(0, 0, 1), xDir=(1, 0, 0))).ci...
15
70
0.851378
train_a8965af1c7f00f63
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.037, -0.376, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.141, 0.214).lineTo(-0.25, -0.039).lineTo(0.09, -0.391).lineTo(0.103, -0.304).lineTo(0.176, -0.163).close().moveTo(-0.083, -0.13).lineTo(-0.076, -0.112).lineTo(-0.057, -0.111).line...
9
119
0.029231
train_853007c4fab7ad00
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.03, 0.391, -0.228), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.05, 1.217).extrude(0.456) result = result.union(cq.Workplane(cq.Plane(origin=(-0.069, -0.408, -0.074), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.208).extrude(0.097)) result = resul...
9
38
0.568377
train_45d75c26fdd7d258
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.936, 0, -0.569), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.064, -0.021).lineTo(0.064, 0.021).lineTo(-0.064, 0.021).lineTo(-0.064, -0.021).lineTo(-0.058, -0.021).lineTo(-0.058, -0.018).lineTo(-0.046, -0.018).lineTo(-0.046, 0.018).lineTo(-0.04...
1
16
0.003015
train_25829f80073c4264
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.04, -0.054, 0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.296, 0.011).lineTo(0.096, 0.293).lineTo(-0.242, 0.182).lineTo(-0.252, -0.19).lineTo(0.101, -0.283).close().moveTo(-0.049, 0.065).lineTo(0.049, 0.065).lineTo(0.05, 0.192).lineTo(-0....
10
121
0.182947
train_43acb6ac10455c95
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.02, -1.032, -0.061), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.125, 0.209).lineTo(-0.209, 0.125).lineTo(-0.209, -0.125).lineTo(-0.125, -0.209).lineTo(0.155, -0.209).lineTo(0.209, -0.155).lineTo(0.209, 0.125).lineTo(0.125, 0.209).lineTo(-0.12...
5
62
0.374725
train_b9636435b18f7e2c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.564, -0.002, -0.027), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.169).sweep(cq.Workplane('XY').spline([(-0.803, -0.002), (-0.644, -0.112), (-0.484, -0.112), (-0.325, -0.002)])) result = result.union(cq.Workplane(cq.Plane(origin=(-0.541, -0.051...
13
103
0.198447
train_810d7a87c47c4ce8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.33, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.443, -0.927).lineTo(0.443, 0.927).lineTo(-0.443, 0.927).lineTo(-0.443, -0.927).lineTo(0.443, -0.927).close().revolve(angleDegrees=360, axisStart=(0.443, -0.927), axisEnd=(0.443, 0.927)) re...
14
104
3.826805
train_5c0adba1fd0c8e0d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.011, 0.045, -0.125), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.989, -0.635).lineTo(0.981, -0.603).lineTo(1.011, 0.634).lineTo(-0.974, 0.613).close().moveTo(0, -0.162).lineTo(0.049, -0.068).lineTo(0.154, -0.05).lineTo(0.08, 0.026).lineTo(0.09...
9
105
0.65362
train_3a4d3ab198f47adc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.02, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.05).lineTo(-0.301, -0.351).threePointArc((0, 0.377), (0.301, -0.351)).lineTo(0, -0.05).close().extrude(0.697) result = result.edges().fillet(0.03) result = result.union(cq.Workplane(cq....
7
67
0.210128
train_0b1ef6f611d7b60c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.152, -0.107, 0.226), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.165, 0.287).threePointArc((-0.213, 0.266), (-0.257, 0.235)).lineTo(-0.553, 0.284).lineTo(-0.362, 0.053).threePointArc((-0.367, 0), (-0.362, -0.053)).lineTo(-0.553, -0.284).lineTo...
9
51
0.288412
train_91c400a98cfffc89
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.08, 0.2, 0.161), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.296, 0.321).extrude(0.368) result = result.faces('>Z').shell(-0.031) result = result.union(cq.Workplane(cq.Plane(origin=(0.044, 0.248, 0.083), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(...
18
123
0.086365
train_cfecaa89e71ce2db
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.435, 0.747, -0.048), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.048, 0.76).threePointArc((-0.059, 0.231), (1.048, 0.047)).lineTo(1.048, 0.76).lineTo(-1.048, 0.76).close().extrude(1.493) result = result.edges().fillet(0.046) result = result.fa...
6
34
1.46439
train_bebd1d159763d130
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.704).workplane(offset=0.42).circle(0.484).workplane(offset=0.544).circle(0.41).workplane(offset=0.511).circle(0.196).workplane(offset=0.525).circle(0.115).loft() result = result.cut(cq.Workpla...
10
9
0.769656
train_4ec28795e7da3fa3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.268, -0.005, -0.277), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.464, 0.834).moveTo(0, -0.084).lineTo(0.019, -0.033).lineTo(0.072, -0.042).lineTo(0.039, 0).lineTo(0.072, 0.042).lineTo(0.019, 0.033).lineTo(0, 0.084).lineTo(-0.019, 0.033).lineTo(-0...
13
126
0.636875
train_c11c70502b864739
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.295, 0, -0.268), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.41, 1.681).extrude(0.189) result = result.union(cq.Workplane(cq.Plane(origin=(0.366, 0.084, -0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.634).extrude(0.023)) result = result.unio...
5
27
0.964496
train_bb961722e4c41255
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.087, -0.28, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.715, 0.816).extrude(0.084) result = result.union(cq.Workplane(cq.Plane(origin=(-0.087, -0.232, -0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.55, 0.749).extrude(0.015)) result = ...
31
235
0.279836
train_4c85e30e7ef014c6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.186, -0.988, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.969, -0.236).threePointArc((-0.018, -0.161), (-1, -0.042)).lineTo(-0.919, 0.524).threePointArc((0.038, 0.409), (1, 0.335)).lineTo(0.969, -0.236).close().revolve(angleDegrees=90, axisS...
5
27
1.495074
train_db67c09e541aac6a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.826, 0.093, -0.197), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.12, -0.321).lineTo(-0.12, 0.321).lineTo(0.12, 0.321).lineTo(0.12, -0.321).lineTo(-0.12, -0.321).close().sweep(cq.Workplane('XZ').moveTo(0.766, -0.337).spline([(0.625, -0.081), (0....
7
26
0.538296
train_14c9ea8c8f79effe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.079, 0.164, -0.023), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.042, 0.138).lineTo(-0.063, 0.101).lineTo(-0.085, 0.064).lineTo(-0.063, 0.028).lineTo(-0.042, -0.009).lineTo(0, -0.009).threePointArc((0.037, 0.001), (0.063, 0.028)).lineTo(0.085,...
13
178
0.005888
train_6b720e134dee6054
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.237, 0, -0.815), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.526, 1.206).extrude(1.629) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.392, -0.264, 0.412), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.134).extrude(0.412)) result = result.cut...
4
17
3.060252
train_09185fd1bb091e08
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.202, -0.155, -0.708), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.596, 1.194).extrude(1.415) result = result.cut(cq.Workplane(cq.Plane(origin=(0.314, -0.111, -0.27), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.101).extrude(0.267)) result = result....
13
76
2.540917
train_290342357cc4e9d1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.576), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.139).extrude(1.152) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.192, 0.18, 0.208), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.275).extrude(0.378)) result = result.cut(cq.Workpla...
5
18
2.116115
train_52f6ca0080734363
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.099, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.091).extrude(0.856) result = result.cut(cq.Workplane(cq.Plane(origin=(0.242, 0.406, -0.574), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.053).extrude(1.027)) result = result.cut(cq.Wo...
11
37
1.84104
train_1f5cc643c0ec1023
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.077, 0.702).extrude(0.618) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.437), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.339, 0.308).extrude(1.439)) result = result.edges().chamfe...
7
57
0.510223
train_b1657d17f583e9f2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.68, 0.383, -0.133), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.036).lineTo(-0.867, 0.036).lineTo(-0.867, 0.436).lineTo(0.867, 0.436).lineTo(0.867, 0.036).lineTo(0, 0.036).close().extrude(0.586) result = result.edges().fillet(0.052) result =...
17
136
0.370714
train_76b0041331765651
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.133, -0.03, -0.275), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.162, -0.04).threePointArc((0, -0.202), (-0.162, -0.04)).lineTo(-0.162, 0.286).lineTo(0.162, 0.286).lineTo(0.162, -0.04).close().extrude(0.593) result = result.edges().chamfer(0.01...
28
225
0.231957
train_3708871b4310045f
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.494).workplane(offset=0.309).circle(0.445).workplane(offset=0.282).circle(0.447).workplane(offset=0.391).circle(0.384).workplane(offset=0.366).circle(0.534).workplane(offset=0.377).circle(0.42...
11
34
0.803837
train_08c0aba004f02f01
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 1, -0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.654).workplane(offset=0.338).circle(0.785).workplane(offset=0.415).circle(0.879).workplane(offset=0.438).circle(0.875).workplane(offset=0.431).circle(0.817).workplane(offset=0.378).circle...
9
43
3.109045
train_e61cf7101ee9180f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.027), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.115, 1).threePointArc((0.246, 0.717), (0.332, 0.418)).lineTo(0.332, -0.032).threePointArc((0.317, -0.144), (0.274, -0.249)).lineTo(-0.16, -1).lineTo(-0.246, -0.95).threePointArc((-0.262, -...
25
16
0.415038
train_9992001650080ea3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.242, -0.448, -0.005), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.444, 0.975).threePointArc((-0.278, 1.236), (-0.008, 1.085)).lineTo(0.444, -0.346).threePointArc((0.22, -0.748), (-0.167, -0.5)).lineTo(-0.444, 0.975).close().extrude(0.895) resu...
3
14
0.928634
train_b01faa16e6ff1c7d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.924, 0.549, -0.206), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.005, 0.037).threePointArc((0.028, 0.048), (0.032, 0.013)).threePointArc((0.035, 0.009), (0.038, 0.004)).threePointArc((0.064, -0.016), (0.039, -0.038)).threePointArc((-0.064, -0....
2
15
0.037056
train_0f37830b71969341
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.26, -0.167, -0.185), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.16, 0.766).threePointArc((0, 0.926), (0.16, 0.766)).lineTo(0.16, -0.432).threePointArc((0, -0.592), (-0.16, -0.432)).lineTo(-0.16, 0.766).close().workplane(offset=0.095).moveTo(-...
2
13
0.638031
train_e7bd5360abe4903f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.08, -0.209, -0.007), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.203, -0.488).lineTo(0.203, -0.701).lineTo(-0.203, -0.701).lineTo(-0.203, 1.08).lineTo(0.203, 1.08).lineTo(0.203, -0.488).close().extrude(0.399) result = result.edges().fillet(0.07...
6
43
0.278126
train_28394f31b3b0b362
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.883, 0.333, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.387, 1.883).lineTo(0.387, 0.044).lineTo(-0.387, 0.044).lineTo(-0.387, 1.592).lineTo(0.095, 1.592).lineTo(0.095, 1.883).lineTo(0.387, 1.883).close().extrude(0.667) result = result.edges...
11
89
0.739457
train_9649ea26548671ff
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.165), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.526, 2).extrude(0.33) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.165, -1.465), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0, 0.057).lineTo(-0.01, 0.056).lineTo(-0.019, 0.053).line...
15
44
0.806333
train_f03408f7f77d65e8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.934), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.675).extrude(1.275) result = result.union(cq.Workplane(cq.Plane(origin=(0.17, 0.13, 0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.446).extrude(0.622)) result = result.cut(cq.Workpla...
9
116
3.203036
train_cedb8038aadfcc1f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.983, 0.465), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.077, 0.387).threePointArc((-0.237, -0.005), (0.077, -0.398)).lineTo(0.073, -0.414).threePointArc((-0.254, -0.005), (0.073, 0.403)).threePointArc((0.163, 0.414), (0.254, 0.404)).lineTo...
1
9
0.01734
train_8c7e39f5a6b9bb77
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.003, 0.178, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.14, 1.325).extrude(0.263) result = result.union(cq.Workplane(cq.Plane(origin=(0.027, 0.178, 0.056), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.103, 0.532).threePointArc((-0.268, ...
25
171
0.313153
train_a67dc7f64ddb5dee
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.33, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.773, 0.716).lineTo(0, 0.716).lineTo(0, 1.103).lineTo(0.773, 1.103).lineTo(0.773, -0.443).lineTo(-0.773, -0.443).lineTo(-0.773, 0.716).close().extrude(2) result = result.edges().fillet(0.1...
10
83
3.795436
train_f3ac2478a1875c3e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.446, 0.206, -0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.108, 0.874).extrude(0.506) result = result.faces('<Z').shell(-0.034) result = result.union(cq.Workplane(cq.Plane(origin=(0.066, 0.206, 0.263), normal=(1, 0, 0), xDir=(0, 0, 1))).mov...
5
42
0.269182
train_c5e9b560292b5569
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.581, 0.904, 0.04), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.166, 1.235).threePointArc((-0.529, 0.99), (-0.666, 0.573)).threePointArc((0.104, -0.089), (0.666, 0.757)).threePointArc((0.349, 1.169), (-0.166, 1.235)).close().extrude(1.808) resu...
14
131
1.820793
train_5adf5fbb65d412d6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.27, -0.002, 0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.732, -0.773).lineTo(0.73, -0.786).lineTo(0.706, 0.79).lineTo(-0.728, 0.778).close().moveTo(-0.031, -0.001).lineTo(-0.166, 0.187).lineTo(-0.387, 0.117).lineTo(-0.385, -0.112).lineTo...
7
60
0.341415
train_31f9db4b955d12fe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.116, -0.82), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.839, 1.768).extrude(1.64) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.187, -0.367, -0.833), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.096, 0.912).extrude(0.536)) result = result...
20
100
3.782273
train_fbbe8a11edf09220
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.041, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.679, 0.767).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(-0.339, -0.037, 0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.042).extrude(0.232)) result = result.cut(cq.Work...
13
113
0.95409
train_207674efb4ab520b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.009, -0.025, -0.093), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0).lineTo(0.434, 0).lineTo(0.434, 0.434).lineTo(-0.434, 0.434).lineTo(-0.434, -0.434).lineTo(0, -0.434).lineTo(0, 0).close().sweep(cq.Workplane('XY').spline([(-0.59, -0.389), (-...
4
25
0.643862
train_a0b5fa9611f394fb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.027, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.775, 0.656).lineTo(0.262, 0.656).lineTo(0.262, -0.131).lineTo(0.787, -0.131).lineTo(0.787, -0.656).lineTo(-0.787, -0.656).lineTo(-0.787, 0.656).lineTo(-0.775, 0.656).close().sweep(cq.Work...
7
62
2.074959
train_aacd4e7bc02d1a66
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.41, 0, 0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.682).lineTo(0.131, -0.227).lineTo(0.59, -0.341).lineTo(0.262, 0).lineTo(0.59, 0.341).lineTo(0.131, 0.227).lineTo(0, 0.682).lineTo(-0.131, 0.227).lineTo(-0.59, 0.341).lineTo(-0.262, 0...
18
135
0.415912
train_4d098c925c9db737
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.418, 0.569, 0.094), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.495, 1.035).lineTo(-0.495, -0.246).lineTo(-0.495, 1.035).lineTo(0.495, 1.035).close().extrude(1.418) result = result.edges().fillet(0.181) result = result.faces('>Z').shell(-0.091)...
11
55
0.614912
train_fa0086bc2a2e61d8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.385, 0.284, 0.115), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.092, -0.194).lineTo(-0.092, 0.172).lineTo(0.098, 0.187).lineTo(0.098, 0.194).lineTo(-0.092, 0.178).lineTo(-0.098, 0.178).lineTo(-0.098, -0.194).lineTo(-0.092, -0.194).close().swee...
11
72
0.107675
train_1bcc820a2d5211da
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.019, -0.315, -0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.714, 0.015).lineTo(0.504, 0.468).lineTo(0.006, 0.714).lineTo(-0.51, 0.469).lineTo(-0.676, -0.013).lineTo(-0.501, -0.498).lineTo(0.019, -0.685).lineTo(0.489, -0.469).close().moveT...
21
233
0.155766
train_de33493a233c2ac2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.96, -0.262), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.028, -0.025).lineTo(0.028, 0.025).lineTo(-0.028, 0.025).lineTo(-0.028, 0.016).threePointArc((-0.013, 0), (-0.028, -0.016)).lineTo(-0.028, -0.025).lineTo(0.028, -0.025).close().sweep(cq....
1
8
0.003395
train_797868ebf58244cc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.173, -0.154, -0.276), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.573, 1.692).extrude(0.167) result = result.union(cq.Workplane(cq.Plane(origin=(-0.004, 0.067, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.314, 0.572).extrude(0.049)) result =...
25
108
0.378227
train_cee7a7622f8d45bc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.059, -0.213, -0.052), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.073).workplane(offset=0.165).circle(0.095).workplane(offset=0.13).circle(0.103).workplane(offset=0.162).circle(0.091).loft() result = result.edges().fillet(0.079) result = result...
10
58
0.432693
train_d7dc129410b3ab1b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.131, -0.511, -0.893), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.04).lineTo(-0.942, 0.04).lineTo(-0.471, 0.511).lineTo(-0.942, 0.981).lineTo(0.942, 0.981).lineTo(0.942, 0.04).lineTo(0.471, 0.04).lineTo(0.471, 0.511).lineTo(0, 0.511).lineTo(...
4
66
2.029697
train_2b0dce6c6dd4408e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.306, -0.003, -0.534), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.441, 0.537).threePointArc((0.694, 0), (0.441, -0.537)).lineTo(-0.441, -0.537).threePointArc((-0.694, 0), (-0.441, 0.537)).lineTo(0.441, 0.537).close().revolve(angleDegrees=90, ax...
12
43
0.911516
train_d1b94a043cfaccaf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.004, 0, -0.691), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.103, 0.066).extrude(0.007) result = result.union(cq.Workplane(cq.Plane(origin=(0.032, 0, -0.685), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.003).extrude(0.018)) result = result.union(...
5
65
0.001343
train_3c29a661242a021f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.13, -0.337, -0.133), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.687, 0.657).extrude(0.266) result = result.cut(cq.Workplane(cq.Plane(origin=(0.19, -0.557, -0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.115).extrude(0.138)) result = result.e...
22
136
0.23487
train_4e8c53c0a5979dde
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.248, -0.63), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.314, 1.504).extrude(1.26) result = result.union(cq.Workplane(cq.Plane(origin=(0.209, 0.734, -0.231), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.266).extrude(0.311)) result = result.cut(...
4
14
2.188179
train_ee8c3b0845eb6598
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.273, -0.012, 0.103), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.265, -0.349).threePointArc((0.409, -0.409), (0.349, -0.265)).lineTo(0.349, 0.324).threePointArc((0.29, 0.349), (0.265, 0.409)).lineTo(-0.324, 0.409).threePointArc((-0.349, 0.349),...
9
72
0.417515
train_83c58813185036d7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.189, 0.094, 0.965), normal=(0, 0, 1), xDir=(1, 0, 0))).lineTo(-0.378, 0.348).lineTo(0, 0.348).close().sweep(cq.Workplane('YZ').moveTo(0.568, 0.034).spline([(0.431, 0.394), (0.088, 0.559), (-0.285, 0.404), (-0.566, 0.116), (-0.586, -0.27), (-0.29...
1
5
0.185554
train_910980851f681b6d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.779, -0.3), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.715).workplane(offset=0.839).circle(0.679).workplane(offset=0.719).circle(0.694).loft() result = result.edges().chamfer(0.234) result = result.union(cq.Workplane(cq.Plane(origin=(0.186,...
13
36
1.681865
train_21ccb13dc5c57816
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.006, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.015, -1).lineTo(0.015, -1).lineTo(0.015, 1).lineTo(-0.015, 1).lineTo(-0.015, -1).close().extrude(0.017) result = result.edges().fillet(0.003) result = result.union(cq.Workplane(cq.Plane(o...
12
142
0.001841
train_693fead2360736b1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.052, -0.381, 0.706), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.329, 0.774).threePointArc((-0.015, 0.359), (-0.329, -0.077)).lineTo(-0.329, 0.774).lineTo(0.329, 0.774).close().extrude(0.641) result = result.edges().fillet(0.029) result = resu...
6
36
0.277244
train_37edfa8f550a0db8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.468, -1, -0.014), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.141, 0.908).lineTo(0.141, 0.029).lineTo(-0.141, 0.029).lineTo(-0.141, 0.908).lineTo(0.141, 0.908).close().extrude(1.045) result = result.edges().chamfer(0.094) result = result.union(...
5
60
0.417377
train_6f7e6250fc8f50c8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.073, -0.286, -0.69), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.133, -0.139).lineTo(-0.133, 0.139).lineTo(0.133, 0.139).lineTo(0.133, -0.139).lineTo(-0.133, -0.139).close().extrude(0.064) result = result.edges().chamfer(0.006) result = resul...
32
239
0.596611
train_2583ec9aeb012dbd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.014), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.31, -0.333).lineTo(-0.31, -0.066).lineTo(-0.355, -0.066).lineTo(-0.355, 0.066).lineTo(-0.31, 0.066).lineTo(-0.31, 0.332).lineTo(0.355, 0.333).lineTo(0.355, 0.066).lineTo(0.31, 0.066).lineT...
11
141
0.19424
train_9b0e8e7749a2e136
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.058, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.405, 0.831).extrude(1.854) result = result.union(cq.Workplane(cq.Plane(origin=(-0.702, -0.242, -0.374), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.118, 0.053).extrude(0.309)) result = result....
11
143
2.130302