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_3cdc92d29a88b3d9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.366, 0, -0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.376, 0.782).threePointArc((0.218, 0.941), (0, 1)).lineTo(-0.376, 0.782).threePointArc((-0.435, 0.565), (-0.376, 0.347)).threePointArc((-0.218, 0.188), (0, 0.13)).lineTo(0.376, 0.347).thr...
3
26
1.785151
train_8990e31d9a28ea1b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.494, 0.039), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.211, 0.506).lineTo(-0.211, 0.478).lineTo(-0.311, 0.478).lineTo(-0.311, 0.45).lineTo(0.283, 0.45).lineTo(0.283, 0.238).lineTo(0.311, 0.238).lineTo(0.311, 0.478).lineTo(-0.182, 0.478).l...
3
24
0.226377
train_aeb1156952b4a190
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.078, 0, -0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.031, 1.372).extrude(0.053) result = result.union(cq.Workplane(cq.Plane(origin=(0.182, -0.268, 0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.465, 0.446).extrude(0.016)) result = resul...
21
105
0.082808
train_0495656a5c9bff10
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.151, 0, 0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.101, 0.15).extrude(0.088) result = result.cut(cq.Workplane(cq.Plane(origin=(0.151, -0.039, 0.077), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.013, 0.075).extrude(0.041)) result = result.ed...
27
126
0.258364
train_62fd3d09a121015a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.24, 0.36, -0.019), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.065, 0.782).lineTo(-0.299, -0.337).lineTo(-0.065, -0.413).lineTo(0.299, 0.706).lineTo(0.065, 0.782).close().extrude(0.72) result = result.edges().chamfer(0.073) result = result.uni...
3
35
0.194639
train_649a97e8bc4ed031
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.485, -0.017, 0.484), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.272, -0.287).lineTo(0.272, 0.641).lineTo(-0.272, 0.641).lineTo(-0.272, -0.145).lineTo(0.272, -0.287).close().extrude(1.148) result = result.edges().chamfer(0.139) result = result....
32
179
0.455948
train_1539d6d955b92986
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.039, 0.028, -0.418), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.986, 0.029).lineTo(0.714, 0.726).lineTo(-0.028, 0.972).lineTo(-0.695, 0.745).lineTo(-0.992, 0.027).lineTo(-0.742, -0.739).lineTo(-0.029, -1.028).lineTo(0.721, -0.707).close().move...
4
29
0.454578
train_249d0afd0e75d211
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.319, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.179, -0.165).lineTo(0.179, -0.184).lineTo(-0.179, -0.184).lineTo(-0.179, 0.165).lineTo(-0.161, 0.165).lineTo(-0.161, 0.184).lineTo(0, 0.184).lineTo(0, -0.165).lineTo(0.018, -0.165).lineTo...
2
18
0.13804
train_f372c5edbcd90211
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0.116, 0.01), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.159, 0.206).lineTo(0.159, 0.08).lineTo(-0.032, 0.08).lineTo(-0.032, -0.206).lineTo(-0.159, -0.206).lineTo(-0.159, 0.206).lineTo(0.159, 0.206).close().sweep(cq.Workplane('XY').spline([(0....
2
14
0.078628
train_e04911a46c924ace
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.243, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.54, 0.098).lineTo(0.54, -0.441).lineTo(-0.54, -0.441).lineTo(-0.441, -0.343).lineTo(-0.441, 0.441).lineTo(0.54, 0.441).lineTo(0.54, 0.098).close().sweep(cq.Workplane('XY').spline([(-0.449...
2
11
0.746398
train_b185b35d8ad07a29
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.515, 0, -0.475), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.97, 1.077).extrude(0.95) result = result.union(cq.Workplane(cq.Plane(origin=(0.457, -0.025, -0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.087, 0.105).extrude(0.126)) result = resul...
4
15
0.974202
train_0a5eafe271ee4bc5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.339, -0.26), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.887, 1.322).extrude(0.937) result = result.union(cq.Workplane(cq.Plane(origin=(0.16, -0.478, 0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.167).extrude(0.26)) result = result.union(...
17
47
1.857912
train_45d8de5efac93f15
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.995, -0.728), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.852, 1.559).lineTo(-1, 1.559).lineTo(-1, 0.078).lineTo(1, 0.078).lineTo(1, 1.559).lineTo(-0.852, 1.559).close().revolve(angleDegrees=90, axisStart=(-0.852, 1.559), axisEnd=(-1, 1.559...
6
36
3.029332
train_4ef2d3e1b810a8d9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.761), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.498, 2).extrude(1.523) result = result.cut(cq.Workplane(cq.Plane(origin=(0.066, 0.009, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.783, 1.23).extrude(0.939)) result = result.edges().c...
33
158
2.663592
train_38c8e2d759d5f71f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.491, 0.166, 0.656), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.124, 0.9).lineTo(0.371, -0.198).lineTo(-0.371, -0.296).lineTo(-0.124, 0.9).close().extrude(0.585) result = result.edges().chamfer(0.066) result = result.union(cq.Workplane(cq.Plan...
10
73
0.420852
train_c2099518dcc09799
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.692, 0.157, -0.219), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.698, 1.27).lineTo(0.698, -1.157).lineTo(-0.698, -1.157).lineTo(0.698, 1.27).close().extrude(1.385) result = result.edges().fillet(0.155) result = result.union(cq.Workplane(cq.Plan...
10
90
1.794581
train_00cc64ecb94734ea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.046, -0.172, -0.207), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.42, 0.174).lineTo(-0.099, 0.174).threePointArc((-0.164, 0.272), (-0.276, 0.311)).threePointArc((-0.42, 0.016), (-0.099, 0.083)).lineTo(0.42, 0.083).lineTo(0.42, 0.174).close().ex...
14
103
0.063586
train_d748faddfb59c351
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.122, -0.276, -0.641), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.99, 1.042).extrude(0.734) result = result.cut(cq.Workplane(cq.Plane(origin=(0.076, -0.431, -0.766), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.149, 0.363).extrude(0.88)) result = re...
24
155
1.232911
train_db6468f2164f06c0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.643, -1.068, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.876, 1.469).lineTo(0.876, 0.068).lineTo(-0.876, 0.068).lineTo(-0.876, 1.469).lineTo(0.876, 1.469).close().extrude(1.285) result = result.edges().fillet(0.242) result = result.cut(cq.W...
12
77
2.445548
train_a532616c8951a161
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.035, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.567, -0.612).threePointArc((0.843, -0.727), (0.728, -0.45)).lineTo(0.728, 0.683).lineTo(0.728, 0.844).lineTo(0.567, 0.844).lineTo(-0.567, 0.844).lineTo(-0.728, 0.844).lineTo(-0.728, 0.683...
2
38
4.475781
train_79af60aa6801d89d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.046), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.866, 0.985).lineTo(0.866, -0.5).lineTo(0, -1).lineTo(-0.433, -0.75).threePointArc((-0.75, -0.433), (-0.866, 0)).lineTo(-0.866, 0.5).lineTo(-0.866, 0.985).lineTo(-0.025, 0.985).lineTo(0, 1)...
7
31
0.30373
train_2981f11394e8280b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.383, 0, 0.131), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.254, -0.217).lineTo(0.301, -0.224).threePointArc((0.335, -0.269), (0.289, -0.304)).lineTo(0.242, -0.297).threePointArc((0, -0.472), (-0.242, -0.297)).lineTo(-0.289, -0.304).threePointA...
1
16
0.284393
train_6bd42b0a209ec47c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.135, 0, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.729, 1.345).extrude(0.284) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.673 + 0.1345, 0.085, -1.266), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.006, 0.031).lineTo(0.011, 0.002...
10
11
0.66117
train_10a1764bee3ae404
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.021, -0.083, -0.003), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.021, 1.083).lineTo(0.021, -0.917).lineTo(-0.021, -0.917).lineTo(-0.021, 1.083).lineTo(0.021, 1.083).close().revolve(angleDegrees=90, axisStart=(0.021, 1.083), axisEnd=(0.021, -0...
12
65
0.002654
train_dfc6ee471f75144d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.01, -0.11, -0.331), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.404, 1.2).extrude(0.663) result = result.union(cq.Workplane(cq.Plane(origin=(-0.834, -0.205, -0.193), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.333, 0.679).extrude(0.363)) result = re...
14
77
0.390095
train_a55bc0ddc07f754b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.551, -0.631, 0.16), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.008, 0.642).lineTo(0.109, 0.642).lineTo(0.109, 0.534).lineTo(0.405, 0.534).lineTo(0.405, 0.212).lineTo(0.109, 0.212).lineTo(0.109, 0.425).lineTo(-0.118, 0.425).lineTo(-0.118, 0.17...
4
35
0.686659
train_c7f3f7e9844616b4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.139, 0.024, -0.403), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.387, 0.193).lineTo(0, -0.193).lineTo(0.387, 0.193).lineTo(-0.387, 0.193).close().sweep(cq.Workplane('YZ').spline([(0.024, -0.949), (0.123, -0.522), (0.011, -0.102), (-0.247, 0.06...
5
24
0.396383
train_041e0d4be7e452aa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.16, -0.128, 0.027), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.184, 1.156).lineTo(0.181, 1.16).lineTo(-0.184, 0.795).lineTo(-0.184, -0.401).lineTo(-0.002, -0.583).lineTo(-0.003, -0.84).lineTo(0.002, -0.838).lineTo(0.002, -0.58).lineTo(-0.181, ...
2
17
0.005199
train_530e52f9a3ed5d24
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.174, 0.124, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.236, 0.446).lineTo(-0.236, 1.124).lineTo(0.236, 1.124).lineTo(0.236, 0.446).lineTo(0, 0.446).lineTo(0, -0.876).lineTo(-0.153, -0.876).lineTo(-0.153, -0.673).lineTo(-0.198, -0.627).lin...
7
96
0.200663
train_f6ce3814cc1fb5a7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.014, -0.43, 0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.395, 0.395).extrude(0.5) result = result.union(cq.Workplane(cq.Plane(origin=(-0.392, -0.322, 0.75), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.003, 0.285).lineTo(-0.205, 0.215).lineTo...
9
46
0.272544
train_8ab350ea03d9c596
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.058, 0, -0.581), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.774, 0.681).extrude(0.36) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.045, 0.11, -0.529), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.017, 0.096).lineTo(0.015, 0.009).lineTo(0....
24
145
0.250081
train_519650972384b6ae
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.946, 0.208, -0.24), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.508, 0.16).threePointArc((0, -0.348), (0.508, 0.16)).threePointArc((0.495, 0.482), (0.296, 0.737)).lineTo(-0.296, 0.737).threePointArc((-0.495, 0.482), (-0.508, 0.16)).close().ext...
11
85
1.786085
train_c9054582379ecefa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.129, -0.298, -0.542), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.768, 0.014).lineTo(0.395, 0.688).lineTo(-0.389, 0.688).lineTo(-0.801, -0.012).lineTo(-0.365, -0.702).lineTo(0.369, -0.663).close().moveTo(-0.222, 0.016).lineTo(-0.412, 0.102).line...
26
142
1.21527
train_27d17d5f7925ea71
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.051, 0.124, 0.318), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.535, 0.535).lineTo(-0.535, -0.535).lineTo(0, -0.535).threePointArc((0.378, -0.378), (0.535, 0)).lineTo(0.535, 0.535).lineTo(0, 0.535).lineTo(-0.535, 0.535).close().extrude(1.027)...
22
265
0.99912
train_4257ef3567899f50
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.105, -0.172, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.843, 1.387).extrude(0.632) result = result.union(cq.Workplane(cq.Plane(origin=(-0.105, -0.172, -0.294), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.662, 0.943).extrude(0.062)) result...
16
154
0.981142
train_e2acb9a7b12cf43b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.005, 0.466, -0.203), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.606, 0.006).lineTo(0.29, 0.495).lineTo(-0.291, 0.534).lineTo(-0.617, 0.003).lineTo(-0.314, -0.516).lineTo(0.309, -0.545).close().moveTo(0, -0.151).lineTo(0.029, -0.05).lineTo(0.131...
10
99
0.707381
train_ce38e662ea5f362b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.505, -0.142, 0.313), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.505, 0.522).lineTo(0.505, -0.319).lineTo(-0.505, -0.319).lineTo(-0.505, 0.522).lineTo(0.505, 0.522).close().revolve(angleDegrees=180, axisStart=(0.505, 0.522), axisEnd=(0.505, -0....
30
355
0.845994
train_4fccebb1023a2590
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.102, -0.211, -0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.85, 1.577).extrude(0.276) result = result.union(cq.Workplane(cq.Plane(origin=(0.123, -0.211, -0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.722, 1.233).extrude(0.027)) result = ...
21
332
0.65923
train_000cd01594f0f345
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.089, 0.653, -0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.18, 0.408).extrude(0.854) result = result.union(cq.Workplane(cq.Plane(origin=(0.132, 0.414, -0.243), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.032, 0.08).extrude(0.123)) result = res...
8
88
0.28849
train_3d277db634a7d5e4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.024, -0.714, 0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.039).lineTo(-0.5, -0.04).lineTo(0.5, -0.04).lineTo(0.5, 0.039).lineTo(0.45, 0.089).lineTo(0.4, 0.039).lineTo(0.35, 0.089).lineTo(0.3, 0.039).lineTo(0.2, 0.039).lineTo(0.15, 0....
11
142
0.135322
train_42ee5df5870d7dfd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.392, 0.285, 0.541), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.463, 0.116).lineTo(-0.463, 0.535).lineTo(0.463, 0.535).lineTo(0.463, 0.116).lineTo(-0.463, 0.116).close().revolve(angleDegrees=180, axisStart=(-0.463, 0.116), axisEnd=(-0.463, 0.53...
33
353
0.356753
train_06f187cb70928f06
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.799), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.975).extrude(1.599) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.59, -0.079, -0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.432).extrude(0.43)) result = result.cut(cq.Workpl...
9
74
5.511499
train_9c18c206ecf36c18
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.092, 0, 0.033), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.014, -0.01).lineTo(-0.014, 0.001).threePointArc((0.006, 0.01), (0.014, -0.01)).close().sweep(cq.Workplane('XZ').spline([(0.043, 0.02), (0.019, 0.025), (-0.009, 0.024), (-0.03, 0.018), (...
4
47
0.006487
train_122efc7ab30c137f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.138, 0.142, 0.108), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.053, 0.919).lineTo(0.053, -0.862).lineTo(-0.053, -0.862).lineTo(-0.053, 0.919).lineTo(0.053, 0.919).close().extrude(0.103) result = result.edges().chamfer(0.007) result = result.un...
12
296
0.699278
train_1ba06171702d130d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.687, 0.436), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.312).sweep(cq.Workplane('YZ').spline([(-0.428, 0.014), (-0.32, -0.159), (-0.138, -0.232), (0.233, -0.092), (0.37, -0.021), (0.171, 0.15), (-0.086, 0.286), (-0.365, 0.201)])) result = ...
4
11
0.50737
train_5fdec423c02105f4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.072, -0.352, 0.063), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.475, 0.13).lineTo(0.475, 0.006).lineTo(-0.475, 0.006).lineTo(-0.475, 0.13).lineTo(0.475, 0.13).close().workplane(offset=0.088).moveTo(0.438, 0.125).lineTo(0.438, 0.011).lineTo(-0...
24
188
0.677557
train_65acc5e7b9cd242b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.309, -0.071, 0.196), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.49, 0.252).threePointArc((0.465, 0.219), (0.426, 0.231)).lineTo(0.146, 0.231).lineTo(0.146, 0.252).lineTo(-0.525, 0.252).threePointArc((-0.511, 0.327), (-0.471, 0.392)).lineTo(-0.3...
17
96
0.434842
train_f379e7e50e9d4bb4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.644, 0.644, 0.006), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.525, 1.291).lineTo(-0.525, 0.24).lineTo(0.525, 0.24).lineTo(0.525, 1.291).lineTo(-0.525, 1.291).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.653, 0)) result = res...
10
59
1.929155
train_5b4ee2ac2291c9e3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.188, -0.089, 0.06), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.164, 0.127).threePointArc((-0.141, 0.016), (0.153, -0.122)).lineTo(0.213, -0.186).threePointArc((-0.229, 0.019), (0.229, 0.186)).lineTo(0.164, 0.127).close().sweep(cq.Workplane('XZ...
4
22
0.110131
train_e591bfa2c97674dd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.959, -0.273, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.106, -0.061).lineTo(0.035, 0.061).lineTo(0, 0.122).lineTo(-0.035, 0.061).lineTo(-0.07, 0).lineTo(-0.106, 0.061).lineTo(-0.106, -0.061).lineTo(-0.035, -0.061).lineTo(0, -0.122).lineTo(0...
1
11
0.01638
train_5dcfad0145b49037
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.015, -0.273, 0.189), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.419, 0.479).threePointArc((-0.226, 0.625), (0.01, 0.677)).lineTo(0.246, 0.677).threePointArc((0.653, 0.485), (0.762, 0.049)).lineTo(0.619, -0.677).lineTo(-0.762, -0.677).lineTo(...
17
85
0.604474
train_0224d283afa66c30
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.588, 0.661, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.117).lineTo(-0.792, 0.374).lineTo(-0.974, 0.973).lineTo(-1, 1.06).lineTo(-0.77, 1.06).lineTo(-0.77, 0.973).lineTo(0.84, 0.973).lineTo(0.866, 1.06).lineTo(1, 1.06).lineTo(0.99, 1.021...
2
22
1.489315
train_9ff9c9acfee0ecc1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.623, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.636).workplane(offset=0.536).circle(0.634).workplane(offset=0.495).circle(0.942).workplane(offset=0.59).circle(0.939).loft() result = result.edges().fillet(0.379) result = result.faces('>Z...
12
67
2.738329
train_551a4c5716f2d091
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.519, 0, -0.108), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.122, 0.033).lineTo(-0.122, -0.033).lineTo(0.122, -0.033).lineTo(0.122, -0.004).lineTo(-0.108, -0.004).lineTo(-0.108, 0.013).lineTo(-0.089, 0.013).lineTo(-0.089, 0.033).lineTo(-0.122,...
5
31
0.011347
train_cc2b74e1680f5baf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.149, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.381, -0.07).lineTo(0.254, 0.149).lineTo(0.127, 0.369).lineTo(0, 0.588).lineTo(-0.127, 0.369).lineTo(-0.381, 0.369).lineTo(-0.381, -0.07).lineTo(0.127, -0.07).lineTo(0, -0.29).lineTo(0.381...
18
47
0.308185
train_52152846be5a584a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.687, 1, -0.001), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.204, -0.023).threePointArc((0.199, 0.057), (0.164, 0.13)).threePointArc((0.048, 0.209), (-0.092, 0.2)).threePointArc((-0.159, 0.155), (-0.204, 0.089)).threePointArc((-0.196, 0.085), (-...
5
51
0.002438
train_a6ba9824d390dedb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.787).workplane(offset=0.522).circle(0.613).workplane(offset=0.593).circle(0.533).workplane(offset=0.446).circle(0.633).loft() result = result.union(cq.Workplane(cq.Plane(origin=(-0.771, 0.166,...
13
59
1.043611
train_1da2832a15283abc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.294, 0.994), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.361).sweep(cq.Workplane('YZ').spline([(0.294, 0.329), (0.466, 0.459), (0.638, 0.537), (0.809, 0.563), (0.981, 0.537), (1.153, 0.459), (1.324, 0.329)])) result = result.cut(cq.Workplane(...
5
18
0.163624
train_3ca3ef9577a5e288
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.023, -0.465, -0.018), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.365, 0.199).lineTo(0.365, -0.199).lineTo(-0.166, -0.199).threePointArc((-0.365, 0), (-0.166, 0.199)).lineTo(0.365, 0.199).close().sweep(cq.Workplane('XZ').spline([(-0.362, -0.255)...
2
15
0.345712
train_6702a65d03e64186
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.063, 0.749, -0.115), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.318, 0.251).lineTo(0.02, -0.61).lineTo(0.147, -0.528).lineTo(0.143, -0.352).lineTo(0.143, -0.328).lineTo(0.265, -0.566).lineTo(0.444, -0.088).close().moveTo(-0.104, -0.17).lineTo...
6
103
0.147469
train_f35b6cb07c733735
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.241, 0, 0.681), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.157, -0.843).threePointArc((0, -1), (0.157, -0.843)).lineTo(0.156, -0.827).lineTo(0.066, 0.938).threePointArc((0.045, 0.982), (0, 1)).threePointArc((-0.045, 0.982), (-0.066, 0.938)).li...
1
9
0.276115
train_14b9ab12220bd1d8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.031, 0.131, -0.028), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.131, 0.171).lineTo(0, 0.247).lineTo(-0.131, 0.171).lineTo(-0.131, 0.02).lineTo(-0.047, -0.029).lineTo(0, -0.056).lineTo(0.047, -0.029).lineTo(0.131, 0.02).lineTo(0.131, 0.171).cl...
6
92
0.028185
train_0185776f1620867c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.19, 0.103, 0.429), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.351, 0.54).lineTo(-0.081, 0.54).lineTo(-0.081, 0.214).lineTo(-0.351, -0.108).lineTo(-0.351, -0.54).lineTo(-0.216, -0.54).lineTo(-0.216, -0.459).lineTo(-0.162, -0.405).lineTo(-0.162, ...
7
42
0.626374
train_b3bb2f985092d488
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.387), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.235, 2).extrude(0.775) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.356 * math.cos(3.888 + 2 * math.pi * 0 / 3), 0 + 0.356 * math.sin(3.888 + 2 * math.pi * 0 / 3), -0.503), normal...
14
95
1.713432
train_5c05344318a61861
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.029, 0.06, -0.373), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.943, 1.178).extrude(0.746) result = result.union(cq.Workplane(cq.Plane(origin=(0.971, 0.302, -0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.03).extrude(0.065)) result = result....
29
71
1.60073
train_22e1ff77e03600fb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.109, -0.441, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.976, 1.118).extrude(0.925) result = result.union(cq.Workplane(cq.Plane(origin=(0.147, -0.482, -0.575), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.289, 0.367).extrude(0.153)) result =...
11
50
0.912073
train_c537eceaf53f21e7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.691, -0.283, 0.242), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.102, 1.367).lineTo(0.27, 0.741).lineTo(0.076, 0.63).lineTo(-0.035, 0.436).lineTo(-0.035, 0.213).lineTo(0.076, 0.019).lineTo(0.27, -0.092).lineTo(0.493, -0.092).lineTo(0.661, -0.71...
12
148
1.46558
train_14a1472a71729b6d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.323, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.194, 0.538).threePointArc((-0.196, 0.526), (-0.196, 0.513)).lineTo(-0.196, 0.317).lineTo(-0.479, 0.035).threePointArc((-0.008, 0.163), (0.479, 0.132)).lineTo(0.293, 0.317).lineTo(0.293, ...
2
17
0.179028
train_6e49deb727c44844
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.834, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.05, 0.108).threePointArc((0, 0.158), (0.05, 0.108)).lineTo(0.05, 0.044).threePointArc((0.673, 0.43), (0.696, 1.164)).lineTo(0.64, 1.132).threePointArc((0.573, 1.15), (0.591, 1.217)).line...
11
176
2.330396
train_a4ad8626f77877b8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.232, 0.156, 0.664), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.506).sweep(cq.Workplane('XZ').spline([(0.365, -0.016), (0.356, 0.144), (0.196, 0.267), (-0.004, 0.184), (-0.087, -0.016), (-0.004, -0.217), (0.196, -0.3), (0.356, -0.176)])) result ...
5
42
0.720365
train_b418294783a34bdb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.761, 0, -0.316), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.039, -0.665).lineTo(0.239, -0.212).lineTo(-0.239, 0.665).lineTo(-0.039, -0.665).close().sweep(cq.Workplane('XZ').spline([(-0.761, -0.316), (-0.357, 0.135), (0.048, 0.286), (0.453, 0...
4
24
0.33362
train_2475e1042ef18bf2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.519, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.228).sweep(cq.Workplane('YZ').spline([(0.519, -0.05), (0.786, -0.011), (1.052, 0.383), (1.318, 0.777), (1.585, 0.816)])) result = result.edges().chamfer(0.167) result = result.cut(cq.Workpl...
6
37
0.071655
train_d0cf87aedd16fba0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.044, -1, -0.247), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.163, 0.104).lineTo(-0.163, 0.187).lineTo(0.071, 0.187).lineTo(0.163, -0.042).lineTo(0.163, -0.187).lineTo(-0.163, -0.187).lineTo(-0.163, 0.104).close().sweep(cq.Workplane('YZ').spl...
12
91
0.368007
train_afe74ae442009b21
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.262, 0.49, -0.505), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.302, 0.013).threePointArc((0.495, -0.108), (0.408, 0.102)).lineTo(-0.264, 0.045).lineTo(-0.376, 0.036).threePointArc((-0.356, 0.108), (-0.417, 0.065)).lineTo(-0.495, 0.045).threeP...
7
57
0.463907
train_b075f7e9c3e3dfbd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.004, 0.007, -0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.996, -0.849).lineTo(1.004, -0.819).lineTo(0.988, 0.834).lineTo(-0.957, 0.822).close().moveTo(-0.137, 0.388).lineTo(0.136, 0.386).lineTo(0.137, 0.329).lineTo(0.028, 0.33).lineTo(0...
22
229
0.623106
train_604a347e9229cc06
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.695, 0, -0.491), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.039).lineTo(0.039, 0).lineTo(0.019, -0.019).lineTo(0, 0).lineTo(0, -0.039).lineTo(-0.039, 0).lineTo(0, 0.039).close().sweep(cq.Workplane('XZ').spline([(-0.695, -0.582), (0.24, -0.4...
1
8
0.001956
train_cd44942c6762d126
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.747, 2).extrude(0.224) result = result.union(cq.Workplane(cq.Plane(origin=(-0.076, -0.145, 0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.082).extrude(0.079)) result = result.cut(cq.Wor...
6
25
0.687604
train_108c5b04b023388b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.286, 0, -0.978), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.009, 0.018).lineTo(-0.009, -0.018).lineTo(0.009, -0.018).lineTo(0.009, -0.019).lineTo(0.009, 0.019).lineTo(-0.009, 0.019).lineTo(-0.009, -0.019).lineTo(-0.009, 0.018).close().sweep(c...
12
73
0.012531
train_00ac4f0478ab48ea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.502), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.492, -1.009).lineTo(1.492, -1.373).lineTo(-1.492, -1.373).lineTo(-1.492, 1.373).lineTo(1.492, 1.373).lineTo(1.492, -1.009).close().workplane(offset=0.309).moveTo(1.008, -0.682).lineTo(1.00...
15
115
1.497859
train_2f817d839c443b12
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.66, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.635, 0.347).lineTo(-0.635, 0.273).lineTo(0.635, 0.273).lineTo(0.635, 0.347).lineTo(0.034, 0.347).lineTo(0.034, 0.93).lineTo(-0.04, 0.93).lineTo(-0.04, 0.347).lineTo(-0.635, 0.347).close()....
4
34
0.226461
train_d64c60216383049c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.586, -0.184, -0.35), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.632, 0.758).lineTo(0.632, 0.758).lineTo(0.632, -0.39).lineTo(-0.632, -0.39).lineTo(-0.632, 0.758).close().workplane(offset=0.24).moveTo(-0.649, 0.773).lineTo(0.649, 0.773).lineTo...
8
55
1.420027
train_81b85b31350db9bf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.465, -0.24, -0.29), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.7, 0.213).threePointArc((0.75, 0.481), (0.7, 0.749)).lineTo(-0.7, 0.749).threePointArc((-0.75, 0.481), (-0.7, 0.213)).threePointArc((0, -0.269), (0.7, 0.213)).close().workplane(off...
6
35
0.930953
train_20a004548128cff9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.294, -0.168), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.245, 0.785).lineTo(-0.387, 0.539).lineTo(-0.528, 0.294).lineTo(-0.387, 0.049).lineTo(-0.245, -0.196).lineTo(0.321, -0.196).lineTo(0.463, 0.049).threePointArc((0.528, 0.294), (0.463,...
16
91
0.594112
train_0f5f3e2d7fef0f20
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.734, -0.183, 0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.266, -0.381).lineTo(-0.266, 0.345).threePointArc((-0.23, 0.381), (-0.195, 0.345)).lineTo(-0.195, 0.327).lineTo(0.195, 0.327).lineTo(0.195, 0.345).threePointArc((0.23, 0.381), (0.2...
17
48
0.157465
train_abedd47b5df13bad
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.346, 0.568), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.618, 0).threePointArc((0.487, 0.402), (0.146, 0.65)).threePointArc((-0.276, 0.65), (-0.618, 0.402)).lineTo(-0.618, -0.402).lineTo(0.146, -0.65).threePointArc((0.487, -0.402), (0.618, ...
13
96
1.353132
train_344d9e25bdd103ce
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.029).extrude(0.574) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.287, -1.587), normal=(1, 0, 0), xDir=(0, 1, 0))).rect(0.61, 0.12).center(-0.018, -0.009).circle(0.013).extrude(1...
15
138
0.877958
train_4ff3c8cbc26e8041
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.405, 0.22, -0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.595, -0.188).lineTo(0.416, -0.188).lineTo(0.595, -0.009).lineTo(0.595, 0.025).lineTo(0.432, 0.188).lineTo(-0.595, 0.188).lineTo(-0.595, -0.188).close().transformed(offset=(0.38, 0,...
5
63
0.320434
train_e5dd39fe1b587fd0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.102, -0.063), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.433, 0).lineTo(-0.433, -0.413).lineTo(0.433, -0.413).lineTo(0.433, 0.413).lineTo(-0.433, 0.413).lineTo(-0.433, 0).close().sweep(cq.Workplane('XY').spline([(-0.973, -0.102), (-0.584, ...
4
21
1.032862
train_0707208132b9cdef
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.206, -0.195, -0.389), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.587, 1.153).extrude(0.779) result = result.union(cq.Workplane(cq.Plane(origin=(0.773, -0.192, -0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.455, 0.49).extrude(0.198)) result =...
4
64
1.490423
train_ecfcbc0a8c56f738
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.197, 0.588, 0.132), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1.132, 1.099).lineTo(-1.132, 1.099).lineTo(-1.132, 0.033).lineTo(0.644, 0.869).lineTo(1.038, 1.053).lineTo(1.132, 1.099).close().extrude(0.394) result = result.edges().fillet(0.076) ...
11
49
0.452128
train_596d8b4b6b08e979
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.568), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.181).extrude(0.965) result = result.cut(cq.Workplane(cq.Plane(origin=(0.683, -0.083, 0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.117).extrude(0.066)) result = result.cut(cq.Workpl...
11
40
2.241079
train_26e30b21bd22d640
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.327), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.707).lineTo(-0.248, 0.69).lineTo(-0.491, 0.638).lineTo(-0.755, 0.54).lineTo(-1, 0.402).lineTo(0, -0.707).lineTo(1, 0.402).lineTo(0.755, 0.54).lineTo(0.491, 0.638).lineTo(0.248, 0.69).li...
13
40
0.695637
train_422f71d768f43716
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.006, 0.029), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.131, 1.006).threePointArc((-0.522, 0.038), (0.131, -0.93)).threePointArc((0.323, -0.987), (0.522, -1.006)).lineTo(0.522, -0.828).threePointArc((0.357, -0.813), (0.197, -0.766)).lineTo...
8
75
0.077146
train_c142d032c01bb162
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.114, -0.412), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.147, 0.196).lineTo(-0.147, 0.032).lineTo(0.147, 0.032).lineTo(0.147, 0.196).lineTo(-0.147, 0.196).close().revolve(angleDegrees=360, axisStart=(-0.147, 0.196), axisEnd=(-0.147, 0.032))...
16
77
0.075711
train_93dd71ff3a8cc989
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.64, -0.494, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.194, 0.821).lineTo(-0.582, 0.821).lineTo(-0.97, 0.149).lineTo(-0.194, 0.149).lineTo(0.194, -0.523).lineTo(0.582, 0.149).lineTo(0.97, 0.821).lineTo(0.582, 1.494).lineTo(-0.194, 1.494).l...
11
111
1.741766
train_e7a1836d57965387
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.827, 0.696, 0.001), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.001, 0.96).lineTo(-0.578, 0.959).lineTo(-0.409, 0.959).lineTo(-0.046, 0.958).lineTo(0.242, 0.958).lineTo(0.647, 0.957).threePointArc((0.639, 1.025), (0.612, 1.088)).lineTo(0.37, 1...
19
136
2.949464
train_fe9b91fc8a8f5e8b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.091, -0.689, -0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.847, 0.622).extrude(0.434) result = result.union(cq.Workplane(cq.Plane(origin=(0.039, -0.315, -0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.077).extrude(0.221)) result = res...
14
130
0.246943
train_b8bec47b251ef409
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.024, -0.462), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.174, 1.952).extrude(1.129) result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.21 * math.cos(5.784 + 2 * math.pi * 0 / 3), 0.541 + 0.21 * math.sin(5.784 + 2 * math.pi * 0 / 3), 0....
16
122
1.979964
train_a8635a6ac2f0951e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.104, -0.192, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.86, 0.145).lineTo(0.86, 0.348).lineTo(0.86, 0.239).lineTo(-0.86, 0.036).lineTo(-0.86, 0.145).close().workplane(offset=0.029).moveTo(-0.649, 0.156).lineTo(0.649, 0.309).lineTo(0.649, ...
1
6
0.019245
train_33c1fdc770567555
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.018, -0.16, 0.013), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.657, 0.453).lineTo(0.657, 0.421).threePointArc((0.817, 0.261), (0.657, 0.1)).lineTo(0.657, 0.069).lineTo(0.324, 0.069).lineTo(-0.817, 0.069).lineTo(-0.817, 0.453).lineTo(0.324, 0.4...
27
191
0.669288