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_189ea604eeccdefa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.165, 0.01, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.179, 0.374).threePointArc((0.206, 0.361), (0.217, 0.332)).lineTo(0.217, 0.175).threePointArc((0.23, 0.139), (0.261, 0.124)).lineTo(0.377, 0.124).threePointArc((0.417, 0.106), (0.434, 0.... | 7 | 148 | 0.675899 |
train_afdd7743c26fcc65 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.117, 0.999).lineTo(0.399, 0.923).threePointArc((0.493, 0.844), (0.607, 0.8)).lineTo(0.853, 0.551).threePointArc((0.877, 0.484), (0.922, 0.429)).lineTo(0.998, 0.145).threePointArc((0.975, 0... | 2 | 31 | 0.530664 |
train_0b63de056ed08f5d | 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.485, 1).lineTo(0.485, -1).lineTo(-0.485, -1).lineTo(-0.485, 1).lineTo(0.485, 1).close().extrude(0.44)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.148), normal=(0, 0, 1), xDir... | 6 | 57 | 0.272627 |
train_72448b22c5467cfa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.111, -0.427, -0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.689, 0.488).threePointArc((0.689, 0.959), (0.311, -0.247)).lineTo(-0.033, -0.84).threePointArc((-0.101, -0.959), (-0.27, -0.703)).lineTo(0.141, 0.009).threePointArc((0.398, 0.178)... | 11 | 110 | 1.105862 |
train_cef188b4af5ff801 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.316, 0, -0.118), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.634, 0.769).lineTo(0.634, 0.461).lineTo(0.212, 0.461).lineTo(0.212, -0.769).lineTo(-0.634, -0.769).lineTo(-0.634, 0.769).lineTo(0.634, 0.769).close().extrude(0.326, taper=-8.684)
resu... | 11 | 207 | 0.569524 |
train_957a6ca5f6b413aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.249, 0.093, 0.077), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1.083, 0.652).threePointArc((1.237, 0.728), (1.327, 0.145)).lineTo(1.236, 0.337).lineTo(1.098, -0.114).threePointArc((1.365, -0.196), (1.556, -0.662)).lineTo(1.313, -0.728).lineTo(1.... | 20 | 174 | 1.016394 |
train_c186a9a70efa796c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.506, 0.242, -0.526), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.335, 0.29).lineTo(0.335, -0.362).lineTo(-0.335, -0.362).lineTo(-0.335, 0.29).threePointArc((-0.251, 0.219), (-0.167, 0.29)).threePointArc((-0.084, 0.362), (0, 0.29)).threePointArc(... | 3 | 33 | 1.068473 |
train_7d61d713b9a9f596 | import cadquery as cq
import math
result = cq.Workplane('XY').box(1.679, 1.773, 2)
result = result.edges().fillet(0.239)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.718).extrude(3.359, both=True))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), nor... | 6 | 53 | 1.063783 |
train_c6cffa0854ac7742 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.408, 0, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.534, 0.342).threePointArc((0.575, 0.325), (0.592, 0.285)).lineTo(0.592, -0.295).threePointArc((0.578, -0.329), (0.545, -0.342)).lineTo(-0.515, -0.342).lineTo(-0.515, -0.267).lineTo(-0.... | 9 | 42 | 0.185085 |
train_74b48374be1d683e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.945, 0.83).threePointArc((0.979, 0.821), (1, 0.787)).lineTo(1, -0.762).lineTo(0.919, -0.762).lineTo(0.919, -0.83).lineTo(-0.943, -0.83).lineTo(-1, -0.785).lineTo(-1, 0.767).threePointArc((... | 18 | 290 | 0.53125 |
train_b842acfc20295d67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, -0.11, 0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.264, 0.633).threePointArc((0.632, 0.573), (0.08, -0.107)).threePointArc((0.012, -0.142), (-0.028, -0.222)).threePointArc((-0.139, -0.605), (-0.464, -0.633)).threePointArc((-0.632,... | 2 | 21 | 1.568139 |
train_658e520bf52cc947 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.24, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.119, 0.44).lineTo(0.141, 0.36).threePointArc((0.166, 0.323), (0.177, 0.28)).threePointArc((0.148, 0.225), (0.091, 0.2)).lineTo(0.144, 0.12).lineTo(0.119, 0.04).threePointArc((-0.177, 0.24)... | 15 | 363 | 0.224437 |
train_ee199ef226264e20 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.164, 0.261, -0.847), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.504, 0.254).threePointArc((0.794, 0.046), (0.488, -0.201)).lineTo(0.447, -0.254).lineTo(0.027, -0.205).lineTo(0.01, -0.144).lineTo(-0.051, -0.114).lineTo(-0.037, 0.248).lineTo(0.50... | 6 | 62 | 1.392107 |
train_9ff135e595d3f54d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.166), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.7, 0.332).lineTo(0.7, 0.222).lineTo(1, 0.222).lineTo(1, 0).lineTo(0.21, 0).lineTo(0.21, 0.332).lineTo(0.7, 0.332).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))... | 5 | 71 | 0.754766 |
train_a6eebeed4129c6d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.058), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.13).lineTo(0.831, 0).lineTo(1, -0.13).lineTo(0.228, -0.13).lineTo(0.228, 0.13).lineTo(1, 0.13).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = result... | 13 | 113 | 0.436681 |
train_6c5a5dad259ab581 | import cadquery as cq
import math
result = cq.Workplane('XY').box(1.806, 0.901, 2)
result = result.edges().fillet(0.165)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.303).extrude(3.612, both=True))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), nor... | 12 | 124 | 1.813791 |
train_0103f6b120b18671 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.202, 0.144, -0.123), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.081, 0.584).threePointArc((0.127, 0.565), (0.146, 0.519)).lineTo(0.146, 0.365).threePointArc((0.168, 0.314), (0.219, 0.292)).lineTo(0.326, 0.292).threePointArc((0.405, 0.259), (0.... | 21 | 89 | 1.0262 |
train_85e4cc605f90d081 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.639, -0.509, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.735, 1.477).lineTo(0.71, 0.981).lineTo(0.996, 0.656).lineTo(0.984, 0.433).threePointArc((0.85, 0.233), (0.832, -0.006)).threePointArc((0.703, -0.024), (0.646, -0.105)).threePointArc((... | 6 | 318 | 2.617817 |
train_722627eb2de33fb9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.203, -0.163, 0.049), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.213, 0.382).lineTo(0.016, 0.321).lineTo(0.251, 0.344).lineTo(0.19, 0.116).lineTo(0.213, -0.12).lineTo(-0.016, -0.059).lineTo(-0.251, -0.082).lineTo(-0.19, 0.147).lineTo(-0.213, 0... | 14 | 52 | 0.296895 |
train_6b601c2b78c54b2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.63), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.694, 1.26).lineTo(0.694, 0.321).lineTo(1, 0.321).lineTo(1, 0).lineTo(0.32, 0).lineTo(0.32, 1.26).lineTo(0.694, 1.26).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0... | 5 | 23 | 1.929608 |
train_29bca8f946716fea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0.002, -0.214), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.043, 0.973).threePointArc((0.646, 0.091), (0.914, -0.955)).lineTo(0.196, -0.998).threePointArc((-0.914, -0.119), (-0.25, 0.998)).lineTo(0.043, 0.973).close().extrude(0.428)
final_r... | 1 | 6 | 1.135074 |
train_383363c04799e3b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.209), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.93, 0.417).lineTo(0.93, 0).lineTo(-0.93, 0).lineTo(-0.93, 0.417).lineTo(-0.684, 0.417).lineTo(-0.684, 0.247).lineTo(0.684, 0.247).lineTo(0.684, 0.417).lineTo(0.93, 0.417).close().extrude(... | 10 | 45 | 0.953736 |
train_214adfcbcd7e7d2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.077), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.225, 0.274).lineTo(0.225, 0).lineTo(-0.225, 0).lineTo(-0.225, 0.274).lineTo(-0.136, 0.274).lineTo(-0.136, 0.089).lineTo(0.136, 0.089).lineTo(0.136, 0.274).lineTo(0.225, 0.274).close().ext... | 3 | 22 | 0.150576 |
train_5381a8a217f05e7b | import cadquery as cq
import math
result = cq.Workplane('XY').box(2, 1.248, 1.532)
result = result.edges().fillet(0.331)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.375).extrude(4, both=True))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=... | 10 | 62 | 1.767297 |
train_177f30bbd0415738 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.482, 0, -0.948), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.34, 0).threePointArc((0.289, -0.051), (0.238, 0)).threePointArc((0.289, 0.051), (0.34, 0)).close().sweep(cq.Workplane(cq.Plane(origin=(0.482, 0, -0.948), normal=(0, 0, 1), xDir=(1, 0,... | 7 | 63 | 0.162036 |
train_9f9d30cdb8eb4705 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.468, 0.162, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.392, 0.306).lineTo(0.145, -0.363).threePointArc((-0.392, -0.057), (0.392, 0.306)).close().moveTo(-0.072, 0.363).lineTo(0.192, 0.213).threePointArc((-0.192, 0.036), (-0.072, 0.363)).cl... | 13 | 192 | 1.699257 |
train_13b0fe1e016f86ce | 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.104, 0.105).lineTo(0.104, -0.105).lineTo(-0.104, -0.105).lineTo(-0.104, 0.105).lineTo(-0.045, 0.105).lineTo(-0.045, -0.047).lineTo(0.045, -0.047).lineTo(0.045, 0.105).lineTo(0.104, 0.105).clos... | 4 | 35 | 0.893239 |
train_a99cbfd1287db694 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.049, -0.183), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.812, 0.95).threePointArc((0.89, 0.917), (0.922, 0.84)).lineTo(0.922, -0.764).threePointArc((0.867, -0.895), (0.735, -0.95)).lineTo(-0.698, -0.95).threePointArc((-0.856, -0.884), (-0.92... | 8 | 61 | 1.072769 |
train_6ef53b79a9fbd678 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.164, -0.344, 0.123), normal=(0.974, 0.217, -0.065), xDir=(-0.218, 0.976, 0))).moveTo(0.173, 0.235).threePointArc((0.186, 0.229), (0.191, 0.215)).lineTo(0.191, 0.127).threePointArc((0.187, 0.116), (0.178, 0.112)).lineTo(-0.037, 0.112).threePointA... | 9 | 132 | 0.293538 |
train_854d7d1abfd2d3ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.131, -0.743, 0.318), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.029, 0.667).lineTo(0.567, 0.542).lineTo(0.681, -0.001).lineTo(0.593, -0.591).lineTo(0, -0.577).lineTo(-0.533, -0.508).lineTo(-0.681, 0.031).lineTo(-0.408, 0.456).lineTo(0.029, 0.6... | 2 | 19 | 2.697468 |
train_314c8b517a36d3f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.864).lineTo(1, -0.853).lineTo(0.946, -0.9).lineTo(-0.957, -0.9).lineTo(-1, -0.864).lineTo(-1, 0.88).lineTo(-0.973, 0.9).lineTo(0.957, 0.9).lineTo(1, 0.864).close().extrude(0.228)
result... | 6 | 53 | 0.770884 |
train_8462b0f89cbdfcb9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.25, 0, -0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.545).extrude(1.471)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.25, 0, 0.031), normal=(0.755, 0, 0.655), xDir=(0.655, 0, -0.755))).circle(0.335).extrude(1.092))
result = res... | 9 | 59 | 0.989014 |
train_dff52a1574f36eb0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.265, 0.968).threePointArc((0.347, 0.948), (0.427, 0.922)).threePointArc((0.505, 0.891), (0.581, 0.856)).threePointArc((0.654, 0.816), (0.723, 0.771)).threePointArc((0.783, 0.717), (0.834, 0... | 6 | 192 | 0.617971 |
train_213e36496d55f1ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.614, -0.574, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.338, 0.573).threePointArc((0.339, 0.495), (0.337, 0.411)).threePointArc((0.306, 0.329), (0.244, 0.268)).threePointArc((0.167, 0.228), (0.087, 0.193)).threePointArc((0, 0.15), (-0.106,... | 6 | 57 | 1.429728 |
train_3451ac31bb007697 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.763, 0, -1), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.366, 2).lineTo(0.366, 0.366).lineTo(1.525, 0.366).lineTo(1.525, 0).lineTo(0, 0).lineTo(0, 2).lineTo(0.366, 2).close().extrude(0.953, both=True)
result = result.cut(cq.Workplane(cq.Plane(... | 8 | 27 | 3.269437 |
train_9075488d50796e44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.334), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.173, 0.808).lineTo(1.268, -0.639).lineTo(0.772, -0.808).lineTo(-0.071, 0.307).lineTo(-1.016, -0.016).lineTo(-1.268, 0.317).lineTo(0.173, 0.808).close().extrude(1.635, both=True).intersect(... | 6 | 94 | 1.011483 |
train_fb178222d7792c0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.308, 0.547, -0.162), normal=(0.028, -0.999, 0.041), xDir=(1, 0.028, 0))).moveTo(0.114, 0.229).lineTo(0.114, 0).lineTo(0.343, 0).lineTo(0.343, -0.229).lineTo(-0.343, -0.229).lineTo(-0.343, 0).lineTo(-0.114, 0).lineTo(-0.114, 0.229).lineTo(0.114,... | 12 | 79 | 0.460087 |
train_514b175dca05b579 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.036, 0.531, 0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.124, 0.465).threePointArc((0.393, 0.227), (0.465, -0.124)).threePointArc((0.227, -0.393), (-0.124, -0.465)).threePointArc((-0.393, -0.227), (-0.465, 0.124)).threePointArc((-0.227, ... | 2 | 7 | 0.5249 |
train_eaa09429ba96bb11 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.151, 0.185, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.477, 0.281).threePointArc((0.505, 0.269), (0.517, 0.241)).lineTo(0.517, 0.121).threePointArc((0.526, 0.102), (0.546, 0.094)).lineTo(0.668, 0.094).threePointArc((0.694, 0.083), (0.705, ... | 14 | 288 | 0.357779 |
train_295dd6e7005c7c6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.231, 0.35), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.305, 0.264).threePointArc((0.34, 0.272), (0.382, 0.195)).lineTo(0.164, -0.029).threePointArc((0.139, -0.058), (0.119, -0.09)).lineTo(0.087, -0.147).threePointArc((0.081, -0.154), (0.074,... | 3 | 104 | 0.285247 |
train_e7c5fb2c1dc97f6e | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.459, 0.579).threePointArc((0.558, 0.549), (0.6, 0.477)).lineTo(0.6, 0.387).threePointArc((0.64, 0.318), (0.734, 0.29)).lineTo(0.87, 0.29).threePointArc((0.961, 0.262), (1, 0.196)).lineTo(1, 0.108).threePointArc((0.956, 0.032), (0.851, 0)).lineTo(0.2... | 12 | 36 | 1.129611 |
train_b41d775fd891571b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.382, -0.397, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.086, 0.274).threePointArc((0.171, 0.274), (0.257, 0.182)).lineTo(-0.086, 0).lineTo(0.257, -0.137).lineTo(0.171, -0.182).lineTo(0.086, -0.137).lineTo(0.171, -0.228).threePointArc((0.17... | 15 | 93 | 0.23183 |
train_27c17a3d0607f487 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, 0.018, -0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.369, 0.325).threePointArc((-0.25, 0.347), (-0.068, 0.202)).threePointArc((0.083, 0.14), (0.146, -0.028)).threePointArc((0.265, -0.005), (0.352, 0.101)).threePointArc((1.018, -0.31... | 4 | 49 | 0.753843 |
train_29db2078d2217631 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.988).extrude(0.594)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.996, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.682, 0.939), (-1.789, 0.581), (-1.789, -0.58... | 16 | 117 | 1.866386 |
train_892da4bf08014c53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.049, -0.366, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.597, 0.506).lineTo(0.597, -0.408).threePointArc((0.053, -0.95), (-0.49, -0.408)).threePointArc((-0.578, -0.31), (-0.567, -0.179)).lineTo(-0.573, 0.049).threePointArc((-0.597, 0.164), ... | 19 | 157 | 1.097862 |
train_25e723731b349a60 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.386, -0.19, -0.663), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.134, 0.348).lineTo(0.134, -0.329).threePointArc((0, -0.463), (-0.134, -0.329)).lineTo(-0.134, 0.348).threePointArc((0, 0.483), (0.134, 0.348)).close().extrude(0.309)
result = resu... | 13 | 241 | 0.368919 |
train_52bf5b9535ffa7d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0.31, 0.371), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.197, 0.876).lineTo(0.629, 0.096).lineTo(0.15, -0.532).lineTo(-0.629, -0.324).lineTo(-0.621, 0.504).lineTo(0.197, 0.876).close().extrude(0.365)
result = result.cut(cq.Workplane(cq.Pl... | 11 | 23 | 0.629152 |
train_2394c58601e05d6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.159, 0, -0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.399, 0.84).lineTo(0.841, 0.024).lineTo(0.4, -0.84).lineTo(-0.419, -0.829).lineTo(-0.841, -0.024).lineTo(-0.42, 0.827).lineTo(0.399, 0.84).close().extrude(0.046)
result = result.union(c... | 4 | 31 | 0.339347 |
train_32ab1a918cf4e4cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.373, 0.457, 0.126), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.503, 0.501).threePointArc((0.587, 0.466), (0.622, 0.381)).lineTo(0.622, -0.381).threePointArc((0.587, -0.466), (0.503, -0.501)).lineTo(-0.503, -0.501).threePointArc((-0.587, -0.46... | 10 | 260 | 0.455744 |
train_9858c72cc2d76f92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.426, 0.468, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.8).threePointArc((0.082, 0.765), (0.164, 0.731)).threePointArc((0.241, 0.785), (0.328, 0.747)).threePointArc((0.675, 0.4), (0.328, 0.052)).lineTo(-0.328, 0.052).threePointArc((-0.67... | 15 | 9 | 1.701833 |
train_d653d65e1cdb13d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.004, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.525, 0.283).threePointArc((0.859, 0.233), (1, 0.115)).lineTo(1, -0.254).threePointArc((0.976, -0.274), (0.918, -0.283)).lineTo(0.711, -0.283).threePointArc((0.633, -0.271), (0.6, -0.2... | 13 | 32 | 0.158395 |
train_4d71c9cae2228e6b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.422, -0.141, -0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.458, 0.594).lineTo(0.622, 0.319).lineTo(-0.09, -0.08).lineTo(-0.068, -0.436).lineTo(-0.354, -0.594).lineTo(-0.622, 0.175).lineTo(0.458, 0.594).close().extrude(1.644, both=True)
re... | 16 | 193 | 0.449732 |
train_3c0c7abd94c09573 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.232, -0.237, 0.03), normal=(0.643, 0.672, 0.368), xDir=(-0.723, 0.691, 0))).moveTo(0.173, 0.656).threePointArc((0.243, 0.642), (0.198, 0.524)).lineTo(0.198, 0.337).lineTo(0.246, 0.312).lineTo(0.269, -0.12).lineTo(0.324, -0.14).lineTo(0.331, -0.... | 7 | 92 | 0.346942 |
train_9d58ebed3d4df1c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.746, 0.978, 0.035), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.679).threePointArc((0.601, 1.43), (0.85, 0.829)).threePointArc((0.601, 0.228), (0, -0.022)).threePointArc((-0.601, 0.228), (-0.85, 0.829)).threePointArc((-0.601, 1.43), (0, 1.67... | 6 | 69 | 3.022409 |
train_82c128a433b8321d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, 0.092, 0.306), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.454, 0.786).threePointArc((0.454, 0.786), (0.908, 0)).threePointArc((0.454, -0.786), (-0.454, -0.786)).threePointArc((-0.908, 0), (-0.454, 0.786)).close().sweep(cq.Workplane(cq.Pl... | 1 | 5 | 2.471945 |
train_2001c591333e40e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.217), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.563).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.563).lineTo(-0.68, 0.563).lineTo(-0.68, 0.32).lineTo(0.68, 0.32).lineTo(0.68, 0.563).lineTo(1, 0.563).close().extrude(0.275, both=True)
res... | 6 | 55 | 0.501308 |
train_1b90d42f31541323 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.604, -0.097, -0.441), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.136, 0.697).lineTo(0.554, -0.522).lineTo(-0.554, -0.195).lineTo(0.136, 0.697).close().extrude(1.213)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.302, -0.122, -0.519), no... | 18 | 314 | 0.721313 |
train_80a0b7158768d7bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.482, -0.035, -0.64), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.434, -0.146).threePointArc((0.304, 0.441), (-0.103, -0.441)).lineTo(-0.434, -0.146).close().moveTo(0.434, 0.151).lineTo(-0.097, -0.271).threePointArc((0.298, 0.271), (0.434, 0.151... | 40 | 221 | 1.281069 |
train_77b02ed9fe62f846 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0, 1).threePointArc((0.664, 0.664), (1, 0)).threePointArc((0.664, -0.664), (0, -1)).threePointArc((-0.664, -0.664), (-1, 0)).threePointArc((-0.664, 0.664), (0, 1)).close().extrude(0.418, both=True)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.... | 7 | 6 | 2.418721 |
train_d72f146aa99187f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.347), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.816, 0.889).lineTo(1, 0.706).lineTo(1, -0.717).threePointArc((0.949, -0.839), (0.826, -0.889)).lineTo(-0.819, -0.889).threePointArc((-0.946, -0.836), (-1, -0.709)).lineTo(-1, 0.752).lineTo... | 12 | 75 | 0.473455 |
train_432468e9399da278 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.124, -0.165, -0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.648, 0.524).threePointArc((0.807, 0.458), (0.875, 0.299)).lineTo(0.875, -0.313).threePointArc((0.812, -0.462), (0.663, -0.524)).lineTo(-0.818, -0.524).threePointArc((-0.858, -0.5... | 17 | 212 | 0.396356 |
train_b787570cf526f8c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.232), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.974, 0.628).lineTo(0.974, 0).lineTo(-0.974, 0).lineTo(-0.974, 0.628).lineTo(-0.873, 0.628).lineTo(-0.873, 0.101).lineTo(0.873, 0.101).lineTo(0.873, 0.628).lineTo(0.974, 0.628).close().ext... | 6 | 32 | 0.224695 |
train_5c7d90ffc21e3667 | 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.194, 0.197).lineTo(0.194, 0.102).lineTo(0.056, 0.102).lineTo(0.056, -0.197).lineTo(-0.056, -0.197).lineTo(-0.056, 0.102).lineTo(-0.194, 0.102).lineTo(-0.194, 0.197).lineTo(0.194, 0.197).close(... | 13 | 12 | 0.143569 |
train_4307902690999c08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.374), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.981, 0.812).lineTo(0.981, 0).lineTo(-0.981, 0).lineTo(-0.981, 0.812).lineTo(-0.558, 0.812).lineTo(-0.558, 0.423).lineTo(0.558, 0.423).lineTo(0.558, 0.812).lineTo(0.981, 0.812).close().ext... | 5 | 88 | 0.916061 |
train_d26e57f4642aa903 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.143), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.9, 0.81).lineTo(0.9, 0.711).lineTo(1, 0.711).lineTo(1, -0.672).lineTo(0.861, -0.672).lineTo(0.861, -0.81).lineTo(-0.832, -0.81).threePointArc((-0.95, -0.76), (-1, -0.641)).lineTo(-1, 0.573... | 15 | 251 | 0.552961 |
train_f0909debaf033413 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.145), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.815).lineTo(1, 0.419).lineTo(0.198, 0.419).lineTo(0.198, -0.419).lineTo(1, -0.419).lineTo(1, -0.815).lineTo(-1, -0.815).lineTo(-1, -0.419).lineTo(-0.198, -0.419).lineTo(-0.198, 0.419).l... | 7 | 98 | 0.500346 |
train_41daa907f6867451 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, -0.105, -0.311), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.694).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.694).lineTo(-0.785, 0.694).lineTo(-0.785, 0.209).lineTo(0.785, 0.209).lineTo(0.785, 0.694).lineTo(1, 0.694).close().extrude(0.26, ... | 10 | 145 | 0.315683 |
train_35701962d8694554 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, -0.011, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.126, 0.987).threePointArc((0.527, 0.844), (0.793, 0.305)).threePointArc((0.729, -0.46), (0.605, -0.709)).threePointArc((0.397, -0.892), (-0.006, -0.987)).threePointArc((-0.519, -0.832... | 11 | 1,065 | 3.207496 |
train_bdbc8f43ed301a8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1).extrude(0.449)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.857).extrude(1.348, both=True))
result = result.union(cq.Workpl... | 12 | 133 | 0.544238 |
train_454bffc96d35f262 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.881, -0.243, -0.514), normal=(-0.663, 0.32, 0.677), xDir=(-0.434, -0.901, 0))).moveTo(0.071, 0.194).lineTo(0.071, 0.039).lineTo(0.143, 0.039).lineTo(0.143, -0.039).lineTo(0.214, -0.039).lineTo(0.214, -0.116).lineTo(0.143, -0.116).lineTo(0.143, -... | 5 | 83 | 0.183394 |
train_75e7dd21b7753a8d | import cadquery as cq
import math
result = cq.Workplane('XY').box(1.538, 2, 1.698)
result = result.edges().fillet(0.289)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.404).extrude(3.077, both=True))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), nor... | 5 | 32 | 2.941194 |
train_68bf11239fbcf6b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.914), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.238, 0.828).threePointArc((0.381, 0.789), (0.516, 0.733)).threePointArc((0.639, 0.659), (0.748, 0.57)).threePointArc((0.837, 0.469), (0.91, 0.356)).threePointArc((0.963, 0.237), (1, 0.111)... | 5 | 54 | 0.960843 |
train_e4cc3242e75b1c98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.304), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.851, 0.2).threePointArc((0.956, 0.156), (1, 0.051)).lineTo(1, -0.2).lineTo(-0.942, -0.2).threePointArc((-0.983, -0.183), (-1, -0.142)).lineTo(-1, 0.2).lineTo(0.851, 0.2).close().extrude(0.... | 4 | 21 | 0.362981 |
train_3de7da5470e35dc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.663, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.329, 0.457).lineTo(0.329, 0.129).threePointArc((0.297, 0.133), (0.268, 0.145)).lineTo(0.207, 0.147).lineTo(0.145, 0.129).lineTo(0.145, -0.337).lineTo(-0.145, -0.337).lineTo(-0.145, 0.129).... | 11 | 519 | 0.741729 |
train_28db63754edf18cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.471), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.963, 0.942).lineTo(0.963, 0).lineTo(-0.963, 0).lineTo(-0.963, 0.942).lineTo(-0.904, 0.942).lineTo(-0.904, 0.061).lineTo(0.904, 0.061).lineTo(0.904, 0.942).lineTo(0.963, 0.942).close().ext... | 8 | 34 | 0.289324 |
train_02299bab5de5ea08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.273, 0, -0.179), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.179, 0.358).lineTo(0.179, 0.179).lineTo(0.545, 0.179).lineTo(0.545, 0).lineTo(0, 0).lineTo(0, 0.358).lineTo(0.179, 0.358).close().extrude(1, both=True)
result = result.cut(cq.Workpla... | 5 | 17 | 0.251157 |
train_9b2c505c7b039826 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.278, -0.228), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.17, 0.313).threePointArc((-0.051, 0.282), (0, 0.207)).lineTo(0, 0.054).threePointArc((0.025, 0.016), (0.086, 0)).lineTo(0.888, 0).threePointArc((0.967, -0.021), (1, -0.07)).lineTo(1, ... | 7 | 104 | 0.235695 |
train_768a2584b02c64f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.202), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.597, 0.403).lineTo(0.92, 0.202).lineTo(1, 0.141).lineTo(1, 0).lineTo(0.816, 0).lineTo(0.816, 0.121).lineTo(0.717, 0.202).lineTo(0, 0.219).lineTo(0, 0.403).lineTo(0.597, 0.403).close().rev... | 10 | 75 | 0.486956 |
train_7a7f836052b07609 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.569, 0, -0.803), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.431).extrude(1.325)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.569, 0, 0.124), normal=(0.2, 0, 0.98), xDir=(0.98, 0, -0.2))).circle(0.172).extrude(0.676))
result = result.... | 5 | 50 | 0.917065 |
train_3d94ac2ddf7f16d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.338, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.071, 0.111).threePointArc((0.092, 0.105), (0.1, 0.09)).lineTo(0.1, -0.014).threePointArc((0.091, -0.03), (0.07, -0.037)).lineTo(0.035, -0.037).threePointArc((0.01, -0.045), (0, -0.063)... | 9 | 94 | 0.111567 |
train_100aba616df7674b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, 0.033, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.145, 0.207).threePointArc((0.187, 0.332), (0.228, 0.124)).lineTo(-0.145, -0.249).threePointArc((-0.145, -0.332), (-0.228, -0.166)).lineTo(0.145, 0.207).close().extrude(1, both=True)
res... | 7 | 50 | 0.122559 |
train_7656b5fac9e3ced1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.2), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.645, 0.495).lineTo(0.645, 0.344).lineTo(0.796, 0.344).lineTo(0.796, -0.39).lineTo(0.691, -0.39).lineTo(0.691, -0.495).lineTo(-0.705, -0.495).lineTo(-0.705, -0.404).lineTo(-0.796, -0.404).lin... | 8 | 29 | 0.48567 |
train_2d2b58a3ffc79b8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.14), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.614, 0.279).lineTo(0.614, 0).lineTo(-0.614, 0).lineTo(-0.614, 0.279).lineTo(-0.494, 0.279).lineTo(-0.494, 0.12).lineTo(0.494, 0.12).lineTo(0.494, 0.279).lineTo(0.614, 0.279).close().extrud... | 6 | 40 | 0.288225 |
train_ed50d4204e77eab7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.303, 0), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-1, 0.629).lineTo(-0.464, 0.629).lineTo(-0.464, -0.127).lineTo(0.464, -0.127).lineTo(0.464, 0.629).lineTo(1, 0.629).lineTo(1, -0.629).lineTo(-1, -0.629).close().moveTo(-0.393, 0.369).lineTo(... | 2 | 99 | 1.051324 |
train_c661076022133052 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.074, 0.113, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.257, 0.172).threePointArc((0.2, -0.392), (-0.183, -0.011)).lineTo(-0.268, 0.306).threePointArc((-0.204, 0.392), (-0.141, 0.355)).lineTo(-0.044, -0.003).threePointArc((-0.051, -0.15), ... | 5 | 70 | 0.393671 |
train_a326ba6786e741fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.537), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.864, 0.499).lineTo(0.864, -0.499).lineTo(-0.864, -0.499).lineTo(-0.864, 0.499).lineTo(-0.426, 0.499).lineTo(-0.426, -0.303).lineTo(0.426, -0.303).lineTo(0.426, 0.499).lineTo(0.864, 0.499).... | 21 | 57 | 1.125927 |
train_2039d9a2630bcde4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.123, -0.261), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.565, 0.093).lineTo(0.565, -0.093).threePointArc((0, -0.193), (-0.565, -0.093)).lineTo(-0.565, 0.093).threePointArc((0, 0.193), (0.565, 0.093)).close().extrude(0.848, both=True).interse... | 9 | 102 | 0.315333 |
train_60d10ec869c4c8a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.029, 0), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.095).lineTo(0.845, 0).lineTo(1, -0.095).lineTo(0.371, -0.095).lineTo(0.371, 0.095).lineTo(1, 0.095).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = r... | 6 | 22 | 0.325879 |
train_5e6f614e4bcede8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.528, 2).extrude(0.2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.195, 0.125, -0.013), normal=(1, 0, 0), xDir=(0, 0, 1))).spline([(0.265, 0.512), (0.115, 0.489), (-0.043, 0.496), (-0.11... | 16 | 51 | 0.409086 |
train_228723c47c935913 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.463, 0.238, -0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.268, 0.447).threePointArc((0.268, 0.447), (0.536, 0)).threePointArc((0.268, -0.447), (-0.268, -0.447)).threePointArc((-0.536, 0), (-0.268, 0.447)).close().sweep(cq.Workplane(cq.Pl... | 5 | 47 | 0.377236 |
train_06197f419a554f10 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.457), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.817, 0.97).threePointArc((0.945, 0.916), (1, 0.788)).lineTo(1, -0.619).threePointArc((0.896, -0.867), (0.649, -0.97)).lineTo(-0.838, -0.97).threePointArc((-0.95, -0.923), (-1, -0.81)).line... | 6 | 25 | 1.77958 |
train_1c940729322dac91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.009, 0), normal=(-0.136, 0.284, -0.949), xDir=(0, 0.958, 0.286))).moveTo(0.023, 0.459).lineTo(0.023, 0).lineTo(0.07, 0).lineTo(0.07, -0.229).lineTo(0.023, -0.229).lineTo(0.023, -0.459).lineTo(-0.07, -0.459).lineTo(-0.07, -0.229).lineTo(-0.023... | 4 | 27 | 0.206347 |
train_13efb442b3be65d0 | 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.64).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.401), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.344).extrude(1.728))
result = result.cut(cq.Workplane(cq.Plane(orig... | 7 | 32 | 1.506598 |
train_bc74a75ca4cf3ae6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.068, 0.57, 0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.036, 0.429).threePointArc((0.26, 0.348), (0.388, 0.147)).threePointArc((0.4, -0.079), (0.324, -0.293)).threePointArc((0.223, -0.393), (0.086, -0.429)).threePointArc((-0.277, -0.303),... | 3 | 42 | 0.251496 |
train_791bbac69ce1c838 | import cadquery as cq
import math
result = cq.Workplane('XZ').moveTo(1, 0.182).lineTo(0.882, 0).lineTo(1, -0.182).lineTo(0.595, -0.182).lineTo(0.595, 0.182).lineTo(1, 0.182).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.387, 0.387, 0), nor... | 14 | 71 | 0.485862 |
train_7c632793c2010b11 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.653, 0.486), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.274, 0.083).lineTo(0.261, 0.027).lineTo(0.385, -0.025).lineTo(0.35, -0.098).lineTo(0.232, -0.033).lineTo(0.196, -0.078).lineTo(0.286, -0.178).lineTo(0.223, -0.228).lineTo(0.145, -0.119... | 4 | 216 | 0.686067 |
train_d6852a63149a6234 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.218).lineTo(1, -0.219).threePointArc((0.988, -0.231), (0.977, -0.235)).lineTo(-0.984, -0.235).threePointArc((-0.989, -0.232), (-1, -0.227)).lineTo(-1, 0.218).threePointArc((-0.987, 0.22... | 16 | 71 | 0.105355 |
train_f2d397d050c34fed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.111, -0.769), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.376, 0.889).lineTo(0.556, 0.709).lineTo(0.556, -0.673).lineTo(0.338, -0.889).lineTo(-0.367, -0.889).lineTo(-0.556, -0.7).lineTo(-0.556, 0.753).lineTo(-0.42, 0.889).lineTo(0.376, 0.889)... | 9 | 56 | 2.157599 |
train_505647dd5ff1d00b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.046, 0.203), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.8, -0.67).threePointArc((-1.015, -0.772), (-0.963, -0.519)).lineTo(-1.207, 0.895).lineTo(-0.455, 1.046).lineTo(0.967, 0.835).lineTo(0.963, 0.459).threePointArc((1.207, 0.342), (0.929,... | 10 | 172 | 0.361327 |
train_b156160a3af13ab7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.297, -0.54, -0.703), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.384, 0.46).threePointArc((0.438, 0.438), (0.46, 0.384)).lineTo(0.46, -0.041).threePointArc((0.427, -0.12), (0.348, -0.153)).lineTo(0.23, -0.153).threePointArc((0.176, -0.176), (0.... | 17 | 175 | 1.225839 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.