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_c486ef8915221055
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.092, -0.076, -0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.616).lineTo(0.235, 0.513).lineTo(0.704, 0.308).lineTo(0.704, 0.205).lineTo(0.235, 0).lineTo(0.235, -0.103).lineTo(0.47, -0.103).lineTo(0.939, -0.308).lineTo(1.174, -0.411).line...
12
172
0.429463
train_5bdc893389fa7602
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.812, 0.704).threePointArc((0.944, 0.649), (1, 0.515)).lineTo(1, -0.428).lineTo(0.724, -0.704).lineTo(-0.722, -0.704).threePointArc((-0.917, -0.623), (-1, -0.426)).lineTo(-1, 0.704).lineTo(...
8
99
0.465367
train_bde172f37ce124dc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.092, -0.429, 0.609), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.105, 0.912).threePointArc((0.226, 0.862), (0.276, 0.742)).lineTo(0.276, 0.092).threePointArc((0.226, -0.029), (0.105, -0.079)).lineTo(-0.105, -0.079).threePointArc((-0.226, -0.029...
5
137
1.895904
train_873208763c1b2fe1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.133), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.251, 1.313).lineTo(0.251, 0.797).lineTo(0.999, 0.797).lineTo(0.999, 0).lineTo(0, 0).lineTo(0, 1.313).lineTo(0.251, 1.313).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0...
4
38
1.243711
train_eb986f6e478953dc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.833, 1).lineTo(0.833, 0.867).lineTo(0.958, 0.867).lineTo(0.958, -0.897).lineTo(0.863, -0.897).lineTo(0.863, -1).lineTo(-0.958, -1).lineTo(-0.958, 0.781).threePointArc((-0.894, 0.929), (-0....
19
39
0.991527
train_de13a0d7e563641e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.145, 0.071, -0.194), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.611, 0.694).lineTo(-0.611, -0.45).lineTo(0.855, -0.45).lineTo(0.855, -0.694).lineTo(-0.855, -0.694).lineTo(-0.855, 0.694).lineTo(-0.611, 0.694).close().extrude(0.154, taper=3.191,...
30
198
1.397331
train_c05ccbea299b313e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.004, 0, -0.243), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.334, 0.215).lineTo(0.291, 0.117).lineTo(0.995, -0.161).lineTo(-0.334, -0.14).lineTo(-0.913, -0.215).lineTo(-0.995, -0.165).lineTo(-0.913, -0.02).lineTo(-0.743, 0.111).lineTo(-0.334, 0...
6
37
0.158773
train_b022029be70f4ccd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.131, 0.543, -0.109), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.049, 0.155).lineTo(0.148, -0.074).lineTo(-0.148, -0.13).lineTo(-0.049, 0.155).close().extrude(0.259) result = result.union(cq.Workplane(cq.Plane(origin=(-0.093, 0.664, -0.326), n...
9
418
0.237697
train_86d9d9d4b0ed34a1
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.481, 0.587).threePointArc((-0.377, 0.567), (-0.333, 0.522)).lineTo(-0.333, 0.231).threePointArc((-0.177, 0.069), (0.192, 0)).lineTo(0.737, 0).threePointArc((0.922, -0.034), (1, -0.116)).l...
9
108
1.01811
train_52796ae37c0096b6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.309, 0.055, 0.248), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.879, -0.083).threePointArc((0.875, -0.165), (0.862, -0.246)).threePointArc((0.84, -0.326), (0.811, -0.403)).threePointArc((0.773, -0.477), (0.727, -0.548)).threePointArc((0.674, -0...
17
164
0.523893
train_48e257b39f5e7fc4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.568, 0.722).threePointArc((-0.516, 0.7), (-0.493, 0.646)).lineTo(-0.493, -0.117).threePointArc((-0.463, -0.189), (-0.39, -0.22)).lineTo(0.878, -0.22).threePointArc((0.958, -0.254), (1, -0...
12
34
0.515747
train_7cf134fb38c12e25
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.755, -0.511, -0.997), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.51).threePointArc((1.067, 1.067), (1.51, 0)).lineTo(0.516, 0).threePointArc((0.364, 0.364), (0, 0.516)).lineTo(0, 1.51).close().extrude(1.996) result = result.union(cq.Workpla...
15
151
2.446529
train_61732aa17e95ede0
import cadquery as cq import math result = cq.Workplane('XY').box(1.539, 0.772, 2) result = result.edges().fillet(0.117) result = result.cut(cq.Workplane(cq.Plane(origin=(0.698, 0.052, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).spline([(-1.059, -0.421), (-1.059, 0.421), (-1.017, 0.332), (-0.901, 0.241), (-0.612, 0.3), (-0....
7
59
1.47137
train_ecc154098de59122
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.025, -0.023, -0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.359, -0.107).threePointArc((-0.138, 0.322), (0.359, -0.322)).lineTo(-0.359, -0.107).close().moveTo(0.359, 0.021).lineTo(0.248, -0.15).threePointArc((-0.028, 0.15), (0.359, 0.021...
9
134
0.459448
train_01fe2d22e4a788d0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.2, 0, -0.532), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.8, 0.662).lineTo(0.8, -0.221).lineTo(1.2, -0.221).lineTo(1.2, -0.662).lineTo(0.4, -0.662).lineTo(0.4, -0.221).lineTo(-1.2, -0.221).lineTo(-1.2, 0.221).lineTo(-0.8, 0.221).lineTo(-0.8, 0....
11
26
2.397735
train_a7905dee40a82242
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.041, -0.432, -0.219), normal=(0.178, 0.733, -0.656), xDir=(-0.972, 0.236, 0))).moveTo(-0.181, -0.036).threePointArc((-0.262, -0.033), (-0.185, -0.006)).lineTo(0.039, 0.098).lineTo(0.063, 0.089).lineTo(0.092, 0.096).lineTo(0.234, 0.012).threePoi...
12
177
0.61896
train_595e65f6f11acb63
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.002, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.254, 0.967).threePointArc((0.398, 0.918), (0.533, 0.847)).threePointArc((0.654, 0.757), (0.762, 0.65)).threePointArc((0.852, 0.528), (0.922, 0.394)).threePointArc((0.971, 0.25), (0.998, 0.1...
3
103
2.578131
train_6d733b1ea8ee7df1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.623), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.974, 0.468).workplane(offset=1.246).rect(2, 0.615).loft() result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.311), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.18).extrude(1.402, both...
2
7
0.892125
train_e3c291f31a498280
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.026, 0.11, -0.354), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.201, 0.484).lineTo(0.401, 0.028).lineTo(0.029, -0.304).lineTo(-0.401, -0.052).lineTo(-0.295, 0.435).lineTo(0.201, 0.484).close().extrude(0.194) result = result.union(cq.Workplane(...
5
38
0.137494
train_49f09e0e2d6ffb76
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.212), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.934, 0.728).lineTo(0.934, 0).lineTo(-0.934, 0).lineTo(-0.934, 0.728).lineTo(-0.786, 0.728).lineTo(-0.786, 0.148).lineTo(0.786, 0.148).lineTo(0.786, 0.728).lineTo(0.934, 0.728).close().ext...
7
43
0.706141
train_fea8a9ec7537898c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.175, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.167, 0.168).lineTo(0.27, 0.143).lineTo(0.27, 0.125).lineTo(0.364, 0.101).lineTo(0.497, 0.101).lineTo(0.54, 0.09).lineTo(0.54, 0.057).lineTo(0.447, 0.034).lineTo(0.335, 0.034).lineTo(0.27, 0...
2
64
0.266992
train_a42247246964c5c7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.785, 0.546).lineTo(1, 0.331).lineTo(1, -0.259).lineTo(0.713, -0.546).lineTo(-0.587, -0.546).lineTo(-1, -0.132).lineTo(-1, 0.33).lineTo(-0.784, 0.546).lineTo(0.785, 0.546).close().extrude(0...
12
44
0.121607
train_3f9aaafbc0eaa9d9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.121, -0.166, -0.728), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.17, 0.163).lineTo(0.17, 0).lineTo(0.057, 0).lineTo(0.057, -0.163).lineTo(-0.057, -0.163).lineTo(-0.057, 0).lineTo(-0.17, 0).lineTo(-0.17, 0.163).lineTo(0.17, 0.163).close().extrud...
19
119
0.111544
train_93b7c4253261b4ee
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.44, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.397).extrude(0.807) result = result.union(cq.Workplane(cq.Plane(origin=(-0.44, 0, -0.435), normal=(0.647, 0, 0.762), xDir=(0.762, 0, -0.647))).circle(0.279).extrude(1.645)) result = result...
8
21
0.538759
train_c101995c49f3a839
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.271), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.798, 0.543).lineTo(0.798, 0).lineTo(-0.798, 0).lineTo(-0.798, 0.543).lineTo(-0.714, 0.543).lineTo(-0.714, 0.085).lineTo(0.714, 0.085).lineTo(0.714, 0.543).lineTo(0.798, 0.543).close().ext...
5
50
0.308125
train_f7201d5184039373
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.628, 0.069, 0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.162, 0.769).lineTo(0.162, -0.428).threePointArc((0, -0.59), (-0.162, -0.428)).lineTo(-0.162, 0.769).threePointArc((0, 0.931), (0.162, 0.769)).close().extrude(0.316) result = result....
10
91
1.232995
train_2d78323db4ab86a7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.487, 0.842).threePointArc((0.487, 0.842), (0.973, 0)).threePointArc((0.487, -0.842), (-0.487, -0.842)).threePointArc((-0.973, 0), (-0.487, 0.842)).close().extrude(0.417, taper=-3.622) resu...
14
283
1.13623
train_22c7d528154c15ea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.662, 1).threePointArc((-0.548, 0.952), (-0.5, 0.838)).lineTo(-0.5, 0.633).threePointArc((-0.461, 0.539), (-0.367, 0.5)).lineTo(0.424, 0.5).threePointArc((0.477, 0.477), (0.5, 0.424)).line...
15
110
0.355986
train_3f5a166d85f533ec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.121, 0, 0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.523, 0.664).threePointArc((0.567, 0.643), (0.585, 0.593)).lineTo(0.585, 0.41).threePointArc((0.606, 0.355), (0.654, 0.332)).lineTo(0.779, 0.332).threePointArc((0.849, 0.299), (0.878, 0....
33
104
0.430717
train_04d9eff23b6353d3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, -0.25, 0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.45, 1.249).lineTo(0.586, 1.106).lineTo(0.721, 0.962).threePointArc((1.251, -0.167), (0.122, -0.697)).threePointArc((-0.157, -0.69), (-0.164, -0.969)).threePointArc((-0.171, -1.249),...
6
23
0.436285
train_2bd401a672555359
import cadquery as cq import math result = cq.Workplane('XY').moveTo(0.869, 0.133).lineTo(0.869, 0.08).lineTo(-0.621, 0.08).lineTo(-0.621, 0.027).lineTo(0.869, 0.027).lineTo(0.869, -0.133).lineTo(-0.869, -0.133).lineTo(-0.869, -0.08).lineTo(0.621, -0.08).lineTo(0.621, -0.027).lineTo(-0.869, -0.027).lineTo(-0.869, 0.133...
2
56
0.389926
train_c2ae01b11ce2382a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1).lineTo(0, 0.667).lineTo(0.404, 0.667).lineTo(0.404, 0.333).lineTo(0.808, 0.333).lineTo(0.808, -0.667).lineTo(0, -0.667).lineTo(0, -1).lineTo(-0.404, -1).lineTo(-0.404, -0.333).lineTo(-0...
20
523
0.356418
train_9fae3959ad40ba01
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.289, 0.028, -0.887), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.354, 0.612).threePointArc((0.532, 0.629), (0.585, 0.443)).lineTo(-0.224, -0.166).lineTo(0.434, -0.486).threePointArc((0.461, -0.595), (0.332, -0.629)).lineTo(-0.393, -0.278).threeP...
9
69
1.779789
train_2b6313d37eea3952
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.062, -0.259, 0.208), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.565, 0.326).threePointArc((0.326, 0.565), (0.565, -0.326)).threePointArc((-0.326, -0.565), (-0.565, 0.326)).close().sweep(cq.Workplane(cq.Plane(origin=(-0.062, -0.259, 0.208), no...
16
155
0.428129
train_9ede33768a125bf7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.338), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.57, 0.677).lineTo(0.57, 0.541).lineTo(1, 0.541).lineTo(1, 0).lineTo(0.49, 0).lineTo(0.49, 0.677).lineTo(0.57, 0.677).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, ...
2
12
1.219548
train_e0abd3174de77e33
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.106, 0, 0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.129, -0.02).lineTo(0.119, -0.054).lineTo(0.171, -0.09).lineTo(0.152, -0.12).lineTo(0.097, -0.087).lineTo(0.071, -0.11).lineTo(0.095, -0.169).lineTo(0.063, -0.183).lineTo(0.035, -0.127)....
1
46
0.075264
train_c3a25c62af9d69fe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.108, 0, 0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.69, 0.989).threePointArc((0.761, 0.959), (0.791, 0.888)).lineTo(0.791, 0.689).threePointArc((0.763, 0.622), (0.696, 0.593)).lineTo(0.511, 0.593).threePointArc((0.43, 0.559), (0.396, 0.4...
23
80
0.395959
train_a395c3ac7bab830b
import cadquery as cq import math result = cq.Workplane('XY').moveTo(0.762, 1).threePointArc((0.847, 0.961), (0.882, 0.89)).lineTo(0.882, 0.63).threePointArc((0.834, 0.537), (0.722, 0.497)).lineTo(0.418, 0.497).threePointArc((0.331, 0.467), (0.296, 0.394)).lineTo(0.296, 0.159).threePointArc((0.351, 0.048), (0.485, 0))....
8
215
1.00861
train_9a8abb196ab63d8a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.058, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.459).extrude(0.521, both=True) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.058, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.094).extrude(1, both=True)) result = result.cut(...
12
124
0.400671
train_e6b52003b8a02bb2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.014, 0.617, 0.098), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.056, 0.403).threePointArc((0.259, 0.281), (0.31, 0.131)).threePointArc((0.18, 0.04), (-0.056, 0.062)).threePointArc((-0.259, 0.184), (-0.31, 0.334)).threePointArc((-0.18, 0.424), (...
5
42
0.557026
train_02c9b9dd5fcd2884
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.235, -0.063, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.3, 0.372).lineTo(0.3, 0.172).lineTo(-0.158, 0.172).lineTo(-0.158, -0.172).lineTo(0.3, -0.172).lineTo(0.3, -0.372).lineTo(-0.3, -0.372).lineTo(-0.3, 0.372).lineTo(0.3, 0.372).close().ex...
8
146
0.600097
train_5fbba7b6d01e2f98
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.308, 0.839, -0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.038, 0.143).threePointArc((0.084, 0.145), (0.143, 0.038)).threePointArc((0.145, -0.084), (0.038, -0.143)).threePointArc((-0.084, -0.145), (-0.143, -0.038)).threePointArc((-0.145,...
11
123
0.221517
train_700e72fad1927c4e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.675, 0, 0.004), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.323, 0.063).threePointArc((0.311, 0.005), (0.338, -0.069)).threePointArc((0.356, -0.161), (0.321, -0.238)).threePointArc((0.239, -0.264), (0.15, -0.25)).threePointArc((0.081, -0.243), ...
8
35
1.401965
train_acb50bb49b5d4a28
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.2, -0.218, -0.973), normal=(0, 0, 1), xDir=(1, 0, 0))).workplane(offset=0).moveTo(0.208, 0.469).lineTo(0.262, 0.235).threePointArc((0.318, 0.12), (0.364, 0)).lineTo(0.275, -0.235).threePointArc((0.217, -0.345), (0.208, -0.469)).threePointArc((-0...
11
185
1.542955
train_f94137978d97013c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.077, 0.647, 0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.418, 0.249).threePointArc((0.501, 0.064), (0.4, -0.203)).threePointArc((-0.501, -0.167), (-0.317, -0.082)).threePointArc((-0.032, 0.267), (0.152, 0.349)).close().extrude(0.248) resu...
28
189
0.446625
train_4f38ad906611514e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.326, 0.216, 0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.322, 0.782).lineTo(0.322, 0.26).lineTo(0.118, 0.26).lineTo(0.118, 0.443).lineTo(-0.118, 0.443).lineTo(-0.118, 0.26).lineTo(-0.322, 0.26).lineTo(-0.322, 0.783).lineTo(-0.118, 0.782)...
14
96
0.436443
train_0e05ee4e9bfa6e94
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.023, -0.801, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.468, 1.023).lineTo(0.529, 0.424).lineTo(-0.529, -0.067).lineTo(-0.468, 1.023).close().extrude(1.602) result = result.cut(cq.Workplane(cq.Plane(origin=(0.113, -0.548, -0.688), normal=...
26
552
1.415014
train_2f139d50c4a4c4a4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -6.795), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.689, 1.172).lineTo(1.689, -0.024).threePointArc((1.352, -0.835), (0.541, -1.172)).lineTo(-0.698, -1.172).threePointArc((-1.399, -0.882), (-1.689, -0.18)).lineTo(-1.689, 1.172).lineTo(1.689...
13
16
1.011356
train_76e77bb0c12ef694
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.775), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.09, 1).threePointArc((-0.027, 0.973), (0, 0.91)).lineTo(0, 0.712).threePointArc((0.033, 0.633), (0.112, 0.6)).lineTo(0.49, 0.6).threePointArc((0.708, 0.508), (0.8, 0.29)).lineTo(0.8, -0.7...
1
22
2.942809
train_6d48e682f2e33234
import cadquery as cq import math result = cq.Workplane('XY').moveTo(0, 1).lineTo(0, 0.498).lineTo(1, 0.498).lineTo(1, 0).lineTo(0.498, 0).lineTo(0.498, -0.498).lineTo(-0.498, -0.498).lineTo(-0.498, -1).lineTo(-1, -1).lineTo(-1, 0.498).lineTo(-0.498, 0.498).lineTo(-0.498, 1).lineTo(0, 1).close().extrude(0.772, both=Tru...
7
104
2.782101
train_e0c19dc9773d0e78
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.936, 0.379).lineTo(1, 0.317).lineTo(1, -0.339).threePointArc((0.987, -0.368), (0.959, -0.379)).lineTo(-1, -0.379).lineTo(-1, 0.379).lineTo(0.936, 0.379).close().extrude(0.178) result = res...
12
75
0.213588
train_7b1bb198d5ae2699
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.821, 0.1, 0.005), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.194, 1.1).lineTo(0.402, 0.904).lineTo(0.808, 0.509).lineTo(0.874, -0.066).threePointArc((0.906, -0.136), (0.872, -0.206)).threePointArc((0.825, -0.268), (0.855, -0.34)).threePointAr...
9
407
3.001137
train_3574b24a9e94bef9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.053, -0.023, -0.651), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.061, -0.081).lineTo(0.044, -0.086).threePointArc((0.04, -0.085), (0.04, -0.081)).lineTo(0.071, -0.014).threePointArc((0.072, -0.002), (0.064, 0.006)).lineTo(-0.009, 0.04).threePo...
7
63
0.051777
train_5b6e13a9c1660279
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.343), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.457).lineTo(1, 0.202).lineTo(0.269, 0.202).lineTo(0.269, -0.202).lineTo(1, -0.202).lineTo(1, -0.457).lineTo(-1, -0.457).lineTo(-1, -0.202).lineTo(-0.269, -0.202).lineTo(-0.269, 0.202).l...
13
34
0.709166
train_b6ff2d11ffc6bd04
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.01, -0.163), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.035, 0.289).lineTo(1, -0.347).threePointArc((0.647, -0.448), (0.035, -0.39)).lineTo(-1, 0.246).threePointArc((-0.293, 0.448), (-0.035, 0.289)).close().moveTo(-0.47, 0.262).lineTo(-0.7...
2
9
0.279117
train_064d8e36cc586ce6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.092), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.601, 0.184).lineTo(0.601, 0.068).lineTo(1, 0.068).lineTo(1, 0).lineTo(0.351, 0).lineTo(0.351, 0.184).lineTo(0.601, 0.184).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0...
11
50
0.203951
train_ed5744ea23a425f8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.507, -0.081, 0.606), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.387, 0.439).lineTo(0.387, -0.439).threePointArc((0, -0.826), (-0.387, -0.439)).lineTo(-0.387, 0.439).threePointArc((0, 0.826), (0.387, 0.439)).close().extrude(0.028) result = res...
9
20
0.965854
train_c5b0525cb5ebe89a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.107, 0, -0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.466).extrude(1.628) result = result.union(cq.Workplane(cq.Plane(origin=(-0.107, 0, 0.14), normal=(0.372, 0, 0.928), xDir=(0.928, 0, -0.372))).circle(0.444).extrude(0.748)) result = re...
8
36
0.777379
train_f9d65bd4a4d576aa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.833, 0.68).lineTo(0.833, 0.515).lineTo(1, 0.515).lineTo(1, -0.433).lineTo(0.753, -0.68).lineTo(-0.879, -0.68).threePointArc((-0.963, -0.646), (-1, -0.562)).lineTo(-1, 0.401).lineTo(-0.719,...
13
147
0.436343
train_c7b3067ce618bcbe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.001, -0.175, 0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.158, -0.14).threePointArc((0.457, 0.418), (0.675, -0.418)).lineTo(0.158, -0.14).close().moveTo(0.752, 0.072).lineTo(0.608, -0.195).threePointArc((0.524, 0.195), (0.752, 0.072)).clo...
7
128
0.372974
train_6b721f5559725237
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.042, 0.021, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.459, 0.142).threePointArc((1.006, 0.09), (0.508, -0.095)).lineTo(-0.84, -0.234).threePointArc((-0.942, -0.179), (-1.006, 0.171)).threePointArc((-0.724, 0.234), (-0.537, 0.033)).lin...
5
35
0.612798
train_e7d17d93e2a480c7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.233), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.949, 0.466).lineTo(0.919, 0.305).lineTo(1, 0.163).lineTo(1, 0).lineTo(0.796, 0).lineTo(0.796, 0.14).lineTo(0.695, 0.305).lineTo(0, 0.262).lineTo(0, 0.466).lineTo(0.949, 0.466).close().rev...
3
16
0.749185
train_db508bbac850339f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.407) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.571).extrude(1.216, both=True)) result = result.union(cq.Workpl...
21
129
0.718936
train_ecdfa3c9564071ad
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.18, 0.001, -0.613), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.557, -0.083).lineTo(0.809, -0.141).lineTo(0.801, -0.182).lineTo(0.547, -0.129).lineTo(0.522, -0.21).lineTo(0.756, -0.322).lineTo(0.737, -0.362).lineTo(0.502, -0.253).lineTo(0.46, -...
6
152
0.692297
train_a7bc0d431876829d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.424).lineTo(1, -0.424).lineTo(-1, -0.424).lineTo(-1, 0.424).lineTo(1, 0.424).close().extrude(0.118) result = result.union(cq.Workplane(cq.Plane(origin=(-0.6, 0, 0.024), normal=(0, 0, 1)...
9
17
0.220836
train_04e07c207effb7ab
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.731, 2).lineTo(0.731, 1.709).lineTo(0.696, 1.709).lineTo(0.696, 1.004).lineTo(0.674, 1.004).lineTo(0.674, 0).lineTo(0, 0).lineTo(0, 2).lineTo(0.731, 2).close().revolve(angleDegrees=360, axisS...
7
30
2.388675
train_34713e81e4d7986f
import cadquery as cq import math result = cq.Workplane('XZ').moveTo(1, 0.091).lineTo(0.83, 0).lineTo(1, -0.091).lineTo(0.322, -0.091).lineTo(0.322, 0.091).lineTo(1, 0.091).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0)) result = result.cut(cq.Workplane(cq.Plane(origin=(0.343, 0.43, 0), normal...
10
66
0.296947
train_49d00ed0525d99b5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.125, 0, 0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.081, 0.766).threePointArc((0.293, 0.676), (0.383, 0.464)).lineTo(0.383, 0.12).threePointArc((0.418, 0.035), (0.502, 0)).lineTo(1.013, 0).threePointArc((1.108, -0.04), (1.148, -0.135))....
21
315
0.397519
train_f6ef077c737b8dbe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.492, -0.377, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.671, 1.267).threePointArc((0.649, 1.034), (0.749, 0.822)).lineTo(0.852, 0.377).threePointArc((0.859, 0.152), (0.817, -0.069)).lineTo(0.671, -0.514).threePointArc((-0.859, 0.377),...
7
120
0.880729
train_9b140479fe6ddca8
import cadquery as cq import math result = cq.Workplane('XY').moveTo(0.904, 0.983).threePointArc((0.974, 0.948), (1.002, 0.865)).lineTo(1.002, -0.592).threePointArc((0.904, -0.865), (0.674, -0.983)).lineTo(-0.761, -0.983).threePointArc((-0.93, -0.896), (-1.002, -0.696)).lineTo(-1.002, 0.843).threePointArc((-0.968, 0.94...
5
40
2.890423
train_06154dad55234cc9
import cadquery as cq import math result = cq.Workplane('XZ').moveTo(1, 0.21).lineTo(0.907, 0).lineTo(1, -0.21).lineTo(0.251, -0.21).lineTo(0.251, 0.21).lineTo(1, 0.21).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0)) result = result.cut(cq.Workplane(cq.Plane(origin=(0.55, 0, 0), normal=(0, 0, ...
9
33
0.742758
train_2782bc6090defaa1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.196), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.936, 0.553).lineTo(0.936, 0).lineTo(-0.936, 0).lineTo(-0.936, 0.553).lineTo(-0.442, 0.553).lineTo(-0.442, 0.498).lineTo(0.442, 0.498).lineTo(0.442, 0.553).lineTo(0.936, 0.553).close().ext...
8
71
1.410064
train_fb6cbe9ea9ae1fee
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.062, -0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.986, 0.938).threePointArc((1.267, 0.938), (0.986, 0.626)).lineTo(0.141, 0.313).lineTo(-0.141, 0.313).lineTo(-0.704, -0.938).threePointArc((-1.267, -0.938), (-1.267, -0.626)).lineTo(-0....
1
26
1.183792
train_999f225fed4a7375
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.825).lineTo(1, -0.668).threePointArc((0.951, -0.779), (0.84, -0.825)).lineTo(-0.83, -0.825).threePointArc((-0.947, -0.776), (-1, -0.655)).lineTo(-1, 0.678).threePointArc((-0.954, 0.782)...
8
26
0.677774
train_ddf053ac1c275430
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.118, 0.218, -0.838), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.092, 0.102).threePointArc((0.099, 0.098), (0.102, 0.089)).lineTo(0.102, 0.07).threePointArc((0.098, 0.057), (0.087, 0.051)).lineTo(0.069, 0.051).threePointArc((0.064, 0.048), (0.06...
6
139
0.065505
train_cff6895c820105a8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.859, 0.042, 0.2), normal=(0.991, -0.107, -0.084), xDir=(0.108, 0.994, 0))).moveTo(0.056, 0.802).threePointArc((0.207, 0.685), (0.399, 0.731)).lineTo(0.681, 0.387).lineTo(0.783, -0.042).lineTo(0.87, -0.062).lineTo(0.907, -0.153).lineTo(0.87, -0....
2
30
2.941193
train_030145a2c5314282
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.508, 1.181, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.024, 2.181).lineTo(0.174, 2.066).lineTo(0.961, 1.46).lineTo(0.885, 1.362).lineTo(0.098, 1.967).lineTo(0.022, 1.869).threePointArc((0.136, 1.711), (0.331, 1.728)).lineTo(0.588, 1.519).t...
22
33
0.911762
train_3983a66dda74bbca
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.024, 0, -0.781), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.168, 0.085).lineTo(0.188, 0.074).threePointArc((0.197, 0.076), (0.192, 0.066)).lineTo(0.18, 0.002).lineTo(0.167, -0.038).lineTo(0.16, -0.044).threePointArc((0.161, -0.063), (0.134, -0...
18
193
0.114869
train_de6ff88da581bc40
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.008, -0.228, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.222, 0.823).lineTo(0.074, 0.432).lineTo(0.508, 0.657).lineTo(0.318, 0.206).lineTo(0.73, -0.058).lineTo(0.244, -0.118).lineTo(0.222, -0.607).lineTo(-0.074, -0.217).lineTo(-0.508, -0.4...
27
285
0.973098
train_bbf0ee52de347f43
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.003, 0, -0.775), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.841) result = result.cut(cq.Workplane(cq.Plane(origin=(1.003, 0, -0.775), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.234, 0.643), (-0.827, 0.984), (-1.5, 0.8...
8
91
1.677386
train_4162916659e84601
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.157, -0.532), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.499, 1.531).lineTo(0.499, 1.186).lineTo(0.37, 1.186).lineTo(0.37, 0.9).lineTo(0.705, 0.9).lineTo(0.705, 0.306).lineTo(0.514, 0.306).lineTo(0.514, 0).lineTo(0, 0).lineTo(0, 1.531).lin...
11
105
1.360751
train_054d33948d222c3c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.049, -0.252), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.652, 0.35).threePointArc((0.891, 0.25), (1, 0.008)).lineTo(1, -0.008).threePointArc((0.891, -0.25), (0.652, -0.35)).lineTo(-0.826, -0.35).threePointArc((-0.944, -0.303), (-1, -0.184))...
13
76
0.045541
train_731eb95ff2197148
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.285, 0, -0.631), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.574, 1).lineTo(1.145, 0).lineTo(-0.574, -1).lineTo(-0.574, 1).close().extrude(1.261) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.41, -1, 0.002), normal=(-1, 0, 0), xDir=(0, ...
5
39
1.779801
train_7e3eece388d35b5b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.41, 0.002, 0.064), normal=(-0.947, -0.296, -0.123), xDir=(0.298, -0.954, 0))).moveTo(-0.765, 0.789).lineTo(0.765, 0.38).threePointArc((-0.369, -0.789), (-0.765, 0.789)).close().extrude(0.789, both=False) result = result.cut(cq.Workplane(cq.Plane...
3
18
1.781713
train_595096cf568ec1da
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.465), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.929).lineTo(1, 0.133).lineTo(-0.667, 0.133).lineTo(-0.667, -0.133).lineTo(1, -0.133).lineTo(1, -0.929).lineTo(-1, -0.929).lineTo(-1, -0.664).lineTo(0.667, -0.664).lineTo(0.667, -0.398)....
3
24
2.177684
train_ed0d3b9ad03469f9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.487, -0.218, -0.037), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.242, 0.535).threePointArc((-0.094, 0.532), (0.109, 0.381)).threePointArc((0.248, 0.171), (0.242, 0.023)).threePointArc((0.094, 0.026), (-0.109, 0.177)).threePointArc((-0.248, 0...
7
39
0.47315
train_b5e01bb2dad02cc5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.638, 0.828).threePointArc((-0.548, 0.79), (-0.509, 0.699)).lineTo(-0.509, -0.072).threePointArc((-0.431, -0.259), (-0.244, -0.337)).lineTo(0.935, -0.337).threePointArc((0.981, -0.357), (1...
6
75
0.942899
train_8992c7f4c07cbfd6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-65.289, 21.732, -0.806), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-60.635, 14.183).threePointArc((38.586, 61.459), (-5.512, -61.459)).lineTo(-60.635, 14.183).close().moveTo(60.635, -4.728).lineTo(5.512, -33.093).threePointArc((38.586, 42.549), (...
11
5
0.056583
train_8b32fc258fcb4724
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.028, 0, -1.303), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.944, 1.755).lineTo(0.944, 1.377).lineTo(0.274, 1.377).lineTo(0.274, 0.988).lineTo(1, 0.988).lineTo(1, 0.85).lineTo(0.143, 0.85).lineTo(0.143, 0).lineTo(0, 0).lineTo(0, 1.755).lineTo(0...
4
20
1.373327
train_f5c2170d880b39da
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.037, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.222, 0.196).lineTo(0.222, 0.052).lineTo(-0.078, 0.052).lineTo(-0.078, -0.052).lineTo(0.222, -0.052).lineTo(0.222, -0.196).lineTo(-0.222, -0.196).lineTo(-0.222, 0.196).lineTo(0.222, 0.196)...
4
21
0.146451
train_43fbf2e0fe6194b0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.408, 0, -0.202), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.591, 0.201).lineTo(0.591, -0.193).lineTo(0.572, -0.212).lineTo(-0.579, -0.212).lineTo(-0.591, -0.199).lineTo(-0.591, 0.212).lineTo(0.579, 0.212).lineTo(0.591, 0.201).close().extrude(0....
11
111
0.420102
train_fd7b892224e06dbe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.945, 0.376).threePointArc((0.978, 0.363), (1, 0.332)).lineTo(1, -0.3).threePointArc((0.969, -0.353), (0.915, -0.376)).lineTo(-0.949, -0.376).threePointArc((-0.979, -0.363), (-1, -0.333)).l...
13
117
0.560921
train_1e345d04e6d23b94
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.051, -0.016, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.857, 0.289).lineTo(0.948, 0.198).lineTo(0.948, -0.231).threePointArc((0.932, -0.272), (0.891, -0.289)).lineTo(-0.871, -0.289).threePointArc((-0.926, -0.266), (-0.948, -0.212)).li...
17
171
0.394288
train_d2dc6d17ad42962f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.496, 0.091, -0.103), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.168, 0.32).lineTo(0.26, 0.16).lineTo(0.277, 0).lineTo(0.273, -0.16).threePointArc((0.224, -0.243), (0.168, -0.32)).threePointArc((-0.277, 0), (0.168, 0.32)).close().sweep(cq.Workp...
5
39
1.021681
train_7f3d14d4a870402a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.858, -0.714, -0.76), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.714).threePointArc((1.213, 1.213), (1.714, 0)).lineTo(1.13, 0).threePointArc((0.799, 0.799), (0, 1.13)).lineTo(0, 1.714).close().extrude(1.519) result = result.union(cq.Workpla...
7
58
2.158216
train_893684232b92da99
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.153, -0.122, 0.368), normal=(0.407, -0.761, -0.506), xDir=(0.882, 0.472, 0))).moveTo(0.566, -0.084).lineTo(0.621, -0.179).threePointArc((0.616, -0.214), (0.552, -0.234)).lineTo(0.425, -0.25).threePointArc((0.35, -0.252), (0.279, -0.241)).lineTo...
14
243
1.039591
train_c8005e4392681778
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.783), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.529).workplane(offset=1.566).rect(0.724, 0.304).loft() result = result.cut(cq.Workplane(cq.Plane(origin=(-0.229, -0.196, 0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.523, 1.486).l...
6
36
0.44216
train_9199b42b7b324a30
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.038, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.079, 0.353).lineTo(-0.079, 0).lineTo(0.079, 0).lineTo(0.079, 0.177).lineTo(0.235, 0.177).lineTo(0.235, 0).lineTo(0.392, 0).lineTo(0.392, -0.177).lineTo(0.079, -0.177).lineTo(0.079, -0.353...
8
71
0.43435
train_66e745431821c6d9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, -0.05, 0.218), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.427, 0.948).threePointArc((0.553, 0.722), (0.551, 0.435)).threePointArc((0.502, 0.211), (0.525, 0.087)).threePointArc((0.669, -0.003), (0.867, -0.141)).threePointArc((0.992, -0.343...
3
26
0.312245
train_02d9c6081818d9b1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.864, 0, -1), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.182, 2).lineTo(0.182, 0.182).lineTo(1.728, 0.182).lineTo(1.728, 0).lineTo(0, 0).lineTo(0, 2).lineTo(0.182, 2).close().extrude(0.753, both=True) result = result.cut(cq.Workplane(cq.Plane(...
5
37
0.840924