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_fc80960d3a22f7c3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.015, 0.001, -0.365), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.832, -1.001).lineTo(0.86, -0.958).lineTo(0.862, 0.997).lineTo(-0.832, 0.999).close().moveTo(0, -0.209).lineTo(0.065, -0.089).lineTo(0.199, -0.065).lineTo(0.105, 0.034).lineTo(0.1...
10
221
1.528499
train_990674db035fa5ea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.269, -0.266, -0.145), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.168).workplane(offset=0.104).circle(0.169).workplane(offset=0.133).circle(0.162).workplane(offset=0.128).circle(0.166).loft() result = result.edges().chamfer(0.026) result = res...
17
128
0.134521
train_4b622b5991267f47
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.972, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.218, 0.169).lineTo(0.172, 0.146).lineTo(-0.036, 0.537).lineTo(-0.06, 0.524).lineTo(-0.408, 1.18).lineTo(-0.149, 1.318).lineTo(0.408, 0.272).lineTo(0.218, 0.169).close().extrude(2) result =...
3
22
0.771467
train_cefa72f007974ec8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.231, 0, -0.362), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.539, 1.641).extrude(0.724) result = result.union(cq.Workplane(cq.Plane(origin=(0.758, 0.224, -0.214), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.242).extrude(0.15)) result = result.cut...
10
91
0.731499
train_0dddfb572a51df83
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.052, -0.239), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.492).extrude(0.479) result = result.union(cq.Workplane(cq.Plane(origin=(-0.414, -0.242, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.435, 0.114).extrude(0.085)) result = result....
3
16
0.379121
train_d980756993925fc2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.034, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.121, 0.458).lineTo(-0.09, 0.485).lineTo(-0.104, 0.491).lineTo(-0.121, 0.499).lineTo(-0.121, 0.738).lineTo(-0.05, 0.6).lineTo(-0.022, 0.545).lineTo(0.001, 0.499).lineTo(-0.063, 0.473).lin...
7
60
0.091004
train_0943061fe5163d59
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.175, 0.151, -0.481), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.024, 0.264).lineTo(-0.087, 0.282).lineTo(-0.408, 0.282).lineTo(-0.519, 0.229).lineTo(-0.519, 0.073).lineTo(-0.408, 0.039).lineTo(-0.061, 0.039).lineTo(-0.024, 0.056).lineTo(-0.02...
16
213
0.050536
train_9200102221856eb9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.478, -0.215, 0.221), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.73, 0.327).threePointArc((-0.511, 0.545), (-0.292, 0.327)).lineTo(-0.195, 0.327).lineTo(0.097, 0.327).lineTo(0.195, 0.327).lineTo(0.438, 0.327).lineTo(0.536, 0.327).threePointArc...
13
220
0.23731
train_67c14e366a3cf11b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.68, 0, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.42, 0.601).extrude(0.58) result = result.faces('>X').shell(-0.03) result = result.cut(cq.Workplane(cq.Plane(origin=(0.527, 0, 0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.12, 0.087).e...
5
82
0.24957
train_e68d4516cc4e25f3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.761, -0.979), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.015, 0.013).lineTo(0.002, 0.013).threePointArc((0.021, 0), (0.002, -0.013)).lineTo(-0.015, -0.013).lineTo(-0.021, -0.013).lineTo(-0.021, 0.013).lineTo(-0.015, 0.013).close().sweep(cq....
2
16
0.003458
train_b518db68ccfc6cb5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.08), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.483, -0.142).threePointArc((-0.008, 0.194), (0.467, -0.142)).threePointArc((0.476, -0.168), (0.483, -0.194)).lineTo(-0.008, -0.194).lineTo(-0.008, -0.142).lineTo(-0.483, -0.142).close().swe...
10
13
0.382186
train_b9a406d314103d7b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.336, -0.193, -0.152), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.184, 0.957).lineTo(0.25, 0.957).lineTo(-0.184, -0.664).lineTo(-0.25, -0.664).lineTo(0.184, 0.957).close().extrude(0.51) result = result.edges().fillet(0.027) result = result.face...
10
80
0.119834
train_5fc690cbe447a673
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.831, 0.25, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.961, -0.75).lineTo(-0.961, -0.75).lineTo(-0.004, 1.573).lineTo(0.961, -0.75).close().extrude(1.663) result = result.edges().fillet(0.199) result = result.cut(cq.Workplane(cq.Plane(origi...
5
44
3.414053
train_334af7a67d511051
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.119, -0.058, 0.164), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.079, -0.863).threePointArc((0, -0.942), (-0.079, -0.863)).lineTo(-0.079, 1.058).lineTo(0.079, 1.058).lineTo(0.079, -0.863).close().extrude(0.127) result = result.edges().chamfer(0...
5
40
0.037646
train_50fef51a5775588f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.006, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.385).lineTo(1, -0.385).lineTo(-1, -0.385).lineTo(-1, -0.319).lineTo(-0.648, -0.319).lineTo(-0.648, 0.385).lineTo(1, 0.385).close().sweep(cq.Workplane('XY').spline([(-0.415, -0.006), (-0...
7
33
0.726225
train_df6f431bb911a235
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.227, 0, -0.27), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.547, 1.411).extrude(0.685) result = result.union(cq.Workplane(cq.Plane(origin=(0.254, 0.014, -0.418), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.21, 0.135).extrude(0.156)) result = result....
10
57
1.417868
train_728edc08509f23e3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.89), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.606).extrude(1.78)
1
6
5.71736
train_0629404a774ba286
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.023, 0.241, 0.704), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.28).sweep(cq.Workplane('YZ').spline([(-0.075, 0.101), (0.032, 0.038), (0.13, 0.17), (0.048, 0.254), (-0.093, 0.225)])) result = result.edges().chamfer(0.091) result = result.union(c...
11
87
0.713161
train_b4c8a30368570cce
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.36, 0.711, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.092).lineTo(1, 0.092).lineTo(1, 1.417).lineTo(-1, 1.417).lineTo(-1, 1.444).lineTo(-1, 0.092).close().extrude(0.721) result = result.edges().fillet(0.056) result = result.union(cq.Wo...
13
97
1.870084
train_a40ac447fdb498eb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.906, 0.5), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, 1.406).lineTo(-0.5, 0.406).lineTo(0.5, 0.406).lineTo(0.5, 0.522).lineTo(-0.383, 0.522).lineTo(-0.383, 1.406).lineTo(-0.5, 1.406).close().revolve(angleDegrees=270, axisStart=(-0.5, 1...
1
7
0.301831
train_cc7d1356d28ec6b9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.144, -1, 0.203), normal=(0, -1, 0), xDir=(0, 0, 1))).lineTo(0, 0.02).lineTo(-0.137, -0.127).threePointArc((-0.252, -0.186), (-0.268, -0.209)).lineTo(-0.268, -0.265).threePointArc((-0.223, -0.306), (-0.163, -0.296)).threePointArc((-0.147, -0.282...
3
36
0.050497
train_241a7cb8b28187c1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.461, 0.332, -0.036), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.313, -0.539).lineTo(-0.15, -0.359).lineTo(-0.045, -0.243).lineTo(0.013, -0.179).lineTo(0.013, 1.461).lineTo(0.221, 1.461).lineTo(0.221, 0.118).lineTo(0.276, -0.153).lineTo(0.313,...
26
113
0.188485
train_18a79b0560a906ec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.084, 0.012, 0.005), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.01, 0.044).lineTo(-0.01, 0.007).lineTo(0.01, 0.007).lineTo(0.01, 0.044).lineTo(-0.01, 0.044).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.021, 0)) result = resul...
18
127
0.047753
train_475272424ff38cd3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.135, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.125, 0.759).threePointArc((-0.559, 0.326), (-0.125, -0.108)).lineTo(0.125, -0.108).threePointArc((0.559, 0.326), (0.125, 0.759)).lineTo(-0.125, 0.759).close().extrude(2) result = result....
5
29
1.532377
train_ad674cae6653b2d1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.189, -0.379, -0.652), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.375, 0.627).lineTo(-0.093, 0.897).lineTo(-0.375, 0.41).lineTo(0.093, 0.14).lineTo(0.375, 0.627).close().workplane(offset=0.34).moveTo(0.419, 0.64).lineTo(-0.105, 0.942).lineTo(-0...
18
110
0.238681
train_b1ca54d3637e77a3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.401, 0.534, -0.341), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.474, 0.474).extrude(0.474) result = result.union(cq.Workplane(cq.Plane(origin=(0.174, 0.476, -0.034), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.144, 0.393).lineTo(-0.144, 0.057).l...
16
79
0.806634
train_f765c4fb6fd61b26
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, -0.002, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.999, 0.017).lineTo(0.479, 0.891).lineTo(-0.516, 0.865).lineTo(-1.001, 0.001).lineTo(-0.482, -0.88).lineTo(0.505, -0.888).close().moveTo(-0.375, -0.221).lineTo(-0.308, -0.092).lineT...
19
180
0.364599
train_6438a1774d1b57f6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.06, -0.257, -0.359), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.57, 0.436).extrude(0.263) result = result.cut(cq.Workplane(cq.Plane(origin=(0.051, -0.331, -0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.122, 0.302).extrude(0.131)) result = res...
15
238
0.542065
train_b980034182607372
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.56, 0, 0.288), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.19, -1).threePointArc((-0.19, 0), (0.19, 1)).lineTo(0.19, 0.944).threePointArc((-0.153, 0), (0.19, -0.944)).lineTo(0.19, -1).close().sweep(cq.Workplane('XZ').spline([(-0.213, 0.045), (...
1
6
0.001093
train_2b4063f196fc40ef
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.724, 0.246, -0.279), normal=(1, 0, 0), xDir=(0, 0, 1))).lineTo(-0.053, -0.129).lineTo(-0.158, -0.03).lineTo(0.492, 0.662).close().revolve(angleDegrees=360, axisStart=(0.492, 0.662), axisEnd=(-0.053, -0.129)) result = result.edges().chamfer(0.078...
13
88
0.207445
train_db16f494222a82b9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.155, 0.265, 0.517), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.801, -0.978).threePointArc((-0.002, -0.791), (-0.637, -0.265)).threePointArc((-0.801, 0.219), (-0.637, 0.705)).threePointArc((0.256, 0.978), (0.801, 0.219)).lineTo(0.801, -0.978)....
20
104
0.373401
train_4c00bf73581d3b4f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.251, 0.229, -0.219), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.075, 1.462).extrude(0.77) result = result.union(cq.Workplane(cq.Plane(origin=(0.125, 0.217, -0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.153, 0.171).extrude(0.063)) result = re...
11
73
0.896803
train_1cb59dc20aad71a8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.138, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.114).lineTo(-1, 0.233).lineTo(-0.621, 0.233).lineTo(-0.621, 0.114).lineTo(1, 0.114).lineTo(1, 0.043).lineTo(-1, 0.043).lineTo(-1, 0.114).close().revolve(angleDegrees=90, axisStart=(-...
2
14
0.040946
train_2bb8a0591c9a3ca4
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.666, 0.869).extrude(1.132) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.187).extrude(0.397)) result = result.union(cq.Workplane(c...
11
32
0.750998
train_178280d4ef0de82b
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.3, 0.429).extrude(0.469) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.547), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.184, 0.211).extrude(0.316)) result = result.union(cq.Workpla...
14
116
0.081551
train_ca4f98bb2e4c1aa3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.608, -0.175, -0.009), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.422, 0.603).lineTo(-0.292, -0.048).lineTo(-0.251, -0.253).lineTo(-0.422, -0.253).lineTo(-0.422, -0.362).lineTo(-0.229, -0.362).lineTo(-0.181, -0.603).lineTo(0.181, -0.603).line...
3
27
1.143293
train_4a6d4a035e1f519f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.111, -0.015, -0.769), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.119, 1.119).extrude(1.551) result = result.faces('<X').shell(-0.127) result = result.union(cq.Workplane(cq.Plane(origin=(0.039, 0.044, 0.773), normal=(0, 0, 1), xDir=(1, 0, 0))).re...
19
112
1.266389
train_dcbeac84e06ac4dc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.256, -0.353), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.554).sweep(cq.Workplane('XZ').spline([(0.132, -0.894), (-0.014, -0.77), (-0.189, -0.71), (-0.371, -0.723)])) result = result.edges().fillet(0.045) result = result.union(cq.Workplane(c...
8
29
0.740593
train_2fead21e5b5288e3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.087, 0.007, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.359, 0.53).lineTo(0.359, 0.286).lineTo(0.685, 0.286).lineTo(0.685, 0.041).lineTo(-0.326, 0.041).lineTo(-0.326, 0.286).lineTo(-0.685, 0.286).lineTo(-0.685, 0.53).lineTo(0.359, 0.53).cl...
5
66
0.363774
train_022309f3ba96f69c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.195, -0.243, 0.286), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.131, -0.12).lineTo(-0.131, 0.278).lineTo(0.131, 0.278).lineTo(0.131, -0.12).lineTo(-0.131, -0.12).close().revolve(angleDegrees=90, axisStart=(-0.131, -0.12), axisEnd=(-0.131, 0.16...
9
79
1.242781
train_79305e005c8a22cc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.554, 0.529, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.082, 0.073).lineTo(-0.726, 0.335).lineTo(-0.913, 0.947).lineTo(-0.939, 1.035).lineTo(-0.802, 1.035).lineTo(-0.776, 0.947).lineTo(0.939, 0.947).lineTo(0.784, 0.44).lineTo(0.889, 0.335)....
7
35
1.319906
train_307885e49503be1a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.5, -0.072, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.5, 0.5).lineTo(0.5, -0.5).lineTo(-0.5, -0.5).lineTo(-0.5, 0.5).lineTo(0.5, 0.5).close().revolve(angleDegrees=360, axisStart=(0.5, 0.5), axisEnd=(0.5, 0.119)) result = result.edges().ch...
23
140
2.540667
train_93e677bc9b70ca66
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.362, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.17).sweep(cq.Workplane('XY').spline([(-0.39, -0.362), (-0.187, -0.193), (0.016, -0.092), (0.219, -0.058), (0.422, -0.092), (0.626, -0.193), (0.829, -0.362)])) result = result.cut(cq.Work...
3
10
0.039723
train_547cf4c90beded1e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.839, 0, 0.534), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.226, -0.959).threePointArc((-0.226, 0), (0.226, 0.959)).lineTo(0.226, -0.959).close().sweep(cq.Workplane('XZ').spline([(0.413, 0.224), (0.204, 0.316), (-0.019, 0.257), (-0.147, 0.074), ...
5
21
1.438211
train_1ebcf37c954c583f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.676, 0.833, -0.072), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.875, 1.833).lineTo(0.875, -0.167).lineTo(-0.875, -0.167).lineTo(-0.875, 1.833).lineTo(0.875, 1.833).close().extrude(1.52) result = result.edges().fillet(0.436) result = result.uni...
4
31
4.578201
train_a86d2ce5942f1987
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.395, -0.083, -0.295), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.211, 1.574).extrude(0.309) result = result.cut(cq.Workplane(cq.Plane(origin=(0.62, -0.388, -0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.274, 1.015).extrude(0.13)) result = res...
14
124
0.617395
train_29291754b9bf3a10
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.276), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.223, 0.238).extrude(0.218) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.452), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.037).extrude(0.548)) result = result.union(cq.Workplan...
5
22
0.012953
train_1cb8ad414754dc6a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.741, 0.831, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.819, 1.6).threePointArc((-0.971, 1.045), (-0.819, 0.489)).lineTo(-0.819, -0.169).lineTo(-0.637, -0.169).lineTo(-0.637, 0.259).lineTo(-0.201, 0.259).threePointArc((-0.324, 0.321), (-0....
11
49
2.19691
train_361a884847cc5bd1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.352, -0.612), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.857, 0.459).threePointArc((-1, 0.316), (-0.857, 0.173)).lineTo(-0.247, 0.173).threePointArc((0, 0.031), (0.247, 0.173)).lineTo(0.857, 0.173).threePointArc((1, 0.316), (0.857, 0.459))...
3
23
0.997418
train_6da8ea2afe4a8ac5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.054, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.546, 0.843).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(0.05, -0.42, -0.225), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.061, 0.111).extrude(0.138)) result = result.cut(cq....
9
71
0.863666
train_2681a868f76a7a7a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.98, 0, 0.311), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.272, -0.241).lineTo(-0.26, -0.241).lineTo(-0.007, 0.197).lineTo(0, 0.186).lineTo(-0.227, -0.208).lineTo(-0.234, -0.219).lineTo(0.272, -0.219).lineTo(0.266, -0.208).lineTo(0.007, 0.241)....
1
13
0.142435
train_a8c1a1e728db13ec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.841), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.242).extrude(1.468) result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.25 * math.cos(2.321 + 2 * math.pi * 0 / 4), 0 + 0.25 * math.sin(2.321 + 2 * math.pi * 0 / 4), 0.627), normal=...
5
58
3.693702
train_c5b244b34cbd271c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.834, -0.94, -0.191), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1.072, 5.053).lineTo(-1.452, 0.698).lineTo(1.452, 0.698).lineTo(1.072, 5.053).close().revolve(angleDegrees=90, axisStart=(1.072, 5.053), axisEnd=(-1.452, 0.698)) result = result.edg...
12
40
2.519129
train_d655793fc2a6347e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.313, 0.163), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.271, 0.194).threePointArc((-0.167, 0.289), (-0.033, 0.332)).lineTo(0.153, 0.653).threePointArc((0.335, 0.58), (0.489, 0.459)).threePointArc((0.67, 0), (0.489, -0.459)).threePointArc(...
15
119
0.412456
train_b07546d441d4b7fc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.596, -0.381, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.425, 0.33).lineTo(0.409, 0.33).lineTo(0.409, 0.389).lineTo(0.425, 0.404).lineTo(0.425, -0.404).lineTo(0.409, -0.404).lineTo(0.409, 0.315).lineTo(-0.425, 0.315).lineTo(-0.425, 0.33)....
1
10
0.023208
train_8e78268258c140f2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.428, 0, 0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.144, 1.872).extrude(0.282) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.532, -0.691, 0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.344, 0.516).extrude(0.16)) result = result....
22
184
0.555033
train_e2a342031b1cf906
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.527).workplane(offset=0.301).circle(0.499).workplane(offset=0.321).circle(0.561).workplane(offset=0.346).circle(0.527).workplane(offset=0.358).circle(0.513).workplane(offset=0.317).circle(0.54...
7
48
1.305554
train_d721232f6e8deae5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.007, -0.187, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.416, 0.058).threePointArc((-0.416, 0.08), (-0.415, 0.102)).lineTo(-0.338, 0.712).threePointArc((-0.223, 0.813), (-0.107, 0.712)).lineTo(-0.031, 0.102).threePointArc((-0.029, 0.08), (-...
6
50
0.353263
train_856596339b7d5aa3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.602, -0.401, -0.727), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.273, 1.128).lineTo(0.273, 1.128).lineTo(0.273, -0.235).lineTo(0.091, -0.235).threePointArc((0, -0.326), (-0.091, -0.235)).lineTo(-0.273, -0.235).lineTo(-0.273, 1.128).close().ex...
7
59
0.700934
train_2572c1e333295d89
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.322, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.289, 0.2).threePointArc((0.31, 0.199), (0.33, 0.196)).threePointArc((0.489, 0), (0.33, -0.196)).lineTo(0.289, -0.2).lineTo(0.248, -0.196).lineTo(-0.369, -0.133).threePointArc((-0.489, 0)...
3
19
0.248463
train_01fe1e0c7632cdd1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.125, -0.273, -0.434), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.469, 0.94).extrude(1.407) result = result.union(cq.Workplane(cq.Plane(origin=(0.135, -0.86, -0.264), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.14).extrude(0.657)) result = result....
7
32
2.302539
train_c250e5157e5e9e3f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.042, -0.217, -0.073), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.041, 0.025).threePointArc((0.046, 0.027), (0.044, 0.022)).lineTo(0.044, -0.024).threePointArc((0.042, -0.025), (0.041, -0.027)).lineTo(-0.043, -0.027).threePointArc((-0.044, -0.0...
7
48
0.03474
train_c088eab7aafb728c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.403, 0.246, 0.123), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.883).workplane(offset=0.163).circle(0.793).workplane(offset=0.157).circle(0.703).workplane(offset=0.186).circle(0.613).workplane(offset=0.221).circle(0.522).workplane(offset=0.215...
12
62
0.984902
train_26dfbedf6e1f9e36
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.176, 0.47, -0.403), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.309, 0.235).threePointArc((0.467, 0.098), (0.33, -0.059)).threePointArc((0.022, -0.114), (-0.266, -0.235)).threePointArc((-0.467, -0.178), (-0.409, 0.022)).threePointArc((-0.062, ...
14
141
0.012126
train_f1f2f1a01ae024ec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.06), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.167, 0.486).threePointArc((0, 0.507), (-0.167, 0.486)).lineTo(-0.167, 0.702).lineTo(-0.167, 0.826).threePointArc((-0.764, 0.486), (-1, -0.16)).lineTo(-0.667, -0.16).threePointArc((0, -0.826...
12
83
0.506069
train_786d3fd221cf9e46
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.202), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.587).extrude(0.464) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.348, -0.006).lineTo(0.106, 0.329).lineTo(-0.273, 0.214).l...
17
169
0.885767
train_34f01fafc53bc41a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.239, 0.199, -0.374), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.339, 1.601).extrude(0.611) result = result.faces('>Y').shell(-0.028) result = result.union(cq.Workplane(cq.Plane(origin=(-0.653, -0.059, -0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).r...
11
85
0.387332
train_0cf4a82915b7597c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.142, -0.338, 0.143), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.858, 0.026).lineTo(-0.858, -0.112).lineTo(0.858, -0.112).lineTo(0.858, 0.026).lineTo(0.772, 0.112).lineTo(0.686, 0.026).lineTo(0.601, 0.112).lineTo(0.515, 0.026).lineTo(-0.172, ...
5
169
0.485713
train_3fc1c4121f2bf643
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.141, 0.655), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0).lineTo(0, -0.471).lineTo(-1, -0.471).lineTo(-1, 0.471).lineTo(1, 0.471).lineTo(1, 0).lineTo(0, 0).close().extrude(0.67) result = result.edges().chamfer(0.202) result = result.unio...
5
66
0.874794
train_e0df3cfefc3f3f55
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.039, -0.048, -0.398), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.557, 1.904).extrude(0.664) result = result.union(cq.Workplane(cq.Plane(origin=(-0.031, -0.725, -0.43), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.009, -0.064).lineTo(-0.033, -0.0...
6
52
1.97897
train_b7dc859e391269e0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.414, -0.062, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.557, -0.938).lineTo(-0.557, 0.952).threePointArc((-0.525, 1.03), (-0.448, 1.062)).lineTo(0.448, 1.062).threePointArc((0.525, 1.03), (0.557, 0.952)).lineTo(0.557, -0.938).lineTo(-0.55...
27
126
1.789177
train_464bbe7e8d8b919b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.706, -0.777, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.89, 0.431).threePointArc((-0.908, 0.614), (-0.89, 0.797)).threePointArc((-0.642, 1.256), (-0.183, 1.504)).threePointArc((0, 1.706), (0.183, 1.504)).threePointArc((0.642, 1.256), (0.8...
11
73
2.982356
train_8749d7ef1591219d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.018, -0.527, 0.018), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.334).sweep(cq.Workplane('XY').spline([(-0.431, -0.198), (-0.163, -0.31), (0.124, -0.31), (0.391, -0.198), (0.391, -0.078), (0.124, 0.033), (-0.163, 0.033), (-0.431, -0.078)])) re...
4
19
0.254196
train_3a483b8f0620a006
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.825, 0, -0.133), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.179, -0.029).threePointArc((-0.18, -0.01), (-0.179, 0.01)).threePointArc((-0.127, 0.118), (-0.019, 0.169)).threePointArc((0, 0.19), (0.019, 0.169)).threePointArc((0.127, 0.118), (0....
6
19
0.191056
train_1e213c6143f498f3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.456, -0.722, 0.058), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.542).lineTo(-0.121, 0).lineTo(-0.208, -0.391).lineTo(-0.242, -0.391).lineTo(-0.242, -0.542).lineTo(0.242, -0.542).lineTo(0.208, -0.391).lineTo(0.121, -0.391).lineTo(0.121, 0).l...
12
82
0.374684
train_9fca56d9b0f0cd59
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.687, 0.936, -0.171), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.699, 0.054).lineTo(0.699, 0.579).lineTo(-0.699, 0.579).lineTo(-0.699, 0.054).lineTo(0.699, 0.054).close().extrude(0.754) result = result.edges().fillet(0.157) result = result.unio...
13
85
0.988751
train_c6f6c33e9022d0b5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.039, 0, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.235, 0.219).extrude(0.003) result = result.union(cq.Workplane(cq.Plane(origin=(-0.055, -0.001, 0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.076, 0.022).lineTo(-0.076, -0.006).li...
10
107
0.016251
train_6cba094e77d56be3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.153, -0.118, -0.04), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.301, -0.149).threePointArc((-0.308, 0.114), (-0.115, 0.294)).threePointArc((0.031, 0.309), (0.169, 0.257)).threePointArc((0.308, -0.046), (0.105, -0.309)).threePointArc((-0.129, -...
4
24
0.48626
train_ac4483078c4ec242
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.785, 0.816, 0.207), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.643).threePointArc((-0.1, 1.619), (-0.18, 1.553)).lineTo(-0.267, 1.438).threePointArc((-0.312, 1.371), (-0.349, 1.299)).threePointArc((-0.365, 1.172), (-0.375, 1.042)).lineTo(-0...
32
128
1.645818
train_371e0d816260c0f8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.178, -0.064, 0.018), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.14, 0.053).lineTo(-0.076, 0.053).lineTo(-0.076, 0.012).lineTo(-0.14, 0.012).lineTo(-0.14, 0.101).lineTo(-0.076, 0.101).lineTo(-0.035, 0.121).lineTo(0.14, 0.121).lineTo(0.14, 0.05...
24
198
0.38338
train_4c3c83d90386f0f8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.747, 0.201, 0.26), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.544, 0.747).lineTo(0.544, 0.747).lineTo(0.544, 0.043).lineTo(-0.544, 0.043).lineTo(-0.544, 0.747).close().revolve(angleDegrees=360, axisStart=(-0.544, 0.747), axisEnd=(0.404, 0.747...
12
67
1.469946
train_14d78f900265a0a3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.101, 0.219, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.085, 1.315).extrude(0.979) result = result.union(cq.Workplane(cq.Plane(origin=(0.054, -0.704, 0.141), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.296).extrude(0.314)) result = result...
17
228
1.045206
train_dae57f77cc0f1b7e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.806, 0.113, -0.021), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.18, 0.225).lineTo(-0.221, 0.155).lineTo(-0.243, 0.117).threePointArc((-0.27, 0), (-0.243, -0.117)).threePointArc((-0.233, -0.137), (-0.221, -0.155)).lineTo(-0.18, -0.225).lineTo...
11
124
0.033102
train_4a173a5de3a3e450
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.29, -0.413), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.55, -0.71).lineTo(0.55, 1.29).lineTo(-0.55, 1.29).lineTo(-0.55, -0.29).lineTo(-0.158, -0.71).lineTo(0.55, -0.71).close().extrude(0.827) result = result.edges().chamfer(0.147) result = ...
6
42
1.505262
train_7397a38fac13c724
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.008, -0.239, -0.219), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.047, 1.522).extrude(0.686) result = result.union(cq.Workplane(cq.Plane(origin=(-0.203, -0.433, 0.446), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.256, 0.112).threePointArc((-0.5...
17
84
0.700957
train_e4fbfa79e805ab97
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.062, 0.104), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.113, 0.091).threePointArc((-0.198, 0), (-0.113, -0.091)).lineTo(0.005, -0.091).lineTo(0.059, -0.091).lineTo(0.198, -0.091).lineTo(0.198, -0.028).lineTo(0.189, -0.028).lineTo(0.189, -0....
3
50
0.12464
train_79960d634b11b2a9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.546, 0, -0.036), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.047, -0.007).lineTo(0, 0.02).lineTo(0, 0.053).lineTo(0.065, 0.053).lineTo(0.065, 0.122).lineTo(-0.065, 0.122).lineTo(-0.065, 0.053).lineTo(-0.005, 0.053).lineTo(-0.005, 0.02).lineTo(...
5
110
0.011667
train_81cee8147b8510f7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.093, -0.704, -0.193), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.141, 0.155).threePointArc((-0.1, 0.255), (0, 0.296)).threePointArc((0.1, 0.255), (0.141, 0.155)).lineTo(0.141, 0.014).lineTo(0.239, -0.228).threePointArc((0.124, -0.279), (0, -...
5
33
0.051529
train_acf6491ea33b9039
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.069, -0.726, -0.523), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.426, 0.248).lineTo(-0.426, -0.248).lineTo(0.38, -0.248).threePointArc((0.426, -0.266), (0.407, -0.221)).lineTo(0.407, 0.221).threePointArc((0.426, 0.266), (0.38, 0.248)).lineTo(...
2
11
0.059832
train_8e61e1e899a6fbe2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.269, 0.184, -0.148), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.11, 0.489).lineTo(0.117, 0.49).lineTo(0.141, 0.122).lineTo(0.731, 0.135).lineTo(0.704, -0.122).lineTo(0.115, -0.134).lineTo(0.123, -0.479).lineTo(-0.136, -0.468).lineTo(-0.106, -0...
15
98
0.145381
train_2952900501140630
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.01, 0.202, -0.399), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.068, 0.184).extrude(0.167) result = result.union(cq.Workplane(cq.Plane(origin=(0.007, 0.202, -0.198), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.005, -0.148).threePointArc((-0.057,...
14
155
0.019355
train_1fad70727c5ffc9f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.652, 0.093), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.331, 0.684).threePointArc((-0.319, 0.712), (-0.29, 0.725)).lineTo(0.29, 0.725).threePointArc((0.319, 0.712), (0.331, 0.684)).lineTo(0.331, 0.456).threePointArc((0.319, 0.426), (0.29, 0...
2
25
1.049378
train_b3accdc3c8c15abc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.374, -0.471, -0.211), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.297, 0.241).lineTo(-0.246, 0.241).lineTo(-0.246, 0.258).lineTo(-0.195, 0.258).lineTo(-0.195, 0.563).lineTo(0.195, 0.563).lineTo(0.195, 0.055).lineTo(0.297, 0.055).lineTo(0.297, ...
14
135
0.282258
train_400747be6b298278
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.611), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.443, 0.957).threePointArc((-0.598, 0.935), (-0.741, 0.87)).threePointArc((-0.838, 0.793), (-0.914, 0.697)).threePointArc((-0.978, 0.554), (-1, 0.4)).lineTo(-1, -0.486).threePointArc((-0.9...
10
88
2.323526
train_f5e04d03649b1e6c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.926, 0, 0.193), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.058, -0.014).lineTo(-0.058, -0.022).lineTo(0.074, -0.022).lineTo(0.074, -0.039).lineTo(-0.047, -0.039).threePointArc((-0.057, -0.041), (-0.066, -0.039)).threePointArc((-0.071, -0.036...
1
16
0.00894
train_aadbfc064ac2318d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.693, -1.134, 0.176), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.3, 2.134).lineTo(-0.3, 1.834).threePointArc((-0.713, 1.134), (-0.3, 0.434)).lineTo(-0.3, 0.134).lineTo(0.3, 0.134).lineTo(0.3, 0.434).threePointArc((0.713, 1.134), (0.3, 1.834))....
12
194
2.146833
train_696adea00d0e447d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.015, -0.234, -0.628), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.9, 1.532).extrude(1.475) result = result.union(cq.Workplane(cq.Plane(origin=(0.151, 1.064, 0.121), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.498, 0.196).threePointArc((0, -0.196)...
5
30
4.517248
train_7200bbc397a5012f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.222, -0.144, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.029, 0.649).lineTo(-0.145, 0.588).lineTo(-0.663, 0.279).lineTo(-0.778, 0.403).lineTo(-0.547, -0.327).lineTo(0.383, -0.361).lineTo(0.834, -0.195).lineTo(1.222, -0.186).close().mov...
9
147
0.43078
train_d7abe757ad5a4a3d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.145, 0.013, -0.479), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.521, 0.008).lineTo(-0.521, 0.195).lineTo(0.321, 0.195).lineTo(0.521, 0.102).lineTo(0.321, 0.008).lineTo(-0.521, 0.008).close().extrude(0.189) result = result.edges().chamfer(0.04...
6
92
0.105202
train_cb6cb55b7a1bd52d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.423, 0.294, -0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.849, 0.9).extrude(0.331) result = result.union(cq.Workplane(cq.Plane(origin=(-0.402, 0.294, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.721, 0.525).extrude(0.048)) result = r...
16
121
1.085832