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_ac0ddb8d08bbfee6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.131, 0.151, -0.38), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.216, 0.896).extrude(0.759)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.859, 0.065, -0.2), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.141).extrude(0.269))
result = result.... | 4 | 17 | 0.87686 |
train_110bf4c72f7f2d62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.05, -0.575), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.597).extrude(1.151)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.639 + 0.1595, 0.18, -1.875), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.052, -0.021).lineTo(-0.024, -0.024).... | 44 | 215 | 2.992011 |
train_9360fa9c11b148d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.116, 0, -0.581), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.638, 2).extrude(1.162)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.44, 0.108, -0.583), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.155, 0.163).extrude(0.08))
result = result.cut(c... | 19 | 96 | 3.674773 |
train_ddec0470ebf9f61b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.237), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.4, -1).lineTo(-0.4, 1).lineTo(0.4, 1).lineTo(0.4, -1).lineTo(-0.4, -1).close().extrude(0.474)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.056, 0.182, -0.08), normal=(0, 0, 1), xD... | 20 | 234 | 0.430545 |
train_1dd669a974055350 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.136, 0, -0.544), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.697, 2).extrude(0.47)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.136, 0.235, -1.647), normal=(1, 0, 0), xDir=(0, 1, 0))).rect(0.524, 0.095).extrude(0.601))
result = result.cut(c... | 21 | 134 | 1.144238 |
train_ddf31492134fc073 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.452, 0.739, 0.001), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.568, 0.475).threePointArc((-0.525, 0.102), (-0.363, -0.236)).threePointArc((0.091, -0.402), (0.568, -0.475)).threePointArc((-0.145, -0.174), (-0.568, 0.475)).close().sweep(cq.Workp... | 1 | 5 | 0.053232 |
train_15e6318f82279cd3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.181, -0.365, 0.085), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.093, 0).lineTo(-0.465, 0).lineTo(-0.465, 0.372).lineTo(-0.084, 0.372).lineTo(-0.084, 0.186).lineTo(0.279, 0.186).lineTo(0.279, 0.372).lineTo(0.465, 0.372).lineTo(0.465, -0.372).... | 5 | 180 | 0.112277 |
train_512d8d47a5fb85ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.769, -1, -0.032), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.524, 1.264).lineTo(-0.524, 0.044).lineTo(0.524, 1.264).lineTo(-0.524, 1.264).close().extrude(2)
result = result.edges().chamfer(0.304)
result = result.union(cq.Workplane(cq.Plane(or... | 3 | 26 | 0.88056 |
train_629fc46617979682 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.815), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.178, -0.313).lineTo(0.097, -0.313).lineTo(0.178, 0.071).lineTo(0.178, 0.231).threePointArc((0.154, 0.289), (0.096, 0.313)).lineTo(-0.027, 0.313).lineTo(-0.027, -0.016).lineTo(-0.069, -0.0... | 8 | 58 | 0.213921 |
train_e8cf518685c2d4e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.933, -0.16), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.067).lineTo(0, 0).lineTo(-0.067, 0).lineTo(-0.067, -0.055).lineTo(-0.055, -0.067).lineTo(0.046, -0.067).lineTo(0.067, -0.046).lineTo(0.067, 0.055).lineTo(0.055, 0.067).lineTo(0, 0.0... | 13 | 141 | 0.052181 |
train_8d84ffd8667a5218 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.248, -0.037, -0.636), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.401).sweep(cq.Workplane('YZ').spline([(0.553, -0.69), (0.774, -0.422), (0.775, -0.074), (0.556, 0.197), (0.216, 0.266)]))
result = result.edges().fillet(0.059)
result = result.u... | 12 | 72 | 0.695291 |
train_324adea1e3ee7ede | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.684, -0.143), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.416).sweep(cq.Workplane('YZ').spline([(-0.684, -0.143), (-0.252, 0.038), (0.181, 0.091)]))
result = result.edges().chamfer(0.129)
result = result.union(cq.Workplane(cq.Plane(origin=(... | 15 | 80 | 0.298263 |
train_cc259bfb9c8afa0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.321, -0.377, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 0.456).lineTo(1, 0.584).lineTo(-1, 0.584).lineTo(-1, 0.057).lineTo(1, 0.057).lineTo(1, 0.456).close().extrude(1.02)
result = result.edges().chamfer(0.25)
result = result.cut(cq.Workp... | 21 | 168 | 0.473882 |
train_4e0bef5c3343fc3e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.018, -0.001, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.011, 0.014).lineTo(0.68, 0.692).lineTo(-0.026, 1.001).lineTo(-0.713, 0.707).lineTo(-0.975, 0.026).lineTo(-0.678, -0.696).lineTo(-0.029, -0.999).lineTo(0.735, -0.692).close().move... | 6 | 47 | 0.419851 |
train_5915cdf91edff32e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.003, -0.461), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.954, -0.995).lineTo(1.001, -0.981).lineTo(1.002, 1).lineTo(-0.998, 0.979).close().moveTo(0, -0.171).lineTo(0.051, -0.07).lineTo(0.163, -0.053).lineTo(0.083, 0.027).lineTo(0.101,... | 8 | 58 | 1.979087 |
train_d758aa2c4bdfeb56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.503, -0.341, 0.002), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.501, 0.25).lineTo(-0.501, -0.25).lineTo(0.501, -0.25).lineTo(0.501, 0.25).lineTo(0.149, 0.25).threePointArc((0, 0.102), (-0.149, 0.25)).lineTo(-0.501, 0.25).close().revolve(angle... | 16 | 368 | 1.893353 |
train_768305e1385d6aea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.544, 0.098, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.7, 1.015).threePointArc((-0.7, 0.098), (0.7, -0.818)).lineTo(0.7, 1.015).close().extrude(1.088)
result = result.edges().fillet(0.131)
| 2 | 14 | 2.511241 |
train_f9a7c7c7a74900ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.143, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.068, 1.17).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.482, 0.35, -0.453), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.608, 0.718).lineTo(0.093, 0.718).lineTo(0.093, 0.375... | 8 | 50 | 2.35755 |
train_88a0b920585e2f5a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.098, 0, -0.633), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.804, 1.841).extrude(1.267)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.638 + 0.1475, 0.296, -1.806), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.006, 0.052).lineTo(-0.005, 0.05... | 17 | 11 | 4.209654 |
train_35716b3d3da8a068 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.041, -0.509, -0.296), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.203, 0.129).extrude(0.085)
result = result.union(cq.Workplane(cq.Plane(origin=(0.065, -0.499, -0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.017).extrude(0.169))
result = resu... | 11 | 79 | 0.093433 |
train_a1ec20b6027929f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.953), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.682).extrude(1.907)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.356, 0.124, -0.459), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.356, 0.97).extrude(1.222))
result = result.cut(cq.W... | 9 | 29 | 4.337402 |
train_b9ef46ecef86bc4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.671, 0, -0.098), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.329, 0.19).lineTo(0.219, 0).lineTo(0.11, -0.19).lineTo(0.329, -0.19).lineTo(0, -0.38).lineTo(-0.329, -0.19).lineTo(-0.329, 0.19).lineTo(-0.219, 0).lineTo(-0.11, 0.19).lineTo(0, 0.38)... | 2 | 15 | 0.309005 |
train_d9e674ae37e7012f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.455, 0.057, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.556, 0.582).extrude(0.083)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.177, 0.087, -0.14), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.243, -0.913).lineTo(0.243, 1.087).l... | 13 | 149 | 0.599747 |
train_29feaa114ec0a3be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.679, 0.143), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.372, 0.321).lineTo(-0.372, -0.321).lineTo(-0.293, -0.321).lineTo(-0.293, 0.247).lineTo(0.234, 0.247).lineTo(0.159, 0.144).lineTo(0.372, 0.172).lineTo(0.372, 0.321).lineTo(-0.372, 0.3... | 2 | 25 | 0.15441 |
train_8acb6deeff52829f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.01, -0.404), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.075, 0.267).lineTo(0.093, 0.02).lineTo(-0.093, 0.02).lineTo(-0.031, 0.267).lineTo(0.075, 0.267).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.206, 0))
result = re... | 11 | 102 | 0.046166 |
train_89abe4704ed88998 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.228, -0.411), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.772).moveTo(0.086, 0.09).lineTo(-0.093, -0.078).lineTo(0.047, -0.092).lineTo(0.11, -0.118).lineTo(0.123, -0.102).close().extrude(0.208)
result = result.cut(cq.Workplane(cq.Plane(origi... | 12 | 96 | 0.849592 |
train_f5d04ae96f2d8565 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.294, 0.16, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.19).lineTo(-1, 0.03).lineTo(1, 0.03).lineTo(1, 0.19).lineTo(0.6, 0.19).lineTo(0.5, 0.29).lineTo(0.4, 0.19).lineTo(0.3, 0.29).lineTo(0.2, 0.19).lineTo(-0.2, 0.19).lineTo(-0.3, 0.29).... | 11 | 66 | 0.116736 |
train_786622a68c326dc1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.129).extrude(0.476)
result = result.union(cq.Workplane(cq.Plane(origin=(0.274, 0.032, -0.338), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.971, 0.413).extrude(0.221))
result = result.cut(cq... | 15 | 128 | 0.325478 |
train_46144b2c7f180af8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.079, 0.019, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.278, 0.205).lineTo(0.275, 0.242).lineTo(0.058, 0.514).lineTo(0.015, 0.357).lineTo(-0.028, 0.305).lineTo(-0.121, 0.289).lineTo(0.003, -0.385).close().moveTo(0.118, 0).lineTo(0.059,... | 9 | 48 | 0.016305 |
train_dafb96eed4d3b63e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.492, -0.262, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.202, 0.189).extrude(0.191)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.52, -0.484, -0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.019, 0.306).extrude(0.021))
result ... | 7 | 76 | 0.01751 |
train_85ab8a44073fb7fa | 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.381).workplane(offset=0.277).circle(0.343).workplane(offset=0.278).circle(0.306).workplane(offset=0.237).circle(0.269).workplane(offset=0.285).circle(0.233).loft()
result = result.edges().fill... | 5 | 16 | 0.274825 |
train_3237b1fe76b2b648 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.45, 0.124, -0.484), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.1, 1.16).extrude(0.367)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.182, -0.096), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.092, 0.904).lineTo(-0.354, 0.646).threePo... | 14 | 110 | 1.195169 |
train_34ccdcd16ad56b2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.229, 0.197, -0.232), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.861, 1.607).extrude(0.162)
result = result.union(cq.Workplane(cq.Plane(origin=(0.229, 0.197, -0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.129, -0.002).lineTo(0.066, 0.115).lin... | 17 | 74 | 0.276008 |
train_b4dd97bea4c23c3c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.54, 0.195, -0.147), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.023, 0.409).threePointArc((-0.378, 0.031), (0.023, -0.346)).threePointArc((0.378, 0.031), (0.023, 0.409)).close().extrude(0.123)
result = result.edges().chamfer(0.046)
result = res... | 9 | 175 | 0.579114 |
train_f9d8e6a2281d680b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.251, 0.327, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.167, -0.297).lineTo(-0.263, -0.381).lineTo(-0.194, -0.354).lineTo(-0.167, -0.343).lineTo(-0.131, -0.328).lineTo(-0.055, -0.297).lineTo(0.324, -0.297).lineTo(0.69, -0.462).lineTo(0.60... | 18 | 28 | 0.471946 |
train_8b59cc5544fb32ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.227, 0.193, -0.371), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.547, 1.321).extrude(0.847)
result = result.faces('>Z').shell(-0.07)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.181, 0.163, -0.511), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 5 | 26 | 0.575785 |
train_09aa422f1110f206 | 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.042, 0.949).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.374, 0.025, -0.51), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.14).extrude(1.275))
result = result.cut(cq.Workplane(cq... | 4 | 18 | 1.838633 |
train_84091835d937c3f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, 0.001, -0.066), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1.215).workplane(offset=0.078).circle(1.146).workplane(offset=0.075).circle(1.077).workplane(offset=0.072).circle(1.009).workplane(offset=0.073).circle(0.94).workplane(offset=0.096... | 35 | 134 | 1.049781 |
train_ac3af615e5f80fde | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.097, 0, -1.222), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.096, 1.531).extrude(2.222)
result = result.union(cq.Workplane(cq.Plane(origin=(0.851, 0.034, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(2.591).transformed(offset=(0.222, -0.143, 0.1... | 4 | 39 | 3.361949 |
train_3728353ecf82524e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.237), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.462, -0.05).lineTo(-0.462, 0.05).lineTo(-0.363, 0.05).lineTo(-0.363, 1).lineTo(0.363, 1).lineTo(0.363, 0.05).lineTo(0.462, 0.05).lineTo(0.462, -0.05).lineTo(0.363, -0.05).lineTo(0.363, -1... | 13 | 151 | 0.103254 |
train_47728b22edfc48dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.202, -0.013, 0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.026, 1.013).lineTo(-0.026, -0.987).lineTo(0.026, -0.987).lineTo(0.026, 1.013).lineTo(-0.026, 1.013).close().extrude(0.075)
result = result.edges().chamfer(0.008)
result = result.... | 6 | 69 | 0.00239 |
train_6965161b85df3341 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.077, 0, -0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.225, 0.995).extrude(0.582)
result = result.faces('>Z').shell(-0.026)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.753, 0.01, -0.16), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.4... | 10 | 61 | 0.22342 |
train_c8a4f7fa0bb16d7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.408, 2).extrude(0.758)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.407), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.759, 1.078).extrude(0.087))
result = result.union(cq.Workpl... | 14 | 112 | 1.687698 |
train_7f8179646d06ef5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.245, -0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.793, 0.026).lineTo(0.572, 0.545).lineTo(0.004, 0.796).lineTo(-0.571, 0.574).lineTo(-0.795, 0.015).lineTo(-0.527, -0.541).lineTo(-0.005, -0.755).lineTo(0.56, -0.567).close().moveTo... | 10 | 93 | 0.292085 |
train_f98290bc0f60c44f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.235, 0, 0.101), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.778, -0.13).lineTo(0.778, -0.389).lineTo(0, -0.13).lineTo(-0.778, 0.13).lineTo(-0.778, 0.389).lineTo(0.519, -0.043).lineTo(0.778, -0.13).close().sweep(cq.Workplane('XZ').spline([(-0.16,... | 4 | 31 | 0.601286 |
train_90fda1a3942dc489 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.248, -0.105), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.216, -0.126).threePointArc((-0.432, 0.248), (0.216, 0.622)).threePointArc((0.432, 0.248), (0.216, -0.126)).close().extrude(1.707)
result = result.union(cq.Workplane(cq.Plane(origin=(... | 8 | 55 | 1.017004 |
train_bf12c38d5453294e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.504, -0.281, -0.254), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.146, -0.667).lineTo(-0.146, -0.566).lineTo(0.154, -0.394).lineTo(0.154, 0.667).lineTo(0.244, 0.719).lineTo(-0.236, 0.719).lineTo(-0.236, 0.442).lineTo(-0.146, 0.494).lineTo(-0.... | 7 | 64 | 0.490269 |
train_53a8bbd1a81425ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.228, -0.933), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.938, 1.545).extrude(1.865)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.074, -0.197, -1.25), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.262, 0.394).extrude(2.239))
result = resul... | 15 | 113 | 3.500268 |
train_1b3734871dea1a81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.806, 0.744, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.738).threePointArc((-0.705, 0.035), (0, -0.256)).threePointArc((0.705, 0.035), (1, 0.738)).threePointArc((0.709, 1.449), (0, 1.744)).lineTo(0, 0.744).lineTo(0, 0.738).lineTo(-1, 0.... | 17 | 87 | 3.211853 |
train_4c1caae4cceb3df6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.143, 0, -0.713), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.143, 0.029).lineTo(0.143, 0.081).lineTo(0.013, 0.081).lineTo(0.013, 0.101).lineTo(-0.013, 0.101).lineTo(-0.013, 0.029).lineTo(-0.1, 0.029).lineTo(-0.1, -0.002).lineTo(-0.143, -0.002)... | 5 | 31 | 0.069472 |
train_901c3f54b1f1af79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.339, -0.147, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.822, 1.03).extrude(0.936)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.383, -0.147, -0.793), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.734, 0.546).extrude(0.522))
result = res... | 9 | 39 | 0.752579 |
train_abbf01f15dbadd45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.73), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.542, -0.625).threePointArc((0, -0.827), (0.542, -0.625)).lineTo(0.768, -0.852).threePointArc((0.965, -0.965), (0.852, -0.768)).lineTo(0.625, -0.542).threePointArc((0.827, 0), (0.625, 0.542... | 2 | 24 | 2.713747 |
train_4a6a3cb5ed8cf313 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.402, 0.185, -0.011), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.153, 0.193).lineTo(-0.153, 0.193).threePointArc((-0.062, -0.023), (0.153, -0.114)).lineTo(0.153, 0.12).lineTo(0.153, 0.193).close().extrude(0.25)
result = result.edges().chamfer(0... | 24 | 284 | 0.400942 |
train_d57d211ab2a34564 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.218, -0.111, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.014).lineTo(-1, 0.048).lineTo(-0.811, 0.048).lineTo(-0.811, 0.208).lineTo(-0.331, 0.208).lineTo(-0.331, 0.048).lineTo(1, 0.048).lineTo(1, 0.014).lineTo(-1, 0.014).close().extrude(... | 30 | 78 | 0.06192 |
train_8d66f36cd9dba3d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.092, 0.088, 0.051), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(0, 0.026).lineTo(-0.181, -0.167).lineTo(-0.235, -0.223).threePointArc((-0.205, -0.24), (-0.184, -0.267)).threePointArc((-0.173, -0.307), (-0.18, -0.349)).threePointArc((-0.194, -0.3... | 9 | 31 | 0.547287 |
train_9c30c594e4532e2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.043, -0.037).lineTo(0, -0.013).lineTo(0.043, -0.037).lineTo(0.022, 0).lineTo(0, 0.037).lineTo(-0.022, 0).lineTo(-0.043, -0.037).close().sweep(cq.Workplane('XY').spline([(-0.971, -0.327), (-0.5... | 1 | 8 | 0.003219 |
train_7c1454a986c906bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.356, 0.305, 0.064), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.379, 0.056).lineTo(-0.379, 0.746).lineTo(0.379, 0.056).lineTo(-0.379, 0.056).close().extrude(0.611)
result = result.edges().fillet(0.08)
result = result.union(cq.Workplane(cq.Pla... | 4 | 33 | 0.117931 |
train_cd5cacbf32dfc885 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.034, 0.137, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.012, 1.258).extrude(1.196)
result = result.union(cq.Workplane(cq.Plane(origin=(0.629, -0.147, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.1).extrude(0.56))
result = result.union(... | 17 | 133 | 1.041603 |
train_cb3cb71b3b0f60c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.369), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.122).extrude(0.738)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.124 * math.cos(0.059 + 2 * math.pi * 0 / 8), 0.369 + 0.124 * math.sin(0.059 + 2 * math.pi * 0 / 8), -1.669), no... | 16 | 9 | 1.649777 |
train_465e99669e140550 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.083, 0.045, 0.003), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.196).lineTo(-0.588, 0.196).lineTo(-0.588, 0.043).lineTo(-0.882, 0.043).lineTo(-0.882, -0.043).lineTo(-0.588, -0.043).lineTo(-0.588, -0.196).lineTo(0, -0.196).lineTo(0, -0.043).l... | 3 | 22 | 0.399094 |
train_ccebdd209f6d6726 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.936).extrude(0.152)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.301, 0.433, 0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.142, 0.109).extrude(0.06))
result = result.union(c... | 12 | 38 | 0.477583 |
train_7aff4df35d8ca2d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.863), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.668).extrude(1.726)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.452, -0.159, 0.356), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.605, 0.476).lineTo(-0.3, 0.476).lineTo(-0.3, -0... | 37 | 226 | 2.454128 |
train_e457de71e8474e7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.133, 0.387), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.078, -0.032).lineTo(0.078, 0.032).lineTo(-0.078, 0.032).lineTo(-0.078, -0.032).lineTo(0.078, -0.032).close().sweep(cq.Workplane('XY').spline([(-0.822, -0.133), (-0.493, -0.425), (-0.16... | 4 | 30 | 0.046337 |
train_3fed0e9aad031ab9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.276, 0, -0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.448, 1.05).extrude(0.03)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.22, 0.122, -0.11), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.11, 0.309).threePointArc((-0.03, 0.268), (... | 5 | 30 | 0.077747 |
train_f987afc270f52a3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.152, 0.651, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.869, -0.586).lineTo(0.869, -0.586).lineTo(0.869, 0.17).lineTo(0.567, 0.17).lineTo(0.567, -0.208).lineTo(-0.491, -0.208).lineTo(-0.491, 0.85).lineTo(-0.113, 0.85).lineTo(-0.113, 1.152)... | 11 | 67 | 1.615833 |
train_9428392a4ee5b095 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.314, -0.677), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.313, -0.113).lineTo(0.313, -0.113).lineTo(0.329, 0.121).lineTo(-0.329, 0.121).lineTo(-0.313, -0.113).close().extrude(0.629)
result = result.edges().fillet(0.086)
result = result.... | 9 | 67 | 0.112642 |
train_25e55004c7e0fd6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.013, -0.245, -0.906), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.031).sweep(cq.Workplane('YZ').spline([(-0.245, -1.15), (-0.046, -1.128), (0.152, -0.906), (0.351, -0.684), (0.55, -0.662)]))
result = result.union(cq.Workplane(cq.Plane(origin=(0... | 16 | 109 | 0.019312 |
train_0187fb8c5355a174 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.063, 0.193, 0.244), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.081, -0.807).lineTo(0.348, -0.807).lineTo(0.348, 0.807).lineTo(-0.348, 0.807).lineTo(-0.348, -0.807).lineTo(0.081, -0.807).close().extrude(0.487)
result = result.edges().chamfer(0.... | 5 | 62 | 0.108818 |
train_1ea3727ff6a1935e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.083, -0.163, 0.609), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.45, -0.113).lineTo(-0.45, -0.225).lineTo(0.037, -0.225).lineTo(0.037, -0.003).threePointArc((0.072, 0.07), (0.15, 0.089)).lineTo(0.15, 0.056).lineTo(0.3, 0.056).lineTo(0.45, 0.05... | 11 | 161 | 0.501999 |
train_32a50279e7299e31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.09, 0.238, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.321, -0.91).lineTo(-0.321, 1.09).lineTo(0.321, 1.09).lineTo(0.321, 0.804).lineTo(-0.107, 0.804).lineTo(-0.107, -0.91).lineTo(-0.321, -0.91).close().extrude(0.476)
result = result.edges... | 10 | 53 | 0.214685 |
train_1383f8d379a206d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.618, 0.026, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.621, 0.493).threePointArc((-0.04, -0.064), (0.653, 0.347)).threePointArc((0.676, 0.416), (0.692, 0.488)).threePointArc((0.709, 0.374), (0.789, 0.292)).threePointArc((0.807, 0.283), (0... | 1 | 10 | 1.04374 |
train_77487e9cb5354765 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.447, 0.095, 0.115), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.353, 0.202).lineTo(0.202, 0.202).lineTo(0.202, 0.118).lineTo(0.101, 0.118).lineTo(0.101, 0.202).lineTo(-0.101, 0.202).lineTo(-0.101, -0.118).lineTo(-0.202, -0.118).lineTo(-0.202, ... | 6 | 74 | 0.270321 |
train_f46190895ff28bbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -1.036, 0.003), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.003, 0.229).lineTo(-1.003, 1.343).lineTo(0, 1.922).lineTo(0, 1.343).lineTo(1.003, 1.343).lineTo(1.003, 0.229).lineTo(-1.003, 0.229).close().revolve(angleDegrees=90, axisStart=(-1.00... | 16 | 80 | 2.158078 |
train_46c7696543a47f10 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.377, -0.696, -0.135), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.865, 0.519).lineTo(-0.865, -0.519).lineTo(0.545, -0.519).lineTo(0.865, 0.034).lineTo(0.865, 0.519).lineTo(-0.865, 0.519).close().sweep(cq.Workplane('XY').spline([(0.377, -1.033),... | 2 | 15 | 1.14378 |
train_3593f170889e38d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.612, 0, -0.486), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.388).sweep(cq.Workplane('XZ').spline([(-0.612, -0.486), (0.061, 0.04), (0.734, 0.203)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2665, -0.311 + 0.0775, -0.632), no... | 14 | 109 | 0.469378 |
train_bf85a97eb1fe01dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.902), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.866).lineTo(0, 0.289).lineTo(1, 0.866).lineTo(0, -0.866).lineTo(-1, 0.866).close().extrude(1.804)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.118, -0.413, -1.208), normal=(0, ... | 5 | 19 | 1.525348 |
train_aed612ea5535e70e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.244, -0.028, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.147).lineTo(-0.311, 0.028).lineTo(0, -1.092).lineTo(0.311, 0.028).lineTo(0, 1.147).close().extrude(0.487)
result = result.edges().fillet(0.043)
result = result.cut(cq.Workplane(cq.... | 8 | 51 | 0.281104 |
train_00cc6289deac60d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.195, 0.458), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.897, 0.269).threePointArc((-0.493, -0.135), (-0.897, -0.538)).lineTo(-0.359, -0.538).lineTo(0.359, -0.538).threePointArc((0.224, -0.135), (0.359, 0.269)).threePointArc((0.596, 0.467),... | 13 | 74 | 1.503986 |
train_34474fe07d3c1832 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.022, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.634, 0.847).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.183, 0.472, -0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.072, 0.056).extrude(0.125))
result = result.union... | 8 | 35 | 1.074312 |
train_40743b84d79453b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.025, 0.516), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.755, 0.179).threePointArc((0.76, -0.061), (0.691, -0.291)).threePointArc((0.554, -0.489), (0.363, -0.634)).threePointArc((0.136, -0.713), (-0.104, -0.719)).threePointArc((-0.334, -0.6... | 3 | 41 | 1.924236 |
train_c825ca04c588edde | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.661, 0, 0.251), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.25, 0.091).threePointArc((-0.341, 0), (-0.25, -0.091)).lineTo(0.341, -0.091).lineTo(0.341, 0.091).lineTo(-0.25, 0.091).close().workplane(offset=0.042).moveTo(-0.236, 0.086).threePoin... | 5 | 74 | 0.016946 |
train_a0958320ce7766c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.546, 0.581), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.454).lineTo(-0.303, -0.454).lineTo(-0.303, 0.454).lineTo(0.303, 0.454).lineTo(0.303, -0.454).lineTo(0, -0.454).close().sweep(cq.Workplane('YZ').spline([(-0.546, -0.15), (-0.822, -0... | 3 | 15 | 0.244572 |
train_1de0dfd6404a5868 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.305, -0.456, 0.016), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.128, 1.151).lineTo(0.334, 1.151).lineTo(0.205, 1.305).lineTo(-0.334, 1.305).lineTo(-0.334, -0.387).lineTo(-0.257, -0.387).lineTo(-0.257, -0.695).lineTo(0.128, -0.695).lineTo(0.128... | 12 | 96 | 0.662053 |
train_e9125fd41d7a6300 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.125, -0.122, -0.397), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.749, 1.614).extrude(0.952)
result = result.faces('>Z').shell(-0.068)
result = result.union(cq.Workplane(cq.Plane(origin=(0.158, -0.113, -0.555), normal=(0, 0, 1), xDir=(1, 0, 0))).c... | 5 | 24 | 0.699279 |
train_16b6b23955690b3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.801, 0.777, -0.251), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.583, 0.203).lineTo(0.341, -0.218).lineTo(-0.081, 0.024).lineTo(-0.22, 0.106).lineTo(-0.066, 0.375).lineTo(-0.701, 0.375).lineTo(-0.701, 1.184).lineTo(-0.066, 1.184).lineTo(-0.22, 1... | 9 | 23 | 1.849799 |
train_7edb1949360eebb5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.193), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1).lineTo(0.259, -0.449).lineTo(0.866, -0.5).lineTo(0.518, 0).lineTo(0.866, 0.5).lineTo(0.259, 0.449).lineTo(0, 1).lineTo(-0.259, 0.449).lineTo(-0.866, 0.5).lineTo(-0.518, 0).lineTo(-0.8... | 14 | 168 | 0.330599 |
train_811467e5cc3d97f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.979, 0, -0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.19).lineTo(0.5, 0.365).lineTo(0.356, 0.459).lineTo(0.253, 0.943).lineTo(0.231, 1.046).lineTo(-0.253, 0.943).lineTo(-0.5, 1.19).lineTo(-0.5, 1.014).lineTo(-0.356, 0.921).lineTo(0, 0... | 9 | 119 | 1.339918 |
train_0981bb4775f37e3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.154, 0.721, -0.531), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.278, 0.034).lineTo(-0.171, 0.042).lineTo(-0.159, 0.072).threePointArc((-0.075, 0.057), (0.01, 0.054)).lineTo(0.033, 0.056).threePointArc((0.09, 0.064), (0.145, 0.078)).lineTo(0.1... | 20 | 158 | 0.179891 |
train_4f6f36158489f7b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.728, 0, -0.191), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.09, -0.292).threePointArc((-0.158, 0.164), (-0.09, 0.621)).lineTo(0.158, 0.545).threePointArc((0.102, 0.164), (0.158, -0.216)).lineTo(-0.09, -0.292).close().revolve(angleDegrees=360,... | 9 | 63 | 0.43133 |
train_e55ea2dd89675232 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.442, -0.101), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.062, -0.396).lineTo(0.005, 1.206).lineTo(1.054, 1.318).lineTo(1.062, -0.384).lineTo(-1.062, -0.396).close().extrude(2)
result = result.edges().chamfer(0.368)
result = result.cut(cq.... | 10 | 63 | 2.760766 |
train_230d2e1dbd0a95ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.092, 0.162, -0.119), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.26, 0.607).lineTo(-0.334, 0.607).lineTo(-0.334, -0.285).lineTo(0.334, -0.285).lineTo(0.334, 0.607).lineTo(-0.26, 0.607).close().extrude(0.541)
result = result.edges().chamfer(0.0... | 11 | 109 | 0.12878 |
train_61b777152087ad2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.133, 0, -0.463), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.561, 1.036).extrude(1.463)
result = result.faces('>Z').shell(-0.098)
result = result.union(cq.Workplane(cq.Plane(origin=(0.029, -0.036, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.18... | 6 | 112 | 0.818638 |
train_5fd7dd80ba76355d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.037, -0.575, -0.418), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.454, 0.289).lineTo(-0.454, -0.119).lineTo(0.454, -0.119).lineTo(0.454, 0.289).close().extrude(0.843)
result = result.edges().fillet(0.029)
result = result.cut(cq.Workplane(cq.Pla... | 43 | 190 | 0.244662 |
train_be7db928fd7f034b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.393), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.221, -0.427).lineTo(0.271, -0.398).lineTo(0.271, 0.67).lineTo(0.221, 0.642).lineTo(0.129, 0.588).lineTo(0.129, 0.711).lineTo(-0.178, 0.533).lineTo(-0.271, 0.481).lineTo(-0.178, 0.481).line... | 1 | 14 | 0.51517 |
train_42051deaaac5eca6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.578, -0.728), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, -0.022).lineTo(-1, 1.178).lineTo(1, 1.178).lineTo(1, -0.022).lineTo(-1, -0.022).close().extrude(1.457)
result = result.edges().chamfer(0.2)
result = result.cut(cq.Workplane(cq.Plane... | 5 | 147 | 2.975802 |
train_ab9bcdc948b7f56d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.138, -0.222, 0.234), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.766, 0.273).lineTo(0.766, 0.273).lineTo(0.766, 0.017).lineTo(-0.766, 0.017).lineTo(-0.766, 0.273).close().extrude(0.331)
result = result.edges().fillet(0.019)
result = result.fac... | 17 | 132 | 0.091608 |
train_1878e30a20c685a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.779, 0.003, -0.168), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.266, 0.775).lineTo(-0.832, 0.775).lineTo(-0.832, 0.21).lineTo(0.832, 0.21).lineTo(0.832, 0.775).lineTo(0.266, 0.775).close().revolve(angleDegrees=270, axisStart=(0.266, 0.775), ax... | 10 | 90 | 0.829136 |
train_014908b5ade2bd69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.895).extrude(0.136)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.06, 0, 0.272), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.054).extrude(0.43))
result = result.union(cq.Workplane... | 9 | 67 | 0.703757 |
train_29df335bdcb7c675 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.203, -0.271, -0.62), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.993, 0.445).lineTo(-0.993, 0.445).threePointArc((0, 0.096), (0.993, 0.445)).close().revolve(angleDegrees=90, axisStart=(0.993, 0.445), axisEnd=(-0.993, 0.445))
result = result.edg... | 14 | 129 | 0.078138 |
train_c8aaae0cb59b9ea4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.35, 0, -0.488), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.056, -0.028).threePointArc((0.036, -0.036), (0.028, -0.056)).lineTo(-0.028, -0.056).lineTo(-0.028, -0.028).lineTo(-0.056, -0.028).lineTo(-0.056, 0.028).threePointArc((-0.036, 0.036), (-... | 9 | 61 | 0.063527 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.