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_3a80ce011c92e249
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.335, 0, -0.241), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.985, 2).extrude(0.208) result = result.union(cq.Workplane(cq.Plane(origin=(-0.29, 0.094, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.878, 1.788).extrude(0.026)) result = result.u...
17
158
0.84526
train_058f0acd29401b83
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.196, -0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.366, 1.005).extrude(0.134) result = result.cut(cq.Workplane(cq.Plane(origin=(0.172, -0.313, -0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.284).extrude(0.071)) result = result.cut...
19
104
0.166569
train_ea9d0499bc9ff818
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.26, 0.315, -0.509), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.751, -0.66).lineTo(0.74, -0.625).lineTo(0.737, 0.656).lineTo(-0.72, 0.653).close().moveTo(0.115, 0.001).lineTo(0.08, 0.078).lineTo(-0.001, 0.113).lineTo(-0.078, 0.081).lineTo(-0.11...
6
34
1.00353
train_969bb556b0dcfe2c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.801), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.286).extrude(1.51) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.035, 0.148).extrude(0.663)) result = result.cut(cq.Workplane(c...
9
30
3.776902
train_6a1147e0fbbf1ae5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.78, 0.071, -0.263), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.103, -0.103).lineTo(-0.22, -0.103).lineTo(-0.161, -0.044).lineTo(-0.015, 0.103).lineTo(0.044, 0.103).lineTo(0.005, 0.063).threePointArc((0.023, 0.076), (0.044, 0.08)).threePointAr...
7
44
0.038915
train_ed21f7353dd5be17
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.048, 0.013, -0.869), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.726, 1.634).extrude(1.647) result = result.union(cq.Workplane(cq.Plane(origin=(0.483, 0.198, 0.772), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.454, 0.132).lineTo(0.426, 0.083).lin...
8
57
4.658024
train_37841e8df80681ce
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.099, -0.117, -0.784), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.89, 1.188).extrude(1.568) result = result.union(cq.Workplane(cq.Plane(origin=(-0.438, -0.179, -0.628), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.106).extrude(0.807)) result = resu...
5
22
1.896313
train_acfc9c4eb25c3594
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.068, -0.068, 0.362), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.242, -1.242).lineTo(0.552, -0.552).lineTo(-0.503, -0.775).lineTo(-0.552, -0.552).lineTo(0, 0).lineTo(-1.242, 1.242).lineTo(-1.242, -1.242).lineTo(1.242, -1.242).close().workplane(...
3
50
1.085376
train_d40af12b91746b9f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.024, -0.246, -0.101), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.525, 0.981).extrude(0.901) result = result.cut(cq.Workplane(cq.Plane(origin=(0.125, -0.182, -0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.103, 0.082).extrude(1.081)) result = r...
21
220
0.901087
train_3d99d3dc13af7f9e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.279, -0.505, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.723, 0.771).extrude(0.148) result = result.union(cq.Workplane(cq.Plane(origin=(-0.01, -0.466, -0.105), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.28, 0.854).lineTo(-0.28, -0.534)...
14
155
0.240586
train_354e12fba993610f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.016), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.084, 0.12).lineTo(1, 0.12).lineTo(1, -0.12).lineTo(-1, -0.12).lineTo(-1, 0.12).lineTo(0.084, 0.12).close().extrude(0.024) result = result.union(cq.Workplane(cq.Plane(origin=(0.374, -0.014...
13
98
0.01045
train_e9a730cea2a007f0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.116, 0.016, 0.178), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.386, -0.551).lineTo(-0.295, -0.157).threePointArc((-0.386, 0), (-0.295, 0.157)).lineTo(0.386, 0.551).lineTo(0.386, -0.551).close().workplane(offset=0.093).moveTo(0.3, -0.427).line...
28
167
0.097432
train_52f86d9c75db3d15
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.037, -0.35, -0.412), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.27, -0.65).lineTo(0.27, 1.35).lineTo(-0.27, 1.35).lineTo(-0.27, -0.65).lineTo(0.27, -0.65).close().extrude(0.576) result = result.union(cq.Workplane(cq.Plane(origin=(0.125, -0.299,...
5
40
0.677517
train_9212fc8fa20f4468
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.54, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.976).lineTo(-0.655, 1.256).threePointArc((0, 1.35), (0.655, 1.256)).lineTo(0, -0.976).close().extrude(2) result = result.edges().fillet(0.276) result = result.cut(cq.Workplane(cq.Plane...
7
34
2.511699
train_cc8bb42afadb8519
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.152, -0.096, 0.043), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.09).sweep(cq.Workplane('XZ').spline([(-0.022, 0.017), (0.065, 0.029), (0.152, 0.024), (0.239, -0.003), (0.326, -0.047)])) result = result.edges().chamfer(0.03) result = result.unio...
21
89
0.057211
train_c124a6eb880e3ab6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.195, -0.153, -0.499), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.609, 1.159).extrude(0.998) result = result.union(cq.Workplane(cq.Plane(origin=(0.788, -0.27, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.425, 0.383).extrude(0.494)) result =...
17
164
1.380622
train_a7c2ce8458bb9c52
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.094, -0.005, -0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.034, -0.007).lineTo(0.303, 1.005).lineTo(-0.824, 0.562).lineTo(-0.846, -0.621).lineTo(0.318, -0.995).close().center(-0.285, 0.408).rect(0.219, 0.288).moveTo(0.464, -0.042).lineTo...
12
96
0.454977
train_e6e6b571a413b79d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.557, 0.169, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.358, -0.076).threePointArc((0, -0.434), (0.358, -0.076)).lineTo(0.358, 0.211).threePointArc((0, 0.569), (-0.358, 0.211)).lineTo(-0.358, -0.076).close().extrude(1.04) result = result.e...
17
30
0.70296
train_78f5bee017437b62
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.517, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.518).workplane(offset=0.261).circle(0.478).workplane(offset=0.258).circle(0.439).workplane(offset=0.266).circle(0.399).workplane(offset=0.278).circle(0.36).workplane(offset=0.241).circle(0...
10
39
0.508381
train_0456c5a60658c39a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.064, 0, 0.058), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.088, 0.193).threePointArc((-0.185, 0.092), (-0.206, -0.046)).threePointArc((-0.162, -0.15), (-0.074, -0.221)).lineTo(-0.052, -0.179).threePointArc((0.023, -0.195), (0.098, -0.179)).thr...
13
66
0.180604
train_4cdeddf3fe402cad
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.212, 0.193, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.275, -0.807).lineTo(-0.275, 1.193).lineTo(0.275, 1.193).lineTo(0.275, -0.807).lineTo(-0.275, -0.807).close().extrude(0.52) result = result.edges().fillet(0.069) result = result.union(...
11
102
0.437236
train_fd57eeed61c7e931
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.135, -0.15, -0.034), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.25, 0.26).lineTo(-0.25, -0.615).threePointArc((0, -0.865), (0.25, -0.615)).lineTo(0.25, 0.26).lineTo(0.25, 1.135).lineTo(-0.25, 1.135).lineTo(-0.25, 0.26).close().extrude(0.264) ...
21
91
0.253186
train_79e3f71181b3df3a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.351, 0.319, -0.025), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.77, 0.061).lineTo(0.77, 0.362).lineTo(-1.025, 0.362).threePointArc((-0.896, 0.482), (-0.82, 0.641)).lineTo(1.025, 0.641).lineTo(1.025, 0.061).lineTo(0.77, 0.061).close().extrude(0...
3
39
0.331937
train_2afced438d8b49f4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.44, 0, -0.351), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.119, 1.776).extrude(0.702) result = result.union(cq.Workplane(cq.Plane(origin=(0.276, 0.2, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.381, 0.399).extrude(0.228)) result = result.u...
9
67
1.266574
train_407118e6a8df50d7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.425, -0.272), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.306, 0.077).lineTo(0.306, -0.194).lineTo(-0.083, -0.194).lineTo(-0.083, 0.077).lineTo(-0.306, 0.077).lineTo(-0.306, 0.152).lineTo(-0.083, 0.152).lineTo(-0.083, 0.194).lineTo(0.306, 0...
7
43
0.166819
train_43feadb2bb1ed0cc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.057, 0.061, -0.376), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.057, 0.149).lineTo(0.771, 0.374).lineTo(0.047, 0.479).lineTo(-0.114, 0.581).lineTo(-0.474, 0.438).lineTo(-0.581, -0.028).lineTo(-0.943, -0.039).lineTo(0.502, -0.28).close().moveTo...
11
120
0.647995
train_a906e5ff2a074291
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.883, 0, 0.43), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.062, -0.072).threePointArc((0, -0.096), (0.062, -0.072)).threePointArc((0.068, -0.068), (0.072, -0.062)).threePointArc((0.096, 0), (0.072, 0.062)).lineTo(0.1, 0.09).threePointArc((0.11...
2
19
0.059391
train_04bd84ed342aaebe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.716, 0, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.568, 0.568).extrude(0.662) result = result.union(cq.Workplane(cq.Plane(origin=(0.205, 0, -0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.59, 0.12).extrude(0.219)) result = result.uni...
9
52
0.316656
train_0651805926c8dc9d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.144, 0.061, 0.077), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.248, -0.321).threePointArc((0.453, 0.321), (-0.453, 0.035)).threePointArc((-0.379, -0.039), (-0.319, -0.125)).threePointArc((-0.275, -0.22), (-0.248, -0.321)).close().extrude(0.60...
7
58
0.950681
train_0171a44a5579b453
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.473, 0, -0.67), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.053, 1.171).extrude(1.341) result = result.union(cq.Workplane(cq.Plane(origin=(-0.344, 0, -0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.336).extrude(0.57)) result = result.union(cq...
10
41
1.628995
train_937ba5fa9de7b137
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.536, -0.593, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.055).lineTo(-1, 1.017).lineTo(1, 1.017).lineTo(1, 0.055).lineTo(-1, 0.055).close().extrude(1.186) result = result.edges().fillet(0.326) result = result.cut(cq.Workplane(cq.Plane(o...
7
48
1.882841
train_15dbddb74bb7d93d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.219, -0.035, 0.98), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.002, -0.21).lineTo(-0.21, -0.002).threePointArc((0.21, 0.21), (-0.002, -0.21)).close().sweep(cq.Workplane('XZ').spline([(0.219, 0.406), (0.437, 0.629), (0.654, 0.74), (0.872, 0.74)...
3
4
0.179957
train_23c830e85196da9c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.48, -0.067, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.703, 0.635).threePointArc((-0.995, 0.342), (-0.703, 0.05)).lineTo(0.703, 0.05).threePointArc((0.995, 0.342), (0.703, 0.635)).lineTo(-0.703, 0.635).close().extrude(1.48) result = resul...
13
56
1.500942
train_ef4e64a6f89b2c5e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.229, 1, -0.404), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.255, 0.283).lineTo(0.255, -0.207).lineTo(0.311, -0.207).lineTo(0.311, -0.283).lineTo(0.122, -0.283).lineTo(0.122, -0.207).lineTo(0.179, -0.207).lineTo(0.179, -0.037).lineTo(-0.236, -0...
6
43
0.222579
train_7fb707267111fcc8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.45), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.779, 2).extrude(0.706) result = result.union(cq.Workplane(cq.Plane(origin=(-0.712 + 0.356, -0.8 + 0.16, 0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.165, -0.055).lineTo(0.165, 0.055).l...
24
206
2.19998
train_9b855a6a24001c8e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.526, 0.183, 0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.948, 1.069).extrude(0.136) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.46, -0.013, 0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.056).extrude(0.029)) result = result.c...
16
106
0.149405
train_f1d72694a5081591
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.7), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.345).extrude(1.4) result = result.cut(cq.Workplane(cq.Plane(origin=(0.303, 0.529, 0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.151).extrude(0.379)) result = result.edges().chamfer(0.0...
16
135
2.221029
train_77e3be37662d2df3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.049, 0, -0.173), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.235, 1.017).lineTo(-0.235, 0.222).lineTo(0.235, 0.222).lineTo(0.235, 1.017).lineTo(-0.235, 1.017).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.559, 0)) result = res...
5
41
0.760045
train_51644b446d91e6c9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.184, -0.354, 0.152), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.764, 0.074).lineTo(-0.764, 0.585).lineTo(-0.597, 0.585).lineTo(-0.597, 0.123).lineTo(-0.564, 0.123).lineTo(-0.564, 0.585).lineTo(0.04, 0.585).lineTo(0.04, 0.123).lineTo(0.115, 0....
2
20
0.093647
train_3a3a7380a2bcfee5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.143, 0.025, -0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.408, 0.055).extrude(0.084) result = result.union(cq.Workplane(cq.Plane(origin=(0.151, 0.041, -0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.214, 0.011).extrude(0.036)) result = ...
7
32
0.005635
train_d218f4848ba3bcb5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.381, 0, 0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.343, 0.385).extrude(0.28) result = result.union(cq.Workplane(cq.Plane(origin=(0.331, 0.126, 0.421), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.015).extrude(0.579)) result = result.union(c...
5
91
0.043394
train_85263ecbc42f4561
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.193, 0.475, 0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.278, 0.233).extrude(0.304) result = result.union(cq.Workplane(cq.Plane(origin=(0.149, 0.476, -0.054), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.024, 0.019).extrude(0.552)) result = re...
5
67
0.096858
train_f202050a389dd598
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.049, 0.073), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.547, -0.293).lineTo(-0.547, 1.066).lineTo(0.547, -0.293).lineTo(-0.547, -0.293).close().workplane(offset=0.36).moveTo(-0.529, -0.269).lineTo(-0.529, 1.042).lineTo(0.529, -0.269).line...
22
88
0.71358
train_92b16e3b55f8cfc0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.175, 0.645, -0.157), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.655, 1.175).lineTo(-0.655, 0.738).lineTo(0.655, -1.009).lineTo(0.655, 1.175).lineTo(-0.655, 1.175).close().extrude(1.29) result = result.edges().fillet(0.091) result = result.uni...
9
41
1.926693
train_96bffab9b438c64b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.395, 0.192, 0.504), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.504, 0.041).lineTo(-0.504, 0.343).lineTo(0.504, 0.343).lineTo(0.504, 0.041).lineTo(-0.504, 0.041).close().revolve(angleDegrees=180, axisStart=(-0.504, 0.041), axisEnd=(-0.504, 0.34...
8
55
0.434628
train_db6aa9dcf8f83791
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.425, 0.168, -0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.151, 0.146).extrude(0.126) result = result.union(cq.Workplane(cq.Plane(origin=(-0.559, 0.133, -0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.883, 0.023).extrude(0.079)) result = r...
7
69
0.300075
train_4a17a21056479db5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.556), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.303, -0.676).lineTo(-0.909, -0.676).lineTo(-0.909, -0.312).lineTo(0.303, -0.312).lineTo(0.303, 0.676).lineTo(0.909, 0.676).lineTo(0.909, -0.676).lineTo(0.303, -0.676).close().workplane(off...
2
41
1.556931
train_ac2cb23e27d9ce1d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.559, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.305).workplane(offset=0.339).circle(0.313).workplane(offset=0.385).circle(0.331).workplane(offset=0.426).circle(0.284).workplane(offset=0.43).circle(0.336).workplane(offset=0.419).circle(...
10
26
1.169432
train_fd5c635bdc462749
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.001, 0.264, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.248, 0.128).threePointArc((-0.284, 0.077), (-0.312, 0.021)).threePointArc((-0.346, -0.102), (-0.345, -0.23)).threePointArc((-0.241, -0.277), (-0.129, -0.296)).threePointArc((-0.106, -...
3
24
0.130081
train_079809930001d2fb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.495), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.665, 1.192).extrude(1.495) result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.284 * math.cos(4.344 + 2 * math.pi * 0 / 4), 0 + 0.284 * math.sin(4.344 + 2 * math.pi * 0 / 4), -1), norm...
19
28
2.646062
train_b0f8b647c9b552df
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.696, -0.635, 0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.759, 1.072).threePointArc((-0.84, 0.634), (-0.759, 0.197)).lineTo(0.402, 0.197).threePointArc((0.84, 0.634), (0.402, 1.072)).lineTo(-0.759, 1.072).close().workplane(offset=0.27)....
20
38
1.867539
train_6ab39bdaef6ca663
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.069, 0, -0.019), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.002, -0.145).lineTo(-0.044, -0.181).lineTo(-0.014, -0.17).lineTo(-0.002, -0.165).lineTo(0.013, -0.159).lineTo(0.046, -0.145).lineTo(0.209, -0.145).lineTo(0.132, -0.111).lineTo(0.069...
4
26
0.090396
train_02231ea85d24164a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.525, -0.141, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.603, -0.153).lineTo(0.603, -0.153).lineTo(0.603, 1.203).lineTo(-0.603, 1.203).lineTo(-0.603, -0.153).close().workplane(offset=0.193).moveTo(-0.724, -0.289).lineTo(0.724, -0.289).line...
22
99
1.301884
train_75ba2c66c5db25e4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.69, -0.009), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.25, 0.69).lineTo(0.25, 0.69).lineTo(0.25, -0.31).lineTo(-0.25, -0.31).lineTo(0.016, -0.043).lineTo(0.016, 0.424).lineTo(-0.25, 0.69).close().revolve(angleDegrees=360, axisStart=(-0.25,...
10
35
0.9417
train_630d72f2462a818b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.516, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.736, 1.339).threePointArc((-0.923, 1.033), (-0.988, 0.681)).threePointArc((0, -0.307), (0.988, 0.681)).lineTo(0.988, 1.339).lineTo(0.736, 1.339).lineTo(0, 1.339).lineTo(-0.736, 1.339).clo...
4
48
5.546795
train_17496e1cb6ac1c38
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.095, 1.176).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.164, 0.252, -0.759), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.357, 0.706).extrude(1.219)) result = result.cut(cq.Workp...
11
62
1.547005
train_f8819094e96220fb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.563, 0.947), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.053, 0.025).lineTo(-0.053, -0.035).lineTo(0.053, -0.035).lineTo(0.053, -0.009).lineTo(0, -0.009).lineTo(0, 0.035).lineTo(-0.026, 0.035).lineTo(-0.026, -0.009).lineTo(-0.026, 0.025).l...
7
81
0.007584
train_7850370f3073f1dc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.833, 0, 0.259), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.272, 0.192).threePointArc((0.269, 0.207), (0.259, 0.218)).threePointArc((0, 0.308), (-0.259, 0.218)).threePointArc((-0.269, 0.207), (-0.272, 0.192)).lineTo(-0.272, -0.192).threePointA...
5
23
0.508851
train_67a1bc6a783289b6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.884).workplane(offset=0.684).circle(0.778).workplane(offset=0.752).circle(0.84).workplane(offset=0.564).circle(1.068).loft() result = result.edges().fillet(0.225) result = result.cut(cq.Workpl...
16
250
3.773102
train_510b028330ce4268
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.151, -0.281, -0.334), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.327, -0.391).threePointArc((0, -0.719), (-0.327, -0.391)).lineTo(-0.327, 0.808).threePointArc((0, 1.135), (0.327, 0.808)).lineTo(0.327, -0.391).close().extrude(0.637) result = re...
18
122
0.659113
train_38b9f2f9116b50f1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.069, -0.242), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.639).extrude(0.483) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.14, 0.338, 0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.4, 0.189).extrude(0.035)) result = result.cut(cq...
14
141
1.511132
train_7925eacdc173ab4b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.097, -0.509, -0.306), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.559, 2.226).threePointArc((-0.271, 0.451), (0.559, -1.142)).lineTo(-0.559, 2.226).close().extrude(0.537) result = result.edges().fillet(0.102) result = result.union(cq.Workplane(...
10
22
0.258908
train_84dcb6754f17184b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.425, -0.444, -0.102), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.839, -0.093).threePointArc((0.898, 0.229), (0.839, 0.55)).threePointArc((0, 1.127), (-0.839, 0.55)).threePointArc((-0.898, 0.229), (-0.839, -0.093)).lineTo(0.839, -0.093).close()...
6
43
1.714493
train_540f2cfb0d8862f1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.67, 0.207, -0.05), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.051, 0.075).lineTo(-0.051, -0.075).lineTo(-0.013, -0.075).lineTo(-0.013, 0.068).lineTo(0.051, 0.068).lineTo(0.051, 0.075).lineTo(-0.051, 0.075).close().sweep(cq.Workplane('XY').spli...
6
29
0.042427
train_f0f79c004c35bc05
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.867, 0.776, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.362, 1.868).lineTo(-1, 2.313).threePointArc((-0.723, 2.559), (-0.362, 2.647)).threePointArc((0, 2.559), (0.277, 2.313)).lineTo(0.756, 2.647).threePointArc((0.94, 2.277), (1, 1.868)).t...
6
34
0.87015
train_d64fd79b393ae1ec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.71).extrude(0.132) result = result.union(cq.Workplane(cq.Plane(origin=(0.091, 0.38, 0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.084, 0.109).extrude(0.032)) result = result.cut(cq.Wor...
6
25
0.411452
train_7121ad160e51f4d4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.018, -0.011, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.745, 0.646).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(0.372, 0.051, -0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.019).extrude(0.258)) result = result.union...
13
90
0.876328
train_5ce92939bfa1f5b7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, -0.024, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.999, 0.009).lineTo(0.519, 0.859).lineTo(-0.475, 0.886).lineTo(-1.001, -0.009).lineTo(-0.525, -0.838).lineTo(0.491, -0.835).close().center(-0.278, 0.3).rect(0.195, 0.312).moveTo(0....
10
76
0.733422
train_4ed4c3dc97b5376c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.447, -0.713, -0.012), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.58, -0.287).threePointArc((0.718, -0.166), (0.87, -0.064)).lineTo(-0.155, 1.713).threePointArc((-0.531, 1.461), (-0.87, 1.164)).lineTo(0.58, -0.287).close().revolve(angleDegrees=...
8
49
0.561856
train_79d3033eec483987
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.275).workplane(offset=0.672).circle(0.393).workplane(offset=0.73).circle(0.408).workplane(offset=0.598).circle(0.279).loft() result = result.cut(cq.Workplane(cq.Plane(origin=(-0.801 + 0.4, 0.3...
7
9
0.88254
train_e1df828558449708
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.652, -0.925, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.277, 0.81).threePointArc((0.569, 0.432), (-0.277, 0.054)).lineTo(-0.446, 0.054).threePointArc((-0.404, 0.182), (-0.532, 0.224)).lineTo(-0.569, 0.224).threePointArc((-0.546, 0.246), (...
19
137
0.90938
train_dcb33a235c78fdbb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.107, -0.87), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.583, 1.787).extrude(1.518) result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.107, 0.637), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.559).extrude(0.233)) result = result.edges()...
7
49
1.290789
train_f9c587effbff73b9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.149, 0.228, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.752, -0.01).lineTo(0.528, 0.506).lineTo(-0.014, 0.774).lineTo(-0.529, 0.549).lineTo(-0.749, 0).lineTo(-0.519, -0.504).lineTo(0, -0.773).lineTo(0.544, -0.513).close().moveTo(-0.117...
12
318
0.731736
train_6656f7d331a1cbfc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.643), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.257, 0.164).extrude(0.328) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.339), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.043).extrude(0.258)) result = result.union(cq.Workpl...
10
60
0.022426
train_b0f96d80295e9f8a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.288, 0.589, -0.075), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.434).workplane(offset=0.201).circle(0.527).workplane(offset=0.187).circle(0.436).workplane(offset=0.181).circle(0.566).workplane(offset=0.174).circle(0.576).workplane(offset=0.197...
12
95
0.934451
train_8ac1ef0b5f8a8e1b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.5, -0.586, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.009, -0.109).lineTo(-0.187, -0.384).lineTo(-0.231, -0.355).lineTo(-0.274, -0.327).lineTo(-0.096, -0.052).lineTo(0.082, 0.223).lineTo(0.187, 0.384).lineTo(0.231, 0.355).lineTo(0.274, 0....
1
12
0.164379
train_5f428ee0b665a706
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.13, -0.372, -0.388), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.902, 1.255).extrude(1.061) result = result.union(cq.Workplane(cq.Plane(origin=(-0.234, -0.502, -0.673), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.231, 0.566).extrude(0.293)) result ...
21
222
0.883833
train_b2d5ab83820f55c7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.214, -0.342, -0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.133, 0.907).extrude(0.117) result = result.union(cq.Workplane(cq.Plane(origin=(-0.127, -0.387, -0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.732, 0.635).extrude(0.139)) result...
16
69
0.177944
train_361fad8da23da68f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.604, -0.491), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.228, 0.395).lineTo(0.228, -0.196).lineTo(-0.547, -0.196).lineTo(-0.547, -0.395).lineTo(0.547, -0.395).lineTo(0.547, 0.395).lineTo(0.228, 0.395).close().sweep(cq.Workplane('YZ').splin...
13
18
0.63234
train_0386a52beea10fdf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.312, -0.366, 0.225), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.259, 1.312).threePointArc((0.125, 1.294), (0, 1.243)).threePointArc((-0.189, 1.053), (-0.259, 0.795)).lineTo(-0.259, -0.24).threePointArc((-0.189, -0.499), (0, -0.688)).lineTo(0, ...
11
89
0.398842
train_15b7e8cf7d8fb96b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.812, -0.008, -0.525), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.188, 0.018).lineTo(0.045, 0.018).lineTo(0.045, -0.187).lineTo(0.1, 0.018).threePointArc((0.188, 0.14), (0.045, 0.187)).lineTo(-0.188, 0.187).lineTo(-0.188, 0.018).close().transf...
3
8
0.038827
train_3bde1539a4711b2f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.026, 0.118, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.377, 0.153).lineTo(-1, -0.018).lineTo(-0.377, -0.153).lineTo(0.388, -0.153).lineTo(1, -0.018).lineTo(0.388, 0.153).lineTo(-0.377, 0.153).close().sweep(cq.Workplane('XY').spline([(-0.32...
5
29
0.470184
train_147ba061bc4c7538
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.811, 1.186).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.141, 0.345, -0.723), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.366, 0.523).extrude(0.519)) result = result.edges().fill...
5
63
1.717926
train_d40cc00606380c2d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.294, -0.731), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.137, 0.294).lineTo(-0.137, 0.294).lineTo(-0.137, 0.154).lineTo(-0.275, -0.259).lineTo(0.275, -0.259).lineTo(0.137, 0.154).lineTo(0.137, 0.294).close().revolve(angleDegrees=270, axisSta...
3
43
0.435741
train_477bbef82076142b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.724), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.86, 2).extrude(1.448) result = result.cut(cq.Workplane(cq.Plane(origin=(0.119, 0.798, 0.222), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.449, 0.425).extrude(0.226)) result = result.cut(cq.Wor...
14
46
2.261637
train_1e1cb3f573aeee8e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1.316, 0.445, 0.345), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.345, 1.293).lineTo(-0.345, 0.534).lineTo(0.345, 0.534).lineTo(0.345, 1.821).lineTo(-0.345, 1.821).lineTo(-0.345, 1.293).close().revolve(angleDegrees=180, axisStart=(-0.345, 1.293)...
18
48
0.869427
train_e030be1f4ad79d6c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.252, -1, 0.123), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.66, -0.319).lineTo(0, -0.319).lineTo(0, 0.06).lineTo(0.66, 0.72).lineTo(0.52, 0.86).lineTo(0, 0.34).lineTo(-0.66, -0.319).close().extrude(1.442) result = result.edges().fillet(0.088)...
12
93
0.322955
train_b59ee30eebeea10b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.002, 0.264, -0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.803, 0.732).lineTo(0.808, 0.736).lineTo(0.834, 0.366).lineTo(0.205, 0.399).lineTo(0.176, -0.734).lineTo(-0.187, -0.728).lineTo(-0.205, 0.363).lineTo(-0.837, 0.388).close().moveTo(...
9
89
0.565711
train_ec6b0bd4c0dad57b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.275, -0.167, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.725, 0.006).lineTo(0.385, 0.613).lineTo(-0.344, 0.599).lineTo(-0.725, -0.02).lineTo(-0.384, -0.637).lineTo(0.337, -0.63).close().moveTo(-0.583, -0.194).lineTo(-0.045, -0.193).lineT...
13
165
0.651508
train_b54a11c642485793
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.908, -0.032, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.092).transformed(offset=(0.245, -0.314, 0.155), rotate=(0, 0, 45)).circle(0.084).transformed(offset=(0.491, -0.314, 0.142), rotate=(0, 0, 20)).circle(0.195).transformed(offset=(0...
5
22
0.154873
train_7c68aefd61cf9df6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.336, -0.525, 0.054), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.206, 0.065).lineTo(-0.209, 0.064).lineTo(-0.406, -0.059).threePointArc((-0.416, -0.126), (-0.406, -0.192)).lineTo(-0.226, -0.168).lineTo(-0.039, -0.144).lineTo(0.087, -0.127).li...
7
101
0.186246
train_ffed30b3c0b57209
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.422, -0.156, -0.5), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.16).lineTo(0.5, 0.067).lineTo(-0.5, 0.067).lineTo(-0.5, 0.171).lineTo(0.5, 0.171).lineTo(0.5, 0.16).close().revolve(angleDegrees=180, axisStart=(0.5, 0.16), axisEnd=(0.5, 0.0...
9
66
0.111065
train_6cd6146277eaa018
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.117, 0.091, -0.212), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.883, 1.102).extrude(0.328) result = result.cut(cq.Workplane(cq.Plane(origin=(0.157, 0.091, -0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.066).extrude(0.136)) result = result....
30
214
0.378634
train_50c5082b8a290445
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.666, 0.168, 0.44), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.22, 0.007).threePointArc((0.192, 0.127), (0.116, 0.224)).lineTo(0.333, 0.08).lineTo(0.261, 0.007).lineTo(0.334, -0.066).lineTo(0.096, -0.224).lineTo(-0.21, -0.224).threePointArc((-0...
13
40
0.290529
train_f381dc7d7b570b24
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.191, -0.216, 0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.139, 1.125).threePointArc((-0.193, 1.16), (-0.227, 1.106)).lineTo(0.134, -0.52).lineTo(0.181, -0.73).lineTo(0.227, -0.52).lineTo(0.181, -0.311).lineTo(-0.139, 1.125).close().work...
6
48
0.047115
train_8e4f7b9b237dc4f5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.443, 1.785).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.164, 0.369, -0.8), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.223, 1.101).extrude(1.009)) result = result.edges().chamfe...
5
231
4.562765
train_2354e11ae584850d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -1.136, -0.514), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.881, 0.137).threePointArc((0.965, 0.171), (1, 0.256)).lineTo(1, 2.017).threePointArc((0.965, 2.101), (0.881, 2.136)).lineTo(-0.881, 2.136).threePointArc((-0.965, 2.101), (-1, 2.017))....
17
109
3.040176
train_8a36cda8ddd72000
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.43, -0.521, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.056, 0.072).threePointArc((0, 0.97), (1.056, 0.072)).lineTo(-1.056, 0.072).close().extrude(0.861) result = result.edges().chamfer(0.166) result = result.edges().fillet(0.126)
3
50
1.077771
train_14be1e8ec7471d06
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.396), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.9, 0.5).lineTo(0.9, 1).lineTo(-0.9, 1).lineTo(-0.9, -1).lineTo(0.9, -1).lineTo(0.9, 0.5).close().extrude(0.681) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2665, -0.613 + 0....
8
8
2.457403
train_1278f30cb5b9af73
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.667, 0.336, 0.364), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.107, -0.333).lineTo(-0.409, 0.396).lineTo(-0.107, 1.124).lineTo(0.006, 0.85).lineTo(0.089, 0.651).lineTo(0.195, 0.396).lineTo(0.038, 0.396).lineTo(0.035, 0.378).lineTo(0.18, 0.361...
8
48
0.391328