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_1e8644fe896979d1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.459), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.128).extrude(0.857) result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.056, 0.395), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.508).extrude(0.083)) result = result.union(cq.Workp...
14
75
1.670947
train_4ffa2f12956bbe5b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.232, -0.099, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.004, 0.5).lineTo(0.201, 0.296).lineTo(0.539, 0.296).lineTo(0.498, 0).lineTo(0.677, -0.179).lineTo(1, -0.5).lineTo(-1, -0.5).lineTo(-0.874, -0.374).lineTo(-0.793, 0.041).lineTo(-0.644,...
4
22
0.28193
train_40d807ff0442a5ce
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.248, 0.25, -0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.504, 1.466).extrude(0.805) result = result.union(cq.Workplane(cq.Plane(origin=(-0.606, -0.016, -0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.231, 0.64).extrude(0.262)) result = r...
17
95
1.151004
train_c84fda348bdeefe1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.014, 0.193, -0.005), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.225, -1.028).lineTo(-0.225, -1.028).lineTo(0.225, 1.063).lineTo(0.225, -1.028).close().workplane(offset=0.062).moveTo(0.191, -0.87).lineTo(-0.191, -0.87).lineTo(0.191, 0.905).lin...
17
76
0.075438
train_64602078fc9c4e78
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.106, 0.354, -0.393), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.789, 1.132).extrude(1.21) result = result.union(cq.Workplane(cq.Plane(origin=(0.892, -0.034, 0.386), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.215, 0.053).extrude(0.066)) result = r...
5
32
2.486149
train_f27769f73ce8d901
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.084, -0.203, -0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.341, 1.594).extrude(1.096) result = result.faces('>Z').shell(-0.055) result = result.union(cq.Workplane(cq.Plane(origin=(0.246, -0.357, -0.42), normal=(-1, 0, 0), xDir=(0, 0, 1)))....
15
41
0.60921
train_46f8d120061ec373
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.957, 0.543).threePointArc((-0.19, 0.225), (0.127, -0.543)).lineTo(0.127, 0.032).threePointArc((0.164, 0.123), (0.256, 0.16)).lineTo(0.83, 0.16).threePointArc((0.92, 0.197), (0.957, 0.287)).li...
5
52
0.67277
train_c44408f51f998ca9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.779, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.968).workplane(offset=0.703).circle(0.906).workplane(offset=0.856).circle(1.045).loft() result = result.edges().fillet(0.17) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.127, -0.06...
8
33
3.158078
train_92aae7dc511229f2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.189, 0.311, -0.548), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.131, 1.377).extrude(1.333) result = result.faces('>Z').shell(-0.093) result = result.union(cq.Workplane(cq.Plane(origin=(-0.19, 0.786, -0.735), normal=(0, 0, 1), xDir=(1, 0, 0))).re...
21
71
0.807598
train_5da3b5787bc59f2b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.077, 0.66, -0.57), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.428, 0.68).extrude(0.628) result = result.union(cq.Workplane(cq.Plane(origin=(-0.336, 0.66, -0.396), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.489, 0.342).extrude(0.278)) result = resu...
7
46
0.44835
train_6297b51252497bfd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.155, 0.056, -0.422), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.315, -0.525).lineTo(-0.315, 1.193).lineTo(0.315, -0.525).lineTo(-0.315, -0.525).close().extrude(0.604) result = result.edges().fillet(0.053) result = result.union(cq.Workplane(cq....
19
161
0.378076
train_73df67db3e80b594
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.774, 0, -0.283), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.14).workplane(offset=0.329).circle(0.154).workplane(offset=0.283).circle(0.17).workplane(offset=0.262).circle(0.131).workplane(offset=0.246).circle(0.148).workplane(offset=0.288).circ...
28
165
0.304186
train_aacd70956aed404a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.688).extrude(0.058) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.4, -0.675 + 0.169, -0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.06, 0.079).lineTo(0.06, 0.095).lineT...
9
86
0.184664
train_365701322754b87b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.436, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.4, 0.872).lineTo(1, 0.872).lineTo(1, 0.072).lineTo(-1, 0.072).lineTo(-1, 0.872).lineTo(-0.4, 0.872).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.524, 0)) result = result...
20
120
1.532263
train_9f7ed7fd3a6ab802
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.515, -0.069, -0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.516, 0.373).extrude(0.131) result = result.union(cq.Workplane(cq.Plane(origin=(-0.643, -0.1, 0.128), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.286, 0.357).lineTo(-0.292, 0.357)...
9
58
0.056464
train_df1e5f14072f570e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.031, -0.035, -0.185), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.42, 0.014).lineTo(0.815, 0.014).lineTo(0.815, 0.102).lineTo(-0.815, 0.102).lineTo(-0.815, 0.014).lineTo(-0.42, 0.014).close().revolve(angleDegrees=360, axisStart=(-0.42, 0.014),...
19
116
0.02758
train_ffcd07052e434ca3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.06, -0.775, -0.243), normal=(0, 1, 0), xDir=(0, 0, 1))).threePointArc((0, 0.273), (0.891, -0.152)).close().extrude(1.55) result = result.edges().fillet(0.095) result = result.union(cq.Workplane(cq.Plane(origin=(-0.123, -0.286, 0.498), normal=(0...
10
45
0.870746
train_32a599b83082decc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.43), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.792, 2).extrude(0.86) result = result.cut(cq.Workplane(cq.Plane(origin=(0.062, 0.507, -0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.839, 1.038).extrude(0.188)) result = result.cut(cq.Wor...
10
55
2.299815
train_471a56cd8f685b0f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.141, -0.245, -0.059), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.112, 0.859).lineTo(-0.112, -0.847).lineTo(0.112, -0.847).lineTo(0.112, 0.859).lineTo(-0.112, 0.859).close().extrude(0.254) result = result.edges().fillet(0.037) result = result...
5
106
0.169977
train_d65fbe8a571f44e9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.778).extrude(0.641) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.237, 0.244, 0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.382).extrude(0.212)) result = result.cut(cq.Workpla...
6
37
1.694677
train_8ff6629d54084e05
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.504), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.445, 1.826).extrude(0.43) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.083 * math.cos(1.05 + 2 * math.pi * 0 / 5), 0.215 + 0.083 * math.sin(1.05 + 2 * math.pi * 0 / 5), -1.691), n...
33
63
1.89528
train_ed6300d85d174801
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.638, 0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.009, 0.423).extrude(0.828) result = result.union(cq.Workplane(cq.Plane(origin=(0.019, 0.34, 0.579), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.579, 0.194).extrude(0.272)) result = result.u...
5
34
1.12107
train_3a4bb66e68ba0486
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0.155, -0.403), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.026, -0.18).lineTo(0.283, -0.18).lineTo(0.334, -0.129).lineTo(0.094, 0.112).lineTo(0.026, 0.18).lineTo(-0.077, 0.18).lineTo(-0.334, -0.077).lineTo(-0.283, -0.129).lineTo(-0.232, -0.18)...
4
42
0.243203
train_43e8f4b3978bdc98
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.009, -0.216, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.138).lineTo(-1, 0.586).lineTo(1, 0.586).lineTo(1, 0.138).lineTo(-1, 0.138).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.34, 0)) result = result.edges().chamfer(0....
4
58
1.312653
train_9bd94e5d58167050
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.449, -0.233, -0.04), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.333, 0.249).lineTo(-0.333, -0.249).lineTo(0.319, -0.249).lineTo(0.319, -0.235).lineTo(-0.319, -0.235).lineTo(-0.319, 0.235).lineTo(0.333, 0.235).lineTo(0.333, 0.249).lineTo(-0.33...
5
91
0.153062
train_e305761f88efd109
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.543, 1.082, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 1.082).threePointArc((0.866, 1.582), (0.5, 1.948)).threePointArc((0, 2.082), (-0.5, 1.948)).threePointArc((-1, 1.082), (-0.5, 0.216)).threePointArc((0, 0.082), (0.5, 0.216)).threePoin...
19
93
1.62931
train_0b6d3c299a3a3157
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.124, -0.078, -0.337), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.752, 1.193).extrude(0.674) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.353 + 0.159, 0.259, -1.475), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.046, 0.077).lineTo(-0.053, ...
13
55
1.394503
train_987069d7fae0d138
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.957, 0, 0.257), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.594).sweep(cq.Workplane('XZ').spline([(-0.178, -0.755), (-0.305, -0.496), (-0.606, -0.338), (-0.973, -0.339)])) result = result.edges().chamfer(0.171) result = result.cut(cq.Workplane...
15
56
1.910959
train_29171d8f7a8b4e6b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.183, -0.082, 0.14), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.654, 0.245).lineTo(-0.654, 0.082).lineTo(-0.817, 0.082).lineTo(-0.817, -0.082).lineTo(-0.654, -0.082).lineTo(-0.654, -0.245).lineTo(0.817, -0.245).lineTo(0.817, -0.082).lineTo(0....
26
306
0.067764
train_df1d9328870b0275
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.013, -0.063, -0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.37, 0.392).extrude(0.202) result = result.union(cq.Workplane(cq.Plane(origin=(0.013, 0.13, 0.015), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.123, 0.245).lineTo(-0.123, -0.043).l...
26
320
0.079005
train_aa7364553fe0d9b8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.259, -0.529), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.113, 0.014).threePointArc((-0.007, 0.055), (0.101, 0.02)).lineTo(0.298, 0.349).threePointArc((0, 0.48), (-0.298, 0.349)).lineTo(-0.113, 0.014).close().extrude(0.605) result = result...
15
287
0.327903
train_2e14392742f2f849
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.327, -0.379, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.267).threePointArc((0, -0.267), (-1, 0.267)).lineTo(1, 0.267).close().sweep(cq.Workplane('XY').spline([(0.398, -0.379), (0.544, -0.094), (0.439, 0.205), (0.142, 0.35), (-0.177, 0....
1
4
0.662128
train_20d0e8cb41012688
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.099, -0.402), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1.058).lineTo(0.327, -0.45).lineTo(1.006, -0.327).lineTo(0.529, 0.172).lineTo(0.622, 0.856).lineTo(0, 0.556).lineTo(-0.622, 0.856).lineTo(-0.529, 0.172).lineTo(-1.006, -0.327).lineTo...
15
287
0.648107
train_52d29af6083fd650
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.032, -0.008, -0.804), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.004).lineTo(-0.051, 0.004).lineTo(-0.051, 0.055).lineTo(-0.102, 0.055).lineTo(-0.102, 0.107).lineTo(0, 0.107).lineTo(0.051, 0.055).lineTo(0.051, 0.107).lineTo(0.102, 0.107).li...
14
85
0.017707
train_19701f335a6be2bf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.003, -0.15, -0.26), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.897, 0.941).extrude(0.014) result = result.union(cq.Workplane(cq.Plane(origin=(0.045, -0.142, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.368).extrude(0.01)) result = result...
10
95
0.727371
train_792d3913b48bf9d5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.316, -0.218, -0.643), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.367, 1.222).extrude(0.945) result = result.cut(cq.Workplane(cq.Plane(origin=(0.093, -0.708, -0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.616, 0.253).extrude(0.16)) result = re...
18
144
1.173186
train_0647ab0c6d6c4a2e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.236, -0.113, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.764, 0.146).lineTo(-0.764, 0.024).lineTo(0.764, 0.024).lineTo(0.764, 0.146).lineTo(0.688, 0.223).lineTo(0.611, 0.146).lineTo(0.535, 0.223).lineTo(0.458, 0.146).lineTo(0.306, 0.14...
7
127
0.064849
train_4cc69dafb407f9b0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.647, 0, -0.352), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.444).sweep(cq.Workplane('XZ').spline([(-0.647, -0.352), (-0.397, -0.028), (-0.148, 0.166), (0.102, 0.231), (0.352, 0.166), (0.602, -0.028), (0.852, -0.352)])) result = result.edges()...
13
45
0.684701
train_4ae4469d6a436a97
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.025, 0.412, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.809, 1.175).extrude(0.446) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.082, 0.667, 0.095), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.199).extrude(0.134)) result = result....
22
136
0.606677
train_571be15c955e730a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.55, -0.158, -0.359), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.185, 0.613).lineTo(-0.185, 1.205).lineTo(-0.185, -0.546).lineTo(0.185, -0.865).lineTo(0.185, 0.613).close().extrude(0.404) result = result.edges().fillet(0.019) result = result.fac...
11
160
0.311982
train_47412ce92a17d182
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.346, 0.295, -0.59), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.182, 0.334).lineTo(0.182, 0.129).lineTo(-0.41, 0.129).lineTo(-0.41, -0.281).lineTo(0.41, -0.281).lineTo(0.41, 0.334).lineTo(0.182, 0.334).close().extrude(0.692) result = result.edg...
22
137
0.220591
train_a11261908c43c884
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.076, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.528, 0.093).threePointArc((-0.648, -0.123), (-0.69, -0.366)).lineTo(0.046, -0.366).lineTo(0.414, -0.366).threePointArc((0.491, -0.141), (0.69, -0.01)).threePointArc((0.108, 0.366), (-0....
2
11
1.433523
train_b4e671220fb84f72
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.035, 0.12), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.239).threePointArc((0, -0.239), (1, 0.239)).lineTo(0.808, 0.239).lineTo(0.286, 0.239).threePointArc((0, 0.19), (-0.286, 0.239)).lineTo(-0.808, 0.239).lineTo(-1, 0.239).close().swee...
1
10
0.515803
train_a0c3764f8dd803e7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.013, 0.204, 0.001), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.13, 0.199).threePointArc((-0.199, 0.035), (-0.13, -0.13)).threePointArc((0.035, -0.199), (0.199, -0.13)).lineTo(0.199, 0.199).lineTo(-0.13, 0.199).close().sweep(cq.Workplane('XY')....
15
92
0.234379
train_36dab3e9a30630fe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.617, 0.072, 0.034), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.036, 0.617).lineTo(0.338, 0.617).lineTo(0.26, 0.56).threePointArc((0.09, 0.33), (-0.036, 0.074)).lineTo(-0.036, 0.315).threePointArc((-0.105, 0.397), (-0.179, 0.475)).threePointAr...
12
60
0.203336
train_63983e5acd6a6190
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.349, -0.322), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.835).extrude(0.468) result = result.cut(cq.Workplane(cq.Plane(origin=(0.199, -0.09, -0.191), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.2, 0.334).extrude(0.286)) result = result.cut(c...
13
89
1.167266
train_04107a93b5ff2302
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.217, 0.103), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.2, -1).lineTo(-0.2, -1).lineTo(-0.2, 1).lineTo(0.2, 1).lineTo(0.2, -1).close().sweep(cq.Workplane('YZ').spline([(-0.777, -0.181), (-0.529, -0.043), (-0.281, 0.039), (-0.034, 0.067), (0...
6
14
1.284214
train_f6bc7f5eaea9c7f6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.174, 0.234, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.875, 0.363).lineTo(-0.75, 0.146).lineTo(-0.625, 0.363).lineTo(-0.5, 0.146).lineTo(-0.375, 0.363).lineTo(-0.25, 0.146).lineTo(1, 0.146).lineTo(1, 0.021).lineTo(-1, 0.021).lineTo(-1, 0....
13
86
0.133408
train_22b4f8988ba0d25b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.321, -0.007, -0.824), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.031, -0.118).threePointArc((0.089, 0.06), (-0.089, 0.118)).lineTo(0.031, -0.118).close().sweep(cq.Workplane('XZ').spline([(-0.189, -0.937), (-0.16, -0.907), (-0.13, -0.958), (-0...
6
20
0.03832
train_94239c79c08dae17
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.678, -1, 0.071), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.555, 1.352).lineTo(-0.555, 0.711).lineTo(0, 0.39).lineTo(0.555, 0.711).lineTo(0.555, 1.672).lineTo(0, 1.672).lineTo(-0.555, 1.352).close().revolve(angleDegrees=90, axisStart=(0, 0), ...
7
67
2.145027
train_0f12d93cb0c1466a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.8, 0.8).lineTo(0.8, -0.2).lineTo(0.2, -0.8).lineTo(-0.8, -0.8).lineTo(-0.8, 0.8).lineTo(0.8, 0.8).close().workplane(offset=0.76).moveTo(0.872, 0.872).lineTo(0.872, -0.218).lineTo(0.218, -0.872...
6
33
3.236877
train_d2fed62fec156768
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.134, 0.385, 0.141), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.137, -0.615).lineTo(-0.137, 0.102).threePointArc((-0.034, 0.205), (-0.137, 0.307)).lineTo(-0.137, 0.82).lineTo(-0.137, 0.872).lineTo(0.137, 0.872).lineTo(0.137, -0.615).lineTo(-0....
16
283
0.233495
train_fe7202b64361f888
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.063, 0, 0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.937, 0.058).lineTo(-0.937, -0.059).lineTo(-0.407, -0.059).lineTo(0.853, -0.058).lineTo(0.853, -0.006).lineTo(0.9, -0.006).lineTo(0.9, 0.04).lineTo(0.937, 0.04).lineTo(0.937, 0.059).li...
3
28
0.018672
train_77360369be5be977
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.555, 0.856).extrude(1.493) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.073, 0.161, -0.851), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.467, 0.416).lineTo(0.546, -0.095).lineTo(-0.692,...
4
23
1.801502
train_5369b4adb33122f7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.817).extrude(0.09) result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.727 + 0.1035, 0.052), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.053, -0.047).lineTo(-0.055, -0.049).lineTo(...
22
236
0.26047
train_93b6482b8204c350
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.318, -0.388, -0.075), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.009, -0.319).lineTo(-0.009, 0.682).lineTo(0.191, 0.382).lineTo(0.065, -0.319).lineTo(0.172, -0.426).lineTo(0.172, -0.576).lineTo(0.065, -0.682).lineTo(-0.085, -0.682).lineTo(-0...
7
85
0.292096
train_8130170d8ca383ad
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.199, -0.269, 0.139), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.348).sweep(cq.Workplane('XY').spline([(-0.672, -0.269), (-0.152, -0.269), (0.366, -0.269), (0.601, -0.165), (0.835, -0.061), (1.069, 0.043)])) result = result.edges().chamfer(0.242...
18
59
0.314577
train_eedc279d3c7e4aa1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.966, -0.335, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.335).lineTo(-1, -0.665).lineTo(-0.91, -0.665).lineTo(-0.91, -0.575).lineTo(0.91, -0.575).lineTo(0.91, -0.665).lineTo(1, -0.665).lineTo(1, 1.335).lineTo(-1, 1.335).close().extrude(...
10
95
7.318362
train_2aae559c0b962380
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.298, -0.602), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.33, 1.404).extrude(1.204) result = result.union(cq.Workplane(cq.Plane(origin=(-0.115, -0.671, -0.309), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.329).extrude(0.62)) result = result.uni...
6
19
2.085786
train_34892176da017f00
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.228, -0.931, 1.12), normal=(0, -1, 0), xDir=(0, 0, 1))).lineTo(-0.585, -0.623).threePointArc((-0.668, -0.609), (-0.75, -0.626)).lineTo(0, 0).lineTo(0.879, 0.937).close().sweep(cq.Workplane('YZ').moveTo(-0.836, 0.156).spline([(-0.758, -0.229), (...
4
18
0.201057
train_6473993d281076dc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.091, -0.413, -0.518), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.372, 1.174).extrude(0.832) result = result.union(cq.Workplane(cq.Plane(origin=(0.103, -0.22, -0.689), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.132, 0.129).extrude(0.184)) result = ...
15
123
1.239257
train_4ebf4d11f24c9646
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.644, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.021).threePointArc((-0.622, 0.644), (0, 1.266)).lineTo(0.622, 1.266).lineTo(0.622, 0.644).lineTo(0.622, 0.021).lineTo(0, 0.021).close().extrude(2) result = result.edges().fillet(0.359) ...
20
210
2.378215
train_33d1da7395abb1c7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.012, -0.204, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.263, 0.18).extrude(0.952) result = result.union(cq.Workplane(cq.Plane(origin=(-0.044, -0.082, 0.208), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.037).extrude(0.276)) result = resu...
21
126
0.148265
train_933fb7f89ea25911
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.035, 0.774, -0.609), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.119).sweep(cq.Workplane('YZ').spline([(0.774, -0.609), (0.913, -0.281), (0.769, 0.045), (0.411, 0.215), (0.007, 0.148), (-0.249, -0.124), (-0.237, -0.473)])) result = result.edge...
13
94
0.103847
train_7d6f5074f0743c9b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.13, -0.3, -0.412), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.695, 0.756).extrude(0.485) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.081, -0.37, -0.259), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.072).extrude(0.128)) result = result.u...
15
58
0.346425
train_273e352580f9f06a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.169, 0.33, -0.4), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.349, 1.341).extrude(0.946) result = result.union(cq.Workplane(cq.Plane(origin=(0.161, 0.277, -0.783), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.183).extrude(0.415)) result = result.un...
17
82
1.216634
train_f471332a8d6d4761
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.142, 0, -0.725), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.083).sweep(cq.Workplane('XZ').spline([(-0.256, -0.747), (-0.167, -0.513), (-0.079, -0.569), (0.01, -0.708), (0.098, -0.866), (0.187, -0.969), (0.275, -0.968), (0.364, -0.863), (0.452, ...
4
16
0.03337
train_dde8f8ff664c2126
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.09, 0.055, -0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.577, 1.153).extrude(0.636) result = result.union(cq.Workplane(cq.Plane(origin=(0.279, 0.018, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.099).extrude(0.12)) result = result.u...
5
25
0.441694
train_05b33dcf82c888d1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.073, 1.017, 0.711), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.444).lineTo(-0.289, 0.444).lineTo(-0.289, 0.041).lineTo(0.289, 0.041).lineTo(0.289, 0.444).lineTo(0, 0.444).close().extrude(0.147) result = result.edges().fillet(0.052) result =...
5
42
0.12578
train_58a7fe5b71d21370
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.113, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.906, -0.723).lineTo(0.459, -0.275).lineTo(0, 0.184).lineTo(-0.459, 0.642).lineTo(-0.645, 0.602).lineTo(-0.459, -0.275).lineTo(-0.906, -0.723).lineTo(-0.906, 1.09).lineTo(0.906, 1.09).lineT...
7
85
0.90291
train_e28e3f1435c233c1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.334, -0.323, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.337).lineTo(-1, 0.023).lineTo(1, 0.023).lineTo(1, 0.337).lineTo(0.714, 0.337).lineTo(0.714, 0.623).lineTo(-0.714, 0.623).lineTo(-0.714, 0.337).lineTo(-1, 0.337).close().extrude(0....
7
98
0.64696
train_aa72759cf775af5f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.522, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.239, 0.414).threePointArc((-0.414, 0.239), (-0.478, 0)).lineTo(-0.239, -0.414).threePointArc((0, -0.478), (0.239, -0.414)).threePointArc((0.414, -0.239), (0.478, 0)).lineTo(0.239, 0.414)....
2
13
0.129374
train_285e8f0b5c65b33c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.48, 0, -0.649), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.691, 1.176).extrude(1.304) result = result.union(cq.Workplane(cq.Plane(origin=(0.55, -0.661, -0.323), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.12, -0.465).threePointArc((0.262, -0.96...
9
59
1.309951
train_eb93eb718536458b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.331, -0.587, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.331).threePointArc((0, 1.331), (1, 0.331)).threePointArc((0.999, 0.298), (0.998, 0.264)).threePointArc((0, -0.669), (-0.998, 0.264)).lineTo(-1, 0.331).close().extrude(1.371) resul...
12
44
4.091131
train_c799169dff99e49f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.305, -0.434, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.133, 1.133).extrude(0.499) result = result.union(cq.Workplane(cq.Plane(origin=(-0.249, -0.377, 0.223), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.513, 0.014).threePointArc((0.501...
16
129
0.47638
train_a6687647690174fe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.796, 0.765, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.85, 0.05).threePointArc((0, 0.278), (-0.85, 0.05)).threePointArc((-0.622, 0.9), (0, 1.521)).threePointArc((0.622, 0.9), (0.85, 0.05)).close().extrude(1.765) result = result.edges().cha...
4
31
1.901923
train_b46de654026f6664
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.19, -0.036, -0.189), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.815, 0.07).lineTo(0.815, 0.003).lineTo(-0.815, 0.003).threePointArc((-0.807, 0.037), (-0.793, 0.07)).lineTo(0.815, 0.07).close().extrude(0.381) result = result.edges().chamfer(0.0...
4
39
0.043056
train_552bb7b6dc2961e2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.035, -0.068, -0.337), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.93, 1.5).extrude(0.653) result = result.cut(cq.Workplane(cq.Plane(origin=(0.035, 0.383, -0.245), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.246, 0.63).extrude(0.469)) result = result...
22
125
1.790945
train_3dc710492ca9477f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.057, 0, 0.522), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.057, -0.38).lineTo(0.299, 0.38).lineTo(-0.952, 0.38).lineTo(-0.952, 0.105).threePointArc((-1.057, 0), (-0.952, -0.105)).lineTo(-0.952, -0.38).lineTo(0.343, -0.38).lineTo(1.057, -0.38)....
15
158
1.062909
train_52410c608132b977
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.835, 0.332, 0.169), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.436, 0.787).lineTo(0.436, 1.108).lineTo(-0.436, 1.108).lineTo(-0.436, -0.165).lineTo(-0.114, -0.165).lineTo(-0.114, 0.787).lineTo(0.436, 0.787).close().extrude(0.925) result = resu...
19
185
0.717549
train_4e61e822f9896a0b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.554, -0.233, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.938, -0.705).lineTo(0.938, -0.706).lineTo(0.938, 1.172).lineTo(-0.938, 1.172).lineTo(-0.938, -0.705).close().workplane(offset=0.261).moveTo(-0.972, -0.738).lineTo(0.972, -0.74).lineT...
7
46
4.012087
train_db848355845900d9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.158, -0.485, 0.015), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.02, 0.057).threePointArc((-0.037, 0.042), (-0.052, 0.024)).lineTo(-0.02, 0).lineTo(-0.02, -0.026).lineTo(-0.02, -0.052).lineTo(-0.02, -0.057).lineTo(0.018, -0.034).threePointArc(...
3
42
0.23772
train_76f8dc311d25a4e9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.555, 0.945, -0.092), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.591, 0.272).lineTo(-0.591, -0.186).lineTo(-0.558, -0.272).lineTo(0.591, 0.176).lineTo(0.591, 0.272).close().sweep(cq.Workplane('YZ').spline([(0.762, -0.418), (0.708, -0.314), (0.2...
9
64
0.660418
train_ea668528586bc818
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.136, -0.337, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1.023, 0.03).threePointArc((0.682, 0.128), (0.341, 0.03)).lineTo(0.298, 0.325).lineTo(0, 0.325).lineTo(0, 0.03).threePointArc((-0.171, 0.103), (-0.341, 0.03)).threePointArc((-0.682, 0.1...
12
86
0.271742
train_ea145d9573158be4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0, -0.174), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.195, -0.292).lineTo(0.195, 0.292).lineTo(-0.195, 0.292).lineTo(-0.195, -0.292).lineTo(0.195, -0.292).close().sweep(cq.Workplane('XZ').spline([(0.506, -0.4), (0.365, -0.204), (0.075, -0.125...
2
11
0.078471
train_3031b23200caa346
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.576, -1, -0.189), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.257).sweep(cq.Workplane('YZ').spline([(-0.495, -0.873), (0.01, -0.675), (0.516, -0.77)])) result = result.edges().chamfer(0.086) result = result.union(cq.Workplane(cq.Plane(origin=(...
7
22
0.376452
train_10fe6edc0941294f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.883), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.466).extrude(1.766) result = result.cut(cq.Workplane(cq.Plane(origin=(0.488, -0.295, -1.183), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.377, 0.441).extrude(2.119)) result = result.cut(cq....
26
157
4.318755
train_7bc71f9e958715a6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.116, -0.717, 0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.956, 1.116).threePointArc((-0.978, 1.092), (-1.002, 1.07)).lineTo(-1.002, -0.888).threePointArc((0.323, -0.208), (1.002, 1.116)).lineTo(-0.956, 1.116).close().extrude(1.435) resu...
8
45
3.747541
train_9da7689e80340bc6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.447, 0.312, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.539, -0.418).lineTo(0.538, -0.42).lineTo(0.563, 0.415).lineTo(-0.553, 0.432).close().moveTo(-0.018, 0.189).lineTo(0.018, 0.19).lineTo(0.019, 0.138).lineTo(0.076, 0.137).lineTo(0....
12
115
0.613187
train_9daba2e61972252f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.515, 1, 0.017), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.405).sweep(cq.Workplane('XY').spline([(0.515, -0.102), (0.734, -0.07), (0.953, 0.248), (1.172, 0.567), (1.39, 0.599)])) result = result.edges().fillet(0.074) result = result.union(cq.Wo...
7
83
0.232471
train_b5424c0d1279d2e0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.235, 0, -0.441), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.133, 1.792).extrude(1.441) result = result.cut(cq.Workplane(cq.Plane(origin=(0.625, 0.18, 0.252), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.187).extrude(0.576)) result = result.cut(cq....
8
63
1.372577
train_6492f053de564568
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.01, -0.827, -0.961), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.604, 1.827).threePointArc((-0.971, 0.982), (-0.604, 0.137)).threePointArc((0.184, -0.173), (0.971, 0.137)).lineTo(0.971, 1.827).lineTo(-0.604, 1.827).close().revolve(angleDegrees...
12
48
3.066858
train_486e4915ca695f5c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.202, 0, -0.003), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.401, 0.4).lineTo(0.401, -0.4).lineTo(-0.401, -0.4).lineTo(-0.401, 0.4).lineTo(0.401, 0.4).close().revolve(angleDegrees=270, axisStart=(0.401, 0.4), axisEnd=(0.401, 0.228)) result = r...
7
65
0.986782
train_452b58ceb7f831aa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.08, 0.089, 0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.16, 0.203).extrude(0.14) result = result.union(cq.Workplane(cq.Plane(origin=(-0.076, 0.095, 0.199), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.084).extrude(0.052)) result = result.uni...
7
48
0.085138
train_cdbfec9f2c0d413c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.261, 0.089, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.733, -0.562).lineTo(0.739, -0.555).lineTo(0.704, 0.586).lineTo(-0.702, 0.571).close().moveTo(-0.13, 0).lineTo(-0.198, 0.094).lineTo(-0.312, 0.058).lineTo(-0.309, -0.059).lineTo(-0...
11
88
0.513147
train_163cf3aadadd7217
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.534, -0.561, 0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.14, 0.439).threePointArc((-0.14, 0), (0.14, -0.439)).lineTo(0.076, -0.295).threePointArc((-0.02, -0.161), (-0.054, 0)).lineTo(0.076, 0.295).lineTo(0.14, 0.439).close().sweep(cq.Wo...
8
83
0.972032
train_a1f6d02683751b8d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.794, -0.011, -0.088), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.037, 0.222).lineTo(-0.037, 0.026).lineTo(-0.206, 0.026).lineTo(-0.206, -0.022).lineTo(0.017, -0.022).lineTo(0.017, -0.222).lineTo(0.206, -0.222).lineTo(0.206, 0.026).lineTo(0.01...
36
247
0.241998
train_adf114b7d823f216
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.831, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.181, 0.157).lineTo(-0.172, 0.152).lineTo(-0.059, 0.096).lineTo(-0.051, 0.091).lineTo(0.055, 0.091).lineTo(0.001, -0.006).lineTo(0.001, -0.157).lineTo(0.063, -0.048).lineTo(0.068, -0.04).li...
3
32
0.08397
train_a3dce4c64de8d2c9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.011, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.011).lineTo(-1, 0.011).lineTo(-1, 0.199).lineTo(1, 0.199).lineTo(1, 0.011).close().revolve(angleDegrees=360, axisStart=(1, 0.011), axisEnd=(-1, 0.011)) result = result.edges().chamfer(0...
18
105
0.176986
train_c9c96639380e2b65
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.269, -0.115, 0.029), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.431, 0.137).threePointArc((0.4, 0.232), (0.347, 0.318)).threePointArc((0.232, 0.42), (0.089, 0.477)).lineTo(0.089, 0.406).lineTo(-0.07, 0.406).lineTo(-0.07, 0.479).threePointArc((...
5
59
0.621983