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_46225b5d4c82a376
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.471, -0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.863, 1.058).extrude(0.08) result = result.cut(cq.Workplane(cq.Plane(origin=(0.189, 0.392, -0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.125).extrude(0.096)) result = result.cut(cq....
26
174
0.091732
train_56130e0c9206c1a2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.003, 0.352, 0.262), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.01, -0.504).lineTo(-0.01, 0.648).lineTo(0.01, -0.504).lineTo(-0.01, -0.504).close().revolve(angleDegrees=360, axisStart=(-0.01, -0.504), axisEnd=(-0.01, 0.648)) result = result.ed...
21
216
0.162991
train_31f29ada3c535a14
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.068, -0.016), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.732, 0.925).lineTo(-1.007, 0.65).threePointArc((-0.061, -0.166), (1.007, -0.813)).lineTo(0.732, 0.925).close().extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.172, -0...
8
52
3.122457
train_3d903115787041f6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.504, -0.438, 0.104), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.434).lineTo(0.088, 0.425).threePointArc((0.434, 0), (0.088, -0.425)).lineTo(0, -0.434).threePointArc((-0.044, -0.432), (-0.088, -0.425)).threePointArc((-0.434, 0), (-0.088, 0.4...
11
36
0.326194
train_923da4cc5ead2c84
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.788, -0.021, -0.544), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.179, 0.513).threePointArc((0.239, 0.473), (0.309, 0.46)).threePointArc((0.456, 0.318), (0.309, 0.177)).threePointArc((0.239, 0.164), (0.179, 0.123)).threePointArc((-0.028, 0.034)...
5
93
0.362098
train_711334120b28c584
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.096, 0.008, -0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.064, -0.019).lineTo(0.348, 0.992).lineTo(-0.872, 0.599).lineTo(-0.829, -0.607).lineTo(0.296, -1.008).close().moveTo(-0.403, -0.208).lineTo(-0.351, -0.071).lineTo(-0.204, -0.064).li...
18
94
0.822373
train_1b355786f2b9366f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.003, 0.03, -0.13), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.47, 0.444).extrude(0.477) result = result.union(cq.Workplane(cq.Plane(origin=(-0.297, 0.117, 0.056), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.381, -0.12).lineTo(-0.381, 0.12).line...
10
87
0.306533
train_fb4ac96e86bc6fd3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.07, -0.139, -0.254), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.139, 1.07).lineTo(0.139, -0.435).lineTo(-0.139, -0.435).lineTo(-0.139, 1.07).lineTo(0.139, 1.07).close().revolve(angleDegrees=180, axisStart=(0.139, 1.07), axisEnd=(0.139, 0.457))...
18
228
0.117192
train_bf629a3c93030d88
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.853, 0.63, -0.001), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.207, -0.12).threePointArc((-0.182, -0.149), (-0.161, -0.181)).lineTo(0.207, 0.032).threePointArc((0.155, 0.11), (0.093, 0.181)).lineTo(-0.207, -0.12).close().sweep(cq.Workplane('XY...
2
26
0.048477
train_024c5925b152192f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.997), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.896).extrude(1.771) result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, -0.219, 0.471), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.399, 0.146).extrude(0.07)) result = result.cut(cq.Wor...
10
37
6.629711
train_7950cb104ca76a3e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.098, 0.183, 0.291), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.169, 0.121).threePointArc((0.172, 0.09), (0.169, 0.059)).threePointArc((-0.001, -0.083), (-0.171, 0.059)).lineTo(-0.209, 0.059).threePointArc((-0.001, -0.121), (0.207, 0.059)).three...
15
135
0.30138
train_b05abba6cbd130f0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.153, 0, -0.732), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.364, 0.46).extrude(0.328) result = result.union(cq.Workplane(cq.Plane(origin=(-0.217, 0.045, -0.42), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.052, 0.054).extrude(0.264)) result = resul...
10
106
0.211868
train_10a9c67e46347236
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.049, -0.456, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.011, 0.435).threePointArc((-0.033, -0.382), (0.033, 0.432)).lineTo(0.033, 0.378).threePointArc((0.011, 0.38), (-0.011, 0.38)).lineTo(-0.011, 0.435).close().extrude(0.057) result ...
8
118
0.589356
train_f7dd2b14cdae6db3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.178, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.209, 0.657).threePointArc((-0.209, 0), (0.209, -0.657)).lineTo(0.114, -0.441).threePointArc((-0.03, -0.241), (-0.081, 0)).threePointArc((-0.03, 0.241), (0.114, 0.441)).lineTo(0.209, 0.657...
2
10
0.102834
train_dc31c7dc0501cbc9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.174, -0.019, -0.008), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.215, -1.019).lineTo(0.215, 1.053).lineTo(0.215, -1.019).lineTo(-0.215, -1.019).close().extrude(0.348) result = result.edges().chamfer(0.073) result = result.cut(cq.Workplane(cq....
10
28
0.129327
train_944ad91dfe8ff147
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.83, 0.638).extrude(1.157) result = result.union(cq.Workplane(cq.Plane(origin=(0.074, 0.065, 0.125), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.175).extrude(0.508)) result = result.union(cq.Work...
14
47
0.435964
train_736b36043560d44e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.303, -0.007), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.232, -0.232).lineTo(-0.232, -0.077).lineTo(-0.077, -0.077).lineTo(-0.077, 0.077).lineTo(-0.232, 0.077).lineTo(-0.232, 0.232).lineTo(0.077, 0.232).lineTo(0.077, 0.077).lineTo(0.232, ...
5
38
0.211942
train_d99f61793d078249
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.42).workplane(offset=0.354).circle(0.476).workplane(offset=0.331).circle(0.45).workplane(offset=0.392).circle(0.424).workplane(offset=0.32).circle(0.458).loft() result = result.edges().chamfer...
9
29
0.711169
train_90f7c8d68fa49697
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.657, 0.533, -0.533), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.533, 1.19).lineTo(0.533, 0.124).lineTo(-0.533, 0.124).lineTo(-0.533, 1.19).lineTo(0.533, 1.19).close().revolve(angleDegrees=180, axisStart=(0.533, 1.19), axisEnd=(0.533, 0.124)) r...
12
25
1.360851
train_df5391660c20afb6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.001, -0.735, 0.338), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.001, 0.001).lineTo(-0.009, -0.008).lineTo(-0.027, -0.027).threePointArc((-0.03, -0.024), (-0.032, -0.021)).lineTo(-0.038, -0.025).lineTo(-0.227, -0.134).threePointArc((0.229, 0.1...
16
122
0.267572
train_052500a38b357ece
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.817, 0.63, 0.015), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.884, 1.532).lineTo(0.884, -0.171).threePointArc((0.814, -0.2), (0.785, -0.271)).lineTo(-0.715, -0.271).threePointArc((-0.884, -0.341), (-0.814, -0.171)).lineTo(-0.814, 1.432).threeP...
17
57
5.027118
train_3f29b961e32267dc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.167, 0, -0.252), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.666, 1.626).extrude(0.908) result = result.faces('>Z').shell(-0.071) result = result.union(cq.Workplane(cq.Plane(origin=(-0.177, 0.245, -0.493), normal=(0, 0, 1), xDir=(1, 0, 0))).circl...
30
27
0.736236
train_53a4b4d4b79d8201
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.8), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.1, 2).extrude(1.107) result = result.union(cq.Workplane(cq.Plane(origin=(-0.145, -0.222, 0.288), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.136).extrude(0.512)) result = result.cut(cq.Workpla...
6
22
2.174466
train_b6e18db0ca2985d9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.35, 0.026, -0.385), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.146).sweep(cq.Workplane('XZ').spline([(-0.35, -0.691), (-0.137, -0.486), (0.075, -0.383), (0.288, -0.383), (0.5, -0.486), (0.713, -0.691)])) result = result.edges().chamfer(0.048) ...
17
71
0.149372
train_84fa6039fbb259ad
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.954, 0.862, 0.318), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.682, 0.078).lineTo(-0.682, 0.078).lineTo(-0.455, 1.443).lineTo(0.682, 1.443).lineTo(0.682, 0.078).close().extrude(1.669) result = result.edges().chamfer(0.05) result = result.union...
10
86
2.308269
train_e30d80a5a0ad29b8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.017, 0.125, -0.607), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.106, 0.05).threePointArc((-0.393, -0.011), (-0.103, -0.05)).lineTo(0.171, -0.05).lineTo(0.24, -0.05).lineTo(0.323, -0.05).lineTo(0.393, -0.05).lineTo(0.389, 0.05).lineTo(0.141, 0....
2
16
0.01051
train_67221cee8de8cb5b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.995, 0.152, 0.252), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.178).sweep(cq.Workplane('XZ').spline([(0.372, -0.584), (0.148, -0.338), (-0.389, -0.206), (-1, -0.246)])) result = result.union(result.mirror('XZ', basePointVector=(0.372, 0, -0.5...
3
9
0.318224
train_1a3084f44eba4e66
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.525, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.179, 0.427).lineTo(0.179, 0.19).lineTo(0.039, 0.19).lineTo(0.039, 0.054).lineTo(0.008, 0.054).lineTo(0.008, 0.256).lineTo(-0.179, 0.256).lineTo(-0.179, 0.427).lineTo(0.008, 0.427).lin...
4
26
0.02027
train_2caf5dd8e7dc46c4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.01, -0.076, -0.634), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.728, 0.979).extrude(0.903) result = result.union(cq.Workplane(cq.Plane(origin=(-0.129, 0.515, -0.392), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.461, 0.22).extrude(0.477)) result = r...
32
376
0.884323
train_86927042b1bf84a8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.182, 0, 0.181), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.156).sweep(cq.Workplane('XZ').spline([(-0.097, -0.145), (-0.031, -0.224), (0.04, -0.224), (0.106, -0.145), (0.106, -0.06), (0.04, 0.018), (-0.031, 0.018), (-0.097, -0.06)])) result = ...
10
114
0.223494
train_8ae6cf28d3ae46d0
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.221, 0.868).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.008, 0.245, -0.294), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.279, 0.479).lineTo(-0.279, 0.933).lineTo(0.198, 0.9...
4
17
2.041015
train_8e810f005a393726
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.045, 0, -0.489), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.742, 1.434).extrude(1.489) result = result.union(cq.Workplane(cq.Plane(origin=(0.464, 0.243, -0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.328, 0.661).extrude(0.411)) result = resu...
16
146
1.267556
train_46e234e878dad403
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.218, -0.571, -0.68), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.339, -0.231).lineTo(-0.324, -0.038).lineTo(-0.309, 0.156).lineTo(0.115, 0.156).lineTo(0.063, 0.834).lineTo(0.048, 1.027).lineTo(0.242, 1.027).lineTo(0.257, 0.834).lineTo(0.283, 0....
6
83
0.49945
train_171f029f97459156
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.756), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.335, 0.68).extrude(0.402) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.074).extrude(0.257)) result = result.union(cq.Workpla...
13
105
0.120612
train_2528c5592ec8a562
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.278, 0.36, -0.373), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.703, 0.017).lineTo(0.357, 0.64).lineTo(-0.372, 0.606).lineTo(-0.704, 0.014).lineTo(-0.349, -0.635).lineTo(0.343, -0.609).close().moveTo(-0.399, 0.155).lineTo(-0.068, 0.155).lineTo(-...
12
99
1.630873
train_6c12609ca334ce2c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.268, 0, 0.493), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.122, 0.183).lineTo(-0.732, 0.183).lineTo(-0.732, -0.427).lineTo(0.732, -0.427).lineTo(0.732, 0.427).lineTo(0.488, 0.427).lineTo(0.488, 0.183).lineTo(-0.122, 0.183).close().extrude(0....
9
69
0.738824
train_9a2177a1e73cbe17
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.473, -0.063), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.99, -0.165).lineTo(-1, -0.083).lineTo(0.99, 0.165).lineTo(1, 0.083).lineTo(-0.99, -0.165).close().sweep(cq.Workplane('YZ').spline([(-0.473, -0.063), (-0.298, 0.035), (-0.123, 0.094)...
5
15
0.077013
train_dfac8a9459a62afc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.12, 0.147, 0.051), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.178, -0.173).threePointArc((0.173, -0.119), (0.161, -0.067)).lineTo(0.42, 0.192).lineTo(0.42, 0.42).lineTo(0.192, 0.42).lineTo(-0.067, 0.161).threePointArc((-0.119, 0.173), (-0.173, ...
4
71
0.852467
train_4006c35575e31903
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.573, 0.535, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.622).lineTo(-1, 0.036).lineTo(1, 0.036).lineTo(1, 0.622).lineTo(-1, 0.622).close().extrude(1.07) result = result.edges().fillet(0.202) result = result.union(result.mirror('YZ', bas...
3
50
2.127037
train_f16efc44e375c94f
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.383, 1.59).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.243, 0.193, 0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.537, 0.626).extrude(0.929)) result = result.cut(cq.Workpl...
12
154
1.677238
train_81816ae9d08f61df
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.447), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.171).extrude(0.924) result = result.union(cq.Workplane(cq.Plane(origin=(-0.146, 0.13, -0.671), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.539, 0.214).extrude(0.244)) result = result.union(...
5
46
1.718887
train_00c3746c98b330d0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.524, 0.004, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.263, 0.007).lineTo(0.123, 0.225).lineTo(-0.135, 0.227).lineTo(-0.255, 0.008).lineTo(-0.123, -0.234).lineTo(0.132, -0.232).close().moveTo(-0.092, 0.066).lineTo(-0.073, 0.066).lineTo...
11
86
0.017776
train_603a8c5e37acb6a6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.966), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.99).extrude(1.932) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.208, 0.348, 0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.155).extrude(0.609)) result = result.cut(cq.Workpla...
6
28
2.939909
train_e2e2b36d122f6f5d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.08, 0.018, -0.546), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.839, 0.971).extrude(0.792) result = result.union(cq.Workplane(cq.Plane(origin=(0.08, 0.018, 0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.162, 0.613).extrude(0.106)) result = resul...
10
57
0.574264
train_9946619a21f9606a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.859, 0.329, 0.007), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.141, -0.141).lineTo(0.071, -0.071).lineTo(0.1, -0.065).lineTo(0.141, -0.092).lineTo(0.141, 0.141).lineTo(0, 0).lineTo(-0.1, 0.065).lineTo(-0.141, 0.092).lineTo(-0.141, -0.141).line...
3
19
0.097201
train_a64c4e09f4643b79
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.76, 1.469).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.476, 0.274, -0.695), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.314).extrude(1.101)) result = result.edges().chamfer(0....
18
111
2.350441
train_0f5a324a4364a5e2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.006, 0.066, -0.631), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.095, -0.158).lineTo(-0.184, -0.158).lineTo(-0.184, 0.169).lineTo(0.184, 0.169).lineTo(0.184, -0.158).lineTo(-0.095, -0.158).close().extrude(0.404) result = result.edges().fillet(...
9
86
0.105444
train_5f25a19b123573b0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.174, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.338, 1.618).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(-0.659, 0.242, -0.495), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.369, 0.329).extrude(0.79)) result = result.cut(cq...
8
30
3.878334
train_e9ccf567624ac0ab
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.409, -0.008, -0.406), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.277, 0.497).lineTo(-0.277, -0.121).lineTo(0.277, -0.157).lineTo(0.219, 0.539).lineTo(-0.277, 0.497).close().extrude(0.615) result = result.edges().chamfer(0.156) result = result....
12
145
0.645802
train_5914eff1628caedc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0, -0.295), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.22).workplane(offset=0.357).circle(0.245).workplane(offset=0.256).circle(0.251).loft() result = result.edges().chamfer(0.162) result = result.union(cq.Workplane(cq.Plane(origin=(-0.27, 0....
4
16
0.090803
train_25414126677e77e2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.008, 0, 0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.027, 0.052).extrude(0.046) result = result.union(cq.Workplane(cq.Plane(origin=(-0.011, -0.008, 0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.007, -0.004).threePointArc((-0.003, 0.0...
8
73
0.053112
train_31f1ba235c95f3de
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.801, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.692, 0.633).threePointArc((0, 1.513), (-0.692, 0.633)).threePointArc((0, 0.089), (0.692, 0.633)).close().extrude(2) result = result.edges().chamfer(0.093) result = result.cut(cq.Workplane...
13
30
2.1172
train_5cd238376d85223f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.31, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.87, 1.38).extrude(0.206) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.142, 0.093, -0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.172).extrude(0.122)) result = result.cut(cq....
14
88
0.360987
train_ac53febdab266ed7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.393, -0.546, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.48).lineTo(-1, -0.504).lineTo(-0.738, -0.245).lineTo(-0.262, 0.228).lineTo(0, 0.488).lineTo(0.259, 0.231).lineTo(0.741, 0.231).lineTo(0.741, -0.247).lineTo(1, -0.504).lineTo(1, 1....
9
85
1.837608
train_35e14d58a54c7221
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.103, 0.38), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.955, 0.53).lineTo(-0.955, -0.53).lineTo(0.955, -0.53).lineTo(0.955, 0.53).lineTo(-0.955, 0.53).close().extrude(0.759) result = result.edges().chamfer(0.289) result = result.union(cq.W...
10
118
0.479791
train_e866e633c43aa4c0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.898, 0.069, -0.656), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.091, 0.053).lineTo(-0.014, 0.104).lineTo(-0.091, -0.053).lineTo(0.014, -0.104).lineTo(0.091, 0.053).close().transformed(offset=(0.079, -0.004, 0.058), rotate=(0, 0, 0)).moveTo(0.0...
3
18
0.022734
train_acae4daf4242600a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.388, -0.03, -0.035), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.297, 0.301).threePointArc((0.173, 0.807), (-0.297, 1.031)).lineTo(-0.297, -0.185).lineTo(-0.297, -0.531).lineTo(-0.297, -0.972).threePointArc((-0.169, -0.931), (-0.089, -0.823)).l...
11
107
0.425558
train_bfcd838212bc1bd6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.542).extrude(0.467) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.133), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.099, 0.344).extrude(0.112)) result = result.cut(cq.Workplane(...
16
70
1.094382
train_ff6e2fc1a0b352f1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.893, -0.579, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.146, 0.107).threePointArc((-0.147, 0.101), (-0.15, 0.095)).lineTo(0.066, -0.107).threePointArc((0.124, -0.012), (0.15, 0.097)).lineTo(-0.146, 0.107).close().sweep(cq.Workplane('XY')...
1
6
0.006587
train_0c30570f26d34eab
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.097, 0, -0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.807, 0.915).extrude(0.714) result = result.faces('>Z').shell(-0.045) result = result.union(cq.Workplane(cq.Plane(origin=(-0.096, -0.539, 0.199), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo...
4
36
0.246463
train_06c2471a38d809bb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.037, -0.057, -0.737), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.302, -0.09).threePointArc((-0.367, -0.367), (-0.09, 0.302)).lineTo(-0.09, 0.367).threePointArc((0.233, 0.233), (0.367, -0.09)).lineTo(0.302, -0.09).close().sweep(cq.Workplane('XZ...
8
131
0.660066
train_0d89ed06bc5b898a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.382, -0.169, 0.648), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.328, 0.268).lineTo(0.081, -0.415).threePointArc((-0.125, -0.348), (-0.328, -0.268)).lineTo(-0.081, 0.415).lineTo(0.328, 0.268).close().sweep(cq.Workplane('XZ').spline([(-0.082, 0...
7
118
0.575784
train_4bbdceed5c8c9e39
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.173), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.955, -0.298).threePointArc((0, 1), (-0.955, -0.298)).threePointArc((0, -1), (0.955, -0.298)).close().extrude(0.41) result = result.edges().fillet(0.159) result = result.union(cq.Workplane(...
10
74
1.023587
train_952ddc4d6ca2668d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.345, 0.191, 0.069), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.129).lineTo(0.018, -0.04).lineTo(0, -0.038).lineTo(0.038, -0.038).lineTo(0.025, -0.006).lineTo(0.021, -0.021).lineTo(0, 0).lineTo(-0.064, -0.064).lineTo(-0.129, 0).lineTo(0, 0.1...
12
51
0.233702
train_510c89d50223e683
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.419, 0.037, -0.299), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.233, 0.495).threePointArc((-0.262, 0.134), (-0.375, -0.21)).threePointArc((-0.002, -0.148), (0.375, -0.168)).threePointArc((0.065, 0.158), (-0.233, 0.495)).close().extrude(0.44) ...
34
273
1.100572
train_c3f7d818315bff46
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.13, 0.188), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.294, -0.243).lineTo(-0.294, 0.243).lineTo(0.294, 0.243).lineTo(0.294, -0.243).lineTo(-0.147, -0.243).lineTo(-0.147, -0.13).lineTo(-0.26, -0.243).lineTo(-0.294, -0.243).close().workpla...
3
13
0.64275
train_f7f5a79771ba9a11
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.435, 0, -0.506), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.755, 1.594).extrude(0.941) result = result.union(cq.Workplane(cq.Plane(origin=(-0.896, 0.074, -0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.104).extrude(0.18)) result = result.un...
13
148
0.606724
train_136ec0ba30030f6c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.208, 0, 0.463), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.211, 0.424).threePointArc((0.023, 0.011), (0.211, -0.424)).lineTo(-0.211, 0.424).close().sweep(cq.Workplane('XZ').spline([(0.08, 0.04), (0.176, 0.045), (0.273, 0.078), (0.369, 0.203)...
6
27
0.063578
train_bb111d22baf206dc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.443), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.77, 2).extrude(0.887) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.154, 0.686, -0.145), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.33).extrude(0.499)) result = result.edges().fillet...
17
99
2.060249
train_9584c03b10344c9e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.443), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.651).lineTo(1, -0.826).lineTo(1, 0.651).lineTo(-1, 0.826).lineTo(-1, -0.651).close().extrude(0.886) result = result.edges().chamfer(0.331) result = result.cut(cq.Workplane(cq.Plane(or...
8
44
1.805946
train_ea9e1dcbf351a159
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.011, -1.134, -0.771), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.501, 1.134).lineTo(-0.931, 1.134).lineTo(-0.854, 0.121).lineTo(0.719, 0.121).lineTo(0.931, 1.134).lineTo(-0.501, 1.134).close().revolve(angleDegrees=180, axisStart=(-0.501, 1.134...
6
32
2.763499
train_8773e169c594154f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.11, -0.036, -0.625), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.039, 0.085).lineTo(-0.039, 0.131).lineTo(0.039, 0.131).lineTo(0.039, -0.131).lineTo(-0.039, -0.131).lineTo(-0.039, 0.085).close().revolve(angleDegrees=90, axisStart=(-0.039, 0.0...
6
77
0.531141
train_d83f90b04cbc7512
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.982).workplane(offset=0.476).circle(0.914).workplane(offset=0.492).circle(0.897).workplane(offset=0.497).circle(0.937).workplane(offset=0.536).circle(1.004).loft() result = result.edges().fill...
13
104
4.045947
train_73171de3e5ddc8dd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.021, 0.252, 0.037), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.281, 1.021).lineTo(0.281, -0.995).threePointArc((0, -0.946), (-0.281, -0.995)).lineTo(-0.281, 1.021).lineTo(0.281, 1.021).close().extrude(0.504) result = result.edges().chamfer(0.0...
20
161
0.48917
train_37fa1e4545919e02
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.222, 0.322, 0.416), normal=(0, 1, 0), xDir=(0, 0, 1))).lineTo(-0.573, -0.382).lineTo(0.573, -0.382).lineTo(0.573, 0.316).lineTo(0.573, 0.382).lineTo(0, 0.382).close().sweep(cq.Workplane('YZ').spline([(-0.596, -0.517), (-0.407, -0.503), (-0.219, ...
6
27
0.775468
train_ec57d4b1bcee14c2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.225, 0.021, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.554, 0.47).extrude(0.474) result = result.union(cq.Workplane(cq.Plane(origin=(-0.737, 0.021, -0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.526, 0.25).extrude(0.219)) result = r...
11
56
0.209465
train_eca5f831b8d6fada
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.34, 0.963), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.086).sweep(cq.Workplane('YZ').spline([(0.34, 0.316), (0.117, 0.369), (-0.091, 0.267), (-0.195, 0.052), (-0.152, -0.184), (0.02, -0.343), (0.248, -0.358)]))
1
3
0.0194
train_13df955ca3b12563
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.452, 0, -0.499), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.853).lineTo(0.5, 0.052).lineTo(0.276, 0.052).lineTo(-0.5, 0.492).lineTo(-0.5, 0.853).lineTo(0.5, 0.853).close().revolve(angleDegrees=360, axisStart=(0.5, 0.853), axisEnd=(0.5, 0....
7
32
1.377749
train_c017c7d8a00def38
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.201, -0.034, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.018, -0.966).lineTo(0.094, -0.966).lineTo(0.16, -0.341).lineTo(-0.144, -0.037).lineTo(-0.061, 0.575).lineTo(0.217, 0.89).lineTo(0.226, 0.966).lineTo(-0.142, 0.551).lineTo(-0.226, -0.06...
2
17
0.009758
train_f16a8937bb1bd805
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.021, -0.144, -0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.418, 0.459).extrude(0.923) result = result.cut(cq.Workplane(cq.Plane(origin=(0.084, -0.178, -0.187), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.025).extrude(1.107)) result = result....
12
53
0.414151
train_7ac9c9287793fddb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.843, 0.393, 0.31), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.157, -0.158).threePointArc((0.066, 0.066), (-0.157, 0.158)).lineTo(-0.157, -0.158).lineTo(0.157, -0.158).close().sweep(cq.Workplane('XZ').spline([(0.843, 0.31), (0.593, 0.614), (0.2...
5
50
0.322781
train_1d00fb4d7f24c828
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.472, 0.082, -0.293), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.623, 0.576).extrude(0.439) result = result.union(cq.Workplane(cq.Plane(origin=(0.351, -0.295, -0.163), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.256, 0.215).extrude(0.068)) result = ...
17
158
0.234025
train_1b74370a32f5965a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.002, 0, -0.196), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.002, -0.47).lineTo(0.961, -0.446).lineTo(0.998, 0.469).lineTo(-0.97, 0.471).close().moveTo(-0.032, 0.199).lineTo(0.032, 0.159).lineTo(-0.032, 0.058).lineTo(-0.032, 0.199).close().cent...
14
68
0.491223
train_c909fe33a5c9c0db
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.521, 0.436, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.542, 0.826).lineTo(0.542, 0.682).lineTo(1, 0.682).lineTo(1, 0.046).lineTo(-1, 0.046).lineTo(-1, 0.826).lineTo(0.542, 0.826).close().extrude(1.042) result = result.cut(cq.Workplane(cq.P...
3
19
1.492366
train_4a0c324a4e0022a4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.643, 0.714, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.267).lineTo(-1, 0.073).lineTo(1, 0.073).lineTo(1, 1.267).lineTo(-1, 1.267).close().extrude(1.375) result = result.cut(cq.Workplane(cq.Plane(origin=(0.045, 0.044, 0.571), normal=(0,...
16
124
3.107198
train_bee92e2fbf4106a5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.93, 0.021, 0.206), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.061, -0.061).lineTo(0.07, -0.071).lineTo(0.007, -0.082).lineTo(-0.056, -0.071).lineTo(-0.07, 0.006).lineTo(-0.056, 0.082).lineTo(-0.048, 0.072).lineTo(-0.048, 0.038).lineTo(0.061, 0....
2
14
0.003486
train_8fcdd3a0c69d24c8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.493, 0.049, 0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.013, 1.164).extrude(0.601) result = result.union(cq.Workplane(cq.Plane(origin=(0.69, 0.796, 0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.23, 0.389).extrude(0.277)) result = resul...
27
568
2.156543
train_7b8e0e6888ef15fd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.109, 0, 0.394), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.885, -0.109).threePointArc((-0.892, 0), (0.885, 0.109)).threePointArc((0.892, 0), (0.885, -0.109)).close().extrude(0.788) result = result.union(cq.Workplane(cq.Plane(origin=(0.887, -0...
10
88
1.396665
train_5ceb3a21f7416257
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.031, -0.377, -0.739), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.262, 0.5).lineTo(-0.256, -0.439).lineTo(0.262, -0.436).lineTo(0.262, 0.5).lineTo(-0.262, 0.5).close().extrude(0.755) result = result.edges().chamfer(0.096) result = result.union...
6
34
0.329903
train_40464a8ef440d947
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.687, -0.496), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.313, 0.313).lineTo(0.191, 0.313).lineTo(0.191, -0.191).lineTo(-0.313, -0.191).lineTo(-0.313, -0.313).lineTo(0.313, -0.313).lineTo(0.313, 0.313).close().sweep(cq.Workplane('YZ').splin...
12
68
0.264088
train_ad86dfd0add46ed4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.378, 0.773).lineTo(0.147, 0.773).lineTo(0.147, -0.29).lineTo(0.256, -0.647).lineTo(0.378, -0.644).lineTo(0.378, -0.773).lineTo(0.147, -0.773).lineTo(-0.022, -0.287).lineTo(-0.21, -0.284).line...
11
88
1.256123
train_3cb55365eccd7642
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.061, 0.199, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.139, -0.939).lineTo(0.139, -0.939).lineTo(0.017, 1.061).lineTo(-0.139, 1.061).lineTo(-0.139, -0.939).close().extrude(0.365) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.691, -...
6
31
0.154691
train_74b03979a2833d78
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.258, -0.296, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.168, -0.742).lineTo(-0.168, 1.23).lineTo(0.168, 1.269).lineTo(0.168, -0.742).lineTo(-0.168, -0.742).close().extrude(0.592) result = result.edges().chamfer(0.096) result = result.cut(...
13
67
0.249967
train_09350b63e06d584a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.416, 0.406, -0.165), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.194, 0.389).lineTo(-0.619, 0.389).lineTo(-0.444, -0.389).lineTo(0.617, -0.389).lineTo(0.619, 0.389).lineTo(-0.194, 0.389).close().sweep(cq.Workplane('XY').spline([(-0.416, -0.158...
13
63
0.379917
train_50a7dd54d8f6397b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.01, -0.152, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.961, -0.033).lineTo(0.504, 0.847).lineTo(-0.496, 0.86).lineTo(-0.98, -0.024).lineTo(-0.49, -0.828).lineTo(0.508, -0.848).close().moveTo(-0.368, 0.154).lineTo(-0.169, 0.154).lineTo(...
11
64
0.541245
train_382a0d58b56f3ac2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.046, 0.096, 0.048), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.071, -0.238).lineTo(-0.071, -0.142).lineTo(-0.124, -0.111).lineTo(-0.124, -0.049).lineTo(-0.071, -0.08).lineTo(-0.071, 0.238).lineTo(0, 0.238).lineTo(0, 0.132).lineTo(0.071, 0.17...
14
87
0.178686
train_bffab12c891a8411
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.179, 0.356, -0.359), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.568, 0.743).extrude(0.161) result = result.union(cq.Workplane(cq.Plane(origin=(-0.152, 0.855, -0.263), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.145).extrude(0.021)) result = resu...
14
136
0.60766
train_d52954d0a84364f6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.033, 0.063, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.195, 0.189).extrude(0.14) result = result.union(cq.Workplane(cq.Plane(origin=(0.054, 0.076, -0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.03, 0.069).extrude(0.041)) result = res...
10
57
0.174251
train_f3d6e29aef062fbf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.392, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.78, 0.002).threePointArc((-0.734, 0.267), (-0.601, 0.501)).lineTo(-0.601, 0.603).lineTo(-0.499, 0.603).threePointArc((0, 0.783), (0.499, 0.603)).lineTo(0.601, 0.603).lineTo(0.601, 0.501)...
12
144
1.498156
train_dcf9bb2774ed40c2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.038, 0.177, -0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.297, 1.063).extrude(0.617) result = result.union(cq.Workplane(cq.Plane(origin=(-0.357, 0.32, -0.344), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.008, -0.154).lineTo(0.008, -0.063)....
6
27
0.818038