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_1aaf7dd1ec9d49c4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.053, -0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.563, 0.239).threePointArc((-1, 0.127), (-0.563, 0.015)).lineTo(0.665, 0.015).threePointArc((1, 0.127), (0.665, 0.239)).lineTo(-0.563, 0.239).close().extrude(0.404) result = result.un...
12
81
0.270889
train_fae3bf7921cc6d4d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.015, -0.083, 0.009), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.016).workplane(offset=0.028).circle(0.021).workplane(offset=0.025).circle(0.017).workplane(offset=0.026).circle(0.032).workplane(offset=0.033).circle(0.029).loft() result = result...
26
189
0.014533
train_64d88caafc71bf86
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.223, -0.097, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.555, 0.918).extrude(0.099) result = result.cut(cq.Workplane(cq.Plane(origin=(0.114, 0.116, 0.015), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.131).extrude(0.009)) result = result.un...
16
44
0.130687
train_a415c94e1b7184b3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.097, -0.787, -0.259), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.011, 0.213).lineTo(-0.011, -0.155).lineTo(-0.195, -0.155).lineTo(-0.011, -0.213).lineTo(0.08, -0.213).lineTo(0.195, -0.155).lineTo(0.08, -0.155).lineTo(0.08, 0.213).lineTo(-0.01...
3
19
0.101579
train_7f686931d7c68966
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.941), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.565, 0.647).lineTo(-0.565, 0.87).lineTo(-0.534, 0.87).lineTo(-0.534, 0.062).lineTo(0.565, 0.062).lineTo(0.565, -0.87).lineTo(-0.565, -0.87).lineTo(-0.565, 0.647).close().workplane(offset=...
17
73
1.493245
train_fe895d76e055ff2d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.266, 0.33, -0.401), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.25, 0.81).threePointArc((0, 1.06), (0.25, 0.81)).lineTo(0.25, -0.356).lineTo(-0.25, -0.356).lineTo(-0.25, 0.81).close().extrude(0.531) result = result.edges().chamfer(0.077) resul...
13
100
0.578077
train_8b46039b7594a5be
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.307, 0.034, -0.887), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.98, 0.223).extrude(0.595) result = result.union(cq.Workplane(cq.Plane(origin=(-0.488, 0.019, -0.328), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.011).extrude(1.328)) result = resul...
10
45
0.316979
train_2695c145a54d0fc0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.106, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.234, 1.569).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(0.343, 0.784, -0.667), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.106).extrude(0.246)) result = result.cut(cq.Wor...
8
71
3.797899
train_602869661843b31f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.568, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.673, 1.15).lineTo(-0.639, 1.133).lineTo(0.003, 0.027).lineTo(0.003, 0.499).lineTo(-0.221, 0.923).lineTo(-0.188, 0.906).lineTo(0.203, 0.906).lineTo(0.239, 0.924).lineTo(0.639, 1.132).lineT...
2
26
0.626329
train_a250118200df2718
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.03, 0, -0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.291, 0.889).extrude(0.443) result = result.cut(cq.Workplane(cq.Plane(origin=(0.12, -0.088, 0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.149).extrude(0.043)) result = result.cut(cq....
20
142
0.44598
train_0b05c66a1b487142
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.269), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.816, 1).lineTo(-0.816, -0.632).threePointArc((-0.739, -0.73), (-0.688, -0.844)).lineTo(-0.304, -0.459).lineTo(0.336, 0.181).lineTo(0.336, -1).lineTo(0.816, -1).lineTo(0.816, 1).close().wor...
2
15
0.391305
train_e7ceed2bf6553307
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.622, 0, -0.383), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.311, -0.36).threePointArc((0.035, -0.24), (0.311, 0)).lineTo(-0.311, 0.36).lineTo(-0.311, -0.36).close().sweep(cq.Workplane('XZ').spline([(0.622, -1.12), (1.067, -0.208), (0.389, 0.63...
4
19
0.531897
train_dfafb0fd35d25fee
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.932, 0.023, -0.153), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.106, 0.326).lineTo(-0.277, 0.202).lineTo(-0.343, 0).lineTo(-0.277, -0.202).lineTo(-0.106, -0.326).lineTo(0.106, -0.326).lineTo(0.277, -0.202).lineTo(0.343, 0).lineTo(0.277, 0.202)...
16
160
0.587359
train_f938df9df2ccdfe9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.565), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.844).extrude(0.814) result = result.union(cq.Workplane(cq.Plane(origin=(-0.223, -0.025, 0.219), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.067, 0.466).extrude(0.346)) result = result.edges...
3
51
1.519678
train_904d4cabb7302d87
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.128, 0, -0.42), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.594).sweep(cq.Workplane('XZ').spline([(-0.128, -0.635), (-0.256, -0.242), (-0.525, 0.054), (-0.883, 0.197)])) result = result.edges().fillet(0.229) result = result.union(cq.Workplane(c...
21
57
0.796811
train_aaf5096e94762948
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.196, -0.938, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.938, 2.196).lineTo(-0.938, 0.548).lineTo(0.586, 0.548).lineTo(0.586, 0.196).lineTo(0.938, 0.196).lineTo(0.938, 0.548).lineTo(0.912, 0.548).lineTo(0.912, 2.196).lineTo(-0.938, 2.196)....
13
104
4.294371
train_07747ba679f2946d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.619), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.918).extrude(1.238) result = result.cut(cq.Workplane(cq.Plane(origin=(0.317, 0.767, -0.368), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.132, -0.704).threePointArc((0.702, 0.256), (-0.13...
5
72
4.318306
train_e5c7a93beb41303b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.072, -0.928, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.208).sweep(cq.Workplane('XY').spline([(0.135, -0.306), (-0.108, -0.312), (-0.328, -0.364), (-0.418, -0.533), (-0.366, -0.736), (-0.128, -0.811), (0.122, -0.801), (0.279, -0.642), (0....
2
13
0.016287
train_675d3372987ec599
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.864, 0.322, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.716).workplane(offset=0.374).circle(0.653).workplane(offset=0.311).circle(0.591).workplane(offset=0.375).circle(0.529).workplane(offset=0.323).circle(0.466).workplane(offset=0.344).cir...
16
85
1.134099
train_847b73281b5ebfd4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.633), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.588).extrude(1.266) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.255, -0.363, -0.848), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.145).extrude(1.519)) result = result.edges().cha...
10
152
3.18855
train_81cd56df277645b0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.541), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.804, 2).extrude(1.16) result = result.cut(cq.Workplane(cq.Plane(origin=(0.126, -0.073, -0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.12).extrude(0.066)) result = result.cut(cq.Workpla...
11
36
3.932964
train_0ff27d993ec76c1d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.246, -0.176, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.892, 0.476).threePointArc((0, -0.476), (0.892, 0.476)).threePointArc((0, 0.419), (-0.892, 0.476)).close().sweep(cq.Workplane('XY').spline([(0.909, -0.176), (0.915, 0.374), (0.487, 0...
10
69
0.983815
train_3b7f6a9729864dd0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.081, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.08, 0.835).lineTo(-0.072, 0.835).lineTo(-0.072, 0.919).lineTo(0.08, 0.919).lineTo(0.08, 0.223).lineTo(-0.08, 0.223).lineTo(-0.08, 0.529).lineTo(-0.072, 0.529).lineTo(-0.072, 0.613).lineTo...
8
42
0.254651
train_98699732cbec099e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.083, -0.669, 0.018), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.585, 1.071).threePointArc((-0.585, 0.217), (0.269, -0.953)).lineTo(0.585, 1.071).close().extrude(1.338) result = result.edges().fillet(0.156)
2
14
2.135658
train_84a348f9b6a92797
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.267, -0.716), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.963, 0.021).lineTo(-0.963, 0.064).lineTo(-1, 0.064).lineTo(-1, 0.757).lineTo(1, 0.757).lineTo(1, 0.021).lineTo(-0.963, 0.021).close().extrude(1.432) result = result.cut(cq.Workplane(...
19
96
1.472897
train_c9532ef2b946259e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.131, -0.249, -0.571), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.992, 1.501).extrude(0.232) result = result.union(cq.Workplane(cq.Plane(origin=(0.131, -0.249, -0.34), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.289).extrude(0.03)) result = result...
10
79
1.510489
train_7acf24efdd448c22
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.446, 0, 0.057), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.473, 0.274).lineTo(0.473, 0.274).lineTo(0.473, -0.274).lineTo(-0.473, -0.274).lineTo(-0.473, 0.274).close().sweep(cq.Workplane('XZ').spline([(-0.96, -0.276), (-0.789, -0.355), (-0.617...
5
21
0.821363
train_85030b8510fb3003
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -1, -0.251), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.574).lineTo(-0.238, 0.436).lineTo(-0.238, -0.021).lineTo(-0.189, -0.021).lineTo(-0.189, -0.045).lineTo(-0.238, -0.074).lineTo(-0.238, -0.122).lineTo(-0.189, -0.094).lineTo(-0.189, -0....
11
71
0.617512
train_e61d760f9c485de3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.306, 0, -0.375), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.389, 1.092).extrude(0.874) result = result.union(cq.Workplane(cq.Plane(origin=(0.677, -0.071, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.646, 0.344).extrude(0.356)) result = result.c...
23
205
1.242152
train_cbe0b105f0515815
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.703), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.162, 1.367).extrude(0.9) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.163), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.346).extrude(0.391)) result = result.union(cq.Workplane...
14
87
1.634249
train_b04936ac8bd0cc71
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.192, 0, -0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.143, 0.819).extrude(0.356) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.192, 0, -0.232), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.571, 0.422).extrude(0.463)) result = result.un...
6
20
0.28417
train_ac7aa6df4fef2c44
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.286, 0.01, -0.506), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.803, 0.898).extrude(0.71) result = result.union(cq.Workplane(cq.Plane(origin=(0.286, 0.01, 0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.451, 0.539).extrude(0.483)) result = resul...
10
68
0.73389
train_7060ebda9f56556f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.18, -0.863, -0.179), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.821, 0.84).threePointArc((-0.711, 1.25), (-0.41, 1.55)).lineTo(0.41, 1.55).threePointArc((0.711, 1.25), (0.821, 0.84)).threePointArc((0.711, 0.429), (0.41, 0.129)).lineTo(-0.41, ...
12
152
0.811244
train_01eb9c125ffd9531
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.034, -0.001, -0.021), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.742, 1.035).threePointArc((-0.532, 0.535), (-0.742, 0.035)).lineTo(0.678, 0.035).threePointArc((0.742, 0.535), (0.678, 1.035)).lineTo(-0.742, 1.035).close().revolve(angleDegrees...
7
108
2.765269
train_7dd19496e91f5d1d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.529, -0.184, 0.136), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.265, -0.454).lineTo(0.277, -0.454).lineTo(0.277, 0.178).threePointArc((0, 0.454), (-0.277, 0.178)).lineTo(-0.277, -0.454).lineTo(-0.265, -0.454).close().extrude(0.272) result = r...
10
78
0.289147
train_847cfe314a686ecb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.374, -0.065, 0.677), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.225).workplane(offset=0.209).circle(0.248).workplane(offset=0.189).circle(0.254).workplane(offset=0.212).circle(0.255).workplane(offset=0.165).circle(0.236).workplane(offset=0.19)...
13
72
0.5737
train_6701c3c01a4de9c1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.929, -0.033), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.514, -0.127).threePointArc((-0.514, 0.886), (0.482, 1.929)).lineTo(0.514, 1.929).lineTo(0.514, -0.127).close().revolve(angleDegrees=90, axisStart=(0.482, 1.929), axisEnd=(0.514, 1.9...
7
40
2.252749
train_4ff3a2421f6bf7b2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.085, 0, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.544, 2).extrude(0.175) result = result.union(cq.Workplane(cq.Plane(origin=(0.165, -0.38, -0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.14, 0.098).extrude(0.035)) result = result.un...
4
55
0.56746
train_7eb662265a981232
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.238, -0.035, 0.326), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.35).workplane(offset=0.31).circle(0.338).workplane(offset=0.265).circle(0.351).loft() result = result.edges().fillet(0.104) result = result.union(cq.Workplane(cq.Plane(origin=(-0....
16
73
1.104511
train_38850da23ef166dd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.853).extrude(0.279) result = result.union(cq.Workplane(cq.Plane(origin=(0.082, 0.231, 0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.124, 0.075).extrude(0.063)) result = result.cut(cq.W...
8
30
0.839304
train_bca313b81f3ba1e0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.316, 0.091, -0.166), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.267, 0.228).lineTo(-0.232, 0.166).threePointArc((-0.276, 0.157), (-0.317, 0.177)).lineTo(-0.137, 0.001).lineTo(-0.042, -0.164).threePointArc((-0.071, -0.197), (-0.075, -0.243)).th...
5
39
0.306629
train_38b41e654fed6590
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.041, -0.083, 0.274), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.15, -0.627).lineTo(0.226, -0.627).lineTo(0.226, -0.527).lineTo(-0.15, -0.527).lineTo(-0.15, 0.075).lineTo(-0.075, 0.075).lineTo(-0.075, 0.176).lineTo(-0.15, 0.176).lineTo(-0.15, ...
11
99
0.058742
train_dffccaf93fcd8f21
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.065, 0.005, 0.505), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.435, 0.661).threePointArc((0.505, 0.928), (0.435, 1.195)).threePointArc((-0.036, 1.468), (-0.505, 1.195)).lineTo(-0.505, 0.661).lineTo(0.435, 0.661).close().revolve(angleDegrees=36...
10
34
1.542932
train_8149ba124c03d6b0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.132, -0.151, 0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.269, 0.225).extrude(0.28) result = result.union(cq.Workplane(cq.Plane(origin=(-0.109, -0.151, 0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.226, 0.17).extrude(0.159)) result = re...
10
202
0.078853
train_89888e977b848409
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.283, 0.239, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.434, 1.454).extrude(0.261) result = result.union(cq.Workplane(cq.Plane(origin=(-0.245, 0.239, 0.074), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.223, 0.975).extrude(0.048)) result = ...
15
86
0.607117
train_5d9aebfef42d62da
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.439, 0.135, -0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.469, 0.196).extrude(0.363) result = result.union(cq.Workplane(cq.Plane(origin=(0.459, 0.09, 0.047), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.013).extrude(0.588)) result = result.u...
13
141
0.420618
train_9d5f7cdc57cf86b1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.371, -0.067, -0.088), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.093, 0.231).lineTo(-0.079, 0.231).lineTo(-0.185, 0.126).lineTo(-0.185, 0.156).lineTo(-0.244, 0.156).lineTo(-0.244, -0.001).lineTo(-0.185, -0.001).lineTo(-0.185, 0.034).lineTo(-0....
23
231
0.359554
train_d1cb5414355bf83d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.973, 0, 0.37), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.277).sweep(cq.Workplane('XZ').spline([(0.588, 0.146), (0.481, 0.384), (0.305, 0.464), (0.137, 0.352), (0.047, 0.097), (0.074, -0.194), (0.207, -0.395)])) result = result.union(cq.Workpla...
2
9
0.251013
train_7a03003c923fa32a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.276), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1).lineTo(0.227, -0.393).lineTo(0.866, -0.5).lineTo(0.454, 0).lineTo(0.866, 0.5).lineTo(0.227, 0.393).lineTo(0, 1).lineTo(-0.227, 0.393).lineTo(-0.866, 0.5).lineTo(-0.454, 0).lineTo(-0.8...
11
108
0.273028
train_76d49bc888b7493d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.021, 0.019, -0.423), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.008, 0.032).lineTo(0.72, 0.726).lineTo(0.011, 0.981).lineTo(-0.683, 0.678).lineTo(-0.966, 0.017).lineTo(-0.706, -0.709).lineTo(0.015, -1.019).lineTo(0.729, -0.689).close().moveTo(...
13
72
1.31151
train_21da40b84af55777
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.086, 0.151), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.846, -0.175).lineTo(0.901, -0.175).lineTo(0.901, -0.039).lineTo(0.866, -0.039).lineTo(0.866, -0.019).lineTo(0.896, 0.063).lineTo(0.832, 0.025).lineTo(0.735, 0.025).lineTo(0.399, 0.175...
16
101
0.117242
train_1879df2cfa4bad9b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.013, -1, -0.225), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.582, 0.596).lineTo(0.473, 0.596).threePointArc((0.533, 0.547), (0.582, 0.487)).lineTo(0.582, -0.459).lineTo(0.582, -0.568).lineTo(0.473, -0.568).lineTo(-0.471, -0.569).threePointArc...
8
43
2.311845
train_3e88f1531217c68f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.574, 0.088, -0.008), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.072, 0.049).threePointArc((-0.111, 0.047), (-0.15, 0.041)).lineTo(-0.154, 0.041).lineTo(-0.154, 0.04).lineTo(-0.154, -0.107).lineTo(0.01, -0.107).lineTo(0.01, 0.04).threePointArc(...
5
52
0.198936
train_6b2e957ae7a5ed09
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.512, 0.232, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.098, -0.098).lineTo(0.203, -0.098).lineTo(0.203, -0.077).lineTo(0.075, 0.144).lineTo(0.105, 0.173).lineTo(0.075, 0.203).lineTo(-0.203, -0.075).lineTo(-0.173, -0.105).lineTo(-0.144, -0...
2
16
0.078171
train_26b715a3cd9127c9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.426), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.083).workplane(offset=0.211).circle(0.086).workplane(offset=0.204).circle(0.102).workplane(offset=0.159).circle(0.084).loft() result = result.edges().fillet(0.031) result = result.union(c...
10
36
0.014294
train_052631be91c57ed8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.11, -0.265, 0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.805, -0.015).lineTo(0.438, 0.727).lineTo(-0.412, 0.736).lineTo(-0.794, -0.008).lineTo(-0.407, -0.735).lineTo(0.388, -0.718).close().moveTo(-0.178, 0.23).lineTo(-0.221, 0.304).lineTo...
20
200
0.753233
train_c449acabd5e6caed
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.249, 0.422, 0.242), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.479, 0.904).lineTo(-0.639, 0.904).lineTo(-0.639, 0.265).lineTo(-0.479, 0.265).lineTo(-0.479, -0.214).lineTo(0.479, -0.214).lineTo(0.479, 0.265).lineTo(0.639, 0.265).lineTo(0.639, 0...
27
92
0.861293
train_ffb75510223f89a4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.553, -0.058, 0.247), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.278, -0.176).lineTo(0.278, -0.079).lineTo(0.157, -0.079).lineTo(0.157, 0.068).lineTo(0.121, 0.113).lineTo(0.112, 0.123).threePointArc((0, 0.176), (-0.112, 0.123)).lineTo(-0.121, ...
10
123
0.320204
train_2b5085eda0fc74e2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.5, 0, -0.5), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.5, 0.032).lineTo(-0.5, 0.064).lineTo(-0.024, 0.064).lineTo(-0.024, 0.032).lineTo(0.5, 0.032).lineTo(0.5, -0.064).lineTo(-0.5, -0.064).lineTo(-0.5, 0.032).close().revolve(angleDegrees=180...
21
78
0.160464
train_fd3b815347a3ed80
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.042, 1, -0.011), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.471, -0.806).threePointArc((0.815, -0.462), (0.94, 0.008)).lineTo(0.469, 0.823).threePointArc((-0.001, 0.948), (-0.471, 0.822)).lineTo(-0.94, 0.006).lineTo(-0.469, -0.807).lineTo(0.47...
9
70
3.8738
train_e3e2f828dd2ef853
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.459, 0, -0.044), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.152).workplane(offset=0.283).circle(0.152).workplane(offset=0.207).circle(0.129).workplane(offset=0.283).circle(0.134).workplane(offset=0.211).circle(0.14).loft() result = result.edge...
18
77
0.056328
train_66a8badec0b48019
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.297, 0.25, -0.265), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.384, 0.572).threePointArc((-0.473, 0.297), (0.384, 0.021)).threePointArc((0.473, 0.297), (0.384, 0.572)).close().extrude(0.5) result = result.edges().chamfer(0.228) result = result...
6
28
0.262323
train_43df84ff84c7d822
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.874, -0.192, 0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.126, 0.222).lineTo(-0.126, -0.222).threePointArc((-0.004, -0.164), (0.126, -0.128)).lineTo(0.126, 0.054).lineTo(-0.057, 0.054).lineTo(-0.057, 0.222).lineTo(-0.126, 0.222).close()...
3
20
0.023475
train_24469d37b33cfb76
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.249, 0.016), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, -0.05).lineTo(0.437, -0.05).lineTo(-0.678, -0.693).lineTo(-1, -0.136).lineTo(0.437, 0.693).lineTo(1, 0.693).lineTo(1, -0.05).close().sweep(cq.Workplane('YZ').spline([(-0.249, 0.016),...
8
48
0.662415
train_c5c0f3fda26beefe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.721, -0.858, 0.437), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.37, 0.653).lineTo(-0.563, 0.653).lineTo(-0.563, 0.045).lineTo(0.563, 0.045).lineTo(0.563, 0.653).lineTo(0.37, 0.653).close().extrude(0.719) result = result.edges().fillet(0.086) r...
7
80
0.474502
train_47dd72d90010b625
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.255, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.465).lineTo(-1, 0.041).threePointArc((-0.789, 0.066), (-0.589, 0.136)).threePointArc((-0.347, 0.219), (-0.094, 0.248)).lineTo(0.057, 0.248).lineTo(1, 0.248).lineTo(1, 0.465).lineT...
8
53
0.138871
train_586e9168a77b8e72
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.178, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.148, 0.101).threePointArc((-0.014, -0.003), (0.148, 0.046)).lineTo(0.148, 0.31).threePointArc((-0.014, 0.359), (-0.148, 0.255)).lineTo(-0.148, 0.101).close().extrude(1.629) result = resu...
8
46
0.148388
train_ed383dcaee36521c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.003, -1.063, -0.771), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.42, 1.978).threePointArc((0.087, 1.874), (-0.127, 1.602)).threePointArc((-0.298, 1.821), (-0.565, 1.905)).threePointArc((-0.807, 1.836), (-0.98, 1.652)).threePointArc((-0.952, 1....
15
181
2.559474
train_c769145f38a39529
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0, -0.233), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.349, 0.349).lineTo(0.07, 0.07).lineTo(0.07, 0.168).lineTo(-0.052, 0.046).lineTo(-0.349, 0.046).lineTo(-0.349, -0.349).lineTo(0.046, 0.046).lineTo(0.349, 0.046).lineTo(0.349, 0.349).close()...
1
10
0.079396
train_d4d260ca4f687a1a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.071, 0.336, -0.146), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.063, 0.373).lineTo(0.063, 0.245).lineTo(0.063, -0.232).lineTo(-0.063, -0.232).lineTo(-0.063, 0.373).close().extrude(0.126) result = result.edges().chamfer(0.04) result = result.u...
21
164
0.119512
train_79b8c86d9111050c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.098, -0.661, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.778, 0.876).lineTo(1, 0.876).lineTo(1, 1.098).lineTo(-1, 1.098).lineTo(-1, -0.902).lineTo(0.778, -0.902).lineTo(0.778, -0.679).lineTo(-0.778, -0.679).lineTo(-0.778, 0.876).close().ex...
4
74
1.523797
train_b56e05c5ce18e854
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.08, -0.011, 0.596), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.076, 0.006).extrude(0.007) result = result.union(cq.Workplane(cq.Plane(origin=(0.062, -0.011, 0.602), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.009, -0.005).threePointArc((-0.009,...
7
102
0.068134
train_639286ac3bbf901b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.812, -0.154), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.351).sweep(cq.Workplane('YZ').spline([(-0.812, -0.154), (0.075, -0.154), (0.355, -0.009), (0.636, 0.136), (0.917, 0.281)])) result = result.edges().chamfer(0.204) result = result.cut...
7
26
0.252365
train_65386f7d2e36126d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.288, 0.413, 0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.154, 0.243).extrude(0.216) result = result.cut(cq.Workplane(cq.Plane(origin=(0.294, 0.427, -0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.044, 0.049).extrude(0.26)) result = resul...
42
240
0.330449
train_5b2c999ca603bb9f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.06, -0.54, -0.661), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.267, 0.126).lineTo(-0.342, 0.126).lineTo(-0.342, 0.136).lineTo(-0.348, 0.136).lineTo(-0.348, 0.629).lineTo(0.348, 0.629).lineTo(0.348, 0.149).lineTo(0.442, 0.149).lineTo(0.442, 0.7...
8
44
0.320912
train_beccbfd02df82c97
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.389, 0.21, -0.189), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.055, -0.029).lineTo(-0.062, -0.029).lineTo(-0.062, 0.061).lineTo(0.062, 0.061).lineTo(0.062, -0.029).lineTo(-0.055, -0.029).close().revolve(angleDegrees=270, axisStart=(-0.055, -0....
13
103
0.217325
train_28065538f4d89672
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.843, 0.368, -0.162), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.838, -0.557).lineTo(0.838, 1.294).lineTo(0.132, 1.294).lineTo(0.132, 0.236).lineTo(-0.838, 0.236).lineTo(-0.838, -0.16).lineTo(0.132, -0.16).lineTo(0.132, -0.557).lineTo(0.838, -0...
19
148
1.798936
train_ee6a95ef3223c521
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.55, -1, -0.282), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.146, 0.359).lineTo(-0.146, -0.359).lineTo(0.146, -0.359).lineTo(0.146, -0.31).lineTo(-0.097, -0.31).lineTo(-0.097, 0.359).lineTo(-0.146, 0.359).close().sweep(cq.Workplane('YZ').splin...
4
26
0.396623
train_7a50d13b3b1ce7e9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.534, 1, 0.169), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.549, 0.845).threePointArc((0.608, 0.82), (0.632, 0.761)).lineTo(0.623, 0.761).lineTo(0.623, 0.424).lineTo(0.623, 0.086).lineTo(0.632, 0.086).threePointArc((0.608, 0.027), (0.549, 0.002...
21
134
1.453141
train_0ae297fac00646c2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.15, -0.295, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.53, 0.483).extrude(0.18) result = result.union(cq.Workplane(cq.Plane(origin=(0.18, -0.295, 0.073), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.048, 0.133).threePointArc((-0.182, 0....
23
131
0.185131
train_b35ec397fe368553
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.281, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.306, -0.562).lineTo(-0.32, 0.72).threePointArc((0.32, 0.087), (-0.306, -0.562)).close().extrude(0.391) result = result.edges().chamfer(0.012) result = result.cut(cq.Workplane(cq.Plane...
8
40
0.245906
train_91035625ca4f299e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.211, 0.212, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.765, 1.271).lineTo(0.765, -0.85).lineTo(0.659, -0.85).lineTo(0.659, -0.179).lineTo(-0.765, -0.179).lineTo(-0.765, -0.073).lineTo(0.659, -0.073).lineTo(0.659, 1.271).lineTo(0.765, 1.271...
2
55
0.059026
train_467039979787d75d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.201, 0.249, 0.371), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.144, -0.071).threePointArc((-0.122, 0.039), (-0.06, 0.132)).lineTo(0.144, -0.071).lineTo(-0.144, -0.071).close().extrude(0.437) result = result.edges().fillet(0.006) result = resu...
27
182
0.395261
train_4b9b209ef459d412
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.57, -0.076, -0.541), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.482, -0.348).lineTo(0, 0.483).lineTo(0.482, -0.348).lineTo(-0.482, -0.348).close().extrude(1.148) result = result.edges().chamfer(0.046) result = result.union(cq.Workplane(cq.Pla...
6
52
0.63613
train_53b0fd997ad3cce0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.095, -0.08, -0.456), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.146, 0.99).extrude(0.7) result = result.union(cq.Workplane(cq.Plane(origin=(-0.055, 0.492, -0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.084).extrude(0.302)) result = result.u...
13
129
0.560407
train_031d005ba46feacd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.144, -0.825), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.093, -0.099).lineTo(-0.093, -0.054).lineTo(-0.116, -0.054).lineTo(-0.093, -0.001).lineTo(-0.05, 0.099).lineTo(0.075, 0.099).lineTo(0.116, 0.005).lineTo(0.103, -0.054).lineTo(0.093, ...
14
307
0.078283
train_48d025db754f12f5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.055, -0.295, 0.104), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.301, -0.705).lineTo(-0.301, 0.705).lineTo(0.301, 0.705).lineTo(0.098, -0.705).lineTo(-0.301, -0.705).close().extrude(0.194) result = result.edges().chamfer(0.073) result = resul...
36
409
0.236925
train_411912b6d2b4bfc6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.24), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.154).lineTo(-1, -0.154).lineTo(-1, -0.058).lineTo(0.994, -0.058).lineTo(0.981, 0.154).lineTo(1, 0.154).lineTo(1, -0.154).lineTo(0, -0.154).close().extrude(0.479)
1
8
0.093237
train_2658083565fd6fa4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.265, -0.015, -0.101), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.411, 0.452).lineTo(0.406, 0.442).lineTo(0.394, 0.247).lineTo(0.111, 0.236).lineTo(0.098, -0.439).lineTo(-0.113, -0.452).lineTo(-0.112, 0.261).lineTo(-0.389, 0.238).close().moveTo...
22
300
0.161304
train_6973fae06339abcb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.681, -0.229, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.638, 1.129).extrude(0.204) result = result.union(cq.Workplane(cq.Plane(origin=(-0.681, -0.229, -0.011), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.233).extrude(0.042)) result = re...
31
157
0.221449
train_691c415ba1908e03
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.256, -1, 0.038), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.195, 0.259).threePointArc((-0.168, 0.359), (-0.093, 0.431)).lineTo(-0.093, 0.5).lineTo(0.093, 0.5).lineTo(0.093, 0.431).threePointArc((0.168, 0.359), (0.195, 0.259)).lineTo(0.15, 0.2...
10
44
0.106412
train_984eb786a15c34c1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.428, -0.038, -0.118), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.55, 0.072).lineTo(-0.572, 0.072).lineTo(-0.572, 0.004).lineTo(0.572, 0.004).lineTo(0.572, 0.072).lineTo(0.388, 0.072).lineTo(0.388, 0.05).lineTo(0.313, 0.05).lineTo(0.313, 0.072...
8
182
0.007811
train_acc7f4cb22bbc54d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.201, -0.419), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.536, 1.597).extrude(1.02) result = result.union(cq.Workplane(cq.Plane(origin=(-0.173, 0.144, -0.601), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.354).extrude(0.198)) result = result.uni...
15
88
1.862004
train_21c4e0803c9be495
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.7, 0.625, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.601, -0.3).lineTo(-0.601, -0.15).lineTo(-0.1, -0.15).lineTo(-0.1, -0.013).threePointArc((-0.088, 0.068), (-0.053, 0.141)).threePointArc((0.046, 0.231), (0.175, 0.263)).lineTo(0.2, 0.263)...
3
34
0.327738
train_6d36b370f6155bc0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.082, -0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.007).lineTo(-1, 0.157).lineTo(0.816, 0.157).threePointArc((1, 0.082), (0.816, 0.007)).lineTo(-1, 0.007).close().extrude(0.137) result = result.edges().fillet(0.044) result = resul...
3
32
0.031164
train_14fd4dd94f4fdfce
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.655), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.862, 2).extrude(1.31) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.387 * math.cos(1.678 + 2 * math.pi * 0 / 3), 0.655 + 0.387 * math.sin(1.678 + 2 * math.pi * 0 / 3), -1.866), nor...
23
41
4.813501
train_65ef457b12b24c1b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.041, 0.07, -0.565), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.857, 1.771).extrude(0.26) result = result.union(cq.Workplane(cq.Plane(origin=(0.093, 0.181, -0.309), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.752, 1.638).extrude(0.056)) result = re...
24
205
1.272857
train_e358426e8f76e40b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.232, -0.112, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.789, 0.443).threePointArc((1, 0.232), (0.789, 0.021)).lineTo(-0.789, 0.021).threePointArc((-1, 0.232), (-0.789, 0.443)).lineTo(0.789, 0.443).close().extrude(0.225) result = result.cut...
8
17
0.177212
train_1d07c91c0abbe339
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 1, 0.159), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.415).workplane(offset=0.334).circle(0.415).workplane(offset=0.36).circle(0.476).workplane(offset=0.359).circle(0.519).workplane(offset=0.356).circle(0.52).workplane(offset=0.267).circle(0....
16
196
0.97059
train_f4638d341b9de821
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.633, 0.001, 0.162), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.089, 0.379).threePointArc((-0.019, 0.384), (-0.124, 0.358)).threePointArc((-0.367, 0.005), (-0.132, -0.353)).threePointArc((0.022, -0.384), (0.176, -0.35)).threePointArc((0.288, -...
4
21
0.566977