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_04fea2f63fa5a7de
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.677, -0.607), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.066, -0.242).threePointArc((-0.96, 0.474), (-0.592, 1.561)).lineTo(0, 1.61).lineTo(0.592, 1.561).threePointArc((0.96, 0.474), (0.066, -0.242)).threePointArc((0, -0.244), (-0.066, -0....
15
92
2.366669
train_54031f1f9597601e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.526, 0.192, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.829, 0.905).lineTo(0.829, 0.147).lineTo(-0.829, 0.147).lineTo(-0.829, 0.905).lineTo(0.829, 0.905).close().workplane(offset=0.075).moveTo(0.853, 0.916).lineTo(0.853, 0.136).lineTo(-0.85...
8
33
0.241881
train_b53e90885b32a839
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.183, 0, -0.404), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.634, 1.874).extrude(0.809) result = result.union(cq.Workplane(cq.Plane(origin=(-0.811, -0.174, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.189).extrude(0.409)) result = result.e...
3
39
2.510684
train_9048b3c89e034a8c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.002, -0.003, 0.208), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.743, 0.868).lineTo(0.49, 1.072).lineTo(-0.743, -0.901).lineTo(-0.469, -1.072).lineTo(0.743, 0.868).close().workplane(offset=0.064).moveTo(0.681, 0.796).lineTo(0.449, 0.983).lineT...
5
48
0.077561
train_5e3c911265f119f7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.313, -0.056, -0.496), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.374, 1.817).extrude(0.991) result = result.union(cq.Workplane(cq.Plane(origin=(-0.96, 0.243, 0.15), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.062, 0.099).lineTo(-0.062, -0.099)....
2
22
2.489448
train_dc8e2f3e3f1ddf20
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.27, 0.028), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.04, -0.732).lineTo(-0.212, 0.702).lineTo(-0.04, 0.732).lineTo(0.212, -0.702).lineTo(0.04, -0.732).close().extrude(0.246) result = result.edges().fillet(0.01) result = result.union(cq.W...
6
69
0.076216
train_243f63800ddb313b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.066, -0.423, -0.321), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.736, 1.153).extrude(0.274) result = result.union(cq.Workplane(cq.Plane(origin=(0.086, -0.135, -0.021), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.119, 0.422).lineTo(-0.268, 0.549)....
14
186
0.415222
train_75c38a7967d947fb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.207, 0.173, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.396, 0.386).extrude(0.615) result = result.union(cq.Workplane(cq.Plane(origin=(-0.112, 0.183, -0.875), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.142).extrude(0.365)) result = result.ed...
11
96
0.594154
train_5aa56402ee4dfdd1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.203), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.997, 2).extrude(0.406) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.115), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.035, 0.449).lineTo(-0.358, 0.227).lineTo(-0.389, -0.163).l...
10
78
1.233395
train_05a4f7435257cb24
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.271, 0.075, 0.175), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.276, -0.113).lineTo(0.276, 0.373).lineTo(-0.276, 0.373).lineTo(-0.276, -0.113).lineTo(0.276, -0.113).close().extrude(0.732) result = result.edges().fillet(0.235) result = result.cu...
31
168
0.194386
train_58801080af5b8958
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.031, -0.221, 0.201), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.226).lineTo(0.799, 0.226).lineTo(0.799, 0.049).lineTo(-0.799, 0.049).lineTo(-0.799, 0.226).lineTo(0, 0.226).close().revolve(angleDegrees=360, axisStart=(0, 0.226), axisEnd=(0....
14
93
0.188206
train_c4a4d6c9f508a8bf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.386, 0.394).lineTo(0.386, -0.394).lineTo(-0.386, -0.394).lineTo(-0.386, -0.224).lineTo(0.194, -0.224).lineTo(0.194, 0.394).lineTo(0.386, 0.394).close().sweep(cq.Workplane('XY').spline([(-0....
1
8
0.350394
train_501b7e82d63c27e1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.673, -0.553, -0.167), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.066, 0.351).threePointArc((0.244, 0.041), (-0.066, -0.269)).threePointArc((-0.1, -0.251), (-0.135, -0.233)).threePointArc((-0.19, -0.202), (-0.244, -0.171)).lineTo(-0.244, 0.349...
22
173
0.695124
train_f114588209edf7f8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.287, 0, 0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.453, 0.616).extrude(0.763) result = result.union(cq.Workplane(cq.Plane(origin=(-0.217, 0, 0.401), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.593, 0.493).extrude(0.434)) result = result.uni...
7
36
0.469889
train_b7d69bb8b142b88b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.186, 0, -0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.627, 0.684).extrude(0.419) result = result.union(cq.Workplane(cq.Plane(origin=(-0.798, -0.016, -0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.403, 0.349).extrude(0.151)) result = resu...
3
51
0.482535
train_79ebabc4c37bcfaf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.448, 0.083, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.115, 0.121).threePointArc((-0.017, 0.34), (-0.159, 0.552)).lineTo(-0.352, 0.441).lineTo(0.159, -0.443).lineTo(0.352, -0.332).threePointArc((0.238, -0.103), (0.115, 0.121)).close().wor...
8
50
0.055595
train_11f3d5abb977225c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.048), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.871, -0.322).lineTo(-0.871, 0.426).lineTo(-1, 0.426).lineTo(-1, -0.426).lineTo(1, -0.426).lineTo(1, 0.426).lineTo(0.871, 0.426).lineTo(0.871, -0.322).lineTo(0.683, -0.322).lineTo(0.683, 0...
4
109
0.050791
train_59fffd4fc8d4d86b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.019, -0.838), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.086, 0.054).lineTo(0.086, -0.049).lineTo(-0.016, -0.049).lineTo(-0.016, -0.054).lineTo(-0.037, -0.054).lineTo(-0.037, -0.049).lineTo(-0.052, -0.049).lineTo(-0.052, -0.054).lineTo(-0...
7
53
0.039088
train_c33415a65f518b96
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.763, 1.611).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.385, 0, -0.412), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.057).extrude(0.823)) result = result.cut(cq.Workplane(cq.P...
8
87
5.263882
train_eafa7bf30f2c3dbb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.258, -0.324, 0.066), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.627, 0.441).lineTo(0.627, 0.441).lineTo(0.627, 0.157).lineTo(-0.627, 0.157).lineTo(-0.627, 0.441).close().revolve(angleDegrees=90, axisStart=(-0.627, 0.441), axisEnd=(-0.342, 0....
31
155
0.045788
train_9e9af17bc73ab032
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.014, 0, -0.651), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.348, 1.539).extrude(0.033) result = result.union(cq.Workplane(cq.Plane(origin=(-0.039, -0.13, -0.613), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.387, 0.4).lineTo(-0.387, -0.324).lin...
12
135
0.939327
train_d5f633e34cf386ff
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.544, 1.751).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.327, -0.377, -0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.29).extrude(1.031)) result = result.cut(cq.Workplane(...
3
13
4.908398
train_a8f9b71504facca2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.189, -0.31, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.998, 0.364).threePointArc((0.139, 0.409), (-0.711, 0.543)).threePointArc((-0.998, 0.305), (-0.701, 0.08)).threePointArc((0.142, 0.241), (0.998, 0.295)).lineTo(0.998, 0.364).close().wor...
9
38
0.095849
train_475fb17f63c63566
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.1), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.9, 0.9).lineTo(0.9, 0.386).lineTo(0.678, 0.386).threePointArc((0.588, 0.265), (0.473, 0.362)).lineTo(0.526, 0.362).threePointArc((0.588, 0.318), (0.623, 0.386)).lineTo(0.35, 0.386).lineTo(0...
10
50
3.582124
train_19e157ba0d31d5f4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.817), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.13, 1.13).extrude(1.812) result = result.union(cq.Workplane(cq.Plane(origin=(0, -1.445, -0.337), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.042, -0.742).threePointArc((0, -0.74), (-0.042, ...
10
156
2.622637
train_462bac0fb82106a8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.869, -0.012, 0.384), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.206, -0.111).threePointArc((-0.297, -0.1), (-0.215, -0.058)).lineTo(-0.181, -0.046).lineTo(0.211, 0.091).threePointArc((0.275, 0.111), (0.297, 0.049)).lineTo(0.24, -0.078).threePo...
18
19
0.111956
train_cff78e78a314f3e5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.342, 0.814, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.376).workplane(offset=0.394).circle(0.329).workplane(offset=0.408).circle(0.396).workplane(offset=0.427).circle(0.252).workplane(offset=0.399).circle(0.377).loft() result = result.edge...
4
22
1.073578
train_ae93647bf17c6b1d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.611, 0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.389).lineTo(-0.47, 0.389).lineTo(0, -0.389).lineTo(0.47, 0.389).lineTo(0, 0.389).close().sweep(cq.Workplane('YZ').spline([(-0.611, -0.62), (-0.446, -0.576), (-0.281, -0.57), (-0.116...
2
10
0.031092
train_c2bbc8bf855cc411
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.317, -0.222, 0.388), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.171, -0.167).lineTo(-0.171, -0.017).lineTo(-0.185, -0.017).lineTo(-0.185, 0.131).lineTo(0.1, 0.131).lineTo(0.1, 0.153).lineTo(-0.163, 0.153).lineTo(-0.163, 0.167).lineTo(0.185, ...
12
84
0.316923
train_2c784150c7aee6f3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.5, 0, 0.5), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.5, -0.03).lineTo(0.5, 0.03).lineTo(-0.5, 0.03).lineTo(-0.5, -0.03).lineTo(0.5, -0.03).close().revolve(angleDegrees=180, axisStart=(0.5, -0.03), axisEnd=(0.5, 0.03)) result = result.edges(...
6
28
0.091703
train_655675b45c2ba4be
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.125, -0.748, -0.251), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.504, 0.504).extrude(0.357) result = result.faces('<X').shell(-0.048) result = result.union(cq.Workplane(cq.Plane(origin=(-0.077, -0.725, 0.128), normal=(-1, 0, 0), xDir=(0, 0, 1)))....
19
274
0.308065
train_a1662d9beb46842e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.134, -0.525), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.716, 0.479).extrude(0.631) result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.134, -0.476), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.26, 0.025).lineTo(-0.26, 0.025).lineTo(0.2...
7
35
0.206262
train_13c59be72fb22b82
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.186, -0.863, 0.026), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.078, -0.005).threePointArc((0.068, 0.034), (0.039, 0.063)).threePointArc((0, 0.073), (-0.039, 0.063)).threePointArc((-0.068, 0.034), (-0.078, -0.005)).lineTo(-0.039, -0.073).lineT...
8
89
0.42045
train_efced8bf77e96a65
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.281, 0.119, 0.208), normal=(0, 0, -1), xDir=(1, 0, 0))).lineTo(-0.719, -0.343).lineTo(0.719, 0.581).close().sweep(cq.Workplane('XZ').spline([(-0.281, 0.208), (-0.035, -0.017), (0.212, -0.017), (0.458, 0.208)]))
1
5
0.075548
train_8646603bb3a41121
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.37), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.91, 2).extrude(0.74) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.108 * math.cos(1.653 + 2 * math.pi * 0 / 7), 0.37 + 0.108 * math.sin(1.653 + 2 * math.pi * 0 / 7), -1.67), normal=...
14
61
2.720452
train_1b21f60d164bee60
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.465, 0.235), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.528, 0.535).threePointArc((-0.075, 0), (-0.528, -0.535)).lineTo(0.528, -0.357).threePointArc((0.105, 0), (0.528, 0.357)).lineTo(-0.528, 0.535).close().sweep(cq.Workplane('YZ').spline(...
1
6
0.189766
train_d2b0c6edafc64e28
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.688, -0.175, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.239, 0.246).lineTo(-0.251, 0.25).lineTo(-0.644, 0.4).lineTo(-0.784, 0.476).lineTo(-0.797, 0.459).lineTo(-0.81, 0.442).lineTo(-1, 0.194).lineTo(-0.409, 0.238).lineTo(-0.351, 0.243).l...
2
19
0.123187
train_af3cc991869b6f78
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.069, 0.11, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.504, 0.409).extrude(0.598) result = result.union(cq.Workplane(cq.Plane(origin=(-0.198, 0.051, -0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.095, 0.053).extrude(1.482)) result = resu...
10
56
0.134936
train_ec337e881c775ca7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.04, -0.245, -0.308), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.629, 0.605).extrude(0.451) result = result.union(cq.Workplane(cq.Plane(origin=(-0.342, -0.171, -0.099), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.011, 0.025).threePointArc((-0.05,...
27
123
0.305224
train_03446679205c9e1c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.376, 0.543, -0.078), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.038, 1.384).lineTo(0.561, 1.384).lineTo(0.038, -0.081).lineTo(0.038, -0.632).lineTo(-0.03, -0.632).threePointArc((-0.29, -0.52), (-0.39, -0.255)).lineTo(-0.382, -0.081).lineTo(0.0...
8
66
0.454653
train_0eb267a8de6d1ee1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.252, -0.099, 0.309), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.246, 0.305).lineTo(0.217, 0.305).threePointArc((0.245, 0.317), (0.233, 0.288)).lineTo(0.233, -0.233).threePointArc((0.246, -0.262), (0.216, -0.25)).lineTo(-0.229, -0.25).threePoi...
11
174
0.463239
train_f73ee67345c2c370
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.031, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.829, 0.927).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(-0.414, 0.264, 0.344), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.063, 0.109).extrude(0.298)) result = result.edges(...
10
76
1.330809
train_ede6809aa6de9058
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.172, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.25, 1.222).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(0.396, 0.594, -0.245), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.151, 1.158).lineTo(-0.115, 1.158).lineTo(-0.115...
3
22
2.90932
train_d404c3fe1f794895
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.302, 0, -0.308), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.397, 1.93).extrude(0.443) result = result.union(cq.Workplane(cq.Plane(origin=(-0.684, 0.206, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.632, 1.133).extrude(0.161)) result = resul...
14
45
1.098203
train_d07c7cf2883efa85
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.321, -0.108, -0.026), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.114, -0.028).lineTo(0.01, 0.028).lineTo(0.01, 0.019).lineTo(0.114, -0.028).lineTo(-0.114, -0.028).close().sweep(cq.Workplane('YZ').spline([(-0.174, -0.06), (-0.023, -0.032), (0.1...
8
50
0.207851
train_474fd02b148469ea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.085, 0.461, -0.128), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.547, -0.415).lineTo(-0.547, 0.074).lineTo(0.547, 0.562).lineTo(0.547, -0.415).close().extrude(0.922) result = result.edges().fillet(0.123) result = result.union(cq.Workplane(cq.Pl...
12
67
0.538899
train_bb4560907693b32b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.173, 0.719, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.344).lineTo(-0.5, 1.344).threePointArc((-1, 0.844), (-0.5, 0.344)).lineTo(-0.5, 0.094).lineTo(0.5, 0.094).lineTo(0.5, 0.344).threePointArc((1, 0.844), (0.5, 1.344)).lineTo(0, 1.344)....
13
109
0.640243
train_37cd8f25bb28b6f3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.351, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.143, 0.494).lineTo(-0.143, 0.209).lineTo(-0.428, 0.209).lineTo(-0.428, -0.077).lineTo(-0.143, -0.077).threePointArc((0.059, 0.007), (0.143, 0.209)).lineTo(0.143, 0.494).lineTo(0.714, 0.4...
14
172
1.128315
train_ab9aa7f1c014f44d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.558, -0.549, -0.053), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.28, 0.47).threePointArc((0, 0.75), (0.28, 0.47)).lineTo(0.28, 0.038).lineTo(0.432, 0.038).lineTo(0.432, 0.47).threePointArc((0, 0.903), (-0.432, 0.47)).lineTo(-0.432, 0.038).lin...
9
78
0.456015
train_3541a3d8426e8381
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.492, 0.076, -0.295), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.522, 0.482).extrude(0.326) result = result.faces('>Y').shell(-0.015) result = result.union(cq.Workplane(cq.Plane(origin=(-0.16, 0.026, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).re...
9
68
0.129441
train_2b921566fcd2cff5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.232, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.231, 0.314).threePointArc((0.279, 0.297), (0.303, 0.254)).lineTo(0.304, 0.254).lineTo(0.325, 0.254).lineTo(0.325, 0.213).lineTo(0.305, 0.213).lineTo(0.305, 0.02).lineTo(0.304, 0.02).lineT...
10
64
0.45119
train_63940b2b6c24b0ae
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.622, -0.102, -0.197), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.167, 0.861).threePointArc((-0.001, 0.867), (-0.167, 0.887)).lineTo(-0.167, -0.868).lineTo(0.167, -0.868).lineTo(0.167, 0.861).close().extrude(0.375) result = result.edges().chamf...
7
131
0.25078
train_47d2ba16dec0d7e3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.122, -0.05, 0.093), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.498, 0.129).lineTo(0.575, -0.219).lineTo(0.467, -0.135).lineTo(0.604, -0.129).lineTo(-0.469, 0.219).lineTo(-0.604, 0.213).lineTo(-0.498, 0.129).close().sweep(cq.Workplane('XY').s...
8
27
0.005814
train_f5767a45c3c9e5c8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.217, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.104, 0.111).lineTo(-0.104, -0.111).lineTo(0.077, -0.111).lineTo(0.077, -0.083).lineTo(0.104, -0.083).lineTo(0.104, 0.111).lineTo(-0.104, 0.111).close().sweep(cq.Workplane('XY').spline([(-...
16
130
0.096668
train_11b5e48e2f36240d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.012, -0.019, -0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.283, 0.644).extrude(0.278) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.032, 0.026, 0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.016).extrude(0.029)) result = result...
16
227
0.178697
train_b266f74a9d16adc7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.064, 0.268, -0.722), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.275, 0.223).extrude(0.279) result = result.union(cq.Workplane(cq.Plane(origin=(0.148, 0.273, -0.658), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.169, 0.19).extrude(0.148)) result = r...
8
41
0.46994
train_4e991047bab477d8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 1, 0.28), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.4).workplane(offset=0.425).circle(0.347).workplane(offset=0.376).circle(0.372).workplane(offset=0.363).circle(0.326).workplane(offset=0.36).circle(0.333).workplane(offset=0.476).circle(0.36...
19
134
0.544667
train_d6f2f72c0eab4bd0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.231), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.668).extrude(0.462) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.14, 0.103, 0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.12).extrude(0.142)) result = result.edges().fillet(...
3
31
0.606497
train_5826f77ef70020f9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.016, 0.243, -0.724), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.276, 0.315).lineTo(-0.276, -0.355).lineTo(0.276, -0.355).lineTo(0.276, 0.387).lineTo(-0.276, 0.315).close().extrude(0.485) result = result.edges().chamfer(0.007) result = result....
6
126
0.203274
train_cdc426cb001bd835
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.082), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.161).lineTo(0.839, 0.161).threePointArc((1, 0), (0.839, -0.161)).lineTo(-1, -0.161).lineTo(-1, 0.161).close().extrude(0.204) result = result.edges().fillet(0.021) result = result.union...
36
397
0.106254
train_1a890bcfa18c012a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.187), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.423, 0.056).lineTo(0.423, -0.65).lineTo(0.311, -0.65).lineTo(0.311, -0.056).lineTo(-0.423, -0.056).lineTo(-0.423, 0.056).lineTo(0.311, 0.056).lineTo(0.311, 0.65).lineTo(0.423, 0.65).line...
1
11
0.391787
train_16b7b7e75de0749b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.036, -0.04, -0.408), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.51, 1.92).extrude(0.862) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.036 + 0.291 * math.cos(4.68 + 2 * math.pi * 0 / 5), -0.04 + 0.291 * math.sin(4.68 + 2 * math.pi * 0 / 5...
13
89
2.366378
train_12d82e264ec0c2f6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.519, 0.736, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.161, 0.14).threePointArc((-1.111, 0.242), (-1.052, 0.339)).threePointArc((-0.595, 0.75), (0, 0.899)).threePointArc((0.694, 0.692), (1.161, 0.14)).lineTo(0.232, 0.14).threePointArc((0,...
11
56
1.05444
train_5e78b48009351aae
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.124, 0.669, -0.337), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.336, -0.876).lineTo(0.336, -0.759).lineTo(-0.264, -0.759).lineTo(-0.264, 1.124).lineTo(-0.336, 1.124).lineTo(-0.336, -0.876).lineTo(0.336, -0.876).close().extrude(0.535) result = ...
9
131
0.788117
train_b1c1430f2bad1aeb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.469, -0.496, -0.338), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.062).lineTo(0.189, 0.062).threePointArc((0.239, 0.074), (0.28, 0.107)).lineTo(0.508, 0.405).threePointArc((0.525, 0.51), (0.449, 0.584)).lineTo(0.033, 0.71).threePointArc((0, 0...
27
444
0.48545
train_33ae292d5165136f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.885).extrude(0.033) result = result.union(cq.Workplane(cq.Plane(origin=(-0.077, 0.021, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.61, 1.467).extrude(0.019)) result = result.union(...
8
51
0.153261
train_fd9eb19b36e5405a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.27, 0.502, 0.792), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.136).transformed(offset=(0.217, -0.378, 0.139), rotate=(0, 0, 30)).circle(0.097).transformed(offset=(0.434, 0, 0.177), rotate=(0, 0, 90)).circle(0.262).transformed(offset=(0.65, 0....
1
4
0.052484
train_966d80e62e36f3c2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.828, -0.644, -0.253), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.214, 0.036).threePointArc((0.643, 0.466), (0.214, 0.894)).lineTo(-0.189, 0.893).threePointArc((-0.643, 0.478), (-0.215, 0.036)).lineTo(0.214, 0.036).close().extrude(0.587) result...
9
98
0.872325
train_e470ec7be556a9da
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.37), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.96, 2).extrude(0.524) result = result.union(cq.Workplane(cq.Plane(origin=(0.098, 0.1, 0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.882).extrude(0.052)) result = result.union(cq.Workpla...
5
19
2.301139
train_17d2966373a88bcd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.125), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.086, 2).extrude(0.249) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.125, -0.831), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.036, 0.021).lineTo(0.044, 0.013).lineTo(-0.006, 0.013)...
15
114
0.428604
train_63495e1455a9afd7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.131, 0.466, 0.488), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.512, 0.279).lineTo(0.512, -0.016).lineTo(0.098, -0.016).lineTo(0.098, 0.132).lineTo(0, 0.132).lineTo(0, -0.016).lineTo(-0.098, -0.016).lineTo(-0.098, 0.132).lineTo(-0.315, 0.132).l...
8
69
0.418733
train_b424999b45f325a2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.012, 0.689, -0.209), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.599, 0.526).lineTo(0.599, -0.311).lineTo(0.418, -0.311).lineTo(0.51, -0.237).lineTo(0.418, -0.165).lineTo(0.418, 0.526).lineTo(-0.455, 0.526).lineTo(-0.455, 0.635).lineTo(-0.599, ...
4
28
1.413773
train_db2b2b807eb7ac27
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.061, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.872, -0.504).lineTo(-0.235, -0.871).lineTo(0, -1.007).lineTo(0.235, -0.871).lineTo(0.872, -0.504).lineTo(0, 1.007).lineTo(-0.872, -0.504).close().extrude(1.593) result = result.edges().fi...
12
69
1.068738
train_56359903b922f0f6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.384, -0.283, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.233, 0.819).extrude(0.38) result = result.union(cq.Workplane(cq.Plane(origin=(0.296, -0.283, -0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.147, 0.476).extrude(0.27)) result = r...
31
171
0.581823
train_3a164021395c7876
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 1.056, 0.002), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.73, 0.056).threePointArc((0.93, 0.538), (0.998, 1.056)).lineTo(-0.998, 1.056).lineTo(-0.998, 0.056).lineTo(0.73, 0.056).close().revolve(angleDegrees=360, axisStart=(0.998, 1.056), axisE...
21
47
5.742091
train_41d8daf296472088
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.298, -0.763, -0.562), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.5).threePointArc((-0.242, 0.258), (0, 0.017)).threePointArc((0.113, 0.045), (0.2, 0.122)).threePointArc((0.242, 0.258), (0.2, 0.395)).threePointArc((0.113, 0.472), (0, 0.5)).c...
13
76
0.677428
train_41fb7fe3fc906220
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.205, -0.082, 0.415), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.272, -0.188).lineTo(0.272, 0.299).threePointArc((0.193, 0.341), (0.112, 0.38)).lineTo(0.113, 0.382).lineTo(0.019, 0.416).lineTo(-0.201, -0.188).lineTo(-0.272, -0.382).lineTo(-0.17...
4
40
0.805737
train_ad1fa15ecdc8b2ed
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.268, -0.445), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.259, 1.464).extrude(0.838) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.088, -0.43, -0.339), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.091).extrude(0.299)) result = result.cut...
15
76
1.175684
train_68f0a0f9c2723abf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.435, -0.768, -0.565), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.435, 0.054).lineTo(-0.435, 0.663).threePointArc((-0.001, 0.815), (0.435, 0.667)).lineTo(0.435, 0.054).lineTo(-0.435, 0.054).close().extrude(1.108) result = result.edges().fillet...
13
136
1.236915
train_e33d8e3f3a231001
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.645, 1.519).extrude(1.723) result = result.union(cq.Workplane(cq.Plane(origin=(-0.658 + 0.329, -0.607 + 0.3035, 0.723), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.174, 0.104).lineTo(-0.163, 0....
10
97
3.480206
train_741b678339a88e6f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.025, -0.488, -0.264), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.52, 1.024).extrude(0.171) result = result.union(cq.Workplane(cq.Plane(origin=(-0.209, -0.46, -0.076), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.419, 0.819).threePointArc((0.028,...
10
110
0.406804
train_68b2c71879b8fb5a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.05, -0.812, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 1.05).threePointArc((-0.562, 0.877), (-0.929, 0.419)).threePointArc((0, -0.95), (0.929, 0.419)).threePointArc((0.562, 0.877), (0, 1.05)).close().extrude(1.624) result = result.edges()...
2
11
4.994125
train_1cfc4838567e16ec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0, -0.265), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.446).workplane(offset=0.369).circle(0.668).workplane(offset=0.37).circle(0.459).workplane(offset=0.31).circle(0.473).workplane(offset=0.359).circle(0.488).loft() result = result.edges().f...
11
56
1.233919
train_fd3b0c4ff52f9084
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.665, 0.142, 0.576), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.197, 0.343).lineTo(0.17, 0.343).lineTo(0, 0.201).lineTo(0.027, 0.178).lineTo(0.197, 0.037).lineTo(0.197, 0.014).lineTo(-0.17, 0.014).lineTo(0, 0.156).lineTo(-0.027, 0.178).lineTo(...
8
139
1.253023
train_accdaae2af890e83
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.084, 0.189, -0.293), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.86, 0.011).lineTo(0.281, 0.811).lineTo(-0.693, 0.517).lineTo(-0.675, -0.51).lineTo(0.265, -0.793).close().moveTo(-0.249, -0.169).lineTo(0.25, -0.169).lineTo(0.253, -0.102).lineTo(...
17
134
0.829104
train_7be96ad27fd5a0f8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.682, 0.347, 0.034), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.318, -0.318).lineTo(-0.318, 0.318).lineTo(0.318, 0.318).lineTo(0.318, -0.318).lineTo(-0.318, -0.318).close().sweep(cq.Workplane('XY').spline([(-0.682, -0.226), (-0.425, -0.149), (...
5
20
0.188741
train_f393215f26bdc53e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.112), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.607, 0.15).threePointArc((-1, 0), (-0.607, -0.15)).lineTo(0.607, -0.15).threePointArc((1, 0), (0.607, 0.15)).lineTo(-0.607, 0.15).close().extrude(0.224) result = result.edges().fillet(0.0...
8
53
0.118938
train_ab26161c1b3404c4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.118, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.635, 0.746).lineTo(-0.635, -0.509).lineTo(0.105, -0.509).lineTo(0.105, 0.501).lineTo(0.421, 0.501).lineTo(0.632, 0.587).lineTo(0.635, 0.746).lineTo(-0.635, 0.746).close().extrude(1.606) ...
7
239
1.591395
train_08822eb57c52f812
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.017, 0.253, -0.306), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.694, 0.391).lineTo(0.694, -0.391).lineTo(-0.694, -0.391).lineTo(-0.694, 0.391).lineTo(0.694, 0.39).close().sweep(cq.Workplane('XY').spline([(-0.017, -0.477), (0.02, -0.26), (0.023...
3
13
0.816819
train_74bfb2e56237e93b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.418, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.488).workplane(offset=0.39).circle(0.915).workplane(offset=0.445).circle(1.074).loft() result = result.edges().chamfer(0.306) result = result.cut(cq.Workplane(cq.Plane(origin=(0.005, -0.84...
9
34
1.590836
train_08b87d382a155f7b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.06, -0.357, -0.153), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.304, 0.36).lineTo(0.304, 0.644).threePointArc((0.262, -0.001), (-0.304, -0.311)).lineTo(-0.304, 0.36).close().extrude(0.643) result = result.edges().chamfer(0.054) result = resu...
27
250
0.491944
train_bce2ebc58a138f2b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.372, -0.102, -0.43), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.283, 0.213).threePointArc((0, 0.994), (0.283, 0.213)).lineTo(0.283, 0.102).lineTo(0.283, -0.009).threePointArc((0, -0.79), (-0.283, -0.009)).lineTo(-0.283, 0.102).lineTo(-0.283, 0...
21
219
1.982918
train_a8171120f4eb0c00
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.296), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.569, -1).lineTo(-0.569, -0.222).lineTo(-0.069, -0.222).lineTo(-0.069, 1).lineTo(0.569, 1).lineTo(0.569, -1).lineTo(-0.569, -1).close().extrude(0.592) result = result.edges().fillet(0.183)...
4
46
0.847827
train_1b068a935aa58f2e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.939), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.409, 2).extrude(1.878) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.195, 0.162, 0.422), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.111).extrude(0.53)) result = result.cut(cq.Workpla...
7
46
3.99449
train_a793930ff1480e37
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.084, -0.975, 0.402), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.563, -0.088).threePointArc((-0.598, -0.012), (-0.563, 0.064)).lineTo(-0.048, 0.506).threePointArc((-0.017, 0.524), (0.017, 0.53)).threePointArc((0.052, 0.524), (0.083, 0.506)).l...
2
14
0.270655
train_fa7c18daee8ef7f3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.448, 0.179, -0.225), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.293, -0.109).lineTo(-0.293, 0.097).lineTo(-0.215, 0.109).lineTo(0.153, 0.039).lineTo(0.293, 0.013).lineTo(0.293, 0.009).lineTo(0.258, -0.109).lineTo(-0.293, -0.109).close().sweep(...
15
153
0.454087
train_d8dfdd50fee0acb6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.121, -0.29, -0.401), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.758, 1.39).extrude(1.017) result = result.union(cq.Workplane(cq.Plane(origin=(-0.866, -0.509, -0.229), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.268, 0.313).extrude(0.536)) result = ...
23
402
2.192907
train_842fa3c189156d80
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.671, 0.452, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.59, -0.33).lineTo(0.59, -0.33).lineTo(0.59, -0.133).lineTo(0.143, -0.058).lineTo(0.136, -0.056).threePointArc((0.08, -0.022), (0.057, 0.04)).lineTo(0.057, 0.763).lineTo(0.057, 1.219)....
3
23
0.744815
train_5893f26def423f71
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.118, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.118, -1).lineTo(0.118, 1).threePointArc((0, 0.995), (-0.118, 1)).lineTo(-0.118, -1).lineTo(0.118, -1).close().revolve(angleDegrees=360, axisStart=(0.118, -1), axisEnd=(0.118, 1)) result =...
13
52
0.294854
train_7aa7da8d698e8149
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.017, 0, 0.566), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.031, 0.516).lineTo(-0.516, 0).lineTo(-1.031, -0.516).lineTo(1.031, -0.516).lineTo(1.031, 0).lineTo(0.516, 0).lineTo(1.031, 0.516).lineTo(-1.031, 0.516).close().workplane(offset=0.306...
11
73
1.218257