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_5b39246c3eb14498 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.894, 0, -0.565), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.565, 1.404).threePointArc((0.234, 1.073), (0.565, 0.274)).lineTo(0.565, 1.404).lineTo(-0.564, 1.404).lineTo(-0.565, 1.404).close().revolve(angleDegrees=360, axisStart=(0.565, 0.274),... | 5 | 16 | 0.439288 |
train_9ad5f362324af4f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.709).lineTo(-1, 0.109).lineTo(1, 0.109).lineTo(1, 0.709).lineTo(-1, 0.709).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.435, 0))
result = result.edges().fillet(0.117)
resu... | 9 | 44 | 2.690059 |
train_561b5d5e637c299c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.422, 0.086, 0.096), normal=(0, 0, -1), xDir=(1, 0, 0))).threePointArc((0.041, 0.043), (0.073, 0.051)).lineTo(0.119, 0.051).lineTo(0.119, 0.014).lineTo(0.073, 0.014).threePointArc((0.051, 0.005), (0.042, -0.017)).lineTo(0.042, -0.051).lineTo(0.0... | 12 | 94 | 0.313655 |
train_47008ea4da5e4ed7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.793, -0.082), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.639, 1.301).lineTo(0.155, 0.986).lineTo(0.639, 0.05).lineTo(0.639, 1.301).lineTo(-0.639, 1.301).close().extrude(2)
result = result.edges().fillet(0.075)
result = result.faces('>Y').... | 6 | 44 | 1.003291 |
train_1baaec26a4277524 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.739, 0.071), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.978, -0.025).lineTo(0.978, -0.025).lineTo(0.235, 1.503).lineTo(-0.978, 1.503).lineTo(-0.978, -0.025).close().extrude(2)
result = result.edges().chamfer(0.324)
result = result.cut(cq.... | 19 | 96 | 2.338702 |
train_2affdb88304fc5ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.187), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.345, -0.414).lineTo(-0.16, 0.414).lineTo(-0.018, 0.414).lineTo(-0.018, 0.366).lineTo(0.165, 0.366).lineTo(0.165, 0.369).lineTo(0.345, 0.369).lineTo(0.345, 0.3).lineTo(0.248, 0.3).lineTo... | 1 | 17 | 0.097514 |
train_3d57be8b57376c69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, -0.199, 0.017), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.975, 0.082).lineTo(0.975, 0.082).lineTo(0.975, -0.082).lineTo(-0.975, -0.082).lineTo(-0.975, 0.082).close().sweep(cq.Workplane('XZ').spline([(-0.222, -0.092), (-0.081, -0.043), (... | 3 | 27 | 0.21228 |
train_a73020f5ee9a37fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.074, -0.258, -0.036), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.205, -0.091).lineTo(-0.264, -0.032).lineTo(-0.154, 0.077).lineTo(0.205, 0.436).lineTo(0.264, 0.377).lineTo(-0.096, 0.018).lineTo(-0.205, -0.091).close().extrude(0.511)
result = ... | 15 | 88 | 0.141361 |
train_c613228b53e8afdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.548, 0, -0.479), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.904, 0.353).extrude(0.959)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.035, 0.032, -0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.072).extrude(0.432))
result = result.u... | 3 | 18 | 0.622776 |
train_2e8a97792aecaf31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.014, -0.095), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.822, 0.591).threePointArc((-1, 0.413), (-0.822, 0.235)).lineTo(0, 0.235).lineTo(0.822, 0.235).threePointArc((1, 0.413), (0.822, 0.591)).lineTo(0, 0.591).lineTo(-0.822, 0.591).close().... | 14 | 152 | 1.417906 |
train_16e660499549522a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.866, 0.607, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.931, 1.228).lineTo(0.931, -0.256).lineTo(-0.723, -0.256).threePointArc((-0.666, 0.01), (-0.931, -0.047)).lineTo(-0.931, 0.123).lineTo(-0.931, 1.228).lineTo(-0.931, 1.398).threePointArc... | 13 | 54 | 5.268155 |
train_5af81903cee85c52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.183, 0, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.633, 1.296).extrude(0.66)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.297, 0.084, -0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.96, 0.116).extrude(0.161))
result = result.ed... | 22 | 167 | 0.860665 |
train_b2f260b9f82e771c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.52), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.608).extrude(1.2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.928, -0.15, -0.4), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.152, 0.302).extrude(0.166))
result = result.edges().fille... | 10 | 90 | 3.844361 |
train_784a0bc3244f4cdb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.425, -0.036, 0.158), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.627, 0.892).threePointArc((-0.613, -0.435), (0.627, 0.038)).threePointArc((0.298, 0.901), (-0.627, 0.892)).close().extrude(0.565)
result = result.edges().fillet(0.024)
result = r... | 4 | 33 | 1.385771 |
train_de96fc379b7d1679 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.214, 0.046, 0.286), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.103, 0.137).extrude(0.095)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.179, 0.046, 0.311), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.035, 0.013).extrude(0.045))
result = res... | 24 | 149 | 0.335603 |
train_e47f1929a27fc92b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, -0.171, -0.986), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.575, -1.37).threePointArc((-0.656, 0.023), (-0.294, 1.37)).threePointArc((0.426, 0.322), (0.656, -0.929)).threePointArc((0.635, -0.989), (0.582, -1.026)).lineTo(-0.575, -1.37).... | 5 | 48 | 0.732682 |
train_588bfe6bdee9d839 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0, 0.025), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.025, 1.008).lineTo(-0.025, -0.992).lineTo(0.025, -0.992).lineTo(0.025, 0.971).lineTo(0.012, 0.971).lineTo(0.012, 0.983).lineTo(0.025, 0.983).lineTo(0.025, 1.008).lineTo(-0.025, 1.008)... | 3 | 24 | 0.014397 |
train_138a6f86733bbb91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.206, 0.137, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.742, 0.217).threePointArc((-1, 0.015), (-0.742, -0.186)).lineTo(1, -0.217).lineTo(-0.742, 0.217).close().sweep(cq.Workplane('XY').spline([(0.206, -0.221), (0.284, -0.031), (0.202, 0.15... | 1 | 5 | 0.274628 |
train_5b754c9ceac609a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.032, -0.513, -0.29), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.593, -0.251).lineTo(-0.593, -0.315).lineTo(0.657, -0.315).lineTo(0.657, 1.032).lineTo(0.593, 1.032).lineTo(0.593, 0.968).lineTo(0.529, 0.968).lineTo(0.529, 1.032).lineTo(-0.657, ... | 11 | 57 | 0.977107 |
train_ed9aa2b0336f5901 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.152, 0, -0.474), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.997, 2).extrude(0.947)
result = result.faces('>Z').shell(-0.04)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.49, 0.304, 0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.161)... | 3 | 14 | 0.310309 |
train_0315cf2661b9a6d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.269, -0.051, 0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.459, -0.286).lineTo(0.471, -0.294).lineTo(0.47, 0.296).lineTo(-0.468, 0.291).close().moveTo(0.091, 0.01).lineTo(0.096, 0.011).lineTo(0.028, 0.059).lineTo(0.032, 0.034).lineTo(0.0... | 14 | 112 | 0.241144 |
train_755470c544af2ed0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.297, 0, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.405, 1.204).extrude(0.624)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.034, 0.084, 0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.134).extrude(0.164))
result = result.unio... | 9 | 78 | 0.912111 |
train_7fde0836ece1acd7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.318, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.419).sweep(cq.Workplane('XY').spline([(-0.277, -0.318), (0.446, -0.047), (1.17, -0.106)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.416, 0.308, -0.562), normal=(0, 0, 1), xDir... | 3 | 7 | 0.604588 |
train_0bf4f57e48f313c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.083, 0.816, 0.792), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.184).sweep(cq.Workplane('YZ').spline([(0.816, 0.38), (1.791, 0.602), (2.766, 0.45)]))
result = result.union(cq.Workplane(cq.Plane(origin=(0.136, 0.222, -0.396), normal=(0, 0, 1), x... | 5 | 23 | 0.107534 |
train_417fb2ccfb2061f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.12, -0.128, -0.769), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.651, 1.191).extrude(0.961)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.038, -0.068, 0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.536).extrude(0.146))
result = resu... | 12 | 66 | 1.88021 |
train_5bc76824e384c7d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.267, -0.101), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.066, 0.297).threePointArc((0, 0.304), (-0.066, 0.297)).threePointArc((-0.237, 0.19), (-0.304, 0)).threePointArc((-0.237, -0.19), (-0.066, -0.297)).threePointArc((0, -0.304), (0.066,... | 12 | 71 | 0.362444 |
train_69fd90e5d050feab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.503, -0.338, 0.503), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.503, 0.11).lineTo(-0.503, 0.45).lineTo(0.503, 0.45).lineTo(0.503, 0.11).lineTo(-0.503, 0.11).close().revolve(angleDegrees=180, axisStart=(-0.503, 0.11), axisEnd=(-0.503, 0.45))
... | 5 | 25 | 0.509208 |
train_fd242cbaa2f0c090 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.3, -0.071, -0.948), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.752, 1.218).extrude(1.061)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.425, 0.326, -0.842), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.353, 0.446).extrude(0.669))
result = re... | 27 | 119 | 0.900276 |
train_603c5f38bfe0d25a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.071, 0, -0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.885, 1.114).extrude(1.013)
result = result.union(cq.Workplane(cq.Plane(origin=(0.436, 0.17, 0.518), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.154, 0.545).extrude(0.332))
result = result... | 4 | 19 | 1.115018 |
train_be32c93cde56fa5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.324, 0.001, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, -0.382).threePointArc((-0.334, 0.728), (-0.723, 1.961)).threePointArc((0.069, 1.265), (1, 0.771)).lineTo(-1, -0.382).close().revolve(angleDegrees=360, axisStart=(1, 0.771), axisEnd=(... | 6 | 22 | 1.016247 |
train_902a9d0aba397729 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.136, -0.767, -0.931), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.466, 0.466).extrude(0.628)
result = result.union(cq.Workplane(cq.Plane(origin=(0.136, -0.086, -0.796), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.117, 1.096).extrude(0.358))
result =... | 10 | 70 | 1.377002 |
train_418f92a626adb87f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.73, -0.959, 0.003), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.315, 0.459).lineTo(-2.458, 2.397).lineTo(2.458, 1.094).lineTo(-0.315, 0.459).close().revolve(angleDegrees=90, axisStart=(-0.315, 0.459), axisEnd=(-2.458, 2.397))
result = result.... | 3 | 18 | 1.856801 |
train_87fbeb555cde0c3c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.852, 0.854, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.854).lineTo(0, -0.146).lineTo(1, -0.146).lineTo(-1, -0.146).lineTo(-1, 1.854).lineTo(1, 1.854).lineTo(1, 0.854).lineTo(0, 0.854).close().extrude(1.704)
result = result.edges().chamf... | 5 | 56 | 3.747572 |
train_54a22f37693c1717 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.08, 0.027, -0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.04, -0.043).lineTo(0.339, 0.973).lineTo(-0.88, 0.603).lineTo(-0.876, -0.602).lineTo(0.331, -1.027).close().moveTo(-0.345, 0.521).lineTo(-0.345, 0.29).lineTo(-0.287, 0.29).lineTo(-0... | 14 | 143 | 0.887564 |
train_66cb4e38cb21b777 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.077, -0.078, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.275, 0.309).lineTo(-0.206, 0.309).lineTo(-0.206, -0.172).lineTo(0.275, -0.172).lineTo(0.275, -0.309).lineTo(-0.206, -0.309).lineTo(-0.206, -0.24).lineTo(-0.275, -0.24).lineTo(-0.275... | 2 | 22 | 0.225605 |
train_2d73622842ea0647 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, -0.589, -0.062), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.004, -0.437).threePointArc((-0.011, -0.439), (-0.016, -0.436)).threePointArc((-0.046, -0.409), (-0.08, -0.389)).threePointArc((-0.157, -0.37), (-0.238, -0.383)).threePointArc((-... | 8 | 43 | 0.425796 |
train_41d206462b42a4a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.034, 0.023, 0.107), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.545, 1.034).lineTo(-0.545, -0.966).lineTo(0.545, -0.966).lineTo(0.545, -0.239).lineTo(0.182, -0.239).lineTo(0.182, 1.034).lineTo(-0.545, 1.034).close().extrude(0.567)
result = res... | 17 | 238 | 1.169604 |
train_0d21cb9e08f9ba62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.044, 0.16, -0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.779, -0.001).lineTo(0.558, 0.548).lineTo(0.004, 0.755).lineTo(-0.557, 0.556).lineTo(-0.782, -0.015).lineTo(-0.56, -0.545).lineTo(0.019, -0.763).lineTo(0.528, -0.534).close().moveTo... | 12 | 132 | 0.144581 |
train_70c5855874c5f084 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.166, 0.568), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.379).sweep(cq.Workplane('YZ').spline([(0.552, 0.087), (0.362, 0.248), (0.074, 0.296), (-0.196, 0.212), (-0.343, 0.03), (-0.306, -0.178), (-0.101, -0.329)]))
result = result.edges().fil... | 3 | 6 | 1.166103 |
train_3e7eb9bf94bf4901 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.328, -0.294, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.493, -0.667).threePointArc((-0.582, -0.627), (-0.631, -0.546)).lineTo(-0.707, -0.125).threePointArc((-0.744, -0.016), (-0.841, 0.049)).lineTo(-1.002, 0.065).lineTo(0.473, 0.566).line... | 6 | 31 | 1.299591 |
train_f45bf87f828bc6d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.141, 0, -0.24), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.357, -1).lineTo(-0.357, -1).lineTo(-0.357, 1).lineTo(0.357, 1).lineTo(0.357, -1).close().sweep(cq.Workplane('XZ').moveTo(1.556, -1.467).spline([(1.877, -0.561), (1.371, 0.402), (0.775,... | 12 | 27 | 0.844007 |
train_8c61fdcaa6772ebb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.726, -0.139, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.17).workplane(offset=0.381).circle(0.295).workplane(offset=0.422).circle(0.259).workplane(offset=0.411).circle(0.229).loft()
result = result.edges().chamfer(0.08)
result = result.face... | 13 | 112 | 0.293405 |
train_23de3633b8b7334b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, 0.008, -0.015), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.276, 0.97).threePointArc((0.047, 0.979), (0.276, 0.753)).threePointArc((0.036, 0.217), (-0.276, 0.23)).lineTo(-0.276, 0.97).close().revolve(angleDegrees=270, axisStart=(0, 0), a... | 6 | 38 | 0.821051 |
train_08c501b89672186e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.477, -0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.937, 1.045).extrude(0.212)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.477, 0.074), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.212, -0.005).lineTo(0.102, 0.18).lineTo(-0.10... | 10 | 81 | 0.31039 |
train_db05b5919a22a54a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.172, 0.002, -0.155), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.153, 0.345).lineTo(0.458, 0.168).lineTo(0.153, -0.008).lineTo(0.153, -0.36).lineTo(-0.153, -0.184).lineTo(-0.458, -0.36).lineTo(-0.458, 0.697).lineTo(-0.153, 0.521).lineTo(0.153,... | 8 | 137 | 0.341248 |
train_719d83480d35c394 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.68, 0.174, 0.074), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.301, -0.286).lineTo(-0.004, -0.286).lineTo(-0.334, 0.286).lineTo(0.334, 0.286).lineTo(0.334, 0.022).lineTo(0.123, 0.022).lineTo(0.301, -0.286).close().sweep(cq.Workplane('XZ').splin... | 5 | 100 | 0.438896 |
train_3f0c3ec299d180eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.149, 0, 0.785), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.139, -0.169).lineTo(0, -0.03).lineTo(0.03, 0).lineTo(0.169, 0.139).lineTo(0.169, 0.169).lineTo(-0.139, 0.169).lineTo(0, 0.03).lineTo(-0.03, 0).lineTo(-0.169, -0.139).lineTo(-0.169, -0.1... | 5 | 52 | 0.078658 |
train_3df4f03e94910edb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.431, -0.217, -0.457), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.181, 0.161).lineTo(-0.181, 0.073).lineTo(0.078, 0.073).lineTo(0.078, 0.053).lineTo(0.164, 0.053).lineTo(0.164, -0.054).lineTo(-0.181, -0.054).lineTo(0.181, -0.054).lineTo(0.181,... | 12 | 158 | 0.150298 |
train_2b960219c7a30d9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.273, 0.059), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.101, -0.082).lineTo(0.573, -0.082).lineTo(-0.337, 0.828).lineTo(-0.573, 0.592).lineTo(0.101, -0.082).close().workplane(offset=0.394).moveTo(0.103, -0.093).lineTo(0.587, -0.093).lineTo... | 12 | 68 | 0.373523 |
train_3713597396b0b117 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.102, -0.22, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.947, 1.255).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.002, 0.619, -0.8), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.549, 0.458).extrude(1.185))
result = result.uni... | 10 | 56 | 2.681107 |
train_786cbb3a4aa02962 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.664, -0.566), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.244, 1.108).lineTo(-0.244, 1.197).lineTo(-0.733, 1.197).lineTo(-0.733, 1.664).lineTo(0.244, 1.664).lineTo(0.244, 1.197).lineTo(0.733, 1.197).lineTo(0.733, -0.336).lineTo(0.644, -0.33... | 5 | 165 | 0.554394 |
train_578873e2f4198a75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.189, 0.088, 0.032), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.413, 0.377).threePointArc((-0.811, 0.002), (-0.418, -0.377)).lineTo(0.094, -0.377).lineTo(0.341, -0.377).lineTo(0.811, -0.377).lineTo(0.811, -0.16).lineTo(0.811, 0.16).lineTo(0.8... | 13 | 100 | 0.248604 |
train_e6257c2855965a79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.221), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.216, -0.567).lineTo(-0.216, -1).lineTo(0.216, -1).lineTo(0.216, 1).lineTo(-0.216, 1).lineTo(-0.216, -0.567).close().extrude(0.302)
result = result.edges().chamfer(0.031)
result = result.u... | 3 | 31 | 0.273738 |
train_f5859d2133812df9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.857, 0.118, 0.36), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.089, 0.165).lineTo(-0.443, 0.165).lineTo(-0.443, 0.519).lineTo(-0.08, 0.519).lineTo(-0.08, 0.342).lineTo(0.266, 0.342).lineTo(0.266, 0.519).lineTo(0.443, 0.519).lineTo(0.443, -0.19... | 18 | 165 | 0.458029 |
train_34c5b6e191cb2d2a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.071, -0.359), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.891).extrude(0.718)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2, 0.1445, -0.938), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.075, -0.04).lineTo(-0.053, -0.014).lin... | 26 | 309 | 1.225942 |
train_d7a19982117def89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.048, -0.999), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.616, 0.869).extrude(0.112)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.501, 0.048, -0.746), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.024).lineTo(0.254, -0.024).lineTo(0... | 3 | 48 | 0.203501 |
train_121f95cb5daea3c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.133, 0.138, -0.219), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.804, 1.162).extrude(0.843)
result = result.union(cq.Workplane(cq.Plane(origin=(0.385, 0.122, 0.492), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.15).sweep(cq.Workplane('YZ').spline(... | 14 | 83 | 0.638458 |
train_3cf64d075460d068 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.4, 0.395, -0.63), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.255, 0.135).threePointArc((-0.268, 0.105), (-0.279, 0.075)).threePointArc((0, -0.288), (0.279, 0.075)).threePointArc((0, 0.288), (-0.255, 0.135)).close().transformed(offset=(-0.612, ... | 11 | 134 | 1.149496 |
train_a6da7eb87c9bceac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.526, 0.224, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.336, -0.441).lineTo(0.336, -0.441).lineTo(0.336, 0.472).threePointArc((0, 0.532), (-0.336, 0.472)).lineTo(-0.336, -0.441).close().extrude(1.526)
result = result.edges().fillet(0.108)
... | 17 | 86 | 0.716833 |
train_5cf3090ee58c2d21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.926, 0.689, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.782, 0.125).lineTo(-0.782, -0.311).lineTo(0.782, -0.311).lineTo(0.782, 1.689).lineTo(-0.782, 1.689).lineTo(-0.782, 0.125).close().extrude(1.852)
result = result.edges().fillet(0.455)
... | 4 | 30 | 4.740282 |
train_fee9e573a1992e43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.247, 0.225, -0.682), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.318, 0.012).lineTo(-0.318, 0.095).lineTo(-0.234, 0.095).lineTo(-0.234, 0.438).lineTo(0.318, 0.438).lineTo(0.318, 0.012).lineTo(-0.318, 0.012).close().extrude(0.495)
result = resu... | 5 | 46 | 0.117664 |
train_10e1816e38309c57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.219, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.432, -0.471).lineTo(-0.023, 0.163).lineTo(0, 0.2).lineTo(-0.174, 0.471).lineTo(-0.222, 0.471).lineTo(-0.2, 0.511).lineTo(0.2, 0.511).lineTo(0.222, 0.471).lineTo(0.023, 0.163).lineTo(0.432... | 6 | 98 | 0.374075 |
train_e16207a34ab6fa35 | 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.344, 0.944).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.33, -0.419, 0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.107, 0.111).extrude(0.129))
result = result.cut(cq.Workpl... | 10 | 45 | 2.473024 |
train_aeb2fd1adc374490 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.462, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.32, 1.301).lineTo(0.357, 1.301).threePointArc((0.923, 0.461), (0.357, -0.378)).lineTo(-0.32, -0.378).lineTo(-0.801, -0.378).lineTo(-0.923, -0.378).lineTo(-0.923, 1.301).lineTo(-0.32, 1.3... | 12 | 135 | 4.981079 |
train_c8554b088c5a83ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.243, -0.202, -0.199), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.339, 0.007).lineTo(0.339, 0.176).lineTo(-0.339, 0.176).lineTo(-0.339, 0.007).lineTo(0.339, 0.007).close().extrude(0.757)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.6... | 25 | 263 | 0.197261 |
train_25d522c306e6f7d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.137, 0, -0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.665, 2).extrude(0.12)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.157, 0.018, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.181).extrude(0.052))
result = result.union(... | 15 | 234 | 0.45956 |
train_c9d83dbe66179377 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.283, -0.002, 0.119), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.312, 0.624).lineTo(0.312, -0.624).lineTo(0.083, -0.624).lineTo(0.083, -0.582).lineTo(0.27, -0.582).lineTo(0.27, -0.457).lineTo(-0.27, -0.457).lineTo(-0.27, -0.582).lineTo(-0.083,... | 5 | 44 | 0.248292 |
train_df62ecfc0c127dfd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.244, -0.051, -0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.919, 0.571).extrude(0.253)
result = result.union(cq.Workplane(cq.Plane(origin=(0.244, -0.196, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.244, -0.197).threePointArc((0, 0.815)... | 24 | 86 | 0.644513 |
train_34ef6c24fa5d3795 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.701), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.521, 1.131).extrude(1.701)
result = result.union(cq.Workplane(cq.Plane(origin=(0.279, -0.247, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.205).extrude(0.308))
| 2 | 8 | 2.965623 |
train_6b11ba5fb7bbdc41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.526, 0.755, -0.13), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.03, -0.192).lineTo(0.03, 0.192).lineTo(0.187, 0.192).lineTo(0.187, 0.212).lineTo(-0.187, 0.212).lineTo(-0.187, -0.212).lineTo(-0.167, -0.212).lineTo(-0.167, -0.192).lineTo(0.03, -0.... | 24 | 34 | 0.052573 |
train_344052ba49805821 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.658, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).lineTo(-0.454, 0.658).lineTo(0.454, 0.658).close().revolve(angleDegrees=270, axisStart=(0.454, 0.658), axisEnd=(-0.454, 0.658))
result = result.union(cq.Workplane(cq.Plane(origin=(0.045, 0.066... | 15 | 438 | 0.431959 |
train_71711cf040783438 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.039, 0.003, -0.019), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.327, -0.071).lineTo(-0.327, 0.182).lineTo(0.327, 0.182).lineTo(0.327, -0.071).lineTo(-0.327, -0.071).close().revolve(angleDegrees=270, axisStart=(-0.327, -0.071), axisEnd=(-0.327... | 17 | 181 | 0.290343 |
train_7cd7966a918606f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, 0.332, -0.781), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.199, 1.112).extrude(1.415)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.308, 0.332, -0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.639, 0.477).extrude(0.076))
result = res... | 21 | 82 | 1.940214 |
train_3c93524bec121f34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.208, 0.575, -0.284), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.716, 0.017).lineTo(0.716, 0.017).lineTo(0.716, 0.432).lineTo(-0.716, 0.432).lineTo(-0.716, 0.017).close().extrude(0.492)
result = result.edges().fillet(0.089)
result = result.uni... | 9 | 91 | 0.388241 |
train_51124d1c8956522a | 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.744).workplane(offset=0.44).circle(0.679).workplane(offset=0.4).circle(0.614).workplane(offset=0.376).circle(0.549).workplane(offset=0.415).circle(0.482).workplane(offset=0.369).circle(0.417).... | 14 | 191 | 1.562296 |
train_e2c7330921cbf600 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.073, 0.087, 0.07), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.104).lineTo(-0.522, 0.104).lineTo(-0.522, 0.009).lineTo(0.522, 0.009).lineTo(0.522, 0.104).lineTo(0, 0.104).close().extrude(0.114)
result = result.union(cq.Workplane(cq.Plane(or... | 10 | 89 | 0.250839 |
train_0c0d03dd7713d256 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-2.133, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 2.847).lineTo(1, 2.219).lineTo(0.63, 2.219).lineTo(0.63, 1.419).lineTo(-1, 1.419).lineTo(-1, 2.847).lineTo(1, 2.847).close().revolve(angleDegrees=90, axisStart=(1, 2.847), axisEnd=(1, 2.2... | 12 | 150 | 3.92639 |
train_b70771f8d4315c3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.301, 0, -0.073), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.094, 0.079).threePointArc((-0.028, -0.034), (0.094, -0.079)).lineTo(0.094, 0.079).lineTo(-0.094, 0.079).close().sweep(cq.Workplane('XZ').spline([(0.6, -0.183), (0.799, -0.141), (0.99... | 8 | 39 | 0.029339 |
train_cd66d566827fcf8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.216, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.805).workplane(offset=0.372).circle(0.642).workplane(offset=0.375).circle(0.776).workplane(offset=0.361).circle(0.642).workplane(offset=0.418).circle(0.731).workplane(offset=0.474).circle(... | 19 | 174 | 1.640898 |
train_00ee96aa2e131979 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.322, 0.62, 0.258), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.609, 0.097).lineTo(-0.609, 0.362).lineTo(-0.549, 0.362).lineTo(-0.609, 0.672).lineTo(-0.168, 0.873).threePointArc((-0.012, 0.909), (0.146, 0.882)).lineTo(0.609, 0.704).lineTo(0.531... | 15 | 159 | 1.264157 |
train_55680fbd2616b7e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.664), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.861).extrude(1.329)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.34, 0.108, -0.093), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.149, -0.072).threePointArc((1.284, 0.572), (1.149... | 3 | 15 | 4.474717 |
train_26f066f4b8af144e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.154, 0, -0.389), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.691, 1.584).extrude(0.778)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.369, 0.111, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.061, 1.901).extrude(0.061))
result = resul... | 9 | 32 | 2.031743 |
train_05927f21edf0bd09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.241, -0.001, -0.087), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.237, 0.039).lineTo(0.237, -0.039).lineTo(-0.237, -0.039).lineTo(-0.237, 0.039).lineTo(0.237, 0.039).close().revolve(angleDegrees=360, axisStart=(0.237, 0.039), axisEnd=(0.237, -... | 15 | 258 | 0.177668 |
train_48349e5b11675778 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.339, 0.114, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.332).lineTo(0.04, -0.332).lineTo(0.04, -0.279).lineTo(0, -0.279).lineTo(0, 0.04).lineTo(0.199, 0.04).lineTo(0.199, 0.093).lineTo(0, 0.093).lineTo(0, 0.332).lineTo(-0.04, 0.332).lin... | 6 | 53 | 0.151312 |
train_4b08424903688279 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.472, -0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.908, 1.057).extrude(0.122)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.445, 0.499, -0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.437, 0.607).extrude(0.075))
result = result.... | 15 | 140 | 0.327383 |
train_e2541a3507e24d60 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.02, -0.022, -0.055), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.333, -0.978).lineTo(0.01, -0.978).lineTo(0.01, -0.106).lineTo(0.333, 0.304).lineTo(0.333, 1.022).lineTo(-0.333, 1.022).lineTo(-0.333, 0.612).lineTo(-0.103, 0.612).threePointArc((... | 22 | 206 | 0.947255 |
train_0a0208247ea6bb44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.171, -0.409), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.885).extrude(0.623)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.983, 0.213, -0.042), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.349, 0.492).threePointArc((0.555, 0.367), ... | 4 | 36 | 1.017624 |
train_5507f445e7432672 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.1, -0.54), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.884, 1.312).extrude(0.636)
result = result.faces('>Y').shell(-0.057)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.029, 0.021, -0.546), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.1... | 11 | 120 | 0.755486 |
train_5d253a2988be7740 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.116, -0.274), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.918, 0.565).extrude(1.267)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.226 + 0.0755, 0.75, -0.871), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.022, 0.037).lineTo(0.022, 0.017).... | 9 | 16 | 0.781816 |
train_2c58d5cc44229654 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.78, -0.574, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.426).sweep(cq.Workplane('XY').spline([(-0.057, -0.574), (-0.001, -0.326), (-0.101, -0.087), (-0.334, 0.088)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.189, 0.853, -0.174), ... | 2 | 7 | 0.239412 |
train_b0071888a0292c2a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.919, 0.628, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.078).lineTo(-1, 0.283).lineTo(0.351, 1.41).lineTo(1, 0.869).lineTo(1, 0.078).lineTo(-1, 0.078).close().extrude(0.766)
result = result.edges().chamfer(0.033)
result = result.union(c... | 12 | 86 | 1.844963 |
train_a9967e4c23848535 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.088, -0.683, 0.017), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.182, 0.265).lineTo(-0.328, -0.244).lineTo(-0.255, -0.317).lineTo(0.255, 0.193).lineTo(0.328, 0.265).lineTo(0.291, 0.302).threePointArc((0.255, 0.317), (0.218, 0.302)).lineTo(0.18... | 4 | 45 | 0.200187 |
train_ab6afd7bccfdf4d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.356, 0.779, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.348, -0.451).threePointArc((-0.548, -0.028), (-0.348, 0.395)).threePointArc((0, 0.52), (0.348, 0.395)).threePointArc((0.548, -0.028), (0.348, -0.451)).threePointArc((0.297, -0.488), (... | 2 | 26 | 1.130661 |
train_351caa38f959417e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.017, -0.286), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.121).extrude(0.572)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, 0.081, -0.19), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.02).extrude(0.019))
result = result.cut(cq.Work... | 9 | 33 | 1.262452 |
train_a02bd33b4158a84f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.287, 0.096, -0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.684, 0.135).lineTo(-0.422, 0.152).lineTo(-0.203, -0.333).lineTo(0.381, -0.469).lineTo(0.469, -0.17).close().moveTo(-0.142, -0.114).lineTo(0.145, -0.112).lineTo(0.143, -0.053).line... | 16 | 64 | 0.163154 |
train_71b792e2a297bc32 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.823, 0.726, 0.186), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.831, 0.998).lineTo(-0.831, 0.038).lineTo(0.831, 0.038).lineTo(0.831, 0.998).lineTo(-0.831, 0.998).close().revolve(angleDegrees=90, axisStart=(-0.831, 0.998), axisEnd=(-0.831, 0.03... | 10 | 67 | 0.818695 |
train_ff505f58319e545f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.163, -0.816), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.823, 1.23).threePointArc((0.434, 1.163), (0.823, 1.096)).lineTo(0.999, 1.096).threePointArc((0.001, 0.163), (-0.997, 1.096)).threePointArc((-0.999, 1.163), (-0.997, 1.23)).threePointA... | 4 | 14 | 3.947168 |
train_fefb511c6f9cfb96 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.176, -0.418, -0.846), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.819, 0.516).threePointArc((0, -0.406), (0.819, 0.516)).threePointArc((0, 1.243), (-0.819, 0.516)).close().extrude(1.692)
result = result.edges().chamfer(0.108)
result = result.un... | 15 | 101 | 2.526697 |
train_f0215989817a8817 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.372, -1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.274, 0.18).lineTo(-0.274, -0.195).lineTo(0.258, -0.195).lineTo(0.258, 0.067).lineTo(0.274, 0.067).lineTo(0.274, 0.195).lineTo(-0.203, 0.195).lineTo(-0.203, 0.18).lineTo(-0.274, 0.18).cl... | 16 | 32 | 0.17332 |
train_df540563fb2de48a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.137, 0.052, 0.285), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.283, -0.485).lineTo(0.283, -0.162).lineTo(0.97, 0.485).lineTo(-0.97, 0.485).lineTo(-0.97, -0.485).lineTo(0.283, -0.485).close().extrude(0.536)
result = result.edges().fillet(0.07)
... | 5 | 45 | 0.756088 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.