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_0e03f1629788384b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.159, -0.003, -0.133), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.844, 0.033).lineTo(0.424, 0.724).lineTo(-0.402, 0.738).lineTo(-0.856, -0.036).lineTo(-0.414, -0.733).lineTo(0.426, -0.694).close().moveTo(-0.154, -0.287).lineTo(0.152, -0.287).lin...
10
165
0.648961
train_864084229dbe7bdf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.655, -0.701, 0.107), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1.026, 1.371).lineTo(-0.173, 1.371).lineTo(-1.026, -0.183).lineTo(-0.034, -0.183).lineTo(1.026, 1.371).close().revolve(angleDegrees=90, axisStart=(1.026, 1.371), axisEnd=(-0.173, 1....
6
49
1.941624
train_ce08b7f84a8a4947
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.247, -0.013, -0.448), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.26, -0.529).lineTo(-0.26, 1.013).lineTo(0.26, 1.013).lineTo(0.26, -0.987).lineTo(-0.26, -0.987).lineTo(-0.26, -0.529).close().extrude(0.495) result = result.edges().chamfer(0.10...
6
41
0.43896
train_6634957a3bd2adbf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.803, 0.156, -0.086), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.137, -0.003).lineTo(0.137, 0.396).lineTo(0, 0.396).lineTo(-0.137, -0.003).lineTo(0.137, -0.003).close().extrude(0.479) result = result.edges().fillet(0.038) result = result.union(...
9
162
0.148089
train_cf15d2204c5f5118
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.07, 0.457, 0.593), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.407, 1.27).threePointArc((0.407, 0.457), (-0.407, -0.356)).lineTo(-0.407, 0.457).lineTo(-0.407, 1.27).close().extrude(0.788) result = result.edges().chamfer(0.164) result = result.u...
5
25
0.576658
train_f83a78ae667c0f27
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.328, 0.057, 0.346), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.098, 0.098).lineTo(-0.098, -0.098).lineTo(0.098, -0.098).lineTo(0.098, -0.092).lineTo(-0.092, -0.092).lineTo(-0.092, 0.098).lineTo(-0.098, 0.098).close().revolve(angleDegrees=270,...
7
73
0.162896
train_7ac463f8c03872fd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.034, -0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.418).extrude(0.025) result = result.union(cq.Workplane(cq.Plane(origin=(0.107, 0.071, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.984, 1.344).extrude(0.026)) result = result.u...
11
67
0.195019
train_ec85c8c8ae20c1e4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.456, 0, 0.388), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.544, 0.33).lineTo(-0.544, -0.47).lineTo(0.544, -0.47).lineTo(0.544, 0.165).lineTo(0.412, 0.165).lineTo(0.412, 0.33).lineTo(0.312, 0.33).lineTo(0.312, 0.47).lineTo(-0.544, 0.47).lineTo...
11
142
0.922877
train_cbdb77194cbed469
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.238, 0.807), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.765, -0.118).lineTo(-1, -0.118).lineTo(-1, 0.118).lineTo(1, 0.118).lineTo(1, -0.118).lineTo(0.765, -0.118).close().extrude(0.225) result = result.edges().fillet(0.015) result = result...
5
81
0.619831
train_dc1ced94b5f6597b
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, -0.167, -0.25), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.594, 0.638).lineTo(-0.594, 0.589).lineTo(-0.545, 0.589).lineTo(0.654, -0.611).lineTo(0.535, -0.611).lineTo(-0.545, 0.469).lineTo(-0.545, -0.611).lineTo(-0.594, -0.611).lineTo(-0.594,...
5
61
1.027711
train_7109162636fdfc1e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.055), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.643, 2).extrude(0.095) result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.8 + 0.1145, 0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.066, -0.064).lineTo(0.066, 0.032).lineTo(0.06...
23
144
0.257616
train_0d30362fcb1d0137
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.817, -0.034, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.73, 0.976).lineTo(-0.73, -0.908).lineTo(-0.628, -0.908).lineTo(-0.628, 0.874).lineTo(0.628, 0.874).lineTo(0.628, 0.676).lineTo(0.73, 0.676).lineTo(0.73, 0.976).lineTo(-0.73, 0.976).c...
1
10
0.227852
train_485f4ca73cf42045
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.524, -0.803, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, -0.197).lineTo(-0.445, 0.358).lineTo(-0.406, 0.179).lineTo(0.445, 0.358).lineTo(0, 0.803).lineTo(0.624, 0.398).lineTo(0.445, 1.248).lineTo(1, 1.803).lineTo(-1, 1.803).lineTo(-0.445,...
3
22
1.0988
train_1fd45b0380d14ffd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.089, -0.121, 0.25), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.17, -0.055).lineTo(0.17, -0.044).lineTo(0.019, -0.044).lineTo(0.019, 0.055).lineTo(-0.04, 0.055).lineTo(-0.04, -0.044).lineTo(-0.111, -0.044).lineTo(-0.111, 0.055).lineTo(-0.118, 0...
15
112
0.143419
train_d19ac6a41f6495d9
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(-0.812, 0.18).lineTo(-0.812, 0.847).lineTo(0.715, 0.847).threePointArc((0.777, 0.719), (0.808, 0.581)).threePointArc((0.812, 0.513), (0.808, 0.446)).threePointArc((0.802, 0.404), (0.794, 0.3...
7
16
3.243099
train_61caaf8ff4f519a1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.478, 0.015, -0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.522, -0.017).lineTo(0.348, 0.356).lineTo(0.007, 0.493).lineTo(-0.368, 0.357).lineTo(-0.506, -0.01).lineTo(-0.364, -0.37).lineTo(0.004, -0.523).lineTo(0.355, -0.368).close().moveTo(0...
16
181
0.191649
train_97abe4cb6fcb3887
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.008, 0, -0.706), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.983, 1.965).extrude(0.071) result = result.union(cq.Workplane(cq.Plane(origin=(0.074, -0.013, -0.638), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.732).extrude(0.058)) result = result.u...
10
108
1.696925
train_497159378428b2d5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.693), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.863, 2).extrude(1.387) result = result.cut(cq.Workplane(cq.Plane(origin=(0.033, 0.811, -0.555), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.199).extrude(0.868)) result = result.edges().chamf...
32
116
2.575592
train_b019ad1847b7b33a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.169, 0.029, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.065, -0.772).threePointArc((0.021, -0.634), (-0.065, -0.497)).threePointArc((-0.152, -0.358), (-0.065, -0.22)).threePointArc((0.021, -0.082), (-0.065, 0.055)).threePointArc((-0.154, 0...
19
118
0.125677
train_baf4c8e8790cbb12
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.785, 0.434), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.095, -0.213).lineTo(-0.095, 0.213).lineTo(0.095, 0.213).lineTo(0.095, -0.213).lineTo(-0.095, -0.213).close().sweep(cq.Workplane('YZ').spline([(0.618, 0.298), (0.298, 0.338), (-0.093, 0...
6
24
0.252541
train_bbe03ae342516d3e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.371, 0.282, -0.065), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.263, 0.514).lineTo(-0.726, 0.977).lineTo(0.726, 0.977).lineTo(0.726, -0.629).lineTo(-0.726, -0.629).lineTo(-0.263, -0.165).lineTo(0.263, -0.165).lineTo(0.263, 0.514).lineTo(-0.26...
5
123
0.183886
train_a0a10aa2d8898950
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.953, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.445, 0.953).lineTo(0.334, 0.953).lineTo(0.334, 0.064).lineTo(-0.445, 0.064).lineTo(-0.445, -0.047).lineTo(0.445, -0.047).lineTo(0.445, 0.953).close().revolve(angleDegrees=360, axisStart=(0...
2
9
0.858928
train_0a35aae286df1ac3
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.596), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.155).workplane(offset=0.373).circle(0.141).workplane(offset=0.421).circle(0.128).workplane(offset=0.355).circle(0.113).workplane(offset=0.447).circle(0.1).loft() result = result.union(cq.W...
13
111
0.0585
train_83bcb6bc11d485cb
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.865, 0.743).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.05, -0.039, 0.403), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.073).extrude(0.613)) result = result.cut(cq.Workplane(...
8
50
1.086543
train_666f41a89f30736f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.98, 0.198, 0.017), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.02).sweep(cq.Workplane('XY').spline([(0.98, 0.066), (1.254, 0.071), (1.527, 0.118), (1.801, 0.165), (2.074, 0.17)])) result = result.union(cq.Workplane(cq.Plane(origin=(0.621, -0.057...
7
38
0.007847
train_b725f9eaf63d0702
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.072, -0.888, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.938, 1.072).lineTo(0.938, -0.928).lineTo(-0.938, -0.928).lineTo(-0.938, 1.072).lineTo(0.938, 1.072).close().extrude(1.776) result = result.edges().fillet(0.444) result = result.cut(cq...
18
122
5.554088
train_b2ab60e2bfd0f5ae
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.977, -0.148, -0.224), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.057, -0.35).lineTo(-0.399, 0.242).threePointArc((-0.586, 0.077), (-0.775, 0.242)).threePointArc((-0.702, 0.417), (-0.514, 0.441)).lineTo(-0.51, 0.434).lineTo(-0.502, 0.436).line...
5
30
1.644359
train_0fc53d0ec2d2bbdb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.125, 0.063, -0.085), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.125, 0.128).lineTo(0.126, 0.085).lineTo(0.128, -0.082).lineTo(0.128, -0.125).lineTo(0.085, -0.126).lineTo(-0.082, -0.128).lineTo(-0.125, -0.128).lineTo(-0.126, -0.085).lineTo(-0.1...
21
216
0.163642
train_c36f09c16d8f2525
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.032, 0.184, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.184).sweep(cq.Workplane('YZ').spline([(0.184, -1.051), (0.433, -0.436), (0.419, 0.315), (0.15, 0.902), (-0.268, 1.093), (-0.669, 0.81), (-0.893, 0.168), (-0.85, -0.58)])) result =...
11
60
0.323543
train_a4526173cd1fd618
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.129, 0.389, 0.687), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.232, 0.038).lineTo(-0.232, -0.174).lineTo(0.232, -0.174).lineTo(0.232, 0.301).lineTo(-0.232, 0.301).lineTo(-0.232, 0.038).close().revolve(angleDegrees=270, axisStart=(-0.232, 0.03...
28
37
0.384391
train_86a94574e377a40f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.041, -0.359, 0.057), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.647, 0.243).lineTo(-0.647, -0.243).lineTo(0.485, -0.243).lineTo(0.485, -0.218).lineTo(0.647, -0.218).lineTo(0.647, 0.243).lineTo(-0.647, 0.243).close().sweep(cq.Workplane('YZ').s...
6
41
0.17746
train_e4f34d96079ce132
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.871, -0.003, 0.669), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.061).lineTo(0.073, 0.077).threePointArc((0.091, 0.069), (0.089, 0.049)).lineTo(0.038, -0.006).lineTo(0.016, -0.077).threePointArc((0.015, -0.066), (0.008, -0.057)).lineTo(0, -0...
8
41
0.296565
train_7bdc93ac03040662
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.298, 0, -0.677), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.405, 1.561).extrude(1.604) result = result.union(cq.Workplane(cq.Plane(origin=(0.683, 0.269, -0.35), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.633, 0.712).extrude(0.606)) result = resul...
3
16
4.024359
train_f48316f33963fad9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.009, 0.006, 0.018), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.28, 0.946).lineTo(-0.141, 1.026).lineTo(-0.421, 0.701).threePointArc((-0.404, 0.481), (-0.28, 0.297)).lineTo(0.141, 0.217).lineTo(0.421, 0.541).lineTo(0.28, 0.946).close().revolve(...
10
86
1.13219
train_6e6b094bb53cb662
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.008, -0.023, -0.333), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.008, 0.009).lineTo(0.708, 0.685).lineTo(-0.03, 1).lineTo(-0.689, 0.681).lineTo(-0.992, -0.02).lineTo(-0.656, -0.721).lineTo(-0.014, -0.953).lineTo(0.72, -0.683).close().center(-0...
14
99
0.871919
train_7aa87a818b585a79
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.964, -0.401, 0.006), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.021, 0.036).lineTo(-0.026, 0.036).lineTo(-0.026, -0.036).lineTo(0.026, -0.036).lineTo(0.026, 0.036).lineTo(-0.001, 0.036).lineTo(-0.001, 0.03).lineTo(-0.008, 0.03).lineTo(-0.008...
2
19
0.00152
train_0fc0fd356dff64e7
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.527, -0.339, -0.104), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.374).sweep(cq.Workplane('XY').spline([(-0.527, -1.231), (-0.243, -1.57), (0.04, -1.774), (0.324, -1.842), (0.607, -1.774), (0.891, -1.57), (1.175, -1.231)])) result = result.face...
13
37
0.5104
train_bd972baca03d4e2a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.001, 0.009, -0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.382, 0.747).threePointArc((-0.438, 0.669), (-0.482, 0.583)).threePointArc((-0.534, 0.393), (-0.532, 0.195)).threePointArc((-0.372, 0.123), (-0.199, 0.093)).threePointArc((-0.165,...
3
32
1.905507
train_494be018359cb27c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.833).extrude(0.662) result = result.union(cq.Workplane(cq.Plane(origin=(-0.8 + 0.16, -0.733 + 0.3665, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.051, 0.001).lineTo(-0.058, 0.01...
21
148
2.035543
train_e52edb3f93c74f02
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.911, 0.202), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.089).sweep(cq.Workplane('YZ').spline([(-0.911, 0.006), (-0.481, 0), (-0.052, -0.085), (0.378, -0.282), (0.808, -0.557)])) result = result.union(cq.Workplane(cq.Plane(origin=(0.009, 0.1...
10
52
0.029496
train_60e4ad77bcd404a8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.675, 0, -0.356), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.595).workplane(offset=0.306).circle(0.455).workplane(offset=0.213).circle(0.639).workplane(offset=0.299).circle(0.436).workplane(offset=0.295).circle(0.376).workplane(offset=0.238).ci...
7
32
1.16341
train_0b864c2c47d12cd0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.232, 0, -0.506), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.536, 1.583).extrude(0.827) result = result.union(cq.Workplane(cq.Plane(origin=(-0.745, -0.313, -0.407), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.255).extrude(0.428)) result = result.u...
4
43
2.113913
train_7a8dcd801f7d586d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1.011, 0.661, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.435, 0.523).threePointArc((-0.44, 0.451), (-0.435, 0.379)).threePointArc((0, 0.011), (0.435, 0.379)).threePointArc((0.44, 0.451), (0.435, 0.523)).threePointArc((0, 0.891), (-0.435, 0....
11
68
0.443227
train_ed45ccafe7cdaddd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.287, -0.338, -0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.032, 1.325).extrude(0.09) result = result.union(cq.Workplane(cq.Plane(origin=(0.304, -0.338, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.387).extrude(0.021)) result = resul...
23
99
0.182219
train_9eed28cb1048145d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.377, -0.502, -0.439), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.242).sweep(cq.Workplane('XY').spline([(-0.769, -0.765), (-0.573, -0.741), (-0.377, -0.502), (-0.18, -0.262), (0.016, -0.238)])) result = result.union(cq.Workplane(cq.Plane(origin...
5
69
0.420602
train_955857356fc20273
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.178, 0.092, -0.165), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.835, -0.129).lineTo(0.835, 0.129).lineTo(-0.835, 0.129).lineTo(-0.835, -0.129).lineTo(0.835, -0.129).close().sweep(cq.Workplane('XY').spline([(0.657, 0.092), (0.241, 0.318), (-0....
11
60
0.458799
train_0fcbaf6eb367524f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.017), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.3).lineTo(-1, -0.3).lineTo(1, 0.3).lineTo(-1, 0.3).close().extrude(0.034) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2, -0.24 + 0.048, -0.022), normal=(0, 0, 1), xDir=(...
21
146
0.019432
train_fe2688c0dbf5eee4
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.461, -0.023, -0.739), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.266, -0.083).lineTo(0.266, -0.083).threePointArc((0, 0.13), (-0.266, -0.083)).close().extrude(0.921) result = result.edges().fillet(0.015) result = result.union(cq.Workplane(cq....
4
26
0.076419
train_57b270360d025847
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.103, 0.963).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.141, 0.362, -0.7), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.126).extrude(0.949)) result = result.cut(cq.Workplane(c...
11
35
1.526967
train_f8a68f3e7e1d273f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.43, 0.934, -0.284), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.424, 1.043).lineTo(-0.424, -0.57).lineTo(0.424, -0.57).lineTo(0.424, 1.043).lineTo(-0.424, 1.043).close().extrude(1.071) result = result.edges().chamfer(0.127) result = result.fac...
11
87
0.570323
train_aaac23b2575455ff
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.279), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.746, -0.45).threePointArc((-0.961, -0.061), (-0.986, 0.384)).lineTo(-0.542, 0.384).threePointArc((0, 0.783), (0.542, 0.384)).lineTo(0.986, 0.384).threePointArc((0.961, -0.061), (0.746, -0...
8
54
1.137667
train_be4ca850d5acd18d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.015, -0.409, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.349, 0.481).threePointArc((0.392, 0.096), (0.007, 0.054)).lineTo(-0.349, 0.339).threePointArc((-0.392, 0.724), (-0.007, 0.766)).lineTo(0.349, 0.481).close().extrude(0.817) result = re...
21
187
0.649929
train_e6703d20328681b1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.489, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.121, 0.343).threePointArc((-0.606, 0), (-0.121, -0.343)).lineTo(0.525, -0.114).threePointArc((0.606, 0), (0.525, 0.114)).lineTo(-0.121, 0.343).close().sweep(cq.Workplane('XY').spline([(0.4...
4
12
0.487416
train_1c51ccd94fdc62e1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.053), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.85).workplane(offset=0.024).circle(0.957).workplane(offset=0.018).circle(1).workplane(offset=0.016).circle(0.959).workplane(offset=0.024).circle(0.828).loft() result = result.edges().chamf...
24
93
0.121939
train_061127760d8c983a
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.152, 2).extrude(0.424) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.081, -0.425, -0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.167).extrude(0.055)) result = result.cut(cq.Work...
14
280
0.836829
train_ac464ceac3a84f2f
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.147, 0, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.149, 2).extrude(1.016) result = result.cut(cq.Workplane(cq.Plane(origin=(0.147, 0, -0.451), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.489, 1.206).extrude(1.32)) result = result.union(cq....
5
50
1.997896
train_4e3f23d8d7db8d68
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.03, -0.088, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.069, -0.912).lineTo(0.006, -0.912).threePointArc((0.05, -0.894), (0.069, -0.849)).lineTo(0.069, 1.088).lineTo(0.037, 1.088).lineTo(-0.069, 1.088).lineTo(-0.069, 1.064).lineTo(0.03...
3
59
0.22816
train_aa9fbc1029e7e456
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.098, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.014).lineTo(1, 0.196).lineTo(0.391, 0.196).lineTo(0.391, 0.135).lineTo(-1, 0.135).lineTo(-1, 0.014).lineTo(1, 0.014).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.407, ...
8
67
0.051334
train_c54be83816c4da39
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.143, -0.582), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.313).sweep(cq.Workplane('YZ').spline([(0.143, -1.032), (1.311, -1.032), (1.696, -0.753), (2.081, -0.474), (2.466, -0.194)])) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.114, 0...
5
14
0.023474
train_3e52e1138c45c8fe
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(1.129, 0.309, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.834, 0.245).threePointArc((-0.975, 0.434), (-1.111, 0.628)).lineTo(0.934, 2.008).threePointArc((1.02, 1.885), (1.111, 1.765)).lineTo(-0.834, 0.245).close().workplane(offset=0.283).mov...
3
28
0.439902
train_2714be42815e1451
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.001, 0, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.001, -0.635).lineTo(-1.001, 0.635).lineTo(-0.76, 0.635).lineTo(-0.76, -0.393).lineTo(0.76, -0.393).lineTo(0.76, -0.221).lineTo(1.001, -0.221).lineTo(1.001, -0.635).lineTo(-1.001, -0.635)...
3
178
0.897807
train_9769a884bc5a06c5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.144, -0.148, -0.588), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.538, 1.704).extrude(1.176) result = result.union(cq.Workplane(cq.Plane(origin=(0.763, -0.409, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.15).extrude(0.553)) result = resu...
18
141
1.995193
train_83cd3acd373987c9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.038, -0.6, 0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.954).lineTo(0.028, 1.002).lineTo(0.056, 0.986).lineTo(0.112, 0.954).lineTo(0.215, 0.894).lineTo(0.215, -0.4).lineTo(0, -0.4).lineTo(0, 0.889).lineTo(-0.215, 0.765).lineTo(-0.215,...
15
158
0.261425
train_34735ba3b0342cd9
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.225, -0.659), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.756, 1.55).extrude(1.051) result = result.union(cq.Workplane(cq.Plane(origin=(-0.364, -0.555, 0.375), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.331, 0.284).extrude(0.284)) result = resu...
4
20
2.947922
train_56a7a21ce66a0595
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.078, 0.2), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, -0.74).lineTo(1, 0.74).lineTo(0.932, 0.74).lineTo(0.932, -0.672).lineTo(-0.932, -0.672).lineTo(-0.932, 0.672).lineTo(-1, 0.672).lineTo(-1, -0.74).lineTo(1, -0.74).close().extrude(0.401...
2
13
0.13003
train_2d1929c1b6e2954e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.194, -0.13, -0.367), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.612, 1.389).extrude(1.1) result = result.union(cq.Workplane(cq.Plane(origin=(0.248, 0.251, 0.716), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.144, 0.184).extrude(0.19)) result = resul...
14
64
1.045791
train_4ed1007e03d0951e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.528, -1, -0.075), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.073, 0.924).lineTo(0.487, 1.825).lineTo(1.073, 0.408).lineTo(-0.14, -0.293).lineTo(-1.073, 0.924).close().extrude(2) result = result.edges().chamfer(0.661) result = result.faces('>Z...
4
57
0.584318
train_f096eb12e1b1c113
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.182, -0.011), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.011, -0.326).lineTo(-0.578, 0.24).lineTo(-0.536, 0.281).lineTo(-0.536, 0.328).lineTo(-0.716, 0.508).lineTo(-0.78, 0.443).lineTo(-0.846, 0.378).lineTo(-0.666, 0.199).lineTo(-0.619, 0....
2
25
0.14149
train_a24428e0f63196b6
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.051, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.686, 0.718).extrude(1.74) result = result.union(cq.Workplane(cq.Plane(origin=(0.178, 0.358, 0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.051).extrude(0.155)) result = result.cut(cq.W...
9
39
0.870789
train_ea79f2f57d934bf8
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.735, 0, -0.265), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.354, 0.439).lineTo(-0.354, 0.439).lineTo(0.354, -0.439).lineTo(0.354, 0.439).close().sweep(cq.Workplane('XZ').spline([(-0.166, -0.662), (0.219, -0.662), (0.596, -0.872), (0.972, -1.0...
4
16
0.549361
train_30c1cf29aa9596f0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.941, -0.403), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.019, 0.033).lineTo(0.019, 0.038).lineTo(-0.022, 0.038).lineTo(-0.022, -0.038).lineTo(0.018, -0.038).lineTo(0.018, -0.032).lineTo(0.022, -0.032).lineTo(0.022, 0.033).lineTo(0.019, 0.03...
1
10
0.008439
train_857b7390e0efe3e1
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.026, 0.244, 0.157), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.069, 0.486).threePointArc((0.168, 0.445), (0.208, 0.347)).lineTo(0.208, -0.347).threePointArc((0.168, -0.445), (0.069, -0.486)).lineTo(-0.069, -0.486).threePointArc((-0.168, -0.44...
5
63
0.138626
train_5564c5b282276545
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.161, 0.612, -0.152), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.532).workplane(offset=0.2).circle(0.469).workplane(offset=0.166).circle(0.526).workplane(offset=0.143).circle(0.46).workplane(offset=0.145).circle(0.471).workplane(offset=0.166)....
23
84
0.751665
train_4920ef77de092710
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.5, -0.5), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.031, 0.5).lineTo(0.031, 0.5).lineTo(0.031, -0.5).lineTo(-0.031, -0.5).lineTo(-0.031, 0.5).close().revolve(angleDegrees=180, axisStart=(-0.031, 0.5), axisEnd=(0.031, 0.5)) result = result...
7
62
0.013393
train_f53d5585c6e25f02
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.038, -0.172, -0.331), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.703, 0.555).extrude(0.013) result = result.union(cq.Workplane(cq.Plane(origin=(0.045, -0.178, -0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.396, 0.363).extrude(0.006)) result ...
11
102
0.730118
train_4185c0e22a3911bb
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.201, -0.109, -0.628), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.063, 0.348).lineTo(0.088, 0.348).lineTo(0.073, 0.373).lineTo(0.073, 0.494).lineTo(-0.118, 0.494).lineTo(-0.118, 0.373).lineTo(-0.133, 0.348).lineTo(-0.108, 0.348).lineTo(-0.108, ...
8
53
0.093378
train_8ab437b66ec84862
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.677), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.669).extrude(1.355) result = result.cut(cq.Workplane(cq.Plane(origin=(0.078, 0.005, -0.907), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.663, 0.624).extrude(1.626)) result = result.edges()....
3
50
3.945371
train_6f4fe9a8797f7722
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.295, 0.665, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.705, 1.358).lineTo(0.705, 0.23).threePointArc((0.54, -0.17), (0.141, -0.335)).lineTo(-0.423, -0.335).lineTo(-0.705, -0.335).lineTo(-0.705, 1.358).lineTo(0.705, 1.358).close().extrude(0...
8
56
1.9895
train_aad51476d6046001
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.244, -0.208, 0.061), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.854, 0.071).lineTo(-0.854, 0.643).lineTo(-0.631, 0.643).lineTo(-0.631, 0.127).lineTo(0.129, 0.127).lineTo(0.129, 0.643).lineTo(0.939, 0.643).lineTo(0.939, 0.699).lineTo(-0.939, 0...
24
189
0.317669
train_9ef4e88d0a6e881e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.011, 0.001, 0.556), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.332, -0.407).threePointArc((-0.256, -0.455), (-0.166, -0.475)).threePointArc((0.269, -0.474), (0.705, -0.439)).threePointArc((0.933, -0.209), (0.764, 0.067)).threePointArc((0.071,...
3
50
1.155213
train_07dfe68c44ee980e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.017, -0.016, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.387, 0.593).extrude(1.691) result = result.union(cq.Workplane(cq.Plane(origin=(-0.193, -0.03, -0.365), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.017).extrude(0.147)) result = result.u...
14
93
0.402179
train_fa5df98de4ab77ec
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.289, 0, 0.493), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.306).workplane(offset=0.141).circle(0.248).workplane(offset=0.13).circle(0.307).workplane(offset=0.168).circle(0.463).workplane(offset=0.139).circle(0.476).loft() result = result.cut(c...
10
34
0.445455
train_385369caae5af1cd
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.312, -0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.717, 1.376).extrude(0.692) result = result.union(cq.Workplane(cq.Plane(origin=(-0.081, 0.658, -0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.28, 0.685).extrude(0.387)) result = resu...
19
172
0.578792
train_d1e7966c65379850
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.051, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.64, -0.688).lineTo(-0.674, 0.789).lineTo(0.674, 0.789).lineTo(0.64, -0.688).lineTo(-0.64, -0.688).close().extrude(1.985) result = result.edges().fillet(0.148) result = result.union(cq.Wo...
9
80
2.948194
train_6120b95db31720df
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.205, 1.484).extrude(2) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.054, -0.336, -1.009), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.16).extrude(0.355)) result = result.cut(cq.Workplane...
15
110
2.592237
train_443634dd2c38a2bf
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.047, -0.528, 0.121), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.283, 0.472).lineTo(-0.283, -0.434).lineTo(0.283, -0.434).lineTo(0.283, -0.472).lineTo(0.283, 0.472).lineTo(0.283, 0.434).lineTo(0.245, 0.434).lineTo(0.245, 0.472).lineTo(-0.283,...
15
59
0.305276
train_7f566ef9fdd7ed21
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.297, 0.421, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.311, -0.703).lineTo(0.311, -0.703).lineTo(0.311, 1.297).lineTo(-0.311, 1.297).lineTo(-0.311, -0.703).close().extrude(0.842) result = result.edges().chamfer(0.1) result = result.cut(cq...
15
144
0.672256
train_eca2ae832873d73c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0.037, 0.14), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.196).lineTo(-1, -0.165).lineTo(0.361, -0.165).lineTo(0.361, -0.196).lineTo(0.722, -0.196).lineTo(0.722, -0.165).lineTo(1, -0.165).lineTo(1, 0.196).lineTo(-1, 0.196).close().extrude(...
3
24
0.065363
train_74d71aa7c6b75d45
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.195, -0.083, 0.093), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.091, -0.394).threePointArc((0.05, -0.381), (0.01, -0.363)).lineTo(0.01, -0.218).threePointArc((-0.091, 0), (0.01, 0.218)).lineTo(0.01, 0.363).threePointArc((0.05, 0.381), (0.091, 0...
14
80
0.518825
train_ef2570100ccdf822
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.003, 0.251, -0.707), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.133, 1.003).lineTo(-0.133, 0.827).lineTo(-0.25, 0.827).threePointArc((-0.229, 0.7), (-0.16, 0.593)).lineTo(0.073, 0.827).lineTo(0.073, 0.621).lineTo(0.073, 0.503).lineTo(0.073, -...
9
97
0.564773
train_01cfb4703557daf0
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-1, 0.094, -0.196), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.056).lineTo(0.555, 0.094).lineTo(0, -0.868).lineTo(-0.555, 0.094).lineTo(0, 1.056).close().extrude(2) result = result.union(cq.Workplane(cq.Plane(origin=(0.033, -0.047, 0.344), nor...
7
61
1.606546
train_aa47292b206b784d
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.25), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.087, 2).extrude(0.574) result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.149 * math.cos(0.781 + 2 * math.pi * 0 / 4), 0.287 + 0.149 * math.sin(0.781 + 2 * math.pi * 0 / 4), -1.55), norm...
12
44
1.124206
train_b5f9ea3bb2125a2c
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.585, -0.161, -0.052), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.259, -0.172).threePointArc((0.045, -0.26), (-0.169, -0.172)).threePointArc((-0.259, 0.044), (-0.169, 0.26)).lineTo(0.045, 0.044).lineTo(0.259, -0.172).close().sweep(cq.Workplane...
20
197
0.429305
train_6413a512d494e89e
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.933, -0.088, -0.481), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.017, -0.012).lineTo(0.017, -0.002).lineTo(-0.01, -0.002).lineTo(-0.01, 0.012).lineTo(-0.017, 0.012).lineTo(-0.017, -0.012).lineTo(0.017, -0.012).close().sweep(cq.Workplane('XZ')....
9
82
0.631813
train_e76133d820575f61
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.514, -1.179, -0.494), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.521, 1.693).lineTo(0.521, 0.444).lineTo(-0.521, 0.444).lineTo(-0.521, 1.693).lineTo(0.521, 1.693).close().revolve(angleDegrees=90, axisStart=(0.521, 1.693), axisEnd=(0.521, 1.06...
7
112
0.677427
train_92579da641223242
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(-0.13, -0.182, 0.738), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.514, 0.149).lineTo(0, 0.446).lineTo(-0.514, 0.149).lineTo(-0.343, -0.149).lineTo(-0.171, 0.149).lineTo(0.171, 0.149).lineTo(0.343, -0.149).lineTo(0.171, -0.446).lineTo(0.514, -0.4...
18
123
0.752742
train_ba82fd2bfda41312
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, 0.426), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.786).lineTo(-1, 0.786).lineTo(-1, -0.786).lineTo(1, -0.786).lineTo(1, 0.786).lineTo(0, 0.786).close().extrude(1.303) result = result.edges().chamfer(0.117) result = result.union(cq.Work...
10
74
2.862973
train_be499a5ea211a147
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, -0.74, 0.512), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.492, 1.029).lineTo(-0.507, 0.452).lineTo(-0.015, 0.15).lineTo(0.492, 0.425).lineTo(0.507, 1.003).lineTo(0.015, 1.304).lineTo(-0.492, 1.029).close().revolve(angleDegrees=360, axisStart...
9
73
2.010325
train_7c66a592418bd662
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0, 0, -0.639), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.205, 2).extrude(1.278) result = result.cut(cq.Workplane(cq.Plane(origin=(0.103, 0.548, -0.403), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.233).extrude(0.463)) result = result.cut(cq.Workpl...
4
17
2.908049
train_eaf6d0e376be05b5
import cadquery as cq import math result = cq.Workplane(cq.Plane(origin=(0.086, 0, -0.495), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.745, 2).extrude(0.99) result = result.cut(cq.Workplane(cq.Plane(origin=(-0.612 + 0.2325, -0.8 + 0.4, -0.644), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.062, 0.123).lineTo(0.078, 0.121)...
20
185
3.324437