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_d56c23598af01449 | 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.209, 1.481).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.002, 0.289, -0.594), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.182).extrude(1.223))
result = result.cut(cq.Workplane... | 13 | 150 | 3.143293 |
train_0f82e06812d8260e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.109, -0.727), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.527).extrude(1.454)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.611 + 0.153, 0.1825, -2.027), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.005, 0.07).lineTo(-0.005, 0.06).li... | 18 | 11 | 4.450021 |
train_1c024559e125a922 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.897), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.317).extrude(1.793)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.218, 0.244, -0.578), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.437).extrude(0.744))
result = result.cut(cq.Workpl... | 25 | 244 | 2.870529 |
train_ece5daca55356fe9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.952), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.468, 2).extrude(1.904)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.151, 0.611, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.709, 0.819).extrude(0.944))
result = result.cut(cq.W... | 10 | 122 | 4.575443 |
train_fc804fbebb145bf5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.292, 0.246, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.019).lineTo(-1, 0.473).lineTo(0.909, 0.473).lineTo(0.909, 0.11).lineTo(1, 0.11).lineTo(1, 0.019).lineTo(-1, 0.019).close().extrude(0.585)
result = result.edges().fillet(0.045)
resu... | 12 | 92 | 0.494685 |
train_59ccf5f707497389 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.564, 1.305, -0.069), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.735, 1.278).lineTo(-0.735, 1.278).threePointArc((-0.206, 0.432), (0.735, 0.101)).lineTo(0.735, 0.763).lineTo(0.735, 1.278).close().revolve(angleDegrees=180, axisStart=(0.735, 1.27... | 10 | 89 | 0.953548 |
train_6726dfe7b15f75b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.111, -0.861), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.121, -0.041).lineTo(-0.139, -0.041).lineTo(-0.139, -0.055).lineTo(0.139, -0.055).lineTo(0.139, 0.063).lineTo(0.121, 0.063).lineTo(0.121, -0.041).lineTo(0.095, -0.041).lineTo(0.09... | 7 | 92 | 0.003846 |
train_fdac1ed5c6ada803 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.8, 0.055, 0.187), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.448, 0.555).lineTo(-0.448, 0.588).lineTo(-0.049, 0.806).lineTo(0.448, 0.806).lineTo(0.196, 0.555).lineTo(-0.448, -0.09).lineTo(-0.448, 0.555).close().extrude(1.053)
result = result.... | 3 | 22 | 0.926365 |
train_39c43d65baf938c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.076, 0.009, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.504, 1.067).lineTo(-0.682, 1.067).lineTo(-0.682, 0.058).lineTo(0.682, 0.058).lineTo(0.682, 1.067).lineTo(0.504, 1.067).close().revolve(angleDegrees=270, axisStart=(0.504, 1.067), axisE... | 30 | 161 | 1.474492 |
train_4048e73c9fd4166d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.023, 0.174, -0.689), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.076, 0.44).threePointArc((0.169, 0.36), (0.32, 0.152)).threePointArc((0.32, -0.105), (0.169, -0.313)).threePointArc((-0.076, -0.393), (-0.32, -0.313)).lineTo(-0.076, -0.289).line... | 3 | 40 | 0.077943 |
train_f02883a348377b12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.542), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.05, -0.047).lineTo(0.019, -0.047).lineTo(-0.054, 0.034).lineTo(-0.054, 0.04).lineTo(0.05, 0.046).lineTo(0.05, 0.04).lineTo(0.054, 0.034).lineTo(0.05, 0.034).lineTo(0.05, -0.047).close().... | 4 | 25 | 0.097485 |
train_3e67f8de494fad3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.208, 0, 0.148), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.068, 0.002).lineTo(-0.031, 0.171).threePointArc((0.105, 0.003), (-0.03, -0.167)).threePointArc((-0.068, -0.171), (-0.105, -0.167)).lineTo(-0.068, 0.002).close().extrude(0.194)
result ... | 4 | 43 | 0.016446 |
train_9c75282e2e271f71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.109, 0, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.004, -0.004).lineTo(0.002, -0.004).lineTo(-0.004, 0.003).lineTo(-0.005, 0.003).lineTo(-0.005, 0.004).lineTo(0.005, 0.004).lineTo(0.005, 0.003).lineTo(0.004, 0.003).lineTo(0.004, -0.004).c... | 3 | 25 | 0.000102 |
train_56cbf4df3edc83b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.478, -0.2, -0.43), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.052, 0.216).lineTo(-0.052, -0.046).lineTo(0.052, 0.02).lineTo(0.052, 0.15).lineTo(-0.052, 0.216).close().extrude(0.163)
result = result.edges().fillet(0.015)
result = result.union... | 8 | 312 | 0.329782 |
train_8341a721dcc62e34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.251, -0.172, -0.194), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.828).lineTo(0.217, -0.376).lineTo(0.717, -0.414).lineTo(0.434, 0).lineTo(0.717, 0.414).lineTo(0.217, 0.376).lineTo(0, 0.828).lineTo(-0.217, 0.376).lineTo(-0.717, 0.414).lineT... | 9 | 91 | 0.219008 |
train_9dcd55dda098f7b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.405, 0.026, -0.423), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.435, 0.803).extrude(0.374)
result = result.union(cq.Workplane(cq.Plane(origin=(0.708, 0.126, -0.309), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.193, 0.437).extrude(0.207))
result = r... | 25 | 248 | 0.551601 |
train_b84af4b995718945 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.21, 0.253, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.942, 0.463).lineTo(-0.942, 0.463).lineTo(-0.942, 0.332).threePointArc((-0.956, 0.226), (-0.997, 0.126)).lineTo(-1.009, 0.105).lineTo(-0.898, 0.041).lineTo(0.898, 0.041).lineTo(1.009, 0.... | 12 | 46 | 0.245338 |
train_861ed48b23e20a8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.034, -0.146, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.176).lineTo(-1, 0.016).lineTo(1, 0.016).lineTo(1, 0.176).lineTo(0.9, 0.276).lineTo(0.8, 0.176).lineTo(0.7, 0.276).lineTo(0.6, 0.176).lineTo(0.5, 0.276).lineTo(0.4, 0.176).lineTo(0... | 22 | 345 | 0.170438 |
train_327cbd9da569778a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.14, 0.011, 0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.643, 0.024).lineTo(0.308, 0.537).lineTo(-0.305, 0.554).lineTo(-0.653, -0.01).lineTo(-0.323, -0.566).lineTo(0.334, -0.577).close().moveTo(0.091, 0.224).lineTo(0.028, 0.31).lineTo(-0.07... | 14 | 147 | 0.207973 |
train_bb1bc63fec235131 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.099, -0.583, -0.008), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.563, 0.296).threePointArc((-0.505, 0.356), (-0.563, 0.417)).threePointArc((-0.4, 0.755), (-0.062, 0.917)).threePointArc((-0.002, 0.86), (0.059, 0.917)).threePointArc((0.397, 0.75... | 14 | 108 | 0.744225 |
train_aef99a0706190430 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.297), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.131, 0.103).lineTo(0.131, -0.054).lineTo(-0.079, -0.054).lineTo(-0.079, -0.103).lineTo(-0.131, -0.103).lineTo(-0.131, 0.083).lineTo(-0.111, 0.083).lineTo(-0.111, 0.103).lineTo(0.131, 0.1... | 4 | 27 | 0.087988 |
train_b39e4ceebf73ee81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.2, -0.236, -0.222), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.636, 0.636).extrude(0.356)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.168, -0.204, 0.133), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.286).extrude(0.031))
result = resul... | 19 | 91 | 0.134718 |
train_1c7f919cdae1e2b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.027, -0.336), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.579, 1.104).extrude(0.672)
result = result.faces('>Z').shell(-0.07)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.387, 0.749, -0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.... | 5 | 38 | 0.392591 |
train_f589d79a971b0d43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, -1, -0.127), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.136, 0.211).lineTo(-0.159, 0.211).lineTo(-0.236, -0.028).lineTo(-0.218, -0.042).lineTo(-0.004, -0.198).lineTo(0.015, -0.211).lineTo(0.218, -0.063).lineTo(0.236, -0.05).lineTo(0.229... | 16 | 54 | 0.134521 |
train_42e091f6763f64e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.336, 0.425, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.538, -0.664).threePointArc((-0.865, -0.53), (-1, -0.202)).threePointArc((-0.865, 0.124), (-0.538, 0.259)).lineTo(-0.538, 1.335).lineTo(1, 1.335).lineTo(1, -0.202).lineTo(-0.077, -0.20... | 22 | 44 | 2.438287 |
train_f96b0b0bdb7197d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.232, -0.295, -0.69), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.31, -0.147).lineTo(0.237, 0.168).threePointArc((0.31, 0.295), (0.237, 0.421)).lineTo(-0.31, 0.737).lineTo(-0.31, -0.147).close().extrude(0.464)
result = result.edges().fillet(0.0... | 10 | 61 | 0.117456 |
train_e2f094dd58791c95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.108, -0.507), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.727, 1.384).extrude(1.258)
result = result.faces('>Z').shell(-0.122)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.419, -0.33, -0.751), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(... | 16 | 58 | 1.235436 |
train_ea6cc65d13225dc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.37), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.866, 0.5).lineTo(0.289, 0.5).lineTo(0, 1).lineTo(-0.289, 0.5).lineTo(-0.866, 0.5).lineTo(-0.577, 0).lineTo(-0.866, -0.5).lineTo(0.289, -0.5).lineTo(0, -1).lineTo(0.866, -0.5).lineTo(0.577, ... | 9 | 36 | 1.261591 |
train_d1bfabc9c523fcb9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.416, 0, -0.344), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.168, 0.924).extrude(0.927)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.405, -0.121, -0.583), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.145).extrude(0.259))
result = result.... | 15 | 38 | 0.85615 |
train_60ac25389f212243 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.726, -0.363, -0.35), normal=(0, 0, 1), xDir=(1, 0, 0))).lineTo(-0.131, -0.04).lineTo(-0.104, -0.04).lineTo(0.184, -0.04).close().transformed(offset=(0.09, -0.081, 0.022), rotate=(0, 0, 90)).lineTo(-0.062, -0.019).lineTo(-0.049, -0.019).lineTo(0.... | 2 | 18 | 0.00747 |
train_0af02d5e9ea800e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.199, -1, -0.003), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.277, -0.264).threePointArc((0.073, 0.162), (0.508, 0.502)).lineTo(0.383, 0.655).lineTo(-0.508, -0.069).lineTo(-0.277, -0.264).close().extrude(2)
result = result.edges().fillet(0.075... | 6 | 36 | 0.444191 |
train_4117840791bb61e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.178, 0.176, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.415, 0.831).threePointArc((-0.338, 0.25), (-0.109, -0.291)).threePointArc((0.128, -0.046), (0.302, 0.249)).threePointArc((0.375, 0.456), (0.415, 0.672)).threePointArc((0.408, 0.751),... | 15 | 113 | 0.353123 |
train_814f5a670c272bbb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.157, 0, -0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.303, 2).extrude(0.26)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.157, -0.479, 0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.078).extrude(0.126))
result = result.cut(cq.Wor... | 14 | 72 | 0.636963 |
train_987f6e2271aab431 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.474), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.699, 0.353).extrude(0.523)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.416, 0.209).extrude(0.401))
result = result.union(cq.Wor... | 10 | 54 | 0.171886 |
train_d11ac2a889384676 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.165, 2).extrude(0.482)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.46).extrude(0.055))
result = result.union(cq.Workplane(cq.... | 12 | 137 | 1.211791 |
train_e7c57872537ca3be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.081, 0.311, -0.03), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.125, -0.046).threePointArc((0, -0.136), (-0.125, -0.046)).lineTo(-0.175, 0.254).lineTo(-0.129, 0.535).lineTo(-0.125, 0.535).lineTo(0.125, 0.535).lineTo(0.129, 0.535).lineTo(0.175, ... | 9 | 88 | 0.223776 |
train_8e1d1cf3857aaf3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.459, 0.008, -0.36), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.102, 0.381).lineTo(-0.046, 0.169).lineTo(0.046, 0.169).lineTo(0.124, 0.124).lineTo(0.169, 0.046).lineTo(0.381, 0.102).lineTo(0.381, -0.102).lineTo(0.169, -0.046).lineTo(0.124, -0.... | 9 | 224 | 0.824764 |
train_12f037b7096aad67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.122, 0.078, 0.002), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.021, 0.021).lineTo(-0.029, 0.019).lineTo(-0.021, -0.021).lineTo(0, 0).lineTo(-0.019, -0.029).lineTo(0.021, -0.021).lineTo(0.029, -0.019).lineTo(0.021, 0.021).lineTo(0.019, 0.029).l... | 25 | 243 | 0.10863 |
train_57632daeae685be7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.754, -0.475), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.738, -0.246).lineTo(0.738, -0.246).lineTo(0.738, -0.106).lineTo(-0.082, -0.106).lineTo(-0.082, 0.246).lineTo(-0.152, 0.246).lineTo(-0.363, 0.035).lineTo(-0.363, -0.012).lineTo(-0.45... | 4 | 69 | 0.211169 |
train_6de3c0f7fa2dcb8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, 0.041, -0.34), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.582, 1.615).extrude(0.73)
result = result.union(cq.Workplane(cq.Plane(origin=(0.429, 0.923, -0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.064, 0.154).extrude(0.057))
result = re... | 6 | 31 | 1.871491 |
train_11d7f3566bc3d97e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.642, -0.052), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.533, 0.271).lineTo(0.533, -0.046).lineTo(-0.533, -0.046).lineTo(-0.533, 1.439).lineTo(0.533, 1.439).lineTo(0.533, 0.271).close().extrude(2)
result = result.edges().fillet(0.27)
result... | 5 | 56 | 2.909739 |
train_af57a59a0f07145a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.945, -0.026, -0.434), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.693, -0.183).lineTo(0.693, 0.34).lineTo(0.651, 0.381).lineTo(0.342, 0.381).lineTo(0.342, -0.183).lineTo(-0.693, -0.183).lineTo(0.693, -0.183).close().extrude(1.89)
result = resul... | 37 | 229 | 0.625888 |
train_41e15be4c352a2f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.155, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.18).workplane(offset=1.091).circle(0.116).workplane(offset=0.909).circle(0.052).loft()
result = result.union(result.mirror('XZ', basePointVector=(0, 0, 1)))
result = result.cut(cq.Workplan... | 3 | 7 | 0.193379 |
train_dd86559b87381792 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.152, -0.276, -0.361), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.492, 0.233).lineTo(-0.492, 0.602).threePointArc((-0.455, 0.689), (-0.368, 0.725)).lineTo(0.368, 0.725).threePointArc((0.455, 0.689), (0.492, 0.602)).lineTo(0.492, 0.233).lineTo(... | 14 | 116 | 1.663097 |
train_2d016e5dbca8741e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0.111, 0.112), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.104, -0.785).lineTo(0.104, 0.889).lineTo(-0.104, 0.889).lineTo(-0.104, -0.889).lineTo(0.104, -0.889).lineTo(0.104, -0.785).close().extrude(0.208)
result = result.edges().chamfer(0... | 6 | 43 | 0.071046 |
train_5ea3648fb77af9c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.468), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.675).extrude(0.939)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.084, 0.469), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.508).extrude(0.073))
result = result.union(cq.Wo... | 16 | 78 | 2.979863 |
train_58506cebc2c2eb54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.226, 0.021, -0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.271, 1.03).threePointArc((-0.335, 1.013), (-0.399, 1)).threePointArc((-0.562, 0.75), (-0.419, 0.487)).threePointArc((-0.348, 0.457), (-0.271, 0.447)).threePointArc((-0.194, 0.457)... | 2 | 35 | 1.008433 |
train_d862373d136a19cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.163, 0, -0.521), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.133, 0.881).extrude(1.043)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.86, -0.073, -0.249), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.28, 0.487).extrude(0.594))
result = resu... | 4 | 76 | 1.13396 |
train_647c7a89fa6f521f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.001, 0.112), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.024, 0.171).threePointArc((0, 0.149), (-0.024, 0.171)).threePointArc((0, -0.171), (0.024, 0.171)).close().sweep(cq.Workplane('XY').spline([(-0.836, -0.559), (-0.418, -0.509), (0, 0.001)... | 4 | 18 | 0.110042 |
train_3e1287bdcbea84c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.465, -0.041, 0.014), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.451, -0.716).lineTo(-0.451, -0.802).lineTo(0.378, -0.802).threePointArc((0.451, 0.252), (-0.451, 0.802)).lineTo(-0.451, 0.716).lineTo(-0.451, -0.716).close().revolve(angleDegrees... | 4 | 21 | 2.003709 |
train_4d50863787f233d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.082, 0, -0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.733, 2).extrude(0.648)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.131, 0.4, 0.019), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.351, 0.654).lineTo(0.248, 0.477).lineTo(0.175, 0.... | 13 | 96 | 1.801615 |
train_9ecf7971d39389e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.32, -0.239, 0.052), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.312, -0.071).threePointArc((-0.391, -0.055), (-0.441, 0.008)).lineTo(-0.441, 0.054).lineTo(-0.402, 0.054).lineTo(-0.402, 0.015).threePointArc((-0.369, -0.022), (-0.32, -0.032)).li... | 4 | 53 | 0.140283 |
train_c05bd15a5ccd8e28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.345, 0, 0.257), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.12, 0.644).threePointArc((0, -0.655), (-0.12, 0.644)).threePointArc((0, 0.655), (0.12, 0.644)).close().sweep(cq.Workplane('XZ').spline([(-0.345, 0.257), (-0.013, 0.001), (0.318, 0.001... | 17 | 109 | 0.904543 |
train_dcf3dfa0a812d643 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.327).workplane(offset=0.641).circle(0.304).workplane(offset=0.735).circle(0.359).workplane(offset=0.625).circle(0.248).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.468), n... | 2 | 7 | 0.411045 |
train_e3e5fe19c31eb032 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.099, -0.588, -0.28), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.212, 0.503).lineTo(0.212, -0.526).lineTo(-0.212, -0.526).lineTo(-0.212, 0.252).lineTo(-0.265, 0.252).lineTo(-0.212, 0.503).lineTo(0.212, 0.503).close().sweep(cq.Workplane('YZ').sp... | 16 | 86 | 0.49204 |
train_6ddd4dc3ae152257 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.971, 0, -0.004), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.787).workplane(offset=0.381).circle(0.685).workplane(offset=0.532).circle(0.585).workplane(offset=0.551).circle(0.758).workplane(offset=0.478).circle(0.66).loft()
result = result.edge... | 16 | 121 | 1.436672 |
train_f8c51f374264bee9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.07, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.585, 1.867).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.927, -0.25, -0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.065, 0.215).lineTo(-0.065, 0.888).threePointArc... | 6 | 228 | 5.781796 |
train_654b8a195c0b789b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.082, 0.033, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.458, 0.456).lineTo(0.458, 0.277).lineTo(0.458, -0.456).lineTo(0.217, -0.216).lineTo(-0.183, 0.182).lineTo(-0.458, 0.456).close().workplane(offset=0.392).moveTo(-0.379, 0.378).lineTo(... | 7 | 56 | 0.40876 |
train_5575bbf4df84b3fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, 0.01, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.152).threePointArc((-0.303, 0.278), (-0.429, 0.581)).threePointArc((-0.303, 0.884), (0, 1.01)).threePointArc((0.429, 0.581), (0, 0.152)).close().revolve(angleDegrees=270, axisStart=(0... | 5 | 65 | 1.225023 |
train_69c5f0c93979da36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.161, -0.277, 0.03), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.295, 0.449).lineTo(0.022, 0.449).threePointArc((0.215, 0.369), (0.295, 0.176)).lineTo(0.295, -0.14).lineTo(-0.113, -0.14).threePointArc((-0.241, -0.087), (-0.295, 0.042)).lineTo(-... | 13 | 76 | 0.255701 |
train_1633ccc3a80f5bd1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.844), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.102, 2).extrude(0.989)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.142, 0.245, 0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.254).extrude(0.327))
result = result.union(cq.Wo... | 5 | 16 | 2.039201 |
train_c95b5e5eaef574de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.139, -0.294, 0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.864, 0.552).extrude(0.122)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.207 + 0.0865, -0.282 + 0.016, -0.073), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.021, 0.006).lineTo... | 36 | 183 | 1.098771 |
train_07de3363b9fe1998 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.151, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.153, -0.216).lineTo(0.153, -0.204).lineTo(-0.082, 0.032).lineTo(-0.068, 0.047).lineTo(0.153, -0.174).lineTo(0.183, -0.174).lineTo(-0.053, 0.062).lineTo(0.12, 0.235).lineTo(0.361, -0.174).li... | 3 | 35 | 0.11348 |
train_54b0b6c46660ee89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.583, 0.84, -0.022), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.554, -0.417).lineTo(-0.554, -0.417).lineTo(0.554, 1.666).lineTo(0.554, -0.417).close().extrude(1.68)
result = result.edges().chamfer(0.094)
result = result.cut(cq.Workplane(cq.Plan... | 3 | 24 | 1.818546 |
train_3217f5aea85ffca6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.249, 0.066, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.12, 0.921).lineTo(0.314, 0.921).lineTo(0.193, 1.066).lineTo(-0.314, 1.066).lineTo(-0.314, 0.921).lineTo(-0.242, 0.921).lineTo(-0.242, 0.052).threePointArc((-0.137, -0.027), (-0.097, -0... | 2 | 20 | 0.327677 |
train_6dc4ef494aafda8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.008, -0.14), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.022).lineTo(1, -0.022).lineTo(-1, -0.022).lineTo(-1, 0.022).lineTo(1, 0.022).close().extrude(0.076)
result = result.edges().fillet(0.009)
result = result.union(cq.Workplane(cq.Plane... | 12 | 152 | 0.078095 |
train_27670c5c52abd4b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.909, 0.019), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.019, -0.037).lineTo(-0.056, -0.037).lineTo(-0.056, 0.037).lineTo(-0.019, 0.037).lineTo(0.056, -0.037).lineTo(-0.019, -0.037).close().sweep(cq.Workplane('YZ').spline([(-0.909, 0.019),... | 1 | 7 | 0.026627 |
train_3b2efa8fafee2025 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.598, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.435, 0.056).lineTo(1, 0.056).lineTo(1, 0.274).lineTo(0.435, 0.274).lineTo(0.435, 0.708).lineTo(1, 0.708).lineTo(1, 0.926).lineTo(-0.435, 0.926).lineTo(-0.435, 0.274).lineTo(-1, 0.274)... | 9 | 74 | 0.488998 |
train_5ec3c34a6c281b77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, 0.019, -0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.672, -0.974).lineTo(0.668, -1.019).lineTo(0.666, 0.981).lineTo(-0.693, 0.968).close().moveTo(-0.145, 0.174).lineTo(-0.197, 0.11).lineTo(-0.235, 0.176).lineTo(-0.326, 0.124).lineTo... | 18 | 1,011 | 0.166824 |
train_ebefd3d509494b3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.848, -0.689), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.311, 0.331).lineTo(0, 0).lineTo(-0.107, -0.114).threePointArc((-0.292, -0.23), (-0.311, -0.268)).lineTo(-0.311, -0.331).lineTo(-0.175, -0.186).threePointArc((-0.137, -0.202), (-0.106, ... | 1 | 11 | 0.066377 |
train_d5b9549fbb58327a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.1, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1.051).lineTo(0.295, -0.407).lineTo(1, -0.325).lineTo(0.478, 0.155).lineTo(0.618, 0.851).lineTo(0, 0.503).lineTo(-0.618, 0.851).lineTo(-0.478, 0.155).lineTo(-1, -0.325).lineTo(-0.295, ... | 12 | 118 | 0.764756 |
train_83fb3799ee506cd3 | 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.689).workplane(offset=1.04).circle(0.6).workplane(offset=0.96).circle(0.417).loft()
result = result.edges().fillet(0.21)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.543 + 0.181, -1, 0... | 10 | 92 | 1.385476 |
train_7825098d97039686 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.783, -0.662, 0.022), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.737, 1.591).threePointArc((-0.852, 1.543), (-0.9, 1.429)).lineTo(-0.9, 0.264).threePointArc((-0.852, 0.149), (-0.737, 0.101)).lineTo(0.737, 0.101).threePointArc((0.852, 0.149), (... | 16 | 60 | 3.467946 |
train_8027120b322a45fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.39, 0.058, -0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.22, 0.753).extrude(0.311)
result = result.union(cq.Workplane(cq.Plane(origin=(0.097, 0.149, 0.232), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.365, 0.826).threePointArc((-0.221, 0.... | 5 | 20 | 0.27863 |
train_a0fd0a9b8e9c0891 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.66, 0.633, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.276, -0.229).lineTo(-0.276, 0.11).lineTo(0.488, 0.11).lineTo(0.488, 1.55).lineTo(-0.276, 1.55).lineTo(-0.276, 0.829).lineTo(-0.488, 0.829).lineTo(-0.488, -0.229).lineTo(-0.276, -0.229)... | 15 | 74 | 1.397612 |
train_8077033a8360887a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.8), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.566, 2).extrude(1.601)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.637, 0.395, -0.479), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.153).extrude(0.426))
result = result.cut(cq.Workplan... | 12 | 156 | 4.3887 |
train_d011c467640c901f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.256, 0.233, 0.062), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.354, 0.392).threePointArc((0.303, 0.518), (0.177, 0.569)).lineTo(-0.676, 0.569).lineTo(-0.884, 0.569).threePointArc((-1.01, 0.518), (-1.062, 0.392)).lineTo(-1.062, 0.197).threePoin... | 4 | 68 | 0.456439 |
train_1fdbd308aa56fbb6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.315, -0.915, 0.081), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.551, 1.291).lineTo(0.551, 0.19).lineTo(-0.551, 0.19).lineTo(-0.551, 1.291).lineTo(0.11, 1.291).lineTo(0.11, 1.223).threePointArc((0.147, 1.214), (0.183, 1.201)).lineTo(0.158, 1.13... | 11 | 64 | 0.861921 |
train_dc6edd60e60c24e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.852, -0.099, -0.231), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.228, 0.026).lineTo(0.253, 0.002).lineTo(0.281, -0.026).lineTo(0.29, -0.035).lineTo(0.276, -0.05).threePointArc((0.194, -0.196), (0.05, -0.279)).threePointArc((0.036, -0.283), (0... | 10 | 100 | 0.75798 |
train_5a3bdebe36fc30b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.647, 0.175, -0.207), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.085, 0.914).lineTo(-0.213, -0.813).lineTo(0.213, 0.711).lineTo(0.085, 0.914).close().extrude(0.797)
result = result.edges().fillet(0.055)
result = result.union(cq.Workplane(cq.Pla... | 29 | 233 | 0.229309 |
train_9c4d674d4b8b4cb4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.549, 0.195), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.451, 0.451).lineTo(-0.451, 0.451).lineTo(-0.451, -0.451).lineTo(0.451, -0.451).lineTo(0.451, 0.451).close().sweep(cq.Workplane('YZ').spline([(-0.549, 0.195), (-0.324, 0.078), (-0.098,... | 3 | 16 | 0.683881 |
train_d535f5469984208a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, 0.191, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.149, 0.18).lineTo(0.047, 0.037).lineTo(0.241, 0.188).lineTo(0.166, -0.05).lineTo(0.123, -0.188).lineTo(-0.241, -0.188).lineTo(-0.061, -0.047).lineTo(-0.149, 0.18).close().sweep(c... | 2 | 25 | 0.172092 |
train_822dd31edaf31584 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.886, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.702, 0.065).threePointArc((-0.821, 0.191), (-0.687, 0.301)).lineTo(-0.687, 0.413).lineTo(-0.687, 1.471).threePointArc((-0.781, 1.5), (-0.821, 1.588)).threePointArc((-0.787, 1.673), (-0.7... | 21 | 186 | 1.70232 |
train_8ad4401a7e64c9da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.035, 0, -0.729), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.26, 1.3).extrude(1.15)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.819, -0.08, -0.386), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.362, 0.512).extrude(0.609))
result = result.... | 13 | 40 | 1.758657 |
train_cd50ff61e1262ce0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.135, -0.15, -0.663), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.779, 0.668).extrude(0.367)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.264, -0.047, -0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.164).extrude(0.105))
result = res... | 23 | 89 | 0.598354 |
train_fdc93b29a9e5a8b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.137, -0.226, -0.764), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.514, 0.826).lineTo(-0.514, -0.202).lineTo(0, -0.202).lineTo(0, 0.312).lineTo(0.514, 0.312).lineTo(0.514, 0.826).lineTo(-0.514, 0.826).close().extrude(0.475)
result = result.edge... | 7 | 59 | 0.520705 |
train_0a6dcb732656fb49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.181, -0.018, -0.034), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.211).workplane(offset=0.225).circle(0.188).workplane(offset=0.226).circle(0.207).workplane(offset=0.175).circle(0.193).workplane(offset=0.168).circle(0.193).workplane(offset=0.16... | 18 | 63 | 0.086304 |
train_ae8edf8aaa346e91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.226, 0.147, -0.757), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.346, 0.219).extrude(1.247)
result = result.union(cq.Workplane(cq.Plane(origin=(0.465, 0.182, -0.457), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.145, 0.106).extrude(0.614))
result = r... | 8 | 52 | 1.199875 |
train_e9c920d07cce8075 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.88, 0.413, -0.507), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.092, -0.054).lineTo(-0.076, -0.045).lineTo(0.074, 0.045).lineTo(0.09, 0.054).lineTo(0.09, -0.036).lineTo(0.092, -0.036).lineTo(0.092, -0.054).lineTo(-0.092, -0.054).close().transf... | 2 | 15 | 0.052203 |
train_4a716995fb55533f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.39, 0.193), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, -0.183).lineTo(-1, 0.183).threePointArc((-0.005, 0.002), (1, -0.118)).lineTo(1, -0.183).lineTo(-1, -0.183).close().sweep(cq.Workplane('YZ').spline([(0.39, -0.266), (0.572, -0.21), (0.7... | 2 | 9 | 0.087383 |
train_aa3df7dac2dd7fb9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.112, 0, -0.541), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.035, 0.018).lineTo(0.28, 1).lineTo(-0.812, 0.579).lineTo(-0.809, -0.583).lineTo(0.32, -1).close().center(0, 0.29).rect(0.461, 0.396).center(-0.384, -0.496).rect(0.538, 0.276).moveTo(0... | 10 | 79 | 1.869405 |
train_3ec178208897a295 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.487, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.478, 0.973).threePointArc((-0.795, 0.843), (-0.931, 0.528)).threePointArc((-0.802, 0.202), (-0.478, 0.066)).lineTo(-0.35, 0.066).lineTo(0.35, 0.066).lineTo(0.478, 0.066).threePointArc((0.... | 9 | 39 | 2.82084 |
train_141c6ee956e5e3f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.091, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.03, 0.229).lineTo(0.03, -0.259).lineTo(-0.03, -0.259).lineTo(-0.03, 0.199).lineTo(-0.489, 0.199).lineTo(-0.489, 0.229).lineTo(-0.03, 0.229).lineTo(-0.03, 0.259).lineTo(0.489, 0.259).lineTo... | 1 | 12 | 0.113181 |
train_d37afe57dd9ceda2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.11, -0.344), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.202, 1.152).extrude(0.688)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.01, -0.029, -0.144), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.411, 1.383).extrude(0.236))
result = result... | 25 | 301 | 0.54243 |
train_0a338ae194d0eee8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.772, 0.231, 0.43), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.456, 0.309).extrude(0.12)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.749, 0.246, 0.55), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.011, -0.008).lineTo(-0.011, 0.005).li... | 27 | 220 | 0.238438 |
train_0dc8f638bf226037 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.169, 0.966, -0.161), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.606, -0.134).lineTo(0.837, 0.673).lineTo(-0.375, 1.019).lineTo(-0.837, -0.596).lineTo(0.375, -0.942).lineTo(0.606, -0.134).close().extrude(1.931)
result = result.edges().chamfer(0... | 18 | 73 | 2.281921 |
train_accb6978ad8c0b04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0.056, -0.91), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.084, -0.089).lineTo(0.075, 0.1).lineTo(-0.084, -0.002).lineTo(0.084, -0.089).close().workplane(offset=0.028).moveTo(0.093, -0.099).lineTo(0.084, 0.111).lineTo(-0.093, -0.003).lineT... | 6 | 32 | 0.003053 |
train_045ad20406044d0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, 0, 0.094), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.556, 0.494).lineTo(-0.214, 0.494).threePointArc((0.012, 0.543), (0.239, 0.494)).threePointArc((0.556, 0), (0.239, -0.494)).threePointArc((0.012, -0.543), (-0.214, -0.494)).lineTo(-0.55... | 13 | 25 | 1.13237 |
train_af51d38c8b62eb26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.193, -0.004, -0.012), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.069, 0).lineTo(-0.069, 0).lineTo(-0.069, -0.177).lineTo(-0.094, -0.201).lineTo(-0.094, 0.201).lineTo(0.094, 0.201).lineTo(0.094, -0.201).lineTo(0.069, -0.177).lineTo(0.069, 0).c... | 13 | 90 | 0.145065 |
train_51a68ff98087391b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.209, 0, -0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.145, 2).extrude(0.101)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.035, 0.14, 0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.159).extrude(0.011))
result = result.cut(cq.Wor... | 16 | 125 | 0.16511 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.