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_47c241db0e0fd044
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.227), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.453).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.453).lineTo(-0.724, 0.453).lineTo(-0.724, 0.079).lineTo(0.724, 0.079).lineTo(0.724, 0.453).lineTo(1, 0.453).close().extrude(1, both=True) r...
2
15
0.712198
train_000b0317a866fbdb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.18, -0.248, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.716, 2.18).lineTo(1, 1.896).lineTo(0.716, 0.18).lineTo(-1, 0.463).lineTo(-0.716, 2.18).close().extrude(0.495) result = result.edges(cq.selectors.NearestToPointSelector((-0.858, -0.248...
2
7
1.493531
train_0182021a9c520548
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.011, 0.067, 0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.274, 0.474).threePointArc((0.274, 0.474), (0.548, 0)).threePointArc((0.274, -0.474), (-0.274, -0.474)).threePointArc((-0.548, 0), (-0.274, 0.474)).close().sweep(cq.Workplane(cq.Pl...
2
63
1.173288
train_2d58c832b3b47dd4
import cadquery as cq import math result = cq.Workplane('XY').circle(0.278).extrude(1, both=True) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.665).extrude(0.748, both=True)) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(...
5
16
1.567943
train_636bd8d755d1dc8e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.022, 0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.532, 0.859).lineTo(-0.532, -0.39).lineTo(1, -0.39).lineTo(1, -0.859).lineTo(-1, -0.859).lineTo(-1, 0.859).lineTo(-0.532, 0.859).close().extrude(0.305, taper=11.604, both=True) result ...
7
64
0.621877
train_f13259721ce1bee1
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.079, 0.386).lineTo(-0.079, 0.193).lineTo(0.394, 0.193).lineTo(0.394, -0.386).lineTo(-0.236, -0.386).lineTo(-0.236, -0.193).lineTo(-0.079, -0.193).lineTo(-0.079, 0).lineTo(-0.394, 0).lineTo(-0...
16
154
0.813398
train_ca5f528f4cd9b15d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.306, 0.967).lineTo(0.306, -0.97).threePointArc((0.299, -0.986), (0.283, -1)).lineTo(-0.284, -1).lineTo(-0.284, -0.971).lineTo(-0.306, -0.971).lineTo(-0.306, 0.968).threePointArc((-0.299, 0...
13
199
0.237354
train_5fae70386a16c811
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.517), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.359, 0.344).threePointArc((0.456, 0.325), (0.497, 0.281)).lineTo(0.497, 0.154).threePointArc((0.523, 0.126), (0.582, 0.115)).lineTo(0.913, 0.115).threePointArc((0.97, 0.104), (0.994, 0.077...
7
100
0.778928
train_5a9e663e752f808d
import cadquery as cq import math result = cq.Workplane('XY').box(1.527, 2, 1.103) result = result.edges().fillet(0.214) result = result.cut(cq.Workplane(cq.Plane(origin=(0.318, -0.229, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).spline([(0.279, 0), (0.263, 0.223), (0.214, 0.337), (0.131, 0.414), (0.01, 0.46)]).spline([(0....
11
81
2.084916
train_92b438069d479faf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.003, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.233, 0.316).lineTo(0.288, 0.273).threePointArc((0.292, 0.267), (0.29, 0.26)).lineTo(0.261, 0.223).threePointArc((0.257, 0.213), (0.263, 0.204)).lineTo(0.303, 0.173).threePointArc((0.31, 0....
5
102
0.68054
train_20cb130eb9bed8f3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.135, -0.644, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.438, 2.128).lineTo(-0.438, 0.702).lineTo(1, 0.702).lineTo(1, 0.141).lineTo(-1, 0.141).lineTo(-1, 2.128).lineTo(-0.438, 2.128).close().extrude(1.288) result = result.cut(cq.Workplane(...
20
246
2.297004
train_d4a614fe990183e9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.012, -0.006, -0.551), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.987, 0.453).lineTo(0.987, 0.352).threePointArc((0.968, 0.329), (0.923, 0.319)).lineTo(0.252, 0.319).threePointArc((0.189, 0.306), (0.162, 0.275)).lineTo(0.162, -0.461).threePoint...
11
189
0.537688
train_17f17e563ae97316
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.663, -0.171, 0.235), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.238, 0.817).lineTo(0.662, 0.01).lineTo(0.233, -0.663).lineTo(-0.662, -0.524).lineTo(-0.615, 0.405).lineTo(0.238, 0.817).close().extrude(1.663) result = result.union(cq.Workplane(c...
10
151
1.622265
train_a685d9b085e61db8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.148, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.084, 0.312).lineTo(0.018, 0.256).lineTo(-0.014, 0.197).lineTo(0.201, 0.079).lineTo(0.149, -0.016).lineTo(-0.066, 0.102).lineTo(-0.099, 0.042).lineTo(-0.201, 0.098).lineTo(-0.084, 0.312).c...
17
219
0.099783
train_92fcd048dc90f711
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.173, 0.131, 0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.827, 0).threePointArc((0, -0.827), (-0.827, 0)).threePointArc((0, 0.827), (0.827, 0)).close().sweep(cq.Workplane(cq.Plane(origin=(-0.173, 0.131, 0.427), normal=(0, -1, 0), xDir=(1,...
4
23
0.225587
train_4b2595f39635d051
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.745), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1).lineTo(0, 0.199).lineTo(0.398, 0.199).lineTo(0.398, -1).lineTo(-0.398, -1).lineTo(-0.398, 1).lineTo(0, 1).close().extrude(1.489) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.32...
6
12
1.820429
train_3eb9dd0bdf9e3462
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.051, 0.443, -0.451), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.602, 0.55).lineTo(0.602, -0.55).lineTo(-0.602, -0.55).lineTo(-0.602, 0.55).lineTo(-0.257, 0.55).lineTo(-0.257, -0.231).lineTo(0.257, -0.231).lineTo(0.257, 0.55).lineTo(0.602, 0.55)...
24
60
2.386655
train_24820d6dfa6a9f42
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.025, -0.048, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.177, 0.219).lineTo(0.221, -0.024).threePointArc((-0.221, -0.219), (0.177, 0.219)).close().moveTo(-0.089, -0.024).lineTo(0, 0.024).lineTo(0, -0.024).close().extrude(2) result = result....
3
56
0.578024
train_d07784cdd5c99340
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.004, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.111, 0.096).lineTo(0.111, -0.096).lineTo(-0.111, -0.096).lineTo(-0.111, 0.096).lineTo(-0.052, 0.096).lineTo(-0.052, -0.037).lineTo(0.052, -0.037).lineTo(0.052, 0.096).lineTo(0.111, 0.096)...
6
26
0.060839
train_dafd8ca0e75da2f4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.003, -0.012, -0.498), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.258, 0.98).threePointArc((0.47, 0.941), (0.56, 0.848)).lineTo(0.56, -0.823).threePointArc((0.453, -0.934), (0.202, -0.98)).lineTo(-0.218, -0.98).threePointArc((-0.458, -0.936), (-...
19
54
1.497921
train_1eb5febdf01c930c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.373, -1, -0.043), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.093, 0.598).threePointArc((0.448, 0.375), (0.541, 0.151)).threePointArc((0.317, 0.057), (-0.093, 0.148)).threePointArc((-0.448, 0.371), (-0.541, 0.596)).threePointArc((-0.317, 0.69),...
21
545
0.61723
train_c762919d4ba37d91
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.764, 0.284).workplane(offset=2).rect(0.153, 0.217).loft() result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.883), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.552, 0.572).lineTo(0.552, 0....
5
32
0.199966
train_dceef098252b1e54
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.005, -0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.216).lineTo(1, -0.224).lineTo(0.992, -0.233).lineTo(-0.991, -0.233).lineTo(-1, -0.224).lineTo(-1, 0.218).lineTo(-0.985, 0.233).lineTo(0.983, 0.233).lineTo(1, 0.216).close().extrude...
8
53
0.259991
train_177cb149c838188c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.03, 0.738, 0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.034, 0.122).lineTo(0.109, 0.046).lineTo(0.12, -0.047).lineTo(0.045, -0.122).lineTo(-0.055, -0.107).lineTo(-0.12, -0.016).lineTo(-0.061, 0.069).lineTo(0.034, 0.122).close().sweep(cq.W...
7
66
0.197706
train_f707cac0612dc361
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.07, -0.633, -0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.287, 0.359).threePointArc((0.331, 0.349), (0.351, 0.327)).lineTo(0.351, -0.262).threePointArc((0.295, -0.33), (0.161, -0.359)).lineTo(-0.147, -0.359).threePointArc((-0.291, -0.328)...
16
251
0.309877
train_06b8dc1b41cf0d24
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.32, 0.023, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.357, 0.362).lineTo(0.439, 0.28).lineTo(0.439, -0.031).lineTo(0.529, -0.121).lineTo(0.616, -0.121).lineTo(0.68, -0.185).lineTo(0.68, -0.293).lineTo(0.612, -0.362).lineTo(0.241, -0.36...
9
183
0.107802
train_9f29e21b00011118
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.665), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.719, 0.501).lineTo(1, 0.218).lineTo(1, -0.162).lineTo(0.663, -0.501).lineTo(-0.76, -0.501).threePointArc((-0.928, -0.431), (-1, -0.261)).lineTo(-1, 0.192).threePointArc((-0.908, 0.411), (-...
5
58
0.919135
train_002291b72f2725ca
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.169), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.806, 0.338).lineTo(0.912, 0.306).lineTo(1, 0.118).lineTo(1, 0).lineTo(0.742, 0).lineTo(0.742, 0.102).lineTo(0.642, 0.306).lineTo(0, 0.085).lineTo(0, 0.338).lineTo(0.806, 0.338).close().re...
7
34
0.473077
train_2a95f912a09f92c4
import cadquery as cq import math result = cq.Workplane('XY').moveTo(0.474, 0.821).threePointArc((0.971, 0.26), (0.821, -0.474)).threePointArc((0.26, -0.971), (-0.474, -0.821)).threePointArc((-0.971, -0.26), (-0.821, 0.474)).threePointArc((-0.26, 0.971), (0.474, 0.821)).close().extrude(0.408, both=True) result = result...
6
158
1.388071
train_564c1393f62d5d87
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.829, 1).threePointArc((0.944, 0.944), (1, 0.829)).lineTo(1, 0).threePointArc((0.893, -0.233), (0.664, -0.332)).lineTo(-0.083, -0.332).threePointArc((-0.258, -0.406), (-0.332, -0.58)).lineT...
6
118
0.475076
train_b875b3746e714e65
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.635), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.487, 0.996).lineTo(1, 0.484).lineTo(1, -0.744).threePointArc((0.925, -0.922), (0.746, -0.996)).lineTo(-0.525, -0.996).lineTo(-1, -0.522).lineTo(-1, 0.609).threePointArc((-0.886, 0.883), (-...
12
54
2.479077
train_20d1f82006382f13
import cadquery as cq import math result = cq.Workplane('XZ').moveTo(1, 0.095).lineTo(0.801, 0).lineTo(1, -0.095).lineTo(0.335, -0.095).lineTo(0.335, 0.095).lineTo(1, 0.095).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0)) result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.664, 0), normal=(...
13
55
0.176553
train_8c1d1d8a195a6933
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.818, 0.883).threePointArc((0.934, 0.839), (0.983, 0.734)).lineTo(0.983, 0.584).threePointArc((0.936, 0.484), (0.824, 0.441)).lineTo(0.579, 0.441).threePointArc((0.518, 0.418), (0.492, 0.36...
4
48
0.332674
train_802f11c6fdf91758
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.41, 0, -0.4), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.257, 0.799).lineTo(0.257, 0.257).lineTo(0.819, 0.257).lineTo(0.819, 0).lineTo(0, 0).lineTo(0, 0.799).lineTo(0.257, 0.799).close().extrude(1, both=True) result = result.cut(cq.Workplane(...
9
31
0.684637
train_fea577a315935515
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.054), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.213).lineTo(1, -0.235).lineTo(-0.974, -0.235).lineTo(-1, -0.217).lineTo(-1, 0.205).threePointArc((-0.983, 0.226), (-0.962, 0.235)).lineTo(0.97, 0.235).threePointArc((0.985, 0.229), (1, ...
11
78
0.132918
train_2e2edab7aadf48cf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.497, 0.857).lineTo(1, 0).lineTo(0.497, -0.857).lineTo(-0.497, -0.857).lineTo(-1, 0).lineTo(-0.497, 0.857).lineTo(0.497, 0.857).close().extrude(0.565) result = result.cut(cq.Workplane(cq.Pl...
12
68
0.559979
train_b7f65967842e1ef6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.019, 0.299, -0.146), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.109, 0.642).lineTo(0.291, 0.477).lineTo(0.302, 0.231).lineTo(0.137, 0.049).lineTo(-0.109, 0.038).lineTo(-0.291, 0.204).lineTo(-0.302, 0.45).lineTo(-0.137, 0.631).lineTo(0.109, 0.64...
7
103
0.394987
train_59d8c3b176e11ef9
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.853, 0.241).workplane(offset=2).rect(1.34, 0.114).loft() result = result.cut(cq.Workplane(cq.Plane(origin=(0.655, 0.02, -0.007), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.113, 1.692).lineTo(0...
4
58
0.270798
train_1f2c909dfb6d40d0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.155, -0.571, -0.225), normal=(-0.574, -0.232, -0.785), xDir=(0.374, -0.927, 0))).moveTo(-0.262, -0.208).threePointArc((0.262, 0.254), (0.262, -0.208)).lineTo(0.056, -0.208).lineTo(0.056, -0.112).lineTo(0.037, -0.112).threePointArc((0.024, -0.12...
9
177
0.808523
train_671afbd588174c5a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.623), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.574, 0.907).threePointArc((-0.508, 0.879), (-0.481, 0.814)).lineTo(-0.481, -0.143).threePointArc((-0.408, -0.315), (-0.236, -0.387)).lineTo(0.935, -0.387).threePointArc((0.981, -0.407), (...
7
100
2.791878
train_2a7f571e0e145e93
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.194, 0, 0.191), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.425, -0.366).lineTo(0.266, -0.271).threePointArc((0.313, -0.191), (0.281, -0.064)).lineTo(0.361, -0.112).lineTo(0.408, -0.032).lineTo(0.376, 0.095).lineTo(0.504, 0.127).lineTo(0.472, 0...
4
47
0.625012
train_451d849dc503b86f
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, 0.394).lineTo(0, 0.197).lineTo(0.394, 0.197).lineTo(0.394, -0.197).lineTo(0.197, -0.197).lineTo(0.197, 0).lineTo(0, 0).lineTo(0, -0.394).lineTo(-0.197, -0.394).lineTo(-0.197, 0).lineTo(-0.394...
17
26
0.625794
train_ceb76ebf8387e02b
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.002, 0.394).lineTo(0.282, 0.274).lineTo(0.394, -0.01).lineTo(0.285, -0.271).lineTo(-0.005, -0.394).lineTo(-0.272, -0.284).lineTo(-0.394, 0.004).lineTo(-0.275, 0.282).lineTo(-0.002, 0.394).clo...
1
18
1.544095
train_ae31f4c55cc5d91e
import cadquery as cq import math result = cq.Workplane('XZ').moveTo(1, 0.211).lineTo(0.847, 0).lineTo(1, -0.211).lineTo(0.246, -0.211).lineTo(0.246, 0.211).lineTo(1, 0.211).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0)) result = result.cut(cq.Workplane(cq.Plane(origin=(0.139, 0.412, -0.142),...
10
56
0.638607
train_9847105c89d69892
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.751, 0.373).lineTo(1, 0.124).lineTo(1, -0.054).lineTo(0.68, -0.373).lineTo(-1, -0.373).lineTo(-1, 0.373).lineTo(0.751, 0.373).close().extrude(0.261) result = result.union(cq.Workplane(cq.P...
11
31
0.276225
train_102a9569b30652d5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.004, 0, -0.786), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.595) result = result.cut(cq.Workplane(cq.Plane(origin=(1.004, 0, -0.786), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.087, 0.407), (-0.332, 0.743), (-0.691, 0...
10
104
1.092475
train_7eaa7bc72a1909fc
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.151, 0.366).lineTo(0.152, 0.278).lineTo(0.326, 0.014).lineTo(0.204, -0.301).lineTo(-0.125, -0.366).lineTo(-0.322, -0.14).lineTo(-0.326, 0.12).lineTo(-0.151, 0.366).close().sweep(cq.Workplane(c...
12
9
0.326955
train_167d8e0a99c3e6e0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.209), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.932, 0.995).lineTo(0.932, 0.928).lineTo(1, 0.928).lineTo(1, -0.995).lineTo(-0.877, -0.995).threePointArc((-0.965, -0.96), (-1, -0.872)).lineTo(-1, 0.951).threePointArc((-0.988, 0.983), (-0...
17
222
1.321945
train_a9a33d3d9404a106
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.029, 0, 0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.057, 0.099).lineTo(0.114, 0).lineTo(-0.057, -0.099).lineTo(-0.057, 0.099).close().extrude(1.011, both=True) result = result.cut(cq.Workplane(cq.Plane(origin=(0.038, 0.061, 0), normal=...
11
22
0.019548
train_d474af37b879ae88
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.882, 0.51).threePointArc((0.965, 0.477), (1, 0.394)).lineTo(1, -0.254).threePointArc((0.923, -0.436), (0.744, -0.51)).lineTo(-0.731, -0.51).lineTo(-1, -0.242).lineTo(-1, 0.293).threePointA...
6
19
0.637677
train_4c4756c4215e5288
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.565, -0.506, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.128).threePointArc((0.8, 0.8), (1.128, 0)).lineTo(0.73, 0).threePointArc((0.517, 0.517), (0, 0.73)).lineTo(0, 1.128).close().extrude(2) result = result.union(cq.Workplane(cq.Plane...
7
50
1.221367
train_6e40a705553bee8b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.136, 0.795, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, 0.136).threePointArc((0, -0.863), (-1, 0.136)).threePointArc((0, 1.135), (1, 0.136)).close().moveTo(-0.178, 0.766).lineTo(-0.038, 0.625).lineTo(-0.178, 0.485).lineTo(-0.318, 0.625).li...
8
625
3.877676
train_8c0dfda50d774671
import cadquery as cq import math result = cq.Workplane('XZ').moveTo(1, 0.126).lineTo(0.771, 0).lineTo(1, -0.126).lineTo(0.302, -0.126).lineTo(0.302, 0.126).lineTo(1, 0.126).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0)) result = result.cut(cq.Workplane(cq.Plane(origin=(0.341, -0.427, 0), nor...
13
156
0.340016
train_dadc5ecab9c5314d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.785, -0.931, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.857, 1.028).lineTo(0.734, 0.771).lineTo(0.625, 0.232).threePointArc((0.328, 0.379), (0.22, 0.314)).lineTo(-0.161, 0.092).lineTo(-0.644, 0.22).threePointArc((-0.75, 0.464), (-0.88...
29
35
1.578963
train_8be16dd21705412f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.883).lineTo(1, -0.884).lineTo(0.99, -0.895).lineTo(-0.987, -0.895).lineTo(-1, -0.882).lineTo(-1, 0.886).lineTo(-0.991, 0.895).lineTo(0.987, 0.895).threePointArc((0.996, 0.891), (1, 0.88...
14
223
0.975182
train_e3d0a4f0c96b0c41
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.062, 0.035, -0.743), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.171, 0.171).lineTo(0.171, -0.171).lineTo(-0.171, -0.171).lineTo(-0.171, 0.171).lineTo(-0.111, 0.171).lineTo(-0.111, -0.126).lineTo(0.111, -0.126).lineTo(0.111, 0.171).lineTo(0.171,...
5
23
0.106911
train_df6a00f837b2c2da
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.012, 0.252, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.249, 0.748).threePointArc((0.748, 1.246), (1.246, 0.748)).threePointArc((0.249, 0.249), (0.249, -0.249)).threePointArc((-0.249, -1.246), (-0.748, -0.748)).threePointArc((-1.246, -0.249...
4
46
0.204182
train_76282321f4307d7c
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.406).extrude(0.793) result = result.cut(cq.Workplane(cq.Plane(origin=(0.406, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.065, 0.219), (-0.237, 0.369), (-0.464, 0.402), (...
4
56
1.277458
train_56b277147999ceae
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1.075, 0, -0.653), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.347, 1.465).lineTo(0.347, 0.685).lineTo(0.119, 0.685).lineTo(0.119, 0.97).lineTo(-0.119, 0.97).lineTo(-0.119, 0.685).lineTo(-0.347, 0.685).lineTo(-0.347, 1.465).lineTo(-0.119, 1.465)....
11
171
1.330536
train_ea75dd05c60af288
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.471, -0.516, 0.8), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.977, 0.12).lineTo(1.977, 0.089).lineTo(-1.269, 0.089).lineTo(-1.269, -0.089).lineTo(1.977, -0.089).lineTo(1.977, -0.12).lineTo(-1.977, -0.12).lineTo(-1.977, 0.12).lineTo(1.977, 0.12)...
14
134
0.167628
train_fab68acc19e01148
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.029, -0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.413, 0.304).lineTo(0.413, -0.309).threePointArc((0.411, -0.313), (0.407, -0.314)).lineTo(-0.4, -0.314).lineTo(-0.413, -0.302).lineTo(-0.413, 0.314).lineTo(0.402, 0.314).threePointArc(...
8
38
0.408803
train_5f2a5a8392bedccc
import cadquery as cq import math result = cq.Workplane('XY').moveTo(0.129, 0.645).lineTo(0.129, -0.129).lineTo(0.645, -0.129).lineTo(0.645, -0.387).lineTo(0.129, -0.387).lineTo(0.129, -0.645).lineTo(-0.129, -0.645).lineTo(-0.129, -0.387).lineTo(-0.387, -0.387).lineTo(-0.387, 0.129).lineTo(-0.645, 0.129).lineTo(-0.645,...
15
102
1.693438
train_4f9dd53860bac898
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.422), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.45, 1).lineTo(0.45, -1).lineTo(-0.45, -1).lineTo(-0.45, 1).lineTo(0.45, 1).close().extrude(0.412) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.01), normal=(0, 0, 1), xDir=(...
13
203
1.318697
train_03d76abc64eb7008
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.355), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1).threePointArc((0.708, 0.708), (1, 0)).threePointArc((0.708, -0.708), (0, -1)).threePointArc((-0.708, -0.708), (-1, 0)).threePointArc((-0.708, 0.708), (0, 1)).close().extrude(0.703) res...
2
41
2.217785
train_5188f202df9af9c1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.076, -0.097, -0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.232, 0.408).lineTo(0.371, 0.171).lineTo(0.923, 0.176).lineTo(0.475, -0.006).lineTo(0.872, -0.21).lineTo(0.286, -0.156).lineTo(0.295, -0.408).lineTo(-0.103, -0.203).lineTo(-0.586, ...
15
186
0.185094
train_c6845489942ff887
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.357, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.407).extrude(0.311, both=True) result = result.union(cq.Workplane(cq.Plane(origin=(-0.357, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.643).extrude(0.306, both=True)) result = resul...
11
64
0.456808
train_f57a25505d82c659
import cadquery as cq import math result = cq.Workplane('XY').moveTo(0.333, 1).lineTo(0.333, 0).lineTo(0.667, 0).lineTo(0.667, -0.333).lineTo(0, -0.333).lineTo(0, -1).lineTo(-0.333, -1).lineTo(-0.333, -0.667).lineTo(-0.667, -0.667).lineTo(-0.667, 0.333).lineTo(-0.333, 0.333).lineTo(-0.333, 0.667).lineTo(0, 0.667).lineT...
15
37
2.133921
train_e59530e46b15ac01
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.115), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.869, 2).extrude(0.23) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.107, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.326, 0.476).lineTo(0.326, 0.31).lineTo(0.083, 0.31).lineTo(...
11
29
0.229243
train_7c4320570c2fc810
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.557, 0.247, 0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.04, 0.443).threePointArc((0.237, 0.422), (0.43, 0.376)).threePointArc((0.375, 0.163), (0.444, -0.047)).threePointArc((0.359, -0.216), (0.438, -0.388)).threePointArc((0.263, -0.413)...
16
95
0.805801
train_026a97d956406432
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.773, -0.765, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.854, 0.792).lineTo(1, 0.639).lineTo(0.825, 0.517).threePointArc((0.765, 0.423), (0.491, 0.474)).lineTo(0.508, 0.16).lineTo(0.336, -0.192).lineTo(0.038, 0.15).threePointArc((-0.037, -0...
7
78
1.035053
train_42a43174368e203e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.065, -0.226), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.531, 0.453).lineTo(0.86, 0.43).lineTo(0.934, 0.158).lineTo(0.934, 0).lineTo(0.73, 0).lineTo(0.73, 0.135).lineTo(0.636, 0.43).lineTo(0, 0.248).lineTo(0, 0.453).lineTo(0.531, 0.453).cl...
7
116
0.590372
train_7a3da2e9dd325ded
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1, -0.739, 0.098), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.897, 0.74).threePointArc((0, -0.158), (-0.897, 0.74)).threePointArc((0, 1.637), (0.897, 0.74)).close().extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(1.167, -0.295, 0....
6
71
4.931664
train_344727d507b28c45
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.412, 0, -0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.515).extrude(1.392) result = result.union(cq.Workplane(cq.Plane(origin=(-0.412, 0, -0.025), normal=(0.863, 0, 0.505), xDir=(0.505, 0, -0.863))).circle(0.424).extrude(1.304)) result = ...
4
9
0.940407
train_2d75d5863f558da0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.077, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.885, 0.233).threePointArc((0.966, 0.213), (1, 0.166)).lineTo(1, 0.046).threePointArc((0.977, 0.014), (0.921, 0)).lineTo(0.279, 0).threePointArc((0.224, -0.014), (0.2, -0.046)).lineTo(0.2, -...
11
55
0.340123
train_8641efc66895bf51
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.001, 0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.309, 0.651).lineTo(-0.27, 0.54).lineTo(-0.225, 0.507).lineTo(0.071, 0.399).lineTo(0.134, 0.353).lineTo(0.124, 0.291).lineTo(-0.052, 0.083).threePointArc((-0.027, -0.032), (0.113, -0.09...
8
152
0.777662
train_fd230a26ea7996a0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.18, 0.138, -0.733), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.008, 0.883).lineTo(1.008, 0.487).lineTo(-0.596, 0.487).lineTo(-0.596, -0.487).lineTo(1.008, -0.487).lineTo(1.008, -0.883).lineTo(-1.008, -0.883).lineTo(-1.008, 0.883).lineTo(1.008,...
22
73
1.659116
train_41b99b487c8beac7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.052, -0.178, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.196, 0).threePointArc((0, -0.196), (-0.196, 0)).threePointArc((0, 0.196), (0.196, 0)).close().extrude(2, taper=-8.046) result = result.cut(cq.Workplane(cq.Plane(origin=(0.015, -0.233...
5
31
1.08049
train_113d626a83594013
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.589, 0.352).lineTo(0.589, 0.011).lineTo(0.929, 0.011).lineTo(0.929, -0.007).threePointArc((0.829, -0.252), (0.586, -0.352)).lineTo(-0.677, -0.352).lineTo(-0.929, -0.097).lineTo(-0.929, 0.0...
7
29
1.625529
train_44d377fa8439412e
import cadquery as cq import math result = cq.Workplane('XZ').moveTo(0.446, 0.398).lineTo(1, -0.343).lineTo(0.927, -0.398).lineTo(0.773, -0.204).threePointArc((0.562, -0.229), (0.405, 0.01)).lineTo(0.22, 0.229).lineTo(0.446, 0.398).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0)) result = resul...
9
154
0.446179
train_2c7cd213db078a94
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.314), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.455).lineTo(1, 0.274).lineTo(0.979, 0.274).lineTo(0.979, 0).lineTo(0.264, 0).lineTo(0.264, 0.455).lineTo(1, 0.455).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, ...
16
62
1.094778
train_6447ad72ddcd5702
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.011, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.083, 0.105).threePointArc((0.092, 0.101), (0.096, 0.093)).lineTo(0.096, 0.074).threePointArc((0.092, 0.066), (0.084, 0.063)).lineTo(-0.036, 0.063).threePointArc((-0.045, 0.06), (-0.048, 0....
7
49
0.054194
train_8049b9b42ff6a6f0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.506), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.598).lineTo(1, -0.594).lineTo(0.983, -0.609).lineTo(-0.979, -0.609).lineTo(-1, -0.588).lineTo(-1, 0.582).lineTo(-0.971, 0.609).lineTo(0.988, 0.609).lineTo(1, 0.598).close().extrude(0.66...
8
100
0.645185
train_303887e9911accfa
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.227), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.709, 0.454).lineTo(0.92, 0.327).lineTo(1, 0.159).lineTo(1, 0).lineTo(0.819, 0).lineTo(0.819, 0.136).lineTo(0.718, 0.327).lineTo(0, 0.272).lineTo(0, 0.454).lineTo(0.709, 0.454).close().rev...
2
15
0.581436
train_986f9eb1baef7e75
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.003, -0.059, 0.151), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.622, 0.02).threePointArc((0.717, -0.112), (0.903, -0.328)).threePointArc((0.991, -0.462), (0.794, -0.449)).lineTo(0.414, -0.376).lineTo(0.592, -0.816).threePointArc((0.541, -0.93)...
10
66
0.560747
train_aa42fd62ff1e0340
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.003, 0, -0.133), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.5, 0.265).lineTo(0.92, 0.207).lineTo(1, 0.093).lineTo(1, 0).lineTo(0.844, 0).lineTo(0.844, 0.08).lineTo(0.744, 0.207).lineTo(0, 0.109).lineTo(0, 0.265).lineTo(0.5, 0.265).close().revo...
5
18
0.312601
train_ec9e82bf0e23fe97
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.005, -0.542), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.49, 0.325).lineTo(-0.49, -0.135).threePointArc((-0.406, -0.192), (-0.205, -0.216)).lineTo(0.881, -0.216).threePointArc((0.965, -0.226), (1, -0.25)).lineTo(1, -0.338).threePointArc((0....
5
26
0.596537
train_4e76c0ee6c70c540
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.576, 0.998).threePointArc((0.808, 0.926), (0.906, 0.756)).lineTo(0.906, -0.089).threePointArc((0.807, -0.26), (0.574, -0.333)).lineTo(0.143, -0.333).threePointArc((0.042, -0.364), (0, -0.4...
8
117
2.343928
train_147c4e3eeefdaa37
import cadquery as cq import math result = cq.Workplane('XY').moveTo(-0.524, 0.782).threePointArc((-0.458, 0.754), (-0.43, 0.688)).lineTo(-0.43, -0.033).threePointArc((-0.377, -0.159), (-0.251, -0.212)).lineTo(0.925, -0.212).threePointArc((0.978, -0.235), (1, -0.287)).lineTo(1, -0.655).threePointArc((0.962, -0.744), (0...
12
38
2.226928
train_712d2a2359e04af4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1.184, 0.678, -0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.458, 2.101).lineTo(0.535, 1.734).threePointArc((0.645, 1.568), (0.642, 1.367)).lineTo(0.708, 1).threePointArc((0.698, 0.807), (0.613, 0.633)).lineTo(0.458, 0.267).threePointArc((-...
8
16
2.30407
train_1cd5bdda089c9115
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, 0.247).workplane(offset=2).rect(0.688, 0.284).loft() result = result.cut(cq.Workplane(cq.Plane(origin=(0.788, 0, -1.63), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.187).extrude(1.596).union(cq...
4
13
0.444472
train_191857079bafeab1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.015, -0.014, -0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.658, 0.1).lineTo(-0.658, -0.071).lineTo(0.969, -0.071).lineTo(0.969, -0.1).lineTo(-0.969, -0.1).lineTo(-0.969, 0.1).lineTo(-0.658, 0.1).close().extrude(0.149) result = result.ed...
17
189
0.309129
train_bfa86457d0825b5b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.183, 0, 0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.697, -0.659).threePointArc((0.497, 0.897), (-0.387, -0.897)).lineTo(-0.697, -0.659).close().moveTo(-0.586, -0.316).threePointArc((0.697, 0.316), (-0.416, -0.538)).lineTo(-0.586, -0.316...
20
102
0.454449
train_822b373e6465aa68
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.72, -0.088).lineTo(0.989, -0.143).lineTo(0.977, -0.211).lineTo(0.706, -0.161).lineTo(0.682, -0.245).lineTo(0.932, -0.359).lineTo(0.906, -0.422).lineTo(0.653, -0.315).lineTo(0.61, -0.391).l...
4
142
0.728878
train_e9472c84d135aa65
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.315).extrude(1.513) result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.059), normal=(0.328, 0, 0.945), xDir=(0.945, 0, -0.328))).circle(0.206).extrude(0.932)) result = result.cut(cq.W...
11
77
0.163093
train_e2887e2131c00db5
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.642, 0.325).threePointArc((0.867, 0.232), (0.96, 0.007)).lineTo(0.96, -0.007).threePointArc((0.867, -0.232), (0.642, -0.325)).lineTo(-0.96, -0.325).lineTo(-0.96, 0.325).lineTo(0.642, 0.325).cl...
11
26
2.390495
train_7ea9612f5c0bae79
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.266, -0.005, -0.745), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.02, 0.588).threePointArc((0.377, 0.09), (0.136, -0.552)).threePointArc((-0.07, -0.588), (-0.286, -0.361)).threePointArc((-0.345, -0.137), (-0.377, 0.239)).threePointArc((-0.292,...
8
49
1.23943
train_d5e9f7bc852467a9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.22), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.74, -0.084).lineTo(0.991, -0.138).lineTo(0.974, -0.225).lineTo(0.723, -0.177).lineTo(0.697, -0.26).lineTo(0.928, -0.372).lineTo(0.893, -0.451).lineTo(0.659, -0.346).lineTo(0.615, -0.419).li...
6
251
0.815336
train_231ceaa40861fecd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.095, -0.257, -0.448), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.268, -1.023).lineTo(-1.268, -1.023).threePointArc((0, 1.023), (1.268, -1.023)).close().extrude(0.669, both=True).intersect(cq.Workplane(cq.Plane(origin=(0.095, -0.257, -0.448), no...
15
230
1.573377
train_ed934f12de926ba9
import cadquery as cq import math result = cq.Workplane('XY').moveTo(1, 0.825).lineTo(1, 0).lineTo(0.333, 0).lineTo(0.333, -0.825).lineTo(-0.333, -0.825).lineTo(-0.333, 0).lineTo(-1, 0).lineTo(-1, 0.825).lineTo(1, 0.825).close().extrude(0.429, both=True) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.445, -0.269,...
7
10
1.887128
train_4fcbdef49b822d28
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.126, 0.554, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.446).threePointArc((0.315, 0.315), (0.446, 0)).threePointArc((0.315, -0.315), (0, -0.446)).threePointArc((-0.315, -0.315), (-0.446, 0)).threePointArc((-0.315, 0.315), (0, 0.446...
2
15
0.361815