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_bdd200d69c57404f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.218, 0.134, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.104, 0.039).lineTo(0.104, 0.066).lineTo(-0.104, 0.066).lineTo(-0.104, -0.066).lineTo(-0.077, -0.066).lineTo(-0.077, 0.039).lineTo(0.104, 0.039).close().sweep(cq.Workplane('XY').spline(... | 9 | 77 | 0.082183 |
train_b4e43d99a1e1aa5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.27, 0.039, 0.155), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.143, 0.11).lineTo(0.125, 0.029).lineTo(-0.143, 0.029).lineTo(-0.143, 0.102).lineTo(-0.084, 0.239).lineTo(0.088, 0.239).lineTo(0.143, 0.11).close().revolve(angleDegrees=360, axisStar... | 14 | 113 | 0.245534 |
train_c8b0415bd4aa8b07 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.322, 0.328, 0.005), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.011, 0.042).lineTo(0.033, 0.005).lineTo(0.054, -0.012).lineTo(0.04, -0.029).threePointArc((-0.001, -0.018), (-0.035, -0.042)).lineTo(-0.054, -0.032).lineTo(-0.041, -0.008).lineTo(-... | 8 | 44 | 0.023326 |
train_d5321bb1806d9f36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.362, 0.116, -0.044), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.088, 0.034).lineTo(-0.076, 0.014).lineTo(-0.128, -0.075).lineTo(-0.038, -0.127).lineTo(0.013, -0.037).lineTo(0.036, -0.037).lineTo(0.036, -0.141).lineTo(0.139, -0.141).lineTo(0.... | 6 | 96 | 0.036825 |
train_0a074d198e8edb8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.645, -0.002, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.398).transformed(offset=(0.236, 0, 0.059), rotate=(45, 0, 0)).circle(0.157).transformed(offset=(0.473, 0.074, 0.101), rotate=(0, 0, 0)).circle(0.17).transformed(offset=(0.713, 0.2... | 2 | 8 | 0.050964 |
train_5f69de64b3310da7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.696, -0.207, -0.337), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.436, 0.436).extrude(0.676)
result = result.union(cq.Workplane(cq.Plane(origin=(0.884, -0.207, 0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.166, 0.267).threePointArc((-0.18,... | 14 | 445 | 0.47446 |
train_dbca36992e23d6be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.499), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.798, 0.867).extrude(1.499)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.109, -0.249, -0.057), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.193).extrude(0.907))
result = result.cut(cq.... | 10 | 54 | 0.82447 |
train_b100fc286740e3c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.227, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.021, 0.043).lineTo(0.021, 0.032).threePointArc((0.029, 0.029), (0.032, 0.021)).lineTo(0.032, -0.021).lineTo(0.032, -0.04).threePointArc((0.027, -0.042), (0.021, -0.043)).lineTo(-0.021, -0.0... | 1 | 13 | 0.00638 |
train_7530a34f51cbd8f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.155, -0.072, -0.18), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.18, 0.035).lineTo(-0.079, 0.035).lineTo(-0.079, 0.141).lineTo(0.074, 0.141).lineTo(0.074, 0.035).lineTo(0.18, 0.035).lineTo(0.18, 0.19).lineTo(-0.18, 0.19).lineTo(-0.18, 0.035).c... | 26 | 83 | 0.032933 |
train_0d4a176a3c7d660f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.791, 0.019, -0.244), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.756, 0.019).lineTo(0.756, 0.775).lineTo(-0.756, 0.775).lineTo(-0.756, -0.737).lineTo(0, -0.737).lineTo(0.756, 0.019).close().extrude(1.583)
result = result.edges().chamfer(0.154)
... | 7 | 65 | 2.209366 |
train_2309a86fae3f277a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.009, -0.079, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.123, 0.157).extrude(0.114)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.02, -0.076, -0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.015).extrude(0.053))
result = resu... | 17 | 135 | 0.019643 |
train_709c2343c406d124 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.123, -0.807, -0.462), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.411, 0.589).lineTo(-0.411, -0.389).lineTo(0.411, -0.389).lineTo(0.411, 0.589).lineTo(-0.411, 0.589).close().extrude(1.183)
result = result.edges().fillet(0.123)
result = result.... | 24 | 142 | 0.803405 |
train_5d7a8b1d8036dad5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.327).workplane(offset=0.497).circle(0.329).workplane(offset=0.464).circle(0.27).workplane(offset=0.543).circle(0.301).workplane(offset=0.497).circle(0.316).loft()
result = result.cut(cq.Workpl... | 13 | 3 | 0.600471 |
train_009b487ab764b474 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.366, -0.966), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.953, 0.668).threePointArc((-1, 0.366), (0.953, 0.064)).threePointArc((1, 0.366), (0.953, 0.668)).close().extrude(1.932)
result = result.edges().chamfer(0.123)
result = result.cut(cq.W... | 9 | 24 | 4.054512 |
train_f7b7dd2ec2d2d077 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.477, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.767, 0.477).lineTo(-0.767, 0.892).lineTo(0.767, 0.892).lineTo(0.767, 0.061).lineTo(-0.767, 0.061).lineTo(-0.767, 0.477).close().extrude(2.001)
result = result.edges().fillet(0.406)
resul... | 8 | 34 | 1.88256 |
train_1e017d090481d3a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, -0.156, 0.018), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.054, -0.97).lineTo(0.127, 1.005).lineTo(0.054, 0.974).lineTo(-0.127, -1.001).lineTo(-0.054, -0.97).close().extrude(0.265)
result = result.edges().chamfer(0.008)
result = result.u... | 4 | 74 | 0.047493 |
train_471b153d55dce136 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.389, 0, -0.293), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.222, 1.222).extrude(0.438)
result = result.union(cq.Workplane(cq.Plane(origin=(0.45, 0.061, 0.144), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.099, 1.099).extrude(0.052))
result = result.... | 12 | 52 | 0.5478 |
train_218e717f9d824ec6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.357, -0.5), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.339).lineTo(0.5, 0.309).lineTo(0.444, 0.309).lineTo(0.444, 0.034).lineTo(0.024, 0.034).lineTo(0.024, 0.309).lineTo(-0.141, 0.309).lineTo(-0.141, 0.034).lineTo(-0.17, 0.034).lineTo(-... | 4 | 60 | 0.26673 |
train_b7155d8fb7d6ea23 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.36, -0.781, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.082, -0.111).lineTo(0.057, -0.111).lineTo(0.057, -0.219).lineTo(0.082, -0.219).lineTo(0.082, -0.013).lineTo(0.057, -0.013).lineTo(0.057, 0.219).lineTo(0.031, 0.219).lineTo(0.039, -0.... | 5 | 77 | 0.061207 |
train_37cd9669c16b068a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.865, -0.493, 0.042), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.072, 0.07).threePointArc((-0.098, 0.059), (-0.107, 0.035)).lineTo(-0.107, -0.035).threePointArc((-0.098, -0.059), (-0.072, -0.07)).lineTo(0.107, -0.07).lineTo(0.107, 0.026).line... | 3 | 16 | 0.037389 |
train_eaa30c9bc322172d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.141, 0.087, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.223, 0.136).extrude(0.382)
result = result.union(cq.Workplane(cq.Plane(origin=(0.099, 0.061, 0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.03, 0.021).extrude(0.84))
result = resul... | 12 | 110 | 0.041824 |
train_d51542a825ac54dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.467, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.785, -0.431).lineTo(0.785, 1.364).lineTo(-0.785, 1.364).lineTo(-0.785, -0.431).lineTo(0.785, -0.431).close().extrude(2)
result = result.edges().chamfer(0.043)
result = result.cut(cq.Workpl... | 4 | 42 | 5.574139 |
train_cfd81d27ef87a396 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.243, 0, -0.653), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.515, 1.86).extrude(0.785)
result = result.union(cq.Workplane(cq.Plane(origin=(0.099, 0.189, 0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.363, 0.876).extrude(0.285))
result = result... | 11 | 62 | 1.741636 |
train_8d2bee537869a98f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.599, 0.253), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.401, -0.401).lineTo(-0.08, 0.179).lineTo(0.043, 0.401).lineTo(0.401, 0.401).lineTo(-0.401, -0.401).close().sweep(cq.Workplane('YZ').spline([(-0.599, 0.253), (-0.358, 0.253), (-0.117,... | 1 | 6 | 0.022243 |
train_ac546269f7b374ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.029, 0.213, -0.24), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.172, 0.199).lineTo(-0.087, 0.249).threePointArc((-0.199, 0.172), (-0.259, 0.049)).threePointArc((-0.249, -0.087), (-0.172, -0.199)).lineTo(0.087, -0.249).threePointArc((0.199, -0.... | 24 | 189 | 0.289783 |
train_874287eeccabcaea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.311, 0, 0.429), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.767, -0.887).lineTo(0.767, -0.887).threePointArc((0.386, 0), (0.767, 0.887)).lineTo(-0.767, 0.887).lineTo(-0.767, -0.887).close().extrude(0.858)
result = result.edges().chamfer(0.112)... | 3 | 29 | 1.954012 |
train_780dc4dc92eeb296 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.503, -0.235, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, -0.248).threePointArc((-0.792, -0.169), (-0.62, -0.029)).lineTo(0.737, 0.248).threePointArc((0.856, 0.169), (1, 0.16)).lineTo(-1, -0.248).close().sweep(cq.Workplane('XY').spline([(... | 2 | 9 | 0.005505 |
train_20cc06dbc98e6333 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.337), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.834, -1).lineTo(1, -1).lineTo(-1, 1).lineTo(-1, 0.834).lineTo(0.834, -1).close().moveTo(0.242, 0.003).lineTo(0.124, 0.211).lineTo(-0.123, 0.213).lineTo(-0.243, 0.001).lineTo(-0.124, -0.211... | 3 | 25 | 0.193437 |
train_4582fb8dddaf329b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.129, -0.253, -0.945), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.818, 1.494).extrude(0.973)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.212, -0.325, -0.774), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.071).extrude(0.561))
result = resul... | 29 | 107 | 1.038631 |
train_550c01ed9c162e05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.873), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.935).extrude(1.747)
| 1 | 6 | 3.26689 |
train_c1c97e57e58a1563 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.695, 0, -0.202), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.271, -0.145).threePointArc((-0.305, 0), (-0.271, 0.145)).threePointArc((-0.138, 0.289), (0.054, 0.333)).threePointArc((0.196, 0.289), (0.305, 0.188)).lineTo(0.182, 0.104).threePointA... | 5 | 29 | 0.118759 |
train_12e6b4072374da9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.261, -0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.284, 1.261).lineTo(0.284, 1.261).lineTo(0.284, -0.739).lineTo(-0.284, -0.739).lineTo(-0.284, 1.261).close().extrude(0.556)
result = result.edges().chamfer(0.154)
result = result.cut(... | 14 | 78 | 0.472537 |
train_ad70d4ab7aa6229f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.236, 0.333, 0.058), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.317, 0.021).threePointArc((0.765, 0.181), (0.317, 0.341)).lineTo(-0.765, 0.341).lineTo(-0.765, 0.021).lineTo(0.317, 0.021).close().extrude(0.326)
result = result.edges().fillet(0.0... | 15 | 99 | 0.286236 |
train_de87e08f0f8d1475 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.355, -0.242, 0.646), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.192, -0.196).threePointArc((0.192, 0.064), (-0.192, 0.323)).lineTo(-0.192, -0.196).close().extrude(0.71)
result = result.edges().chamfer(0.08)
result = result.union(cq.Workplane(... | 20 | 130 | 0.151166 |
train_21c12a107e379ef9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.297, -0.175, 0.02), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.43, 0.415).lineTo(0.43, 0.168).lineTo(0.061, 0.168).lineTo(0.061, -0.508).lineTo(-0.43, -0.508).lineTo(-0.43, 1.091).lineTo(0.061, 1.091).lineTo(0.061, 0.661).lineTo(0.43, 0.661).l... | 6 | 65 | 0.344025 |
train_91a11a695fc5e279 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.585, 0, -0.199), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.212, 1).lineTo(0.455, 1).lineTo(0.455, 0.394).lineTo(0, 0.394).lineTo(0, -1).lineTo(-0.455, -1).lineTo(-0.455, 1).lineTo(-0.212, 1).close().sweep(cq.Workplane('XZ').spline([(0.234, -0... | 3 | 14 | 0.470259 |
train_f1e7f14852958705 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.356, 0.228, 0.035), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.542, -0.278).lineTo(-0.523, -0.278).lineTo(-0.523, 0.298).lineTo(0.523, 0.298).lineTo(0.523, -0.278).lineTo(0.542, -0.278).lineTo(0.542, 0.735).lineTo(0.523, 0.715).lineTo(0.523, ... | 7 | 55 | 0.108388 |
train_a08e55ed9d62de4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.848, 0.618, -0.587), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.152, -0.09).threePointArc((0.144, -0.091), (0.143, -0.099)).lineTo(0.102, -0.099).lineTo(0.102, -0.102).lineTo(0.066, -0.102).lineTo(0.066, -0.099).lineTo(0.046, -0.099).lineTo(0.0... | 1 | 22 | 0.116027 |
train_df609cf537ff68be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.205, -0.062, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.06, 0.086).threePointArc((-0.062, 0.117), (-0.031, 0.119)).lineTo(0.06, 0.038).threePointArc((0.062, 0.007), (0.031, 0.005)).lineTo(-0.06, 0.086).close().extrude(0.576)
result = resu... | 6 | 33 | 0.012928 |
train_c1997a2b2fca92b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.101, 0.001, -0.116), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.564, -0.254).threePointArc((0.307, -0.41), (0.014, -0.48)).threePointArc((-0.286, -0.455), (-0.564, -0.338)).lineTo(-0.058, 0.48).lineTo(0.564, -0.254).close().sweep(cq.Workplane(... | 15 | 140 | 0.43529 |
train_8da93f77a5040ac9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.332, 0.126), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.273).lineTo(-1, -0.273).lineTo(1, -0.273).lineTo(1, -0.033).lineTo(-0.725, -0.033).lineTo(-0.725, 0.273).lineTo(-1, 0.273).close().extrude(0.23)
result = result.edges().fillet(0.0... | 18 | 114 | 0.188096 |
train_e5c7d5a32cfa09f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.505, -0.167, 0.523), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.505, 0.388).lineTo(0.505, -0.04).lineTo(-0.505, -0.056).lineTo(-0.505, 0.388).lineTo(0.505, 0.388).close().revolve(angleDegrees=180, axisStart=(0.505, 0.388), axisEnd=(0.505, -0.0... | 16 | 56 | 0.655096 |
train_18ba5b25fdf518cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.004, 1, -0.299), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.299, 1.909).threePointArc((-0.726, 1.08), (-0.003, 0.378)).threePointArc((0.621, -0.043), (1.299, -0.37)).lineTo(1.299, 1.909).lineTo(-0.003, 1.909).lineTo(-1.299, 1.909).close().rev... | 2 | 17 | 3.731117 |
train_0ab7b62a7e9ecf05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.202, 0, -0.011), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.09).sweep(cq.Workplane('XZ').spline([(0.601, -0.266), (0.761, -0.258), (0.92, -0.197), (1.08, -0.037), (1.239, 0.024), (1.399, 0.031)]))
result = result.union(cq.Workplane(cq.Plane(or... | 6 | 27 | 0.043966 |
train_47874adfde174480 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.484), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.474, 2).extrude(1.153)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.294 * math.cos(5.739 + 2 * math.pi * 0 / 5), 0.576 + 0.294 * math.sin(5.739 + 2 * math.pi * 0 / 5), -1.442), no... | 26 | 151 | 2.648433 |
train_5c26615698f5b638 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.195, 0, -0.06), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.623, 0.75).lineTo(0.485, 0.75).lineTo(0.623, 1).lineTo(0.623, -1).lineTo(-0.623, -1).lineTo(-0.623, 0.75).close().workplane(offset=0.131).moveTo(-0.488, 0.588).lineTo(0.38, 0.588).li... | 10 | 72 | 0.273872 |
train_6791349e113394bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, -0.763, 0.014), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.157, 0.419).lineTo(0.157, 0.314).threePointArc((0.231, 0.284), (0.262, 0.209)).lineTo(0.262, 0.391).threePointArc((0.338, 0.314), (0.367, 0.209)).lineTo(0.367, -0.209).lineTo(0.262... | 3 | 28 | 1.211102 |
train_dbfd507082bc34f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.597, -0.173), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.179, 0.122).lineTo(-0.006, 0.011).lineTo(0.01, 0).lineTo(-0.006, -0.011).lineTo(0.166, -0.122).lineTo(0.179, -0.122).lineTo(0.179, 0.122).lineTo(-0.179, 0.122).close().sweep(cq.Work... | 4 | 36 | 0.024144 |
train_b83f3a3f217b1748 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.372, -0.255, -0.038), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.089, 0.027).threePointArc((0.209, 0.216), (-0.089, 0.405)).threePointArc((-0.209, 0.216), (-0.089, 0.027)).close().extrude(0.589)
result = result.edges().chamfer(0.055)
result =... | 6 | 63 | 0.032101 |
train_5e9f80eadcb072bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.457, 0, -0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.086, 1.039).extrude(0.583)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.532, -0.122, -0.391), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.062).extrude(0.7))
result = result.cut(... | 13 | 39 | 0.978275 |
train_a4c634ff3addb45d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.015, -0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.089, 1.093).extrude(0.11)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.254, -0.015, -0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.047).extrude(0.083))
result = result.cut... | 17 | 140 | 0.240537 |
train_c44d9207f9ce7e21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.921), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.676).extrude(1.843)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.11, -0.157, 0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.341).extrude(0.883))
result = result.cut(cq.Workpla... | 16 | 180 | 3.123895 |
train_645fd01ebd582fe8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, -0.171, -0.351), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.48, 1.011).extrude(0.748)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.276, -0.89, -0.276), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.085, 0.067).threePointArc((-0.103... | 11 | 67 | 1.016116 |
train_6a706d7f8e562f5b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, -0.439, -0.439), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.256, -0.363).lineTo(0.415, -0.363).lineTo(0.412, -0.288).lineTo(0.393, -0.064).lineTo(0.352, 0.232).lineTo(0.293, 0.52).lineTo(0.237, 0.731).lineTo(0.214, 0.8).lineTo(-0.415, 0.5... | 7 | 73 | 0.603602 |
train_3e8318c619da9fbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.245, -0.075, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.171, 1.075).threePointArc((-0.086, 0.055), (0.171, -0.936)).lineTo(0.171, 1.075).lineTo(-0.171, 1.075).close().extrude(0.344)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.027,... | 5 | 30 | 0.157184 |
train_cacddef6424601ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.218, -0.019, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.757, 0.011).lineTo(0.528, 0.562).lineTo(0.015, 0.8).lineTo(-0.536, 0.543).lineTo(-0.782, 0.005).lineTo(-0.548, -0.523).lineTo(-0.019, -0.763).lineTo(0.56, -0.56).close().moveTo(0... | 14 | 113 | 0.643188 |
train_4256c894c8ad232d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.25, 0.191, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.288, -0.033).lineTo(0.093, 1.25).lineTo(0.288, 1.233).lineTo(0.282, 1.167).lineTo(0.249, 1.17).lineTo(0.252, 1.203).lineTo(0.203, 1.207).lineTo(0.148, 1.212).lineTo(0.138, 1.101).three... | 5 | 41 | 0.052281 |
train_f44cef36de00f3ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.022, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.774).extrude(0.021)
result = result.union(cq.Workplane(cq.Plane(origin=(0.093, 0.089, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.82).extrude(0.025))
result = result.union(c... | 9 | 35 | 0.328091 |
train_2a5c7a375046e861 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.214, -0.312, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.78, 0.569).threePointArc((-1.037, 0.312), (-0.78, 0.055)).lineTo(0.78, 0.055).threePointArc((1.037, 0.312), (0.78, 0.569)).lineTo(-0.78, 0.569).close().workplane(offset=0.227).moveTo... | 5 | 26 | 0.355577 |
train_56eb6b1b7363cee9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.147, 0.433, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.179, 0.557).lineTo(-0.179, -0.159).lineTo(0.179, -0.159).lineTo(0.179, 0.557).lineTo(0.156, 0.557).lineTo(0.156, -0.137).lineTo(-0.156, -0.137).lineTo(-0.156, 0.557).lineTo(-0.179, 0.... | 2 | 20 | 0.01217 |
train_aa1cfc8e7bfd0ac0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.897, 0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.989, 0.015).lineTo(-1.003, 0.001).lineTo(1.003, 0.001).lineTo(0.989, 0.015).lineTo(-0.989, 0.015).close().extrude(0.033)
result = result.edges().fillet(0.002)
result = result.union(cq... | 5 | 84 | 0.100536 |
train_2d17938b087a3120 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.382, 0, 0.122), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.416, 0.654).lineTo(-0.354, 0.299).lineTo(0.354, 0.299).lineTo(0.416, 0.654).lineTo(-0.416, 0.654).close().revolve(angleDegrees=360, axisStart=(-0.416, 0.654), axisEnd=(-0.354, 0.299))... | 3 | 11 | 0.651167 |
train_34a7bb286db6b87a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0.866, 0.092), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.073).workplane(offset=0.243).circle(0.109).workplane(offset=0.22).circle(0.1).workplane(offset=0.321).circle(0.077).workplane(offset=0.305).circle(0.115).workplane(offset=0.291).ci... | 22 | 97 | 0.115393 |
train_c4ed9cd79cdf00db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, 0.042, -0.388), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.238, -0.634).threePointArc((0.011, -0.597), (0.238, -0.489)).lineTo(0.238, -0.253).lineTo(0.238, 0.702).lineTo(-0.238, 0.702).lineTo(-0.238, -0.253).lineTo(-0.238, -0.634).close... | 7 | 55 | 0.086808 |
train_4765036210ef8cf6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.278), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.339).lineTo(1, 0.851).lineTo(1, -0.851).lineTo(-1, -0.339).lineTo(-1, 0.339).close().extrude(0.557)
result = result.edges().fillet(0.202)
result = result.cut(cq.Workplane(cq.Plane(orig... | 7 | 65 | 0.978923 |
train_7bfea7d329e23e4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.636, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.432, 1.618).lineTo(0.432, 0.31).lineTo(0.701, 0.154).lineTo(0.432, -0.312).lineTo(0.432, -0.345).lineTo(-0.701, -0.345).lineTo(-0.134, 0.636).lineTo(0.432, 1.618).close().extrude(2)
resul... | 6 | 24 | 1.850949 |
train_45aa93a32a1144cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.834, 0.885, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.18, -0.166).threePointArc((0.82, 0.835), (-0.18, 1.834)).lineTo(-0.18, 1.474).threePointArc((-0.82, 0.835), (-0.18, 0.194)).lineTo(-0.18, -0.166).close().extrude(1.769)
result = resul... | 9 | 22 | 2.845126 |
train_6d4b81a713ef4d49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.181, 0, -0.979), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.004, 0.011).threePointArc((0.007, 0.012), (0.008, 0.009)).lineTo(-0.004, -0.011).threePointArc((-0.007, -0.012), (-0.008, -0.009)).lineTo(0.004, 0.011).close().sweep(cq.Workplane('XZ'... | 4 | 21 | 0.000289 |
train_e77d20afd8fc9aba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.124, 0.663, -0.51), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.245).workplane(offset=0.342).circle(0.372).workplane(offset=0.304).circle(0.498).workplane(offset=0.284).circle(0.466).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(-... | 10 | 47 | 0.768506 |
train_e6850ab0bbfc3729 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.087, 0.008, 0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.075, 0.287).threePointArc((0.072, 0.214), (0.151, 0.07)).threePointArc((0.15, -0.106), (0.043, -0.245)).threePointArc((-0.056, -0.287), (-0.163, -0.287)).lineTo(-0.166, -0.302).thr... | 6 | 40 | 0.024117 |
train_62f17611a02fb0e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.611, 0.517).extrude(0.909)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.026, -0.092, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.264, 0.127).extrude(0.283))
result = result.unio... | 6 | 33 | 0.305971 |
train_0d6ba9f6cb2ce2c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.236), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.231, -0.769).threePointArc((0, -1), (0.231, -0.769)).lineTo(0.231, -0.106).threePointArc((0.254, 0), (0.231, 0.106)).lineTo(0.231, 0.769).threePointArc((0, 1), (-0.231, 0.769)).lineTo(-0.... | 14 | 111 | 0.428037 |
train_7ba14407bba8b12b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.004, 0.17), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.03).lineTo(-1, -0.13).lineTo(1, -0.13).lineTo(1, 0.03).lineTo(0.8, 0.03).lineTo(0.7, 0.13).lineTo(0.6, 0.03).lineTo(0.5, 0.13).lineTo(0.4, 0.03).lineTo(0.3, 0.13).lineTo(0.2, 0.03)... | 10 | 162 | 0.103523 |
train_f27564a28d73ee8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.656, 0, -0.242), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.274).workplane(offset=0.393).circle(0.402).workplane(offset=0.363).circle(0.264).workplane(offset=0.271).circle(0.405).workplane(offset=0.285).circle(0.402).loft()
result = result.edg... | 12 | 73 | 0.722087 |
train_df0e4c3c7e3fd4ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.465, -0.044, 0.254), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.088, 0.506).lineTo(0.088, -0.42).lineTo(-0.088, -0.42).lineTo(-0.088, 0.506).lineTo(0.088, 0.506).close().revolve(angleDegrees=180, axisStart=(0.088, 0.506), axisEnd=(0.088, -0.42)... | 23 | 180 | 0.484928 |
train_5b72e91b65ccb159 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.397, -0.778), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.443, 1.397).lineTo(0.443, -0.558).threePointArc((0.43, -0.59), (0.398, -0.603)).lineTo(0.248, -0.603).threePointArc((0.216, -0.59), (0.202, -0.558)).lineTo(0.202, -0.467).threePointAr... | 1 | 14 | 2.378944 |
train_daf2d76059aa64fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.763, -0.002, 0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.474, 0.474).extrude(0.185)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.739, 0.022, 0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.427, 0.427).extrude(0.03))
result = re... | 15 | 99 | 0.210196 |
train_132670cd0c5e30c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.007, 0.138), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.249, 0.91).threePointArc((-0.166, 0.993), (-0.082, 0.91)).lineTo(-0.082, -0.205).threePointArc((-0.06, -0.361), (0.006, -0.505)).lineTo(0.249, -0.878).threePointArc((0.226, -0.9... | 4 | 34 | 0.090737 |
train_c5ed51737f264812 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, -0.424, 0.18), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.292, -0.575).threePointArc((0.849, 0.146), (0.009, 0.502)).threePointArc((-0.127, 0.557), (-0.273, 0.575)).threePointArc((-0.68, 0.407), (-0.849, 0)).threePointArc((-0.68, -0.407)... | 13 | 53 | 1.751605 |
train_9f3c162b221526c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.118, 0.013, -0.698), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.214, 1.469).extrude(1.335)
result = result.faces('>Z').shell(-0.114)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.143, -0.216, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect... | 11 | 38 | 0.954201 |
train_9a07498fd280e93b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.023, -0.551, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.711, 0.041).threePointArc((0.216, 0.894), (-0.711, 1.232)).lineTo(-0.711, 0.041).lineTo(0.711, 0.041).close().extrude(1.888)
result = result.edges().chamfer(0.19)
result = result.unio... | 9 | 81 | 0.839424 |
train_a95e4904ff0318fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.599, 0.913, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.657).lineTo(0.857, -0.401).lineTo(-0.857, -0.401).lineTo(0, 1.657).close().extrude(1.826)
result = result.edges().chamfer(0.062)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0... | 9 | 68 | 2.366775 |
train_5ceb4248e2b151c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.437, 0, -0.266), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.724).workplane(offset=0.237).circle(0.616).workplane(offset=0.312).circle(0.734).workplane(offset=0.24).circle(0.572).workplane(offset=0.255).circle(0.616).loft()
result = result.unio... | 4 | 13 | 1.313488 |
train_47a32459a22a34a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.725, 0.153, 0.05), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.507, -0.173).lineTo(-0.507, 0.398).lineTo(0.507, 0.398).lineTo(0.507, -0.312).lineTo(-0.507, -0.312).lineTo(-0.507, -0.173).close().extrude(0.957)
result = result.edges().fillet(0.... | 14 | 144 | 0.986053 |
train_131d505facc1aaa6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.866, 0.52, -0.494), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.506, -0.231).lineTo(0.506, 0.972).lineTo(-0.506, 0.972).lineTo(-0.506, -0.231).lineTo(0.506, -0.231).close().extrude(1.487)
result = result.edges().fillet(0.138)
result = result.cu... | 9 | 96 | 2.398362 |
train_a37d209a22abfbc3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.538, 0.949, 0.237), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.168, 0.239).threePointArc((-0.269, 0.349), (-0.306, 0.495)).lineTo(0.306, 0.495).lineTo(0.582, 0.495).lineTo(0.582, 0.92).lineTo(-0.582, 0.92).lineTo(-0.582, 0.495).lineTo(-0.582,... | 27 | 211 | 0.915305 |
train_9598019fb9cb8167 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.323, -0.357, 0.002), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.091, -0.052).lineTo(-0.034, -0.052).lineTo(-0.029, -0.043).lineTo(-0.039, -0.043).lineTo(-0.091, 0.044).lineTo(-0.086, 0.052).lineTo(0.029, 0.052).lineTo(0.091, -0.052).close().s... | 14 | 199 | 0.153415 |
train_6c7f181842c1094d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.098, 0.076, -0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.895, 0.457).extrude(0.757)
result = result.union(cq.Workplane(cq.Plane(origin=(0.202, 0.16, 0.635), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.044).extrude(0.365))
result = result.f... | 11 | 84 | 0.280482 |
train_d617048c8f5e3ba3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.129, 0.004), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.141, 0.478).threePointArc((-0.006, 0.35), (-0.139, 0.491)).lineTo(-0.226, -0.2).lineTo(-0.233, -0.257).threePointArc((-0.232, -0.28), (-0.228, -0.304)).threePointArc((-0.013, -0.491), (... | 5 | 24 | 0.797656 |
train_de736d056a0e5417 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.204, 0.096, 0.035), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.405).sweep(cq.Workplane('YZ').spline([(-0.827, -0.412), (-0.083, 0.026), (0.662, -0.134)]))
result = result.edges().fillet(0.282)
result = result.union(cq.Workplane(cq.Plane(origin=... | 9 | 55 | 1.067779 |
train_2a7f62a2f5335a3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.622, -0.08, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.846, 0.568).lineTo(-0.282, 0.568).lineTo(0, 1.056).lineTo(-0.846, 0.568).lineTo(-0.846, -0.408).lineTo(-0.563, 0.08).lineTo(-0.282, -0.408).lineTo(0, -0.897).lineTo(0.846, -0.408).line... | 1 | 13 | 2.122283 |
train_d6441d032dce2a58 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.654, -0.307), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.489).sweep(cq.Workplane('YZ').spline([(-1.158, -1.153), (-0.925, -1.143), (-0.692, -1.077), (-0.459, -0.829), (-0.225, -0.581), (0.008, -0.516), (0.241, -0.506)]))
result = result.uni... | 7 | 62 | 0.793459 |
train_0aab1ac42c632457 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.259, 0, -0.336), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.586, 0.407).extrude(0.671)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.763, 0, -0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.474, 0.284).extrude(0.315))
result = result.... | 9 | 43 | 0.201452 |
train_c046ea96389afe4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.756, -0.326, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.75, -0.674).lineTo(-0.75, 1.326).lineTo(0.75, 1.326).lineTo(0.75, -0.674).lineTo(-0.75, -0.674).close().extrude(1.512)
result = result.edges().fillet(0.075)
result = result.cut(cq.Wo... | 10 | 75 | 4.199152 |
train_950681cf3d3f6f3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.163), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.552, 0.118).threePointArc((0.539, 0), (0.552, -0.118)).threePointArc((0.712, -0.393), (1, -0.528)).lineTo(-0.704, -0.296).threePointArc((-1, 0), (-0.704, 0.296)).lineTo(1, 0.528).threePoin... | 21 | 152 | 0.327121 |
train_0f61c95321d4c912 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, 0, 0.887), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1.201).workplane(offset=0.365).circle(1.033).workplane(offset=0.481).circle(1.001).workplane(offset=0.421).circle(1.188).workplane(offset=0.505).circle(1.123).loft()
result = result.edge... | 16 | 42 | 2.66766 |
train_9003f23a1a012219 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.09, 0, -0.239), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.329, 1.242).extrude(0.793)
result = result.faces('>Z').shell(-0.05)
result = result.union(cq.Workplane(cq.Plane(origin=(0.784, 0.147, 0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.... | 6 | 75 | 0.434807 |
train_b6d58718445cf71f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.726, -0.023), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.409, 1.13).lineTo(0.409, 1.293).lineTo(0.572, 1.293).lineTo(0.572, -0.014).lineTo(-0.572, -0.014).lineTo(-0.572, 0.149).lineTo(0.409, 0.149).lineTo(0.409, 1.13).close().extrude(2)
res... | 4 | 46 | 0.728942 |
train_ed6772c3a9d71b16 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.488, 0.046, -0.317), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.456, 1.226).lineTo(-0.456, 0.407).lineTo(0.456, -0.411).lineTo(0.456, 1.226).close().workplane(offset=0.389).moveTo(0.343, 1.023).lineTo(-0.343, 0.407).lineTo(0.343, -0.208).lineT... | 12 | 185 | 0.637528 |
train_1f221d89a6305a95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.327, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.541, -0.673).lineTo(0.541, -0.673).lineTo(0.541, 1.163).lineTo(0.376, 1.163).lineTo(0.376, 1.328).lineTo(-0.541, 1.328).lineTo(-0.541, -0.673).close().revolve(angleDegrees=90, axisStart=(... | 17 | 270 | 2.593603 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.