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_b1fc6277492238ab
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.188, 0.412, -0.149), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.602).sweep(cq.Workplane('YZ').spline([(0.412, -0.149), (0.195, 0.047), (-0.148, 0.106), (-0.471, 0.004), (-0.632, -0.216)])) result = result.edges().chamfer(0.05) result = result....
12
79
0.83029
train_2dbdcd0f2e41cf76
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.788, 0.077), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.474, 1.142).lineTo(-0.474, 0.533).lineTo(0.474, -0.077).lineTo(0.474, 1.142).close().revolve(angleDegrees=360, axisStart=(0.474, 1.142), axisEnd=(-0.474, 0.533)) result = result.edges()...
7
22
0.694022
train_1d80de337c779b88
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.33, 0.685, 0.531), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.403, 0.315).lineTo(-0.403, -0.315).lineTo(-0.326, -0.315).lineTo(-0.326, -0.251).lineTo(0.2, -0.251).lineTo(0.124, -0.097).lineTo(0.328, -0.251).lineTo(0.403, -0.251).lineTo(0.403...
3
30
0.020218
train_bedcf47058c3e57f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.095, -0.123, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.28, 0.138).lineTo(-0.176, 0).lineTo(-0.176, 0.083).lineTo(-0.114, 0).lineTo(0.176, 0).lineTo(0.135, -0.055).lineTo(0.135, -0.138).lineTo(0.238, 0).lineTo(0.238, 0.083).lineTo(0.28, 0....
2
18
0.124629
train_1ee64e952e3d4dc7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.103, 0.159, 0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.585, 0.542).extrude(0.096) result = result.union(cq.Workplane(cq.Plane(origin=(0.234, 0.159, 0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.046).extrude(0.059)) result = result....
19
133
0.309674
train_42c18057a77aba35
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.025, 0.228, -0.187), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.711, 1.544).extrude(0.456) result = result.cut(cq.Workplane(cq.Plane(origin=(0.025, 0.228, 0.164), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.055, 1.205).extrude(0.108)) result = resu...
14
102
0.260413
train_79cf558c7d1fd449
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.328), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.236).extrude(0.491) result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.062, 0.161), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.112).extrude(0.074)) result = result.union(cq.Wo...
19
128
1.237404
train_a70288c9218f990f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.685, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.346, 0.395).threePointArc((0.489, 0.741), (0.346, 1.087)).threePointArc((0, 1.23), (-0.346, 1.087)).threePointArc((-0.489, 0.741), (-0.346, 0.395)).lineTo(0, 0.05).lineTo(0.346, 0.395).clo...
9
53
1.6249
train_010fad4847606b5a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.063, -0.059, -0.483), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.691, 1.674).extrude(0.841) result = result.union(cq.Workplane(cq.Plane(origin=(-0.104, 0.83, -0.125), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.194, 0.107).extrude(0.037)) result =...
5
29
2.386723
train_986f8c1acc5f786d
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.722, 1.928).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.012, 0.329, -0.636), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.691, 0.763).threePointArc((0.714, -0.296), (-0.523, ...
2
12
5.967705
train_1838ab4bedbd68fc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.294, 0, -0.59), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.412, 0.514).extrude(0.487) result = result.union(cq.Workplane(cq.Plane(origin=(0.677, -0.112, -0.516), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.646, 0.087).extrude(0.259)) result = resu...
12
79
0.616782
train_ff7d10064e83620e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.896, -1.365, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.948, 0.818).lineTo(0.948, 1.912).lineTo(-0.948, 1.912).lineTo(0.859, 0.869).lineTo(0.948, 0.818).close().revolve(angleDegrees=90, axisStart=(0.948, 0.818), axisEnd=(0.948, 0.921)) res...
8
38
0.976151
train_c7c47ae18e82b73b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.228, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.38, 1.203).threePointArc((-0.95, 0.633), (-0.38, 0.063)).lineTo(0.38, 0.063).threePointArc((0.95, 0.633), (0.38, 1.203)).lineTo(-0.38, 1.203).close().extrude(2) result = result.union(cq....
5
21
3.362538
train_de59a68b029599db
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.033, -0.444, 0.22), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.188, 0.12).lineTo(-0.188, -0.006).lineTo(0.188, -0.056).lineTo(0.188, 0.17).lineTo(-0.188, 0.12).close().extrude(0.434) result = result.edges().fillet(0.044) result = result.union...
15
162
0.326097
train_20fffe8126634f84
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.379, 0.181, -0.168), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.472, -0.048).lineTo(0.472, 0.519).threePointArc((0.46, 0.552), (0.438, 0.58)).lineTo(0.425, 0.567).lineTo(0.378, 0.615).lineTo(0.094, 0.615).threePointArc((-0.04, 0.684), (-0.189, ...
4
25
1.502111
train_5e5925c24fbcd76d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.499, -0.009, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.504, 0).lineTo(0, -0.873).lineTo(0.504, 0).lineTo(0, 0.873).lineTo(-0.504, 0).close().revolve(angleDegrees=270, axisStart=(-0.504, 0), axisEnd=(0, -0.873)) result = result.cut(cq.Wor...
6
64
1.773888
train_9189313e63aea51c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.159, -0.227, 0.353), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.659, 0.738).lineTo(0.143, 0.738).threePointArc((0.103, 0.722), (0.086, 0.681)).lineTo(0.086, -0.209).lineTo(0, -0.209).lineTo(0, -0.123).threePointArc((-0.044, -0.126), (-0.086, -...
10
142
1.200391
train_f63cf33ac8764d89
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.051, -0.628, -0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.436, 0.745).extrude(0.579) result = result.union(cq.Workplane(cq.Plane(origin=(-0.093, -0.104, -0.245), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.07, 0.348).extrude(0.231)) result ...
14
135
0.213506
train_499f1bbfc26616d3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.435), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.734).extrude(0.826) result = result.edges().fillet(0.061) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.095 * math.cos(0.651 + 2 * math.pi * 0 / 3), 0.413 + 0.095 * math.sin(0.6...
10
45
1.171172
train_9d1d6bc932561d63
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.167, 0, -0.435), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.667, 1.753).extrude(0.87) result = result.union(cq.Workplane(cq.Plane(origin=(0.825, 0, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.35, 0.889).extrude(0.716)) result = result.cut...
10
11
2.754639
train_38553bf4f82af3a3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.936, 0.412), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.075, 0.523).lineTo(0.226, 0.262).lineTo(0.377, 0).lineTo(0.226, -0.262).lineTo(0.075, -0.523).lineTo(-0.075, -0.262).lineTo(-0.377, -0.262).lineTo(-0.226, 0).lineTo(-0.377, 0.262).lineT...
2
56
0.686883
train_09fa88d6977dd8ba
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.004, 1, -0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.915).workplane(offset=0.478).circle(0.928).workplane(offset=0.524).circle(0.926).workplane(offset=0.531).circle(0.895).workplane(offset=0.468).circle(0.874).loft() result = result.cut...
10
25
3.347552
train_f858fa501150acbe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.351, 0.03), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.617, 0.269).lineTo(-0.617, 0.332).lineTo(0.617, 0.332).lineTo(0.617, -0.332).lineTo(0.604, -0.332).lineTo(0.604, -0.314).lineTo(-0.617, -0.314).lineTo(-0.617, 0.269).close().sweep(cq....
5
21
0.812042
train_e2bbec38948b31fe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(2.344, 0, -0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.5, 3.22).lineTo(0.5, 2.903).lineTo(-0.151, 2.903).lineTo(-0.151, 1.775).lineTo(0.5, 1.775).lineTo(0.5, 1.468).lineTo(-0.5, 1.468).lineTo(-0.5, 3.22).lineTo(0.5, 3.22).close().revolve(an...
5
34
3.052339
train_d57970163d05dbef
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.093, -0.573), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.723, 0.829).extrude(0.941) result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.16 * math.cos(2.743 + 2 * math.pi * 0 / 5), 0.093 + 0.16 * math.sin(2.743 + 2 * math.pi * 0 / 5), 0.3...
10
57
1.371385
train_7aaf7ce03cd09b78
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.567, 0.084), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.068, -0.281).threePointArc((-0.25, -0.144), (-0.277, 0.081)).threePointArc((-0.25, 0.144), (-0.209, 0.2)).threePointArc((0, 0.289), (0.209, 0.2)).threePointArc((0.25, 0.144), (0.277, ...
5
26
0.066525
train_27fc535d138cca6d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.147, -0.538, -0.096), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.426).lineTo(-0.853, -0.426).lineTo(-0.853, 0).lineTo(-0.426, 0).lineTo(-0.853, 0.426).lineTo(0.853, 0.426).lineTo(0.853, 0).lineTo(0.426, 0).lineTo(0.853, -0.426).lineTo(0, ...
16
55
0.737984
train_733784e4628439f5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.409), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.356, 0.17).lineTo(-0.356, -0.17).lineTo(0.356, -0.17).lineTo(0.356, 0.17).lineTo(-0.356, 0.17).close().workplane(offset=0.296).moveTo(-0.798, 0.382).lineTo(-0.798, -0.382).lineTo(0.798, -...
3
18
0.660671
train_33ac987b7ae8766a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.747), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.403, 0.969).extrude(0.684) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.095), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.133).extrude(0.423)) result = result.union(cq.Workpl...
13
81
0.304677
train_a05ed315eb43dae9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.3, 0, -0.248), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.399, 0.858).extrude(0.019) result = result.union(cq.Workplane(cq.Plane(origin=(0.259, 0.057, -0.221), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.291, 0.049).lineTo(-0.291, 0.006).lineTo...
6
68
0.18808
train_c449247b54f4a8f9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.548, -0.066, -0.011), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.453, 0.421).threePointArc((-0.01, 0.744), (0.447, 0.44)).threePointArc((0.455, 0.418), (0.462, 0.396)).threePointArc((0.48, 0.264), (0.462, 0.133)).threePointArc((0.455, 0.11), ...
19
108
0.72328
train_97670fc213adcb8a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.118, 0.24, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.79, 0.727).extrude(0.149) result = result.union(cq.Workplane(cq.Plane(origin=(0.157, -0.051, -0.069), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.039, -0.625).threePointArc((0.199, -...
8
47
1.143969
train_d5fc511a38524cab
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.862, 0, -0.161), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.012).threePointArc((-0.012, -0.017), (-0.018, -0.03)).lineTo(-0.059, -0.03).lineTo(-0.059, 0.03).lineTo(0, 0.03).lineTo(0.059, 0.03).lineTo(0.059, -0.03).lineTo(0.018, -0.03).thre...
1
9
0.01011
train_eeabea6bdb0d1028
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 1, 0.027), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.453, 1.73).lineTo(0, 2.058).lineTo(0.453, 1.413).lineTo(-0.453, 0.372).lineTo(-0.453, 1.73).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.328, 0)) result = result.edges()....
12
134
1.597434
train_dbb3e54c6429c7ec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.22, 0.067), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.222, 0.131).threePointArc((0, 0.003), (0.222, 0.131)).lineTo(0.296, 0.26).lineTo(0.222, 0.388).threePointArc((0.128, 0.482), (0, 0.517)).threePointArc((-0.128, 0.482), (-0.222, 0.388))...
17
128
0.198387
train_8b507c0fe8de73d3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.326, 0.126, -0.331), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.348, 0.643).extrude(0.911) result = result.faces('>Z').shell(-0.05) result = result.union(cq.Workplane(cq.Plane(origin=(0.065, 0.08, -0.581), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(...
15
34
0.337776
train_55895a7805767ba4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.015, -0.017, -0.573), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.967, -0.793).lineTo(0.985, -0.793).lineTo(0.978, 0.787).lineTo(-1.015, 0.828).close().moveTo(-0.279, -0.093).lineTo(-0.251, -0.093).lineTo(-0.251, -0.147).lineTo(-0.149, -0.149)....
13
621
0.411011
train_e80d24cf6626ce7e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.158, 0.154), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.193, -0.842).lineTo(-0.193, 0.842).lineTo(0.193, 0.842).lineTo(0.193, -0.842).lineTo(-0.193, -0.842).close().extrude(0.506) result = result.edges().fillet(0.132) result = result.union...
5
43
0.307945
train_44effbe321153417
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.246, -0.193, -0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.528, 0.556).extrude(0.164) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.126, -0.193, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.304, 0.444).extrude(0.018)) result = ...
16
260
0.109646
train_a21b3dfa4c5f0e8e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.04, -0.038, -0.813), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.704, 0.768).extrude(1.813) result = result.union(cq.Workplane(cq.Plane(origin=(-0.163, 0.383, -0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.039).extrude(0.14)) result = resul...
11
54
0.877448
train_ca6ea50df2ab5eb1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.605, -0.953, -0.248), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.495, 0.81).lineTo(0, 1.096).lineTo(-0.165, 0.81).lineTo(-0.495, 0.81).lineTo(-0.495, 0.239).lineTo(0, -0.047).lineTo(-0.165, 0.239).lineTo(0.495, 0.239).lineTo(0.495, 0.81).close...
8
38
0.722958
train_2d4e292dda8f11ce
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.497, 0.613, -0.604), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.053, 0.016).lineTo(-0.053, -0.02).threePointArc((-0.057, -0.02), (-0.062, -0.019)).lineTo(-0.062, -0.086).lineTo(-0.055, -0.086).lineTo(-0.055, -0.09).lineTo(-0.053, -0.09).line...
1
17
0.170061
train_87342eb201618c85
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.405, -0.162, -0.13), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.795, 0.605).extrude(0.125) result = result.union(cq.Workplane(cq.Plane(origin=(0.405, -0.146, -0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.469, 0.517).extrude(0.02)) result = r...
19
79
0.365011
train_87df02429266bf23
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.701, 0.417, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.493, 0.02).lineTo(-0.493, 0.713).lineTo(0.431, 0.713).threePointArc((0.493, 0.367), (0.431, 0.02)).lineTo(-0.106, 0.02).lineTo(-0.493, 0.02).close().extrude(1.401) result = result.edg...
12
71
0.384432
train_82a2527cb56e29cb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.856, -0.37), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.099, -0.144).threePointArc((0.124, -0.069), (0.19, -0.024)).lineTo(-0.118, 0.144).lineTo(-0.19, 0.013).lineTo(0.099, -0.144).close().sweep(cq.Workplane('YZ').spline([(-0.856, -0.37), ...
4
14
0.052729
train_02690bcbf657aba2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.085, -0.236, 0.122), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.148).lineTo(0, -0.186).lineTo(-0.186, -0.186).lineTo(-0.186, 0.186).lineTo(0.186, 0.186).lineTo(0.186, 0.148).lineTo(-0.148, 0.148).lineTo(-0.148, -0.148).lineTo(0, -0.148).clo...
6
40
0.071734
train_c50fad887fe66ddd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.51, 0.346, 0.493), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.416).transformed(offset=(0.31, 0.18, 0.184), rotate=(60, 0, 0)).circle(0.518).transformed(offset=(0.62, 0.116, 0.302), rotate=(0, 0, 20)).circle(0.531).loft() result = result.edges...
7
32
0.908025
train_e54ee23c85ddaf06
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.233, 0.547, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.027).sweep(cq.Workplane('XY').spline([(0.233, -0.516), (0.158, 0.12), (-0.284, 0.57), (-0.903, 0.639)]))
1
3
0.004527
train_eb2b29e4db92b48e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.847).moveTo(0.031, 0.025).lineTo(-0.093, 0.036).lineTo(-0.193, -0.036).lineTo(-0.193, -0.041).lineTo(-0.193, -0.046).lineTo(0.193, -0.189).lineTo(0.031, 0.189).lineTo(0.031, 0.025).close()....
11
74
1.733161
train_87cf24245be50b94
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.136, -0.272, 0.466), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.266, 0.238).lineTo(-0.266, 0.238).lineTo(-0.266, 0.049).lineTo(0.266, 0.049).lineTo(0.266, 0.238).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.098, 0)) result = ...
10
58
0.573903
train_953d38fa88f40661
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.054, 0, -0.502), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.891, 1.394).extrude(1.003) result = result.cut(cq.Workplane(cq.Plane(origin=(0.852, 0.393, 0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.082, 0.18).extrude(0.156)) result = result.c...
11
152
2.569607
train_b24d59706c7e0bfe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.748, 0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.402).sweep(cq.Workplane('YZ').spline([(0.748, -0.853), (1.745, -0.853), (2.297, -0.498), (2.848, -0.143)])) result = result.edges().chamfer(0.373) result = result.cut(cq.Workplane(cq.Pl...
6
14
0.440535
train_9f03840c95372a4f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.302, 0, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.39, 2).moveTo(-0.195, -0.195).lineTo(0.193, -0.19).lineTo(0.192, 0.192).lineTo(-0.194, 0.193).close().extrude(0.164) result = result.cut(cq.Workplane(cq.Plane(origin=(0.204, -0.221, -0.0...
13
77
0.38717
train_61f7a34646eb3db9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.738, -0.465, 0.221), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.145, 0.391).threePointArc((0.102, 0.493), (0, 0.535)).lineTo(-0.145, 0.535).lineTo(-0.145, -0.535).lineTo(0, -0.535).threePointArc((0.102, -0.493), (0.145, -0.391)).lineTo(0.145,...
2
10
0.184921
train_47b7746c8530ce02
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.103, -0.001, -0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.53, -0.014).lineTo(0.278, 0.482).lineTo(-0.251, 0.47).lineTo(-0.52, -0.019).lineTo(-0.271, -0.451).lineTo(0.27, -0.48).close().moveTo(0.134, -0.001).lineTo(0.091, 0.091).lineTo(-0...
14
78
0.380536
train_a4497b7f7fbbbc1b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.543, 0.143), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.143, 0.087).lineTo(1.143, 0.087).lineTo(0.857, 0.087).lineTo(0.857, 1.086).lineTo(-1.143, 1.086).lineTo(-1.143, 0.087).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.7...
8
64
2.544373
train_74b5ed1a26d1f296
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.741, 1.458).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.083, 0.305, -0.626), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.426, 0.893).extrude(1.278)) result = result.cut(cq.Workp...
7
45
1.514074
train_145383e5a1641c44
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.138, -0.494, -0.533), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.306, 0.242).lineTo(0.306, 0.241).lineTo(0.306, 0.027).lineTo(0.061, 0.027).lineTo(0.061, -0.028).lineTo(0.306, -0.028).lineTo(0.306, -0.242).lineTo(-0.17, -0.242).lineTo(-0.306, ...
13
77
0.436946
train_73e4d68a98dbe367
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.577, -0.157, 0.552), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.401).sweep(cq.Workplane('XZ').spline([(-0.577, 0.552), (-0.192, -0.229), (0.193, -0.229), (0.576, 0.552)])) result = result.edges().fillet(0.195) result = result.union(cq.Workpla...
4
18
1.183655
train_812529e46e2ff436
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.163, -0.109, 0.191), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.118).threePointArc((0.135, -0.082), (0.233, 0.017)).threePointArc((0.269, 0.151), (0.233, 0.286)).threePointArc((0.135, 0.385), (0, 0.421)).lineTo(-0.233, 0.286).threePointArc...
22
123
0.458198
train_66943ac1a34d82fa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.149, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.912, 1.12).extrude(0.525) result = result.faces('>Z').shell(-0.037) result = result.union(cq.Workplane(cq.Plane(origin=(0.094, 0.707, -0.699), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1.69...
4
24
0.250876
train_7654e475835bceca
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.921), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.955, 2).extrude(1.842) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.394, 0.027, -1.234), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.11).extrude(2.211)) result = result.cut(cq.Workpl...
6
32
6.685831
train_7e1e6454f77661d3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.928), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.884, 2).extrude(1.857) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.32, 0.428, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.309, 1.202).extrude(0.788)) result = result.cut(cq.W...
9
48
5.809586
train_3b6562e211690e02
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.061, 0.06, -0.663), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.839, 1.879).extrude(1.194) result = result.cut(cq.Workplane(cq.Plane(origin=(0.464, -0.813, -0.423), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.07).extrude(0.101)) result = result.e...
13
212
4.285514
train_9d993e28251295bf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.185, 0.153, -0.268), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.847, -0.013).lineTo(0.408, 0.697).lineTo(-0.405, 0.676).lineTo(-0.815, -0.004).lineTo(-0.391, -0.683).lineTo(0.393, -0.688).close().moveTo(-0.163, -0.265).lineTo(0.163, -0.263).li...
12
99
0.829306
train_31fe292e297ec3a9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.075, -0.126, 0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.983, 0.479).extrude(0.331) result = result.union(cq.Workplane(cq.Plane(origin=(-0.487, -0.2, 0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.08).extrude(0.123)) result = result.u...
4
44
0.251861
train_c5ddc84449f5fe6b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.262, -0.486), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.193, 0.045).lineTo(0.178, 0.008).lineTo(0.178, -0.045).lineTo(0.037, -0.045).lineTo(-0.078, 0).lineTo(-0.193, 0.045).lineTo(0.193, 0.045).close().sweep(cq.Workplane('XY').spline([(-...
2
17
0.096374
train_bbd1d8e1054b036f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.068, -0.009, -0.392), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.362).threePointArc((-0.087, 0.339), (-0.15, 0.276)).lineTo(-0.2, 0.189).lineTo(-0.15, 0.102).threePointArc((-0.087, 0.039), (0, 0.015)).threePointArc((0.087, 0.039), (0.15, 0....
11
82
0.581138
train_7cf872cbd6269976
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.065, -0.013, -0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.479, 0.428).extrude(0.152) result = result.union(cq.Workplane(cq.Plane(origin=(0.1, -0.037, 0.215), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.063, 0.329).lineTo(-0.152, 0.175).li...
12
102
0.107206
train_3a7d2343ef8adbd7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.06, -0.472, -0.861), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.057, 1.057).extrude(1.495) result = result.faces('<X').shell(-0.055) result = result.union(cq.Workplane(cq.Plane(origin=(0.053, -0.406, 0.611), normal=(0, 0, 1), xDir=(1, 0, 0))).re...
5
28
1.122528
train_72542077f2decf4a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.324, -0.232, -0.193), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.32, 1.536).extrude(0.52) result = result.union(cq.Workplane(cq.Plane(origin=(-0.248, -0.189, 0.319), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.208, 1.316).extrude(0.127)) result = ...
18
108
1.399901
train_0653d9a7fb14f186
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.503, -0.263, -0.024), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.033, 0.123).threePointArc((-0.085, 0.09), (-0.119, 0.039)).threePointArc((-0.131, -0.016), (-0.123, -0.071)).threePointArc((0.131, -0.134), (0.082, 0.123)).threePointArc((0.024,...
3
23
0.032812
train_51add2913459acc2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.335), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.496, 0.039).threePointArc((0.457, 0.055), (0.418, 0.039)).lineTo(-0.512, 0.969).lineTo(-0.512, -0.969).lineTo(0.418, -0.039).threePointArc((0.457, -0.055), (0.496, -0.039)).threePointArc((...
3
14
0.274453
train_95761d4f82328e0b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.494, 0.045, -0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.012, 0.245).extrude(0.18) result = result.union(cq.Workplane(cq.Plane(origin=(-0.472, 0.008, 0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.057, 0.089).extrude(0.121)) result = re...
10
45
0.058176
train_59fd51a50ee0c8f4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.047, -0.003, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.912, 0.22).threePointArc((-1.017, 0.115), (-0.912, 0.009)).lineTo(-0.095, 0.009).lineTo(0.912, 0.009).threePointArc((1.017, 0.115), (0.912, 0.22)).lineTo(-0.095, 0.22).lineTo(-0.912,...
10
87
0.050379
train_de4b3b7700dd8f62
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.455), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1).lineTo(0.219, -0.379).lineTo(0.866, -0.5).lineTo(0.438, 0).lineTo(0.866, 0.5).lineTo(0.219, 0.379).lineTo(0, 1).lineTo(-0.219, 0.379).lineTo(-0.866, 0.5).lineTo(-0.438, 0).lineTo(-0.8...
9
92
0.832528
train_a85ccb35bc046bb2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.005, -0.294, -0.741), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.104, -0.208).lineTo(-0.104, -0.066).threePointArc((-0.066, 0.026), (0.026, 0.063)).lineTo(0.052, 0.063).lineTo(0.259, 0.063).lineTo(0.259, 0.219).lineTo(0.052, 0.219).lineTo(0.0...
13
112
0.149898
train_85363a734dd27b67
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.131, -0.047, 0.324), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.375).sweep(cq.Workplane('YZ').spline([(0.537, 0.043), (0.282, 0.247), (-0.05, 0.254), (-0.314, 0.061), (-0.394, -0.249), (-0.255, -0.538), (0.042, -0.681)])) result = result.edges...
8
32
0.582549
train_6215bdcb8c16c26c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.725, 0.534, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.854, 1.294).lineTo(0.285, 1.294).lineTo(0.285, -0.413).lineTo(0.854, -0.413).lineTo(0.854, 1.863).lineTo(-0.854, 1.863).lineTo(-0.854, 1.294).close().workplane(offset=0.268).moveTo(-0...
13
91
0.873557
train_a27c7a428a221cfb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.17, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.569).workplane(offset=0.451).circle(0.498).workplane(offset=0.356).circle(0.541).workplane(offset=0.456).circle(0.566).workplane(offset=0.413).circle(0.569).loft() result = result.faces('>...
4
17
0.564328
train_8c596f954f79434e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.5, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.5, 0.714).lineTo(-0.5, -0.714).lineTo(0.5, -0.714).lineTo(0.5, -0.477).threePointArc((0.273, 0), (0.5, 0.477)).lineTo(0.5, 0.714).lineTo(-0.5, 0.714).close().revolve(angleDegrees=360, axisS...
4
58
2.558305
train_522bbdf43eeca5a7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.478, 0.61, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.335, -0.476).threePointArc((-0.335, 0.61), (0.335, 1.697)).lineTo(0.335, 1.038).lineTo(0.335, 0.182).lineTo(0.335, -0.476).close().extrude(0.956) result = result.edges().chamfer(0.169) ...
5
25
0.789562
train_14da99f9984a7dd2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.377, -0.408, -0.773), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.623, 0.81).lineTo(0.416, 0.81).threePointArc((0.422, 0.61), (0.623, 0.604)).lineTo(0.623, 0.006).lineTo(-0.623, 0.006).lineTo(-0.623, 0.81).close().extrude(1.547) result = result...
5
28
0.388835
train_d92da5f72987a6f1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.001, 0.001, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.726).workplane(offset=0.451).circle(0.735).workplane(offset=0.44).circle(0.716).workplane(offset=0.437).circle(0.646).workplane(offset=0.491).circle(0.73).loft() result = result.edges...
11
19
2.440828
train_dba466db1a11bc5c
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.56).workplane(offset=0.528).circle(0.568).workplane(offset=0.564).circle(0.413).workplane(offset=0.541).circle(0.753).loft() result = result.cut(cq.Workplane(cq.Plane(origin=(0.202, -0.105, -0...
7
25
1.192216
train_31d6da537943a871
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.019, -0.511), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.469, 0.462).extrude(0.788) result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.019, 0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.273, 0.311).extrude(0.321)) result = result.u...
16
146
0.264705
train_35223e82e302bddc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.865, -0.108, -0.235), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.765, 0.444).lineTo(-0.765, -0.227).lineTo(0.765, -0.227).lineTo(0.765, 0.199).lineTo(0.751, 0.199).lineTo(0.751, 0.444).lineTo(-0.765, 0.444).close().extrude(1.729) result = res...
5
21
1.647051
train_3dfa3cf9d14b05ca
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.06, -0.909, -0.273), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.06, 0.671).threePointArc((0.087, 1.321), (-1.06, 1.55)).lineTo(-1.06, 0.822).threePointArc((-0.191, 0.65), (0.546, 0.156)).lineTo(1.06, 0.671).close().extrude(0.546) result = resul...
4
34
0.627612
train_924145aa7244c522
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.713, 2).extrude(0.281) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.021, -0.384, -0.113), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.168).extrude(0.337)) result = result.cut(cq.Work...
22
86
0.688397
train_c310486eb421c2fd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.098), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.183, 2).extrude(0.087) result = result.union(cq.Workplane(cq.Plane(origin=(0.29, 0.065, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.016, 0.125).lineTo(0.016, 0.013).lineTo(0.113, 0.013)...
7
28
0.175097
train_fb034c5c0cffccf4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.14, -0.076, 0.453), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.09, 0.046).lineTo(0.063, 0.134).lineTo(-0.027, 0.155).lineTo(-0.09, 0.088).lineTo(-0.063, 0).lineTo(0.027, -0.021).lineTo(0.09, 0.046).close().extrude(0.152) result = result.edges(...
9
68
0.008111
train_539adb1458a85a31
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.183, -0.217, 0.235), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.751, 0.168).lineTo(-0.751, 0.168).lineTo(-0.751, 0.123).lineTo(0.751, 0.168).close().sweep(cq.Workplane('YZ').spline([(-0.217, 0.235), (0.021, 0.021), (0.26, -0.086), (0.498, -0....
3
18
0.134417
train_321757f4e2374fa5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.766, -0.339, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.764, 0.576).threePointArc((0, 1.34), (0.764, 0.576)).lineTo(0.764, -0.661).lineTo(-0.764, -0.661).lineTo(-0.764, 0.576).close().extrude(1.637) result = result.edges().fillet(0.218) r...
16
111
4.281401
train_66acd292a651f6b7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.092, 0, -0.781), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.686, 2).extrude(1.393) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.182 + 0.0685, 0.278, -2.081), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.037, -0.047).lineTo(0.042, -0.047).l...
20
41
1.733545
train_35802d7cc0d09af9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.973, -0.206), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.013, 0.001).lineTo(-0.027, 0.001).lineTo(-0.027, 0.027).lineTo(0.027, 0.027).lineTo(0.027, -0.027).lineTo(-0.027, -0.027).lineTo(-0.027, -0.009).lineTo(-0.013, -0.009).lineTo(-0.013...
3
18
0.003841
train_35d1638de750f6f2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.382, -1.177, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.733, 1.942).threePointArc((0, 2.177), (0.733, 1.942)).lineTo(0.733, 0.41).threePointArc((0, 0.177), (-0.733, 0.41)).lineTo(-0.733, 1.942).close().extrude(0.832) result = result.edges...
11
103
1.774551
train_90dfb2490e97280b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.003, 0.106, -0.124), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.173, -0.217).lineTo(-0.074, -0.253).lineTo(0.012, -0.212).threePointArc((-0.041, -0.17), (-0.081, -0.116)).threePointArc((-0.104, -0.054), (-0.11, 0.011)).lineTo(-0.087, 0.021).li...
7
53
0.236966
train_ee525f8ebc3b487f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.428, -0.116), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.342).workplane(offset=0.404).circle(0.358).workplane(offset=0.527).circle(0.338).loft() result = result.edges().fillet(0.266) result = result.union(cq.Workplane(cq.Plane(origin=(0, -0...
12
83
0.618809
train_7ce0ec40c78756fc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.577, -0.042, -0.23), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.168, -0.267).threePointArc((-0.219, -0.246), (-0.24, -0.195)).lineTo(-0.24, 0.195).threePointArc((-0.219, 0.246), (-0.168, 0.267)).lineTo(0.013, 0.267).lineTo(0.013, 0.227).thre...
15
116
0.239663
train_4abe554dcf3d1803
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.04, -0.787), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.498, 1.318).extrude(1.56) result = result.union(cq.Workplane(cq.Plane(origin=(0.412, -0.221, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.079, 0.077).extrude(0.22)) result = result.uni...
18
143
2.996684