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_12e874321abb2780
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.167, -0.087, -0.44), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.105, 1.094).extrude(0.837) result = result.union(cq.Workplane(cq.Plane(origin=(0.073, -0.798, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.175).extrude(0.296)) result = resu...
12
64
1.042007
train_40ddcf8f355bd7df
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.438, -0.001, 0.152), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.335, 0.239).lineTo(-0.305, 0.187).lineTo(-0.18, -0.029).lineTo(-0.056, -0.246).lineTo(-0.026, -0.297).lineTo(0.004, -0.246).lineTo(0.129, -0.029).lineTo(0.328, 0.199).threePoint...
6
49
0.27989
train_52e8d9717938f53e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.022, 0.282, -0.654), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.346, 0.429).lineTo(0.074, 0.429).lineTo(0.074, 0.022).lineTo(0.346, 0.022).lineTo(0.346, -0.384).lineTo(-0.346, -0.384).lineTo(-0.346, 0.429).close().extrude(0.564) result = resu...
4
45
0.205212
train_ef44e3f9bf9ef6dc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.43, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.848, 1.14).extrude(0.372) result = result.union(cq.Workplane(cq.Plane(origin=(0.24, -0.266, -0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.511, 0.306).extrude(0.222)) result = result....
5
16
0.789253
train_92c69497e5d3c202
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.576, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.71, 0.162).lineTo(-0.71, -0.193).lineTo(0.71, -0.193).lineTo(0.71, 0.162).lineTo(-0.355, 0.162).lineTo(-0.355, 1.344).lineTo(-0.71, 1.344).lineTo(-0.71, 0.162).close().extrude(2) result ...
5
51
1.778764
train_935bc05f24412281
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.272, -0.586, -0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.11).lineTo(-0.009, 0.11).lineTo(-0.009, 0.115).lineTo(-0.019, 0.11).lineTo(-0.036, 0.11).lineTo(-0.036, 0.078).lineTo(0, 0.099).lineTo(0, -0.118).lineTo(0.036, -0.118).lineTo(...
1
15
0.028034
train_b3783a537f339a3a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.229, -0.041), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.143).lineTo(0, -0.071).lineTo(-0.829, -0.071).lineTo(-0.829, -0.043).lineTo(-0.857, -0.043).lineTo(-0.857, -0.071).lineTo(-1, -0.071).lineTo(-1, -0.143).lineTo(1, -0.143).lineTo(1...
2
20
0.083624
train_63a9f31779b1a5e0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.541, -0.024, -0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.918, 0.115).extrude(0.229) result = result.union(cq.Workplane(cq.Plane(origin=(-0.443, 0, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.114, 0.043).extrude(0.116)) result = res...
6
25
0.025889
train_544f80f2369f8086
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.618, -0.315), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.743, 0.765).extrude(0.631) result = result.union(cq.Workplane(cq.Plane(origin=(0.219, 0.36, 0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.102, 1.279).extrude(0.09)) result = result....
3
16
0.363924
train_5aa484dfd62b05dd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.35, 0.038, -0.859), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.628, 0.519).extrude(0.106) result = result.union(cq.Workplane(cq.Plane(origin=(-0.495, -0.016, -0.867), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.024, -0.113).lineTo(-0.133, -0.11...
22
303
0.544024
train_3c339a23da4daa50
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.05, 0, -0.499), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.899, 1.692).extrude(0.93) result = result.edges().chamfer(0.095) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.626 + 0.2255, 0.466, -1.733), normal=(1, 0, 0), xDir=(0, 1, 0))).circ...
14
57
2.866782
train_e2e47bcebb80ef55
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.08, -0.169, -0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.756, 0.804).extrude(0.314) result = result.faces('>Y').shell(-0.035) result = result.union(cq.Workplane(cq.Plane(origin=(-0.003, 0.213, -0.061), normal=(0, -1, 0), xDir=(0, 0, 1))).mo...
13
69
0.269867
train_59d656205e59dc5e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(2.428, 0.223, 2.942), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.994).sweep(cq.Workplane('XZ').spline([(2.428, 1.207), (2.988, 1.748), (3.547, 1.929), (4.107, 1.748), (4.667, 1.207)])) result = result.edges().fillet(0.054) result = result.cut(cq....
11
126
5.528112
train_2c1b94d004dde4fe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.464, 0.013, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.527, -0.002).lineTo(0.372, 0.39).lineTo(0.014, 0.526).lineTo(-0.368, 0.369).lineTo(-0.536, 0.001).lineTo(-0.37, -0.395).lineTo(-0.005, -0.551).lineTo(0.377, -0.372).close().moveTo...
10
127
0.171939
train_45d6497a5e2020ef
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.43, 0.002, -0.345), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.107, 0.711).extrude(0.245) result = result.union(cq.Workplane(cq.Plane(origin=(0.426, -0.031, -0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.144).extrude(0.103)) result = result...
12
136
0.534111
train_52d68d5593aeb80d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.333), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.815, 2).extrude(0.666) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.564, 1.194).extrude(0.268)) result = result.cut(cq.Workplane(...
11
53
1.43018
train_ae0100bdad423902
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.231, -0.258, -0.125), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.296).sweep(cq.Workplane('YZ').spline([(-0.258, -0.125), (-0.081, 0.034), (0.095, 0.087), (0.272, 0.034), (0.449, -0.125)])) result = result.edges().chamfer(0.05) result = result...
19
168
0.375207
train_213ef19390a796de
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.42).extrude(0.263) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.131, -1.432), normal=(1, 0, 0), xDir=(0, 1, 0))).rect(0.537, 0.15).center(0.004, -0.01).rect(0.159, 0.039).extrud...
19
114
0.56012
train_9ccc3a74f4fcb726
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.234, 0, 0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.766, -0.702).lineTo(0.74, -0.686).lineTo(0.756, 0.688).lineTo(-0.744, 0.686).close().moveTo(-0.104, 0.002).lineTo(-0.195, 0.13).lineTo(-0.346, 0.077).lineTo(-0.345, -0.081).lineTo(-0....
15
117
0.34642
train_19c096952933be5a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.624, 0.146), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.169, 0.103).lineTo(-0.169, 0.103).lineTo(-0.169, 0.21).lineTo(-0.051, 0.21).threePointArc((-0.056, 0.239), (-0.051, 0.269)).lineTo(-0.169, 0.269).lineTo(-0.169, 0.376).lineTo(0.169, 0....
4
27
0.108695
train_a745fcaaa06ee367
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.089, 0.684), normal=(0, 0, -1), xDir=(1, 0, 0))).lineTo(0.925, 0.313).lineTo(-0.759, 0.479).lineTo(-0.925, -0.313).lineTo(0.759, -0.479).lineTo(0.76, -0.479).close().revolve(angleDegrees=90, axisStart=(0.76, -0.479), axisEnd=(0.925, 0.313)) ...
10
45
1.322267
train_232f221385acb6b3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.081, 0, -0.463), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.053, 0.262).threePointArc((0, 0.301), (0.053, 0.262)).lineTo(0.159, -0.085).threePointArc((0, -0.301), (-0.159, -0.085)).lineTo(-0.053, 0.262).close().sweep(cq.Workplane('XZ').splin...
2
11
0.28344
train_334253d7b5896355
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.09, 1, -0.11), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.094, -0.204).lineTo(-0.129, 0.184).lineTo(-0.094, 0.204).lineTo(0.129, -0.184).lineTo(0.094, -0.204).close().sweep(cq.Workplane('YZ').spline([(0.681, -0.262), (0.553, -0.11), (0.318, -0....
5
22
0.054376
train_8847152eedfd90b6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.237, 0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.051, 0.292).lineTo(-0.552, -0.21).lineTo(-0.552, -0.339).lineTo(-0.41, -0.339).lineTo(-0.41, -0.244).lineTo(0.348, -0.244).lineTo(0.348, -0.339).lineTo(0.443, -0.339).lineTo(0.443, -0....
1
16
0.316856
train_aef75472c561fccf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.169, -0.521), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.022).extrude(1.043) result = result.union(cq.Workplane(cq.Plane(origin=(0.369, 0.497, -0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.862, 0.366).extrude(0.375)) result = result.c...
7
96
1.750247
train_84a256bc0f271a29
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.129, -0.626, -0.085), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.564, 0.06).threePointArc((-0.598, 0.253), (-0.569, 0.446)).threePointArc((-0.418, 0.692), (-0.172, 0.842)).threePointArc((0.021, 0.871), (0.213, 0.838)).threePointArc((0.452, 0.6...
20
257
1.4915
train_2598dd9a128736dd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -1.119, -0.44), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1.343, 0.053).threePointArc((0.113, 0.886), (-1.343, 1.179)).lineTo(1.343, 1.179).lineTo(1.343, 0.053).close().extrude(0.449) result = result.edges().fillet(0.114) result = result.faces...
25
119
0.913614
train_e13f860247463e44
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.122, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.371).lineTo(-1, -0.371).lineTo(-0.714, -0.371).lineTo(-0.714, -0.295).lineTo(0.238, -0.295).lineTo(0.238, 0.295).lineTo(1, 0.295).lineTo(1, 0.371).lineTo(-1, 0.371).close().revolve(ang...
4
33
0.344758
train_c7e1e6ede35a2bfc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.808, -0.532, 0.06), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.838, 0.078).lineTo(-0.838, 0.488).lineTo(-0.495, 0.488).lineTo(-0.495, 0.986).lineTo(0.838, 0.986).lineTo(0.838, 0.488).lineTo(0.186, 0.488).lineTo(0.186, 0.078).lineTo(-0.838, 0....
12
74
1.74637
train_c4f101cfbefe73d6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.799, 0.221).lineTo(-1, 0.472).lineTo(1, 0.472).lineTo(1, 0.466).lineTo(-0.348, 0.466).threePointArc((-0.318, 0.343), (-0.352, 0.221)).threePointArc((-0.537, 0.098), (-0.747, 0.17)).threePoint...
4
24
0.279797
train_3d9e9a487f6f64a1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.005, 0.001, -0.849), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.05, -0.039).lineTo(-0.05, 0.055).lineTo(0.05, 0.055).lineTo(0.05, -0.046).lineTo(-0.05, -0.046).lineTo(-0.05, -0.039).close().revolve(angleDegrees=270, axisStart=(-0.05, -0.039),...
4
29
0.003925
train_b4fd3d721dda3f8d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.029, -0.135, -0.248), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.366, 1.165).threePointArc((-0.366, 0.135), (0.366, -0.895)).threePointArc((-0.079, 0.135), (0.366, 1.165)).close().extrude(0.496) result = result.edges().chamfer(0.082) result = r...
9
34
0.151532
train_8a62e5da9cba1f7b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.706, -0.724, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.125).lineTo(-1.162, 0.125).lineTo(-0.581, 0.706).lineTo(-1.162, 1.287).lineTo(0, 1.287).lineTo(0, 0.706).lineTo(0.581, 0.706).lineTo(1.162, 0.125).lineTo(0, 0.125).close().extrude(...
4
48
1.82248
train_71406337a821184e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.05, 0, -0.545), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.901, 1.606).extrude(1.336) result = result.cut(cq.Workplane(cq.Plane(origin=(0.339, -0.058, 0.71), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.306, 0.175).extrude(0.084)) result = result.cu...
15
133
4.193341
train_372ef0375640e234
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.051, 0, -0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.898, 1.673).extrude(0.964) result = result.cut(cq.Workplane(cq.Plane(origin=(0.846, 0.224, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.109, 0.122).extrude(0.04)) result = result....
23
61
3.031329
train_59252d3a4c00711e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.042, 0, -0.366), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.958).moveTo(0.117, -0.133).lineTo(0.177, 0).lineTo(0.117, 0.133).lineTo(0, 0.177).lineTo(-0.117, 0.133).lineTo(-0.177, 0).lineTo(-0.117, -0.133).lineTo(0, -0.177).lineTo(0.117, -0.133)...
13
138
1.332084
train_3c40cbe3069e8273
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.246, 1).lineTo(-0.246, 1).lineTo(-0.723, 0.175).lineTo(0.723, 0.175).lineTo(0.618, 0.355).lineTo(0.366, 0.792).lineTo(0.246, 1).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.3...
4
22
2.192663
train_5925ddc5c71dbff9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.216, -0.134, -0.374), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.034, 1.119).extrude(0.713) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.407, -0.173, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.685, 0.429).extrude(0.349)) result =...
13
97
0.602749
train_9d51d1850553c26c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.149, -0.156, -0.393), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.05, -0.508).threePointArc((0.017, 0.616), (0.05, -0.51)).threePointArc((0, -0.511), (-0.05, -0.508)).close().workplane(offset=0.024).moveTo(-0.048, -0.488).threePointArc((0.017,...
9
125
0.781813
train_b00703040b87f0c8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.408, -0.242, 0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.076, 1.515).extrude(0.409) result = result.union(cq.Workplane(cq.Plane(origin=(0.137, -0.587, 0.406), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.132).extrude(0.446)) result = result....
11
91
1.391122
train_5322ac25430d25bf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.009, -0.011, -0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.971, 0.024).lineTo(0.688, 0.718).lineTo(-0.01, 1.011).lineTo(-0.693, 0.686).lineTo(-0.989, 0.016).lineTo(-0.74, -0.694).lineTo(-0.009, -0.989).lineTo(0.742, -0.716).close().moveTo...
17
86
0.610248
train_664f859ec9c9185f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.237, -0.175, -0.345), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.159, 0.011).threePointArc((0.257, 0.213), (0.159, 0.415)).threePointArc((0, 0.47), (-0.158, 0.416)).threePointArc((-0.257, 0.212), (-0.157, 0.009)).threePointArc((0.001, -0.044),...
6
23
0.103709
train_d43d1dbb200d4030
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.579), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.673, 2).extrude(1.158) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.319 * math.cos(5.11 + 2 * math.pi * 0 / 7), 0.579 + 0.319 * math.sin(5.11 + 2 * math.pi * 0 / 7), -1.879), norm...
15
97
1.698039
train_c3a5f2061425e398
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.655, 0, 0.199), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.345, 0.107).lineTo(-0.23, -0.046).lineTo(-0.23, 0.046).lineTo(-0.161, -0.046).lineTo(0.161, -0.046).lineTo(0.115, -0.107).lineTo(-0.115, -0.107).lineTo(-0.115, -0.199).lineTo(0.115, -...
2
21
0.111302
train_71ed03385d3338dc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.428).extrude(0.636) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.318, -1.618), normal=(1, 0, 0), xDir=(0, 1, 0))).rect(0.379, 0.232).extrude(1.146)) result = result.cut(cq.Workp...
13
84
1.33059
train_418822ff3fd9990f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.001, 0, -0.904), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.033, 0.016).lineTo(-0.033, -0.016).lineTo(-0.02, -0.029).threePointArc((-0.036, -0.038), (-0.045, -0.055)).threePointArc((-0.002, -0.031), (0.045, -0.018)).threePointArc((0.036, -0.0...
5
30
0.442686
train_89cf5f7866154367
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.326, 2).extrude(0.095) result = result.union(cq.Workplane(cq.Plane(origin=(-0.53 + 0.066, 0, 0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.036, 0.026).lineTo(-0.039, 0.025).lineTo(-0....
27
210
0.206222
train_e8f049090f501d49
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.035, 0.219, 0.138), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.01, 0.265).threePointArc((0.245, 0.123), (0.259, -0.169)).threePointArc((0.226, -0.221), (0.183, -0.265)).threePointArc((-0.211, -0.258), (-0.259, 0.133)).close().sweep(cq.Workplan...
8
41
0.195315
train_fa6a99112a5f1025
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.179, 0, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.821).moveTo(0.145, 0.001).lineTo(0.071, 0.125).lineTo(-0.07, 0.127).lineTo(-0.144, 0.001).lineTo(-0.073, -0.125).lineTo(0.073, -0.126).close().extrude(0.512) result = result.cut(cq.Work...
8
58
0.920077
train_2910d95645c49e5d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.319, -0.477, 0.091), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.956).lineTo(0.604, 1.09).threePointArc((0.752, 1.025), (0.735, 0.864)).lineTo(0.316, 0.408).lineTo(0.069, -0.021).lineTo(0, -0.14).lineTo(-0.069, -0.021).lineTo(-0.316, 0.408)....
7
54
0.388212
train_8af247f8b354cb4f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.507, 1.101, 0.507), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.507, 0.594).lineTo(-0.507, 1.608).lineTo(0.507, 1.608).lineTo(0.507, 0.594).lineTo(-0.507, 0.594).close().revolve(angleDegrees=180, axisStart=(-0.507, 0.594), axisEnd=(-0.507, 1.1)...
30
122
0.998994
train_078f9e5c9c767e8e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.02, -0.258, -0.006), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.338, -0.98).threePointArc((0.185, 0.07), (-0.262, 1.033)).lineTo(-0.338, 0.983).threePointArc((0.098, 0.044), (0.247, -0.98)).lineTo(0.338, -0.98).close().extrude(0.516) result = ...
3
28
0.094885
train_ae83deb71a04b4a7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.14, 0.11, 0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.06, 0.168).lineTo(0.06, -0.038).lineTo(0.042, -0.038).lineTo(0.042, -0.168).lineTo(-0.049, -0.168).lineTo(-0.049, -0.038).lineTo(-0.06, -0.038).lineTo(-0.06, 0.168).lineTo(0.06, 0.16...
14
131
0.5633
train_13d1d14ccbd51923
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.039, 0.047, 0.054), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.039, -0.221).lineTo(1.039, 0.221).lineTo(-1.039, 0.221).lineTo(1.039, -0.221).close().extrude(0.108) result = result.edges().fillet(0.051) result = result.cut(cq.Workplane(cq.Plan...
15
67
0.040611
train_9098703fa010a228
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.255), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.732).extrude(0.51) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.4, 0.998).extrude(0.134)) result = result.cut(cq.Workplane(cq....
16
79
1.402323
train_93d80d6fe5ba614c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.651, 2).extrude(0.414) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.207, -1.507), normal=(0, 1, 0), xDir=(1, 0, 0))).circle(0.102).center(0.018, -0.011).circle(0.026).extrude(0.543...
15
50
1.237889
train_5367350f213e4241
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.004, 0.329, -0.05), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.366, 0.017).lineTo(0.377, 0.01).lineTo(0.643, 0.01).lineTo(0.643, -0.418).lineTo(0.246, -0.547).lineTo(-0.152, -0.676).lineTo(-0.643, 0).lineTo(-0.152, 0.676).lineTo(0.246, 0.547)...
7
122
0.166231
train_bb46e0630e43f7db
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.05, 0.112, -0.497), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.178, 0.874).extrude(0.845) result = result.cut(cq.Workplane(cq.Plane(origin=(0.033, 0.083, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.073).extrude(0.169)) result = result.ed...
25
134
0.708454
train_5814bdd989c89b4d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.051, 0, -0.433), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.898, 1.412).extrude(0.921) result = result.union(cq.Workplane(cq.Plane(origin=(-0.297, 0.814, -0.067), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.22, 1.04).lineTo(-0.477, 1.04).lineTo...
3
24
1.969208
train_aa3e3d66dbbd9296
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.098, -0.268, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.618, 0.636).extrude(1.155) result = result.cut(cq.Workplane(cq.Plane(origin=(0.018, -0.152, -0.19), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.211, 0.124).extrude(1.387)) result = re...
16
145
0.285893
train_3f35e897d994d130
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.021, 0.029, 0.142), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.072).sweep(cq.Workplane('XZ').spline([(-0.05, 0.089), (-0.027, 0.131), (-0.003, 0.157), (0.021, 0.165), (0.045, 0.157), (0.068, 0.131), (0.092, 0.089)])) result = result.edges().cha...
9
55
0.018522
train_37541096e4fa1e2a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.138, -0.159, -0.478), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.07, -0.138).lineTo(-0.099, -0.138).threePointArc((-0.091, -0.117), (-0.07, -0.108)).lineTo(-0.07, 0.329).threePointArc((-0.091, 0.337), (-0.099, 0.358)).lineTo(-0.07, 0.358).lin...
4
24
0.038721
train_4ba2b2ff2a36a9c1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.028, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.018).lineTo(-1, 0.416).lineTo(1, 0.413).lineTo(1, 0.018).lineTo(-1, 0.018).close().extrude(0.262) result = result.edges().fillet(0.05) result = result.union(result.mirror('XZ', ba...
3
50
0.396585
train_de269872b5646d2b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.154, -0.162), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.165).extrude(0.313) result = result.cut(cq.Workplane(cq.Plane(origin=(0.29, -0.25, 0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.02, 0.74).extrude(0.084)) result = result.cut(cq.W...
16
95
0.487345
train_d919d80affe6a7bc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -1.074, -0.524), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 2.073).lineTo(1, 0.074).lineTo(-1, 0.074).lineTo(-1, 0.835).lineTo(0.243, 0.835).lineTo(0.243, 2.073).lineTo(1, 2.073).close().extrude(1.242) result = result.edges().chamfer(0.283) r...
8
55
2.313744
train_f28c3336b8081f04
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.259, 0.491, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.185, 0.542).lineTo(-0.185, 0.099).lineTo(0.185, 0.197).lineTo(0.185, 0.444).lineTo(-0.185, 0.542).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.293, 0)) result = resu...
4
64
0.222369
train_aa804edcbade0155
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.118, 0.432, 0.485), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.356, 1.186).lineTo(-0.356, -0.949).lineTo(0.356, -0.949).lineTo(0.356, 1.186).lineTo(-0.356, 1.186).close().workplane(offset=0.068).moveTo(-0.339, 1.137).lineTo(-0.339, -0.9).line...
17
72
0.610417
train_b22a9fb3096e6188
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.657, -0.194, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.343, 0.258).lineTo(-0.343, 0.129).lineTo(0.343, 0.129).lineTo(0.343, 0.258).lineTo(-0.343, 0.258).close().revolve(angleDegrees=360, axisStart=(-0.343, 0.258), axisEnd=(-0.343, 0.129))...
3
11
0.202557
train_62250644bd03b1af
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.564, 0, -0.25), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.375, 0.65).threePointArc((0, 0.75), (-0.375, 0.65)).threePointArc((-0.65, 0.375), (-0.75, 0)).threePointArc((-0.375, -0.65), (0.375, -0.65)).lineTo(0.215, -0.373).lineTo(0.199, -0.345)...
7
47
1.443518
train_2c62e4a939856515
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.013, -0.053, 0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.108, 0.147).lineTo(0.108, 0.01).lineTo(-0.12, 0.01).lineTo(-0.12, -0.001).lineTo(0.108, -0.001).lineTo(0.108, -0.138).lineTo(0.12, -0.138).lineTo(0.12, 0.147).lineTo(0.108, 0.147)...
7
72
0.02022
train_d17859736b381410
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.296, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.17, 0.978).threePointArc((-0.703, 0.296), (-0.17, -0.386)).threePointArc((0, -0.407), (0.17, -0.386)).threePointArc((0.703, 0.296), (0.17, 0.978)).threePointArc((0, 0.999), (-0.17, 0.978...
14
119
2.216848
train_288ef3660d140a84
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.845, 0.371, -0.012), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.191, 1.704).lineTo(-0.191, 0.845).lineTo(-0.328, 0.158).lineTo(-0.403, 0.072).lineTo(-0.668, -0.013).lineTo(-0.019, -0.013).lineTo(-0.105, 0.072).lineTo(0.668, 0.845).lineTo(0.66...
28
115
0.56012
train_9379c1d11bde6f15
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0, -0.177), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.649).lineTo(0.039, -0.649).lineTo(0.769, 0.616).lineTo(0.789, 0.649).lineTo(-0.789, 0.649).lineTo(-0.769, 0.616).lineTo(-0.73, 0.616).lineTo(-0.73, 0.623).lineTo(0.73, 0.623).lineTo(0....
1
12
0.138218
train_404e6379477795bf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.628), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.189, 0.982).threePointArc((0, 1), (-0.189, 0.982)).threePointArc((-1, 0), (-0.189, -0.982)).threePointArc((0, -1), (0.189, -0.982)).threePointArc((1, 0), (0.189, 0.982)).close().extrude(1....
7
46
2.640662
train_6b6243f6d9f30581
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.487, 0.087, -0.501), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.501, 0.15).lineTo(0.501, 0.824).lineTo(-0.501, 0.824).lineTo(-0.501, 0.15).lineTo(0.501, 0.15).close().revolve(angleDegrees=180, axisStart=(0.501, 0.15), axisEnd=(0.501, 0.824)) r...
9
128
1.485406
train_88d7fe8099f0cf78
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.425, 0, 0.177), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.306, -0.354).threePointArc((0, -0.468), (0.306, -0.354)).lineTo(0.442, -0.491).threePointArc((0.556, -0.556), (0.491, -0.442)).lineTo(0.354, -0.306).threePointArc((0.468, 0), (0.354,...
8
105
0.864825
train_75452ad4c2e51ab2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.21, -0.467, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.202, 0.533).threePointArc((-0.307, 0.279), (-0.202, 0.025)).lineTo(0.307, 0.025).lineTo(0.307, 0.533).lineTo(-0.202, 0.533).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd...
4
22
0.812828
train_914540085428b5d0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.173, -0.377), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.667, 0.333).lineTo(1, 0.333).lineTo(1, -0.333).lineTo(-1, -0.333).lineTo(-1, 0.333).lineTo(0.667, 0.333).close().sweep(cq.Workplane('YZ').spline([(-0.173, -0.377), (0.149, -0.218), (...
6
49
0.986288
train_04f285633b5bc4e3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.559, 0.336, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.275, -0.407).lineTo(0.215, -0.441).lineTo(0.49, -0.034).lineTo(0.275, 0.407).lineTo(-0.215, 0.441).lineTo(-0.49, 0.034).lineTo(-0.275, -0.407).close().sweep(cq.Workplane('XY').spline(...
3
16
1.110148
train_109dc5a6ef2c275e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.667, -0.26, -0.386), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.944, 0.732).lineTo(0.944, 0.361).threePointArc((0.904, 0.198), (0.851, 0.039)).lineTo(-0.944, 0.732).close().extrude(0.999) result = result.edges().fillet(0.132) result = result....
16
72
0.190446
train_aae0bed459201805
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.049, 0.203, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.012, 0.151).lineTo(-0.175, 0.151).lineTo(-0.175, -0.012).lineTo(-0.036, -0.012).lineTo(-0.021, -0.036).lineTo(-0.021, -0.151).lineTo(0.16, -0.151).lineTo(0.16, -0.036).lineTo(0.175, -...
3
21
0.211263
train_2617d5ff0cdc9a9d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.341, -0.076, 0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.659, 0.197).lineTo(0.659, 0.011).lineTo(-0.659, 0.011).lineTo(-0.659, 0.197).lineTo(0.659, 0.197).close().extrude(0.157) result = result.edges().fillet(0.008) result = result.faces...
18
133
0.069034
train_e1a6b299100523a2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.12, -0.044, -0.566), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.294).threePointArc((-0.187, 0.216), (-0.264, 0.029)).lineTo(0, 0.029).lineTo(0, -0.235).threePointArc((0.187, -0.157), (0.264, 0.029)).threePointArc((0.187, 0.216), (0, 0.294))....
24
258
0.726639
train_a42125d398eb0a15
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.316, -0.627, -0.17), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.685, 0.373).threePointArc((0, -0.312), (0.685, 0.373)).lineTo(0.685, -0.373).lineTo(-0.685, -0.373).lineTo(-0.685, 0.373).close().sweep(cq.Workplane('XY').spline([(1.127, -0.627...
4
12
0.525819
train_4c151f6254686149
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.763, 0.519, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.167, -0.468).threePointArc((1, 0.519), (0.167, 1.504)).threePointArc((0, 1.519), (-0.167, 1.504)).threePointArc((-1, 0.519), (-0.167, -0.468)).threePointArc((0, -0.482), (0.167, -0.468...
9
70
3.637923
train_b1d0e65f4842cae3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.276, 0, 0.104), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.237, -0.572).threePointArc((0, 0.619), (-0.237, -0.572)).threePointArc((0, -0.619), (0.237, -0.572)).close().sweep(cq.Workplane('XZ').spline([(-0.076, -0.181), (-0.034, -0.135), (-0.032...
7
20
0.385652
train_426c685da9a2e0ec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.219, 0, -0.335), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.562, 1.423).extrude(1.076) result = result.cut(cq.Workplane(cq.Plane(origin=(0.285, 0.168, -0.367), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.08).extrude(1.291)) result = result.cut(cq...
16
106
0.803732
train_4f80539ab4e5e6b3
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.726, 0.426).extrude(0.984) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.102).extrude(0.453)) result = result.union(cq.Workplane(...
9
32
0.274517
train_c176dbe4260085fb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.504), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.47, 2).extrude(0.776) result = result.union(cq.Workplane(cq.Plane(origin=(-0.166, 0.475, 0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.287).extrude(0.239)) result = result.cut(cq.Workp...
14
52
1.963801
train_91a9f5708b098f12
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.087, 0.185, 0.189), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.33, 0.028).lineTo(-0.33, 0.688).lineTo(0.082, 0.688).lineTo(0.082, 0.399).lineTo(0.33, 0.399).lineTo(0.33, 0.028).lineTo(-0.33, 0.028).close().revolve(angleDegrees=180, axisStart=...
18
131
0.295463
train_8246680ac6e8e3b8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.015, 0.119, 0.05), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.755).lineTo(0, 0.881).lineTo(-0.126, 0.881).lineTo(-0.126, -0.881).lineTo(0.126, -0.881).lineTo(0.126, 0.755).lineTo(0, 0.755).close().extrude(0.101) result = result.edges().cham...
15
92
0.040919
train_946f0439a144d6b1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.007, 0.033, -0.048), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.276, 0.313).lineTo(0.276, 0.313).lineTo(0.276, 0.924).lineTo(0, 0.983).lineTo(-0.276, 1.041).lineTo(-0.276, 0.313).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0...
17
89
0.53342
train_49a4f90d250a45fb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.274, -0.583, 0.089), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.276).workplane(offset=0.184).circle(0.266).workplane(offset=0.165).circle(0.362).workplane(offset=0.154).circle(0.278).workplane(offset=0.127).circle(0.39).workplane(offset=0.134)...
13
67
0.707942
train_ddb1e64969b40a51
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.294, -0.233, -0.314), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.053).lineTo(-0.706, 0.053).lineTo(-0.706, 0.76).lineTo(-0.353, 0.76).lineTo(-0.353, 0.406).lineTo(0, 0.76).lineTo(0.353, 0.406).lineTo(0.353, 0.76).lineTo(0.706, 0.76).lineTo(...
22
213
0.518546
train_5f4d51f3e2b1a796
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.604, -0.005, 0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.5, -0.396).threePointArc((0.5, 0.604), (-0.5, 1.604)).lineTo(-0.5, 1.17).threePointArc((0.066, 0.604), (-0.5, 0.038)).lineTo(-0.5, -0.396).close().revolve(angleDegrees=270, axisSta...
13
54
1.460193
train_f7fb573e53276d41
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.613, 0.388, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.97, 1.224).threePointArc((0.949, 1.317), (0.889, 1.391)).threePointArc((0, 1.697), (-0.889, 1.391)).threePointArc((-0.949, 1.317), (-0.97, 1.224)).lineTo(-0.97, 0.002).threePointArc((-...
12
67
1.245653
train_5ddc08f3a3506de4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.16, -0.051, -0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.208, 0.225).extrude(0.023) result = result.union(cq.Workplane(cq.Plane(origin=(0.171, -0.04, -0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.094).extrude(0.002)) result = result...
7
56
0.025405
train_93836701460fc7a2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.075, -0.499, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.345, 0.075).lineTo(0.345, 0.851).lineTo(0.241, 0.851).lineTo(0.241, 0.144).lineTo(0.014, 0.144).lineTo(0.014, 0.109).lineTo(-0.055, 0.109).lineTo(-0.055, 0.144).lineTo(-0.283, 0.144)....
17
54
0.517421
train_3a7e3e6d9e550ffe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.032, 0.372, 0.37), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.054).lineTo(0.047, -0.054).lineTo(0.047, 0.008).threePointArc((0.033, 0.041), (0, 0.054)).threePointArc((-0.033, 0.041), (-0.047, 0.008)).lineTo(-0.047, -0.054).lineTo(0, -0.054)...
15
72
0.047512
train_4a57ff716e5aeac9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.378, 0, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.622, 0.007).lineTo(-0.622, 0.1).lineTo(0.508, 0.1).threePointArc((0.622, 0.054), (0.508, 0.007)).lineTo(-0.622, 0.007).close().extrude(0.114) result = result.edges().fillet(0.019) res...
7
114
0.131211