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_d42907ecb4379010
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.129, -0.133, -0.286), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.224, 1.221).extrude(0.571) result = result.faces('>Z').shell(-0.027) result = result.union(cq.Workplane(cq.Plane(origin=(0.055, -0.858, -0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).r...
5
34
0.172436
train_6716ec61a8d40c65
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.104, 0.991, -0.033), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.506, 0.033).threePointArc((-0.507, 0), (-0.506, -0.033)).threePointArc((-0.439, -0.254), (-0.282, -0.422)).threePointArc((-0.284, -0.491), (-0.224, -0.455)).threePointArc((0, -0.5...
6
39
0.519717
train_959980c414c52739
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.326, -0.05, 0.296), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.472, -0.389).lineTo(-0.472, 0.887).lineTo(0.472, -0.389).lineTo(-0.472, -0.389).close().extrude(0.908) result = result.edges().fillet(0.078) result = result.cut(cq.Workplane(cq.Pl...
10
93
0.804945
train_9a56ddf57af2bc73
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.308, -0.583), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.662, 1.385).extrude(1.407) result = result.faces('>Z').shell(-0.083) result = result.union(cq.Workplane(cq.Plane(origin=(0.253, 0.663, -0.442), normal=(0, 0, 1), xDir=(1, 0, 0))).circle...
6
17
1.176343
train_0bc2580c7d546e73
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.16, 0, -0.435), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.492, 2).extrude(0.721) result = result.union(cq.Workplane(cq.Plane(origin=(0.323, 0.242, 0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.282, 0.416).extrude(0.164)) result = result.unio...
13
107
1.751351
train_203210bcefe7089f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.38, -0.364, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.213, 0.153).threePointArc((-0.211, 0.364), (-0.213, 0.576)).lineTo(0.043, 0.576).lineTo(0.213, 0.576).lineTo(0.213, 0.153).lineTo(0.043, 0.153).lineTo(-0.213, 0.153).close().workplane...
13
67
0.337758
train_6c19e015fefe995c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.446, 0.473, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.98, 0.756).lineTo(-0.98, 0.135).lineTo(-0.794, 0.135).lineTo(-0.359, 0.384).lineTo(-0.359, 0.57).lineTo(-0.048, 0.57).lineTo(0.572, 0.36).threePointArc((0.857, 0.476), (0.98, 0.756))....
6
16
0.575559
train_c7bfe7a4b74cfb12
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.085), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.04, 0.582).lineTo(-0.04, 0.783).lineTo(-0.006, 0.785).lineTo(0.179, 1).lineTo(0.437, 0.742).lineTo(0.224, 0.557).lineTo(-0.006, 0.557).lineTo(-0.006, 0.547).lineTo(-0.016, 0.547).lineTo(-0...
4
48
0.780646
train_d21cc53ffc5c25d5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.095, 0.082, 0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.365, 0.174).lineTo(-0.005, 0.174).lineTo(-0.005, 0.318).lineTo(0.365, 0.318).lineTo(0.365, 0.03).lineTo(-0.365, 0.03).lineTo(-0.365, 0.174).close().revolve(angleDegrees=90, axisStar...
12
207
0.489278
train_c10298c7573bb75b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.725), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.804).extrude(1.45) result = result.edges().fillet(0.23)
2
26
5.009312
train_46179e9024910a72
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.43, -0.409, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.504).threePointArc((-0.594, -0.285), (-0.902, 0.268)).lineTo(-0.913, 0.268).lineTo(-0.913, 0.409).threePointArc((0, 1.322), (0.913, 0.409)).lineTo(0.913, 0.268).lineTo(0.902, 0.268...
1
10
1.349765
train_af4e0cddc6e60eaa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.199, -0.079, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.1, 0.008).lineTo(1.041, 0.008).lineTo(0.897, 0.15).lineTo(-0.897, 0.15).lineTo(-1.041, 0.008).lineTo(-0.1, 0.008).close().extrude(0.397) result = result.edges().fillet(0.028) result ...
4
33
0.092385
train_f108e235a0db0962
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.019, 0.013, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.578, 0.397).extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(0.154, -0.198, 0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.063, 0.028).extrude(0.144)) result = result.ed...
15
85
0.373221
train_c32d508313ff9f16
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.52, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.334, 1).lineTo(0.47, 1).lineTo(0.47, 0.78).lineTo(0.334, 0.78).lineTo(0.334, 0.289).lineTo(-0.377, 0.289).lineTo(-0.377, 0.507).threePointArc((-0.47, 0.645), (-0.377, 0.782)).lineTo(-0.377,...
6
58
0.382362
train_433c993293f8c91f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.15, 0.211, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.226, -0.807).threePointArc((0.226, 0.211), (-0.226, 1.228)).lineTo(-0.226, -0.807).close().extrude(0.3) result = result.edges().chamfer(0.026) result = result.cut(cq.Workplane(cq.Plane...
6
29
0.186714
train_72dad9f0288a6149
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.417, -0.012, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.166, 0.196).extrude(0.125) result = result.union(cq.Workplane(cq.Plane(origin=(-0.56, -0.015, -0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.881, 0.07).extrude(0.049)) result = ...
9
39
0.022914
train_8597f2385a6a882d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.328, 0.359, -0.298), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.647, -0.515).lineTo(0.672, -0.522).lineTo(0.662, 0.523).lineTo(-0.653, 0.514).close().moveTo(0.108, -0.001).lineTo(0.076, 0.077).lineTo(0, 0.108).lineTo(-0.077, 0.075).lineTo(-0.1...
11
51
0.410641
train_0096af7c286ef93b
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.134, 1.325).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.089, 0.05, -0.14), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1.066, -0.13).lineTo(1.066, -0.234).lineTo(-0.965, -0.23...
8
97
2.437053
train_ac3cf6ab3f031ba3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.121, 0.463, -0.075), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.184, 0.139).lineTo(0.184, 0.139).lineTo(0.184, -0.101).lineTo(-0.184, -0.101).lineTo(-0.184, 0.139).close().extrude(0.332) result = result.edges().chamfer(0.036) result = result...
23
171
0.092767
train_10e9ce9631af22d9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.558, -0.105, -0.45), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.465).lineTo(0.107, -0.147).lineTo(0.442, -0.144).lineTo(0.173, 0.056).lineTo(0.273, 0.376).lineTo(0, 0.181).lineTo(-0.273, 0.376).lineTo(-0.173, 0.056).lineTo(-0.442, -0.144)....
18
146
0.341442
train_d0869541bf1b58b3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.483, 1.125, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.505, 0.125).lineTo(-0.505, 0.125).lineTo(-0.505, 1.135).threePointArc((-0.209, 1.849), (0.505, 2.146)).lineTo(0.505, 0.125).close().extrude(0.966) result = result.edges().fillet(0.18) ...
10
80
1.598632
train_63d0312f9bb0b916
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.717, -0.092, 0.062), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.283, 0.543).lineTo(0.283, 0.543).lineTo(0, -0.543).lineTo(-0.283, 0.543).close().sweep(cq.Workplane('XZ').spline([(-0.717, 0.062), (-0.191, -0.127), (0.336, -0.127), (0.863, 0.0...
2
12
0.311294
train_3070d9865f2bbb89
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.067, 0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.388).extrude(0.445) result = result.union(cq.Workplane(cq.Plane(origin=(0.068, 0.027, -0.478), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.115).extrude(0.55)) result = result.union(cq....
7
19
0.331765
train_f0bff259145d9fd8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.543, -0.064, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.913, 1.132).extrude(0.272) result = result.union(cq.Workplane(cq.Plane(origin=(0.058, -0.048, -0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.175).extrude(0.215)) result = res...
20
187
1.336823
train_e354fe4c6c178dfa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.124, -0.369, -0.215), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.396, 0.376).lineTo(0.396, 0.475).lineTo(-0.396, 0.475).lineTo(-0.396, 0.376).lineTo(0, 0.376).lineTo(0, -0.416).lineTo(0.396, -0.416).lineTo(0.396, 0.376).close().extrude(0.888) r...
15
122
0.414128
train_47cb6bee1f9979d1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.16), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.6, 1).lineTo(0.467, 1).lineTo(0.467, 0.867).lineTo(0.6, 0.867).lineTo(0.6, 1).lineTo(0.6, -1).lineTo(0.6, -0.867).lineTo(0.467, -0.867).lineTo(0.467, -1).lineTo(-0.6, -1).lineTo(-0.6, 1).c...
9
138
1.023188
train_afb4fce3375367d3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.863, 0.422, 0.006), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.979, 1.308).threePointArc((-1.006, 1.072), (-0.979, 0.84)).threePointArc((-0.916, 0.656), (-0.819, 0.489)).threePointArc((0, 0.067), (0.819, 0.489)).threePointArc((0.916, 0.656), ...
4
43
2.108907
train_53390fc88592b60e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.126, 0.568, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.771, 0.012).lineTo(1, 0.012).lineTo(1, 0.24).lineTo(-1, 0.24).lineTo(-1, 0.012).lineTo(0.771, 0.012).close().extrude(1.135) result = result.edges().chamfer(0.091) result = result.cut(c...
6
458
0.461247
train_847897010be20097
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.043), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.277).sweep(cq.Workplane('XY').spline([(-0.969, -0.068), (-0.484, -0.062), (0, 0), (0.484, 0.062), (0.969, 0.068)])) result = result.edges().fillet(0.13) result = result.union(cq.Workplane(c...
3
14
0.46561
train_d28875f32197f237
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.291, 0.355, -0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.738, 0.771).extrude(0.534) result = result.cut(cq.Workplane(cq.Plane(origin=(0.357, 0.499, 0.301), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.107).extrude(0.144)) result = result.cu...
13
133
0.360783
train_ae4eed63cd8e8285
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.191, -0.029, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.286, 0.199).extrude(1.425) result = result.union(cq.Workplane(cq.Plane(origin=(0.25, -0.011, 0.4), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.107, 0.078).extrude(0.6)) result = result.un...
18
50
0.109851
train_9c9eb1182a8b9e22
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.237, 0.287, -0.579), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.002, -0.021).lineTo(0.026, -0.021).lineTo(0.031, -0.016).lineTo(0.009, 0.005).threePointArc((0.006, 0.007), (0.002, 0.008)).threePointArc((-0.001, 0.007), (-0.004, 0.005)).lineTo(...
6
73
0.057118
train_cdbf7eed31b083d5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.065, 0, -0.619), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.659, 0.815).extrude(0.384) result = result.union(cq.Workplane(cq.Plane(origin=(-0.684, 0, -0.539), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.632, 0.637).extrude(0.223)) result = result....
5
21
0.443234
train_937c1e88fc06fb2c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.058, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.914, 0.973).lineTo(-0.914, -0.856).lineTo(0.914, -0.856).lineTo(0.914, 0.973).lineTo(-0.914, 0.973).close().extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.731 + 0.244, -...
16
126
6.529084
train_bf2a83fb163d22ec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.102, -0.042, -0.452), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.795, 1.409).extrude(0.643) result = result.union(cq.Workplane(cq.Plane(origin=(-0.092, 0.146, 0.31), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.484, 0.619).threePointArc((-0.517,...
8
71
1.467831
train_656f99c8b6c09f8b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.239, 0.182, 0.148), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.852, 0.026).lineTo(0.852, 0.322).lineTo(-0.852, 0.322).lineTo(-0.852, 0.026).lineTo(0.852, 0.026).close().extrude(0.272) result = result.faces('>Z').shell(-0.023) result = result.u...
29
111
0.046048
train_a11d86826a0fabeb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.915, 0.333, 0.429), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.451, 0.966).lineTo(-0.059, 0.966).threePointArc((-0.174, 0.688), (-0.451, 0.573)).lineTo(-0.451, 0.063).lineTo(0.451, 0.063).lineTo(0.451, 0.966).close().extrude(1.104) result = re...
17
197
1.197766
train_4ededadb68310e97
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.146, -0.006, 0.009), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.009, 0.141).lineTo(0.963, 0.141).lineTo(1.009, 0.014).lineTo(-1.009, 0.014).lineTo(-1.009, 0.141).close().revolve(angleDegrees=270, axisStart=(-1.009, 0.141), axisEnd=(0.936, 0.1...
3
20
0.072978
train_ef387cd0b3709ba5
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.385).workplane(offset=0.534).circle(0.32).workplane(offset=0.417).circle(0.256).workplane(offset=0.51).circle(0.192).workplane(offset=0.54).circle(0.127).loft() result = result.cut(cq.Workplan...
4
10
0.349011
train_6bd85cff0e53d3c2
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.008, -0.574), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.766, 0.733).extrude(0.786) result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.008, 0.181), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.156).extrude(0.441)) result = result.union(...
16
167
0.588413
train_f40dd0c49ff41e51
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.83, 0.545, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.539, 0.105).lineTo(-0.539, 0.423).lineTo(0.476, 0.542).lineTo(0.476, 0.606).lineTo(-0.539, 0.486).lineTo(-0.539, 0.74).lineTo(0.476, 0.74).lineTo(0.476, 1.083).lineTo(-0.095, 1.083).li...
8
70
1.042724
train_277475a50df9aaab
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.193, 1.242).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(0.267, -0.307, 0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.138).extrude(0.871)) result = result.cut(cq.Workplane(...
4
17
2.477012
train_f783f1884fcaafea
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.073, 0.266, -0.644), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.102, 0.174).lineTo(-0.286, 0.174).lineTo(-0.286, 0.031).lineTo(0.067, 0.031).lineTo(0.067, -0.174).lineTo(0.286, -0.174).lineTo(0.286, -0.052).lineTo(0.221, -0.052).lineTo(0.221, ...
12
131
0.490872
train_ec39afadc771cccf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.027, -0.136, -0.136), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.304, 0.01).lineTo(0.304, 0.01).lineTo(0.284, 0.01).lineTo(0.284, -0.01).lineTo(-0.304, -0.01).lineTo(-0.304, 0.01).close().sweep(cq.Workplane('XY').spline([(-0.02, -0.136), (-0.0...
10
78
0.088099
train_1af6833ab73c7749
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.762, -0.201, -0.39), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.238, 0.238).lineTo(0.238, -0.23).lineTo(0.226, -0.218).lineTo(0.226, -0.226).lineTo(0.218, -0.226).lineTo(0.23, -0.238).lineTo(-0.23, -0.238).lineTo(-0.218, -0.226).lineTo(-0.226...
8
56
0.295705
train_824ea91b755d3cee
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.589, -0.231, 0.054), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.575, 0.783).threePointArc((-0.639, 0.555), (-0.813, 0.396)).threePointArc((0.813, 0.075), (-0.575, 0.981)).lineTo(-0.575, 0.783).close().workplane(offset=0.505).moveTo(-0.495, 0....
18
108
1.113492
train_392370f01ac4824e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.28, 0, 0.133), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.637, -0.253).threePointArc((0.604, 0), (0.637, 0.253)).threePointArc((0.673, 0.36), (0.72, 0.462)).threePointArc((-0.72, 0), (0.72, -0.462)).threePointArc((0.673, -0.36), (0.637, -0.25...
15
65
0.913079
train_f7813d9cf62cbc11
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.03, 0, 0.049), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.154, 0).lineTo(-0.154, 0.577).lineTo(0.154, 1).lineTo(0.154, 0.577).lineTo(0, 0).lineTo(0.154, -0.577).lineTo(0.154, -1).lineTo(-0.154, -0.577).lineTo(-0.154, 0).close().sweep(cq.Work...
2
23
0.024646
train_2b98a0e959342822
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.204, 0.255, -0.441), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.511, 1.491).extrude(0.35) result = result.union(cq.Workplane(cq.Plane(origin=(0.28, 0.329, -0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.671).extrude(0.054)) result = result.u...
4
19
1.721346
train_e49aa2735117839e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.972, -0.841, -0.005), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.337, 1.634).lineTo(-0.177, 0.735).lineTo(-0.371, 0.459).lineTo(-0.676, 0.343).lineTo(-0.676, 0.193).lineTo(-0.267, 0.345).lineTo(0.6, 0.345).lineTo(0.6, 0.383).lineTo(0.601, 0.3...
12
51
2.474936
train_bd90b30472adb51e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.045, 0.119, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.219, -0.003).lineTo(0.156, 0.151).lineTo(-0.006, 0.213).lineTo(-0.153, 0.151).lineTo(-0.218, -0.006).lineTo(-0.157, -0.148).lineTo(0.002, -0.215).lineTo(0.148, -0.152).close().mov...
9
257
0.019429
train_3da10578c2cbf09f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.312, -0.085, 0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.091, 0.569).lineTo(-0.091, 0.569).lineTo(-0.091, -0.4).lineTo(0.091, -0.4).lineTo(0.091, 0.569).close().extrude(0.103) result = result.edges().chamfer(0.011) result = result.union(...
7
123
0.041431
train_a9f361dc5ea4b768
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.191, 0.087, -0.013), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.081, -0.076).lineTo(0.081, -0.055).lineTo(0.007, 0.054).lineTo(0, 0.064).lineTo(-0.081, 0.184).lineTo(-0.081, 0.163).lineTo(-0.007, 0.054).lineTo(0, 0.044).lineTo(0.081, -0.076).c...
7
71
0.041799
train_258937c14d097f75
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.702), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.584).extrude(1.403) result = result.cut(cq.Workplane(cq.Plane(origin=(0.458, -0.114, -0.206), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.418).extrude(0.313)) result = result.cut(cq.Workp...
17
55
3.190316
train_ecec32688c23ab1f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.309), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.439).extrude(0.635) result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.072, 0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.647).extrude(0.111)) result = result.union(cq.Workpl...
13
92
1.661484
train_fba16fbc9387b669
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.422, 0.393), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.136, 0.134).lineTo(0.498, -0.235).lineTo(0.532, -0.252).lineTo(0.522, -0.249).lineTo(-0.532, 0.107).lineTo(-0.526, 0.108).lineTo(-0.223, 0.131).lineTo(0.361, -0.166).lineTo(-0.193, 0.1...
1
14
0.111291
train_5d2786497dbce906
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.55), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.158, 2).extrude(1.099) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.217 * math.cos(3.297 + 2 * math.pi * 0 / 6), 0 + 0.217 * math.sin(3.297 + 2 * math.pi * 0 / 6), -0.715), normal=...
12
149
0.718454
train_98ca618e8d34b4ad
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.12, 0.177, -0.046), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.105, 0.005).lineTo(0.105, -0.028).lineTo(0.082, -0.027).lineTo(0.08, -0.02).lineTo(0.058, -0.019).lineTo(-0.021, -0.013).lineTo(-0.105, -0.007).lineTo(-0.101, 0.005).lineTo(-0.105, ...
10
125
0.021369
train_25faa23ff5557472
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.508), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.274, 2).extrude(1.016) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.084, -0.253, -0.538), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.022).extrude(1.219)) result = result.cut(cq.Work...
7
34
2.44576
train_a402fba5592ef3e8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.113, -0.143), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.299, 0.273).lineTo(-0.299, 0.273).lineTo(-0.179, -0.273).lineTo(-0.06, 0.049).lineTo(0.06, 0.049).lineTo(0.179, -0.25).lineTo(0.299, 0.273).close().sweep(cq.Workplane('XZ').spline([...
22
117
0.149175
train_a951a11ddb59ca91
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.629, -0.324, -0.154), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.322).workplane(offset=0.282).circle(0.304).workplane(offset=0.238).circle(0.316).workplane(offset=0.22).circle(0.17).workplane(offset=0.297).circle(0.27).workplane(offset=0.222)....
10
48
0.472521
train_3799c96814a2c2de
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.252, 0, -0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.093).lineTo(0.5, 0.412).lineTo(0.44, 0.412).lineTo(0.44, 0.123).lineTo(0.001, 0.123).lineTo(0.001, 0.412).lineTo(-0.5, 0.412).lineTo(-0.5, 0.093).lineTo(0.5, 0.093).close().revolve...
5
80
0.211717
train_f1f3e9ebeb29ff79
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.458, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.553, 0.043).threePointArc((-0.63, 0.175), (-0.678, 0.32)).threePointArc((-0.691, 0.458), (-0.678, 0.596)).threePointArc((-0.63, 0.742), (-0.553, 0.873)).lineTo(0.553, 0.873).threePointArc...
9
64
1.766662
train_9dd2b064f8a2f8dd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.186, -0.012), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.213, -0.66).threePointArc((-0.037, 0.067), (-0.213, 0.814)).threePointArc((-0.103, -0.007), (0.09, -0.814)).lineTo(0.213, -0.66).close().sweep(cq.Workplane('YZ').spline([(-0.186, -0....
2
6
0.039677
train_bff5c19421cf3a6d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.194, -0.134, 0.153), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.281, 0.303).lineTo(-0.281, -0.259).lineTo(0.281, -0.259).lineTo(0.281, 0.303).lineTo(0.267, 0.866).lineTo(-0.281, 0.866).lineTo(-0.281, 0.303).close().extrude(0.627) result = res...
6
49
0.336405
train_0519d5de9cfb46bd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.447), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.093, 0.133).lineTo(0.159, 0.133).lineTo(0.159, -0.133).lineTo(0.093, -0.133).lineTo(0.093, -0.12).lineTo(-0.159, -0.12).lineTo(-0.159, 0.12).lineTo(0.093, 0.12).lineTo(0.093, 0.133).clos...
8
104
0.067408
train_73b1b3e6e9c95fe4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.673, 0.092, 0.205), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.227, 0.613).lineTo(0.227, 0.064).lineTo(-0.327, 0.064).lineTo(-0.327, -0.064).lineTo(0.227, -0.064).lineTo(0.227, -0.613).lineTo(0.327, -0.613).lineTo(0.327, 0.613).lineTo(0.227, ...
3
17
0.047956
train_14b26c508f95102a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, 0.182, -0.018), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.39).workplane(offset=0.21).circle(0.144).workplane(offset=0.229).circle(0.174).workplane(offset=0.255).circle(0.121).workplane(offset=0.298).circle(0.355).workplane(offset=0.223).circ...
9
36
0.274273
train_25f8da8d95a6a678
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.123, -0.41, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.877, 0.059).lineTo(-0.877, 0.825).lineTo(-0.548, 0.825).lineTo(0.548, 0.826).lineTo(0.877, 0.826).lineTo(0.877, 0.059).lineTo(0.548, 0.059).lineTo(0.548, 0.366).lineTo(-0.548, 0....
14
150
1.301591
train_73189cd269987534
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.076, -0.067, 0.029), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.139, 0.745).lineTo(-0.139, -0.924).lineTo(0.139, -0.924).lineTo(0.139, 1.023).lineTo(-0.139, 1.023).lineTo(-0.139, 0.745).close().extrude(0.228) result = result.edges().chamfer(0...
5
86
0.050874
train_8b1065b249a22812
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.013, -0.497, -0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.772, 1.007).extrude(0.136) result = result.union(cq.Workplane(cq.Plane(origin=(-0.009, 0.108, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.11).extrude(0.105)) result = resu...
27
175
0.343315
train_77f1b4d5732e52d6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.715), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.764, 1.053).extrude(1.715) result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.254 * math.cos(3.293 + 2 * math.pi * 0 / 4), 0 + 0.254 * math.sin(3.293 + 2 * math.pi * 0 / 4), -1), norm...
12
88
2.41556
train_7c9e9370eecf9c3f
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.797, 1.72).extrude(1.429) result = result.union(cq.Workplane(cq.Plane(origin=(0.132, -0.161, 0.376), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.136).extrude(0.624)) result = result.cut(cq.Workp...
17
105
1.654812
train_37d1e517decd0b8d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.557, -0.644, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.894, 0.115).lineTo(0.894, 0.115).lineTo(0.894, 0.719).lineTo(0.79, 0.785).lineTo(0.412, 1.02).lineTo(0.169, 1.172).lineTo(-0.894, 1.172).lineTo(-0.894, 0.115).close().workplane(offse...
16
86
1.26698
train_c7d41cc642e44291
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.925), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.806, 2).extrude(0.124) result = result.union(cq.Workplane(cq.Plane(origin=(-0.453, 0, -0.822), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.045).extrude(0.327)) result = result.union(cq.Workp...
4
17
0.64839
train_3d842b8f33784711
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.002, 0.074), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.073, 0.869).extrude(0.349) result = result.union(cq.Workplane(cq.Plane(origin=(-0.53, -0.207, 0.209), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.209, 0.04).lineTo(0.791, 0.04).lineTo(0....
2
14
0.386266
train_5bd130e8f2564d63
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.854, -0.702, 0.101), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.132, 1.361).threePointArc((-0.239, 1.316), (-0.283, 1.21)).lineTo(-0.283, 1.04).threePointArc((-0.295, 0.982), (-0.328, 0.933)).threePointArc((-0.463, 0.606), (-0.328, 0.279)).th...
27
116
0.871586
train_6b5284c0974d23ed
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.506), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.229, 0.373).extrude(0.35) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.159, 0.184).extrude(0.232)) result = result.union(cq.Wo...
13
85
0.075253
train_47127da148abc0fd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.269, 0.014, 0.33), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.249, 0.351).lineTo(0.249, -0.146).lineTo(-0.249, -0.146).lineTo(-0.249, 0.351).lineTo(0.249, 0.351).close().extrude(1.08) result = result.edges().fillet(0.04) result = result.union(...
20
320
0.470967
train_f9de68952621d3cd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.752, 0, -0.688), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.058, 0.104).lineTo(0.058, -0.104).lineTo(-0.058, -0.104).lineTo(-0.058, 0.104).lineTo(-0.063, 0.108).lineTo(-0.063, -0.108).lineTo(0.063, -0.108).lineTo(0.065, -0.111).lineTo(-0.065,...
19
890
0.086966
train_5619e462d466ac17
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.009), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.128, 0).lineTo(-0.128, 0.36).lineTo(0.128, 0.36).lineTo(0.128, -0.36).lineTo(-0.128, -0.36).lineTo(-0.128, 0).close().sweep(cq.Workplane('XY').spline([(-0.831, -0.159), (-0.593, -0.155), ...
46
40
0.204581
train_d1610a25a4f3eb96
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.15, 0.081, -0.016), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.154, 1.081).lineTo(0.154, -0.919).lineTo(-0.154, -0.919).lineTo(-0.154, 1.081).lineTo(0.154, 1.081).close().extrude(0.297) result = result.edges().chamfer(0.045) result = result.cu...
11
77
0.180089
train_a3a5502337803f60
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.353, -0.928, 0.36), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.497, 0.292).threePointArc((-0.533, -0.07), (0.533, -0.305)).lineTo(0.499, -0.304).threePointArc((-0.503, -0.079), (0.45, 0.305)).lineTo(0.497, 0.292).close().sweep(cq.Workplane('YZ'...
14
85
0.142444
train_6d564c7fc4bdfec5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.502, -0.208, 0.017), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.498, 0.102).lineTo(0.498, -0.733).lineTo(0.031, 0.733).lineTo(-0.498, 0.102).close().sweep(cq.Workplane('YZ').spline([(-0.208, 0.017), (-0.033, -0.067), (0.142, 0.081), (0.317, -...
3
18
0.72816
train_28692f0bd3aa496e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.298, 0, -0.735), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.566, 1).lineTo(-0.175, -0.136).lineTo(-0.414, -0.293).lineTo(-0.061, -0.212).lineTo(-0.566, -1).lineTo(-0.345, -0.841).lineTo(0.028, -0.783).lineTo(0.258, -0.622).lineTo(-0.152, -0.71...
4
26
0.359559
train_43933c1e19023c6b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.071, -0.193, -0.008), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.005, 0.161).lineTo(0.005, 0.161).lineTo(0.361, 0.778).lineTo(0.377, 0.778).lineTo(0.394, 0.807).lineTo(0.359, 0.807).lineTo(0.359, 0.793).lineTo(-0.359, 0.793).lineTo(-0.359, 0....
13
68
0.691098
train_916966f236bef3c7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.304, -1.054, -0.079), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.306, 1.964).lineTo(0.921, 1.35).lineTo(0.921, 0.737).lineTo(0.306, 0.123).lineTo(-0.306, 0.123).lineTo(-0.921, 0.737).lineTo(-0.921, 1.35).lineTo(-0.306, 1.35).lineTo(0, 1.044).l...
10
185
1.324764
train_89d3e2544e6d3131
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.455), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.426).extrude(0.911) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.198 * math.cos(5.322 + 2 * math.pi * 0 / 4), 0.456 + 0.198 * math.sin(5.322 + 2 * math.pi * 0 / 4), -1.756), no...
14
16
2.546828
train_2f299c24832971eb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.35, 0.563, -0.131), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.473, 0.197).lineTo(0.473, 0.853).lineTo(-0.473, 0.853).lineTo(-0.473, -0.65).lineTo(0.143, -0.65).lineTo(0.143, 0.197).lineTo(0.473, 0.197).close().extrude(0.709) result = result.e...
24
126
0.561111
train_9169e8bbd3c77add
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.4, 0.55, 0.616), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.19, 0.265).lineTo(-0.498, 0.265).lineTo(-0.498, -0.265).lineTo(0.106, -0.265).lineTo(0.143, -0.2).lineTo(0.498, -0.124).lineTo(0.19, 0.265).close().transformed(offset=(0.184, -0.334, ...
1
8
0.24578
train_68a08f406778c9e9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.556, 0, -0.393), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.318, 0.256).lineTo(0.318, -0.25).lineTo(-0.189, -0.25).lineTo(-0.189, -0.147).threePointArc((-0.196, -0.128), (-0.215, -0.121)).lineTo(-0.318, -0.121).lineTo(-0.318, 0.256).lineTo(-0....
5
29
0.744734
train_71276c2a166b6a48
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, 0.683, -0.319), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.667).workplane(offset=0.23).circle(0.661).workplane(offset=0.325).circle(0.686).workplane(offset=0.261).circle(0.601).workplane(offset=0.264).circle(0.672).workplane(offset=0.285)...
14
52
0.77886
train_1227109affe39b20
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.06, 0.188, -0.343), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.044, 1.109).lineTo(-0.044, -1.102).threePointArc((0.044, 0.003), (-0.044, 1.109)).close().revolve(angleDegrees=90, axisStart=(-0.044, 1.109), axisEnd=(-0.044, -1.102)) result = re...
4
36
0.096036
train_4654933c8d6dace6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.714, 0.056), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.407, 0.286).threePointArc((-0.373, 0.136), (-0.285, 0.01)).threePointArc((-0.373, -0.116), (-0.407, -0.265)).lineTo(-0.407, -0.286).lineTo(0.407, -0.286).lineTo(0.407, -0.277).lineTo(...
4
28
0.124311
train_8156e9c607eaa099
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.302, -0.426, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.233, 0.592).lineTo(-0.233, 0.03).lineTo(0.233, 0.03).lineTo(0.233, 0.592).lineTo(-0.233, 0.592).close().revolve(angleDegrees=360, axisStart=(-0.233, 0.592), axisEnd=(-0.233, 0.29)) r...
9
43
0.288901
train_7516270a4d4bb929
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.175, -0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.642, 1.65).extrude(0.098) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.241, 0.364, 0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.832, 0.942).extrude(0.03)) result = result.cut...
8
36
0.180791
train_ec196b0825077a7e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.641, 0.5, -0.055), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.945, -0.185).lineTo(-0.945, -0.185).lineTo(-0.945, 1.185).lineTo(0.945, 1.185).lineTo(0.945, -0.185).close().extrude(1.449) result = result.edges().fillet(0.376) result = result.cut...
10
58
3.160258
train_6771ad00723a0ba7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.084, -0.331, 0.584), normal=(0, -1, 0), xDir=(0, 0, 1))).lineTo(0.033, 0.111).lineTo(-0.036, 0.038).close().sweep(cq.Workplane('YZ').spline([(-0.29, 0.536), (-0.237, 0.536), (-0.215, 0.526), (-0.194, 0.515)])) result = result.union(cq.Workplane...
4
209
0.227697
train_ebc5b886cb2bb3f5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.023, 0.014, 0.014), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.015, 0.079).lineTo(-0.032, 0.056).lineTo(-0.03, -0.074).lineTo(-0.018, -0.103).lineTo(0.029, -0.111).lineTo(0.056, -0.054).close().moveTo(-0.023, 0.013).lineTo(0.023, 0.013).lineT...
27
178
0.034808
train_d4a05357029b7f3c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.221, 0.444, 0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.495, 1.221).lineTo(0.237, 1.221).threePointArc((0.409, 0.835), (0.495, 0.421)).lineTo(-0.295, 0.421).lineTo(-0.295, 0.021).lineTo(0.495, 0.021).threePointArc((0.409, -0.393), (0.2...
25
50
1.33019