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_912f493e4c934064 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.055, -0.646, -0.589), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.565).sweep(cq.Workplane('YZ').spline([(-0.646, -0.589), (-0.249, -0.149), (0.15, -0.003), (0.547, -0.149), (0.945, -0.589)]))
result = result.edges().chamfer(0.471)
result = res... | 12 | 64 | 1.241968 |
train_9c75ebcf37d3d7c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.543, 0.424, 0.009), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.02, 1.543).lineTo(-0.02, -0.137).lineTo(0.3, -0.457).lineTo(-0.3, -0.457).lineTo(-0.3, 1.543).lineTo(-0.02, 1.543).close().extrude(0.848)
result = result.edges().chamfer(0.026)
re... | 5 | 38 | 0.453003 |
train_a34d4944fcc11952 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.123, 0.241, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.726, 0.785).lineTo(-0.726, -0.13).threePointArc((0.219, -0.021), (0.726, 0.785)).lineTo(-0.726, 0.785).close().workplane(offset=0.07).moveTo(-0.247, 0.483).lineTo(-0.247, 0.171).three... | 7 | 43 | 0.280598 |
train_f512a1fc01c9666d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.033, 0.011, 0.212), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.023, 0.127).threePointArc((0, 0.129), (-0.023, 0.127)).lineTo(-0.019, 0.152).threePointArc((-0.012, 0.162), (0, 0.167)).threePointArc((-0.025, 0.165), (-0.048, 0.16)).threePointAr... | 6 | 72 | 0.077357 |
train_d8cd2763d9b3ff5b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.069, 0.059, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.148, 0.8).extrude(0.33)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.263, 0.08, 0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.221).extrude(0.127))
result = result.un... | 5 | 25 | 0.399759 |
train_4946df4daaf7239d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.187, -0.001, 0.502), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.501, 0.119).lineTo(-0.501, 0.022).lineTo(0.501, 0.022).lineTo(0.501, 0.351).lineTo(-0.501, 0.351).lineTo(-0.501, 0.119).close().revolve(angleDegrees=270, axisStart=(-0.501, 0.119... | 11 | 69 | 0.736566 |
train_cef70c1b8898fa36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.249, 0.024, 0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.074, 0.074).extrude(0.064)
result = result.union(cq.Workplane(cq.Plane(origin=(0.138, 0.024, 0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.176, 0.034).extrude(0.028))
result = res... | 13 | 131 | 0.049046 |
train_e610bccee9fe5c4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.088, 0.253, -0.544), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.456, 0.47).lineTo(0.456, 0.035).lineTo(-0.456, 0.035).lineTo(-0.456, 0.47).lineTo(0.456, 0.47).close().extrude(0.11)
result = result.edges().chamfer(0.048)
result = result.union(c... | 25 | 443 | 0.04273 |
train_cb9dc671da6e28e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.119, 0.451, -0.225), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.155, 0.344).lineTo(0.604, 0.56).lineTo(0.747, 1.451).lineTo(-0.747, 1.026).lineTo(-0.155, 0.344).close().revolve(angleDegrees=360, axisStart=(-0.155, 0.344), axisEnd=(0.604, 0.56... | 4 | 13 | 2.575195 |
train_23ee2703a30cc2b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.739, -0.965), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.027, 0.025).threePointArc((0.011, 0.034), (-0.007, 0.034)).threePointArc((-0.023, 0.025), (-0.032, 0.009)).lineTo(-0.037, -0.011).lineTo(-0.022, -0.025).threePointArc((-0.006, -... | 2 | 14 | 0.005352 |
train_8a80ec6b46bf93a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.162, 0, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.299, 0.227).extrude(0.117)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.162, 0, 0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.088).extrude(0.017))
result = result.cut(cq... | 29 | 220 | 0.121685 |
train_d80b4ec469fca430 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.062), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.376, -0.306).lineTo(0.167, -0.096).lineTo(0.235, -0.082).lineTo(0.167, 0.238).lineTo(0.153, 0.306).lineTo(0, 0.071).lineTo(-0.376, -0.306).lineTo(0.376, -0.306).close().sweep(cq.Workplane('... | 11 | 67 | 0.277768 |
train_b6806f6cab277505 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.094, -0.131, -0.365), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.037, 0.747).extrude(0.227)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.076, -0.249, -0.404), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.041).extrude(0.272))
result = resul... | 25 | 210 | 0.660071 |
train_c9ae61f561fc8c0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.454, -0.535, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.087, 0.343).lineTo(0.037, 0.343).lineTo(0.037, -0.083).lineTo(0.062, -0.188).lineTo(0.062, -0.319).lineTo(-0.37, -0.319).lineTo(-0.399, -0.321).lineTo(-0.399, -0.343).lineTo(0.39... | 1 | 12 | 0.008668 |
train_42b19193ec8642a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 2.13, -0.002), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.302, 1.148).lineTo(0.702, 1.379).lineTo(-0.302, 3.118).lineTo(-0.702, 2.888).lineTo(0.302, 1.148).close().revolve(angleDegrees=90, axisStart=(0.302, 1.148), axisEnd=(0.702, 1.379))
res... | 6 | 38 | 1.082916 |
train_378b8bb77e23b163 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.447, 0.463, 0.488), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.488, -0.329).lineTo(-0.488, 1.463).lineTo(0.488, 1.463).lineTo(0.488, -0.329).lineTo(-0.488, -0.329).close().revolve(angleDegrees=180, axisStart=(-0.488, -0.329), axisEnd=(-0.488, ... | 11 | 50 | 2.614818 |
train_a3d6b20210855d03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.646, 0.36, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.864, 0.072).lineTo(-0.735, 0.199).lineTo(0.85, 0.199).lineTo(0.957, 0.072).lineTo(1, 0.072).lineTo(0.872, 0.199).lineTo(0.734, 0.335).lineTo(-0.021, 1.219).lineTo(-0.776, 0.335).lineTo... | 8 | 42 | 0.882892 |
train_09a728883c98a56c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.475, -0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.85, 1.05).extrude(0.129)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.005, 0.336, 0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.908, 0.484).extrude(0.032))
result = result.cut... | 11 | 88 | 0.297408 |
train_b62e5506c40ecc72 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.12).extrude(0.2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.002, 0.157).lineTo(0.002, -0.157).lineTo(-0.002, -0.157).lineTo(... | 15 | 79 | 0.325837 |
train_9be11b22d320180a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.416, -0.303, -0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.588, 0.008).lineTo(0.192, 0.547).lineTo(-0.477, 0.332).lineTo(-0.473, -0.354).lineTo(0.171, -0.55).close().moveTo(0.075, 0.161).lineTo(0.022, 0.232).lineTo(-0.062, 0.206).lineTo(-... | 10 | 283 | 1.010487 |
train_202d1a31b36f3526 | 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.43).workplane(offset=1.036).circle(0.358).workplane(offset=0.964).circle(0.41).loft()
result = result.edges().chamfer(0.256)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.321 + 0.064, 3... | 12 | 41 | 0.661723 |
train_eeba854dfcb61334 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.377, -0.701, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.866, 0.872).threePointArc((-1, 0.372), (-0.866, -0.127)).threePointArc((-0.5, -0.493), (0, -0.628)).lineTo(0.866, -0.127).threePointArc((1, 0.372), (0.866, 0.872)).threePointArc((0.5... | 2 | 26 | 3.782426 |
train_2c7ee790b90da528 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, -0.403, -0.611), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.861, 0.841).lineTo(-0.861, 0.786).lineTo(-0.817, 0.803).lineTo(0.861, -0.66).lineTo(0.194, 0.639).lineTo(0.09, 0.841).lineTo(-0.722, 0.841).lineTo(-0.476, 0.94).lineTo(-0.049, 1.... | 3 | 106 | 0.788539 |
train_671b09c43811ed10 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0.083, 0.049), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.744, -0.437).lineTo(-0.744, -0.673).lineTo(-0.204, 0.734).lineTo(0.744, -0.437).close().extrude(2)
result = result.edges().fillet(0.316)
| 2 | 20 | 1.436781 |
train_e1a064785f39acd1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.367, 0.652, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.617).lineTo(-1, 0.117).lineTo(1, 0.117).lineTo(1, 0.617).lineTo(-1, 0.617).close().workplane(offset=0.398).moveTo(-0.759, 0.557).lineTo(-0.759, 0.177).lineTo(0.759, 0.177).lineTo(0... | 9 | 6 | 0.944679 |
train_4cd87cce2757dc84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.146, -0.216, -0.456), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.33, 1.569).extrude(1.278)
result = result.faces('>Z').shell(-0.118)
result = result.union(cq.Workplane(cq.Plane(origin=(0.169, -0.39, -0.821), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 33 | 99 | 0.981169 |
train_b875e418fcce9324 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.284, -0.014, -0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.725, -0.009).lineTo(0.516, 0.511).lineTo(0.014, 0.725).lineTo(-0.492, 0.517).lineTo(-0.716, -0.003).lineTo(-0.51, -0.518).lineTo(-0.006, -0.698).lineTo(0.523, -0.501).close().mov... | 17 | 200 | 0.294133 |
train_258ac56dda047937 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.194, -0.052), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.827).lineTo(0.308, 0.718).lineTo(0.308, 0.315).lineTo(-0.308, 0.315).lineTo(-0.308, 0.718).lineTo(0, 0.827).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.268, 0))
r... | 11 | 66 | 0.660477 |
train_4f678d44544b90d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.165, -0.388, -0.376), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.258, -0.024).threePointArc((0, 0.604), (0.258, -0.024)).threePointArc((0, -0.049), (-0.258, -0.024)).close().extrude(0.751)
result = result.edges().fillet(0.174)
result = result... | 12 | 57 | 0.375598 |
train_e9ed796a47208956 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.327, 0.166, -0.346), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.307, -0.32).threePointArc((0.333, -0.258), (0.395, -0.232)).lineTo(0.395, 0.382).lineTo(0.395, 0.47).lineTo(0.307, 0.47).lineTo(-0.307, 0.47).threePointArc((-0.333, 0.408), (-0.3... | 10 | 115 | 1.332063 |
train_131b7b08b331f202 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.09, 0, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.239, 2).extrude(0.192)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.176, 0.425, 0.011), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.306).extrude(0.047))
result = result.cut(cq.Work... | 23 | 185 | 0.389508 |
train_56027903a3a164e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.675, -0.402), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.65, 0.65).extrude(1.007)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.178, -0.183), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.294, 1.299).extrude(0.57))
result = result.unio... | 12 | 108 | 0.750994 |
train_06541e83149e62ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.782, 0, 0.302), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.302, 0.567).lineTo(-0.302, -0.015).lineTo(0.302, -0.015).lineTo(0.302, 0.567).lineTo(-0.302, 0.567).close().revolve(angleDegrees=270, axisStart=(-0.302, 0.567), axisEnd=(-0.302, -0.01... | 9 | 60 | 0.957541 |
train_58090ab7f7d06985 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.053, 0.04, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.207, -0.96).lineTo(-0.207, 1.074).threePointArc((0, 1.033), (0.207, 1.077)).lineTo(0.207, -0.746).lineTo(0.207, -0.96).lineTo(-0.207, -0.96).close().extrude(0.318)
result = result.edge... | 5 | 40 | 0.239423 |
train_8868370c123b8fa1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.124, -0.065, 0.502), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.964, 1.161).lineTo(-0.964, -0.584).lineTo(0.964, -1.161).lineTo(0.964, 1.161).close().extrude(1.004)
result = result.edges().chamfer(0.335)
result = result.cut(cq.Workplane(cq.Pl... | 5 | 39 | 1.050597 |
train_cb84c8ca7b132e30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.599, 0.355, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.065, 1.29).threePointArc((-0.726, 1.016), (-1, 0.355)).threePointArc((-0.731, -0.301), (-0.079, -0.58)).lineTo(1, -0.58).threePointArc((0.883, 0.355), (1, 1.29)).lineTo(-0.065, 1.29).... | 2 | 12 | 3.409815 |
train_933711975553a11f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.554, 0.144, -0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.533).sweep(cq.Workplane('XZ').spline([(0.554, -1.02), (0.995, -1.02), (1.464, -0.896), (1.933, -0.772)]))
result = result.edges().chamfer(0.095)
result = result.union(cq.Workplane(... | 8 | 20 | 0.263201 |
train_b094828710802301 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.42, -0.005, 0.076), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.437, -0.424).lineTo(0.427, -0.419).lineTo(0.433, 0.426).lineTo(-0.443, 0.433).close().moveTo(-0.244, 0.099).lineTo(-0.034, 0.098).lineTo(-0.034, 0.048).lineTo(-0.113, 0.049).lineTo... | 19 | 243 | 0.266612 |
train_c9c4ec07abb537c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.355, -0.028, -0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.291, 1.845).extrude(0.529)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.355, -0.028, 0.431), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.373).extrude(0.092))
result = res... | 14 | 77 | 1.835301 |
train_a6d62736f0a3cec5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.046, 0.07, -0.432), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.067, 0.158).lineTo(0.067, 0.158).lineTo(0.067, 0.051).lineTo(-0.067, 0.051).lineTo(-0.067, 0.158).close().workplane(offset=0.046).moveTo(-0.109, 0.191).lineTo(0.109, 0.191).lineTo... | 5 | 48 | 0.003632 |
train_854d39f83f1e05d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.013, -0.113, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.507, -0.012).lineTo(0.357, 0.357).lineTo(-0.015, 0.504).lineTo(-0.364, 0.354).lineTo(-0.532, -0.011).lineTo(-0.374, -0.382).lineTo(0.012, -0.506).lineTo(0.367, -0.35).close().rect... | 12 | 58 | 0.144281 |
train_6c9695614d76a460 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.041, -0.036, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.117, 0.687).extrude(0.762)
result = result.union(cq.Workplane(cq.Plane(origin=(0.084, 0.102, 0.622), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.137).extrude(0.123))
result = resul... | 25 | 153 | 0.366277 |
train_d49379e8f5750be5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.282, 0.462, 0.077), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.004, 0.003).lineTo(-0.099, 0.042).threePointArc((0.099, 0.007), (-0.096, -0.042)).lineTo(-0.004, 0.003).close().sweep(cq.Workplane('XZ').spline([(0.282, -0.026), (0.143, 0.003), (0... | 10 | 96 | 0.151223 |
train_82c4d6d058cd9fb1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.51), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.184, 2).extrude(0.917)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.032, 0.14, 0.217), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.075, 2.4).extrude(0.092))
result = result.cut(cq.Workpl... | 10 | 59 | 2.025237 |
train_1981d551ef93fc40 | 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.292).workplane(offset=0.592).circle(0.273).workplane(offset=0.664).circle(0.253).workplane(offset=0.743).circle(0.234).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(0.054, 0.079, -1... | 11 | 26 | 0.27898 |
train_10acd9123eb40372 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.622, -0.244, 0.208), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.187, 0.578).threePointArc((-0.363, 0.505), (-0.435, 0.329)).lineTo(-0.435, -0.355).lineTo(0.435, -0.355).lineTo(0.435, 0.578).lineTo(-0.187, 0.578).close().workplane(offset=0.381... | 29 | 187 | 0.947486 |
train_73dfa966ed1da1c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.854, 0, 0.473), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.167).sweep(cq.Workplane('XZ').spline([(-0.854, 0.473), (-0.422, -0.155), (0.01, -0.364), (0.442, -0.155), (0.874, 0.473)]))
result = result.edges().fillet(0.064)
result = result.cut(c... | 6 | 20 | 0.188364 |
train_07f899bb48a52cf4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, 0.003, -0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.93, 0.99).lineTo(0.941, 0.997).lineTo(0.941, 0.592).lineTo(0.225, 0.572).lineTo(0.176, -0.997).lineTo(-0.172, -1.003).lineTo(-0.207, 0.583).lineTo(-0.907, 0.569).close().center(0... | 15 | 53 | 0.271573 |
train_cd3b3e43a9109acb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.784, 0.519, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.691, -0.216).threePointArc((-0.155, 0.939), (1, 1.475)).lineTo(1, 1.784).threePointArc((-0.373, 1.157), (-1, -0.216)).lineTo(-0.691, -0.216).close().workplane(offset=0.284).moveTo(-0.... | 1 | 6 | 0.365778 |
train_84786460759b3bc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.19), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.32, -0.087).lineTo(0.32, -0.533).lineTo(0.223, -0.533).lineTo(0.271, -0.494).lineTo(0.223, -0.456).lineTo(0.223, -0.087).lineTo(-0.243, -0.087).lineTo(-0.243, -0.029).lineTo(-0.32, -0.029... | 7 | 56 | 0.328764 |
train_1810ab61fc508170 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.096, -0.471, -0.833), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.039, 1.058).extrude(1.232)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.054, -0.274, -1.042), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.384, 0.366).extrude(1.479))
result =... | 28 | 151 | 0.870178 |
train_27614e056b9af339 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.759, -0.473, -0.067), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.382, 0.241).lineTo(-0.382, -0.241).lineTo(0.382, -0.241).lineTo(0.382, 0.241).lineTo(-0.382, 0.241).close().sweep(cq.Workplane('XY').spline([(-0.759, -0.207), (-0.455, -0.185),... | 3 | 14 | 0.196217 |
train_91886048786917f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.447, -0.092), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.721, 0.553).lineTo(-0.721, -0.553).lineTo(0.691, -0.553).lineTo(0.691, -0.524).lineTo(-0.691, -0.524).lineTo(-0.691, 0.524).lineTo(0.721, 0.524).lineTo(0.721, -0.262).lineTo(0.721, ... | 1 | 10 | 0.130703 |
train_51c6f65404e534a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.527, 0.902, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.602, -0.473).lineTo(-0.602, -0.179).threePointArc((-0.453, 0.18), (-0.2, 0.473)).lineTo(0.602, -0.473).close().sweep(cq.Workplane('XY').spline([(0.527, 0.124), (0.79, 0.147), (1.053, 0.... | 13 | 17 | 0.082744 |
train_fc5956950373d422 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.2, -0.14), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.63).workplane(offset=0.642).circle(0.618).workplane(offset=0.695).circle(0.61).workplane(offset=0.663).circle(0.594).loft()
result = result.edges().fillet(0.272)
result = result.union(c... | 14 | 74 | 1.865111 |
train_c95a97e74b82005f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.385, -0.591, 0.225), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.308, -0.094).threePointArc((0.055, 0.01), (0.308, 0.289)).threePointArc((0.274, 0.954), (-0.308, 1.276)).lineTo(-0.308, -0.094).close().extrude(1.263)
result = result.edges().cha... | 14 | 68 | 0.928298 |
train_0a11dd35eeeb0e9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.103, -0.17, -0.373), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.187, 0.976).extrude(0.947)
result = result.union(cq.Workplane(cq.Plane(origin=(0.16, -0.355, -0.574), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.04).extrude(0.208))
result = result... | 11 | 61 | 1.135588 |
train_a5d9ab35d78e091a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.133, -0.067, -0.831), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.402, 0.617).extrude(0.008)
result = result.union(cq.Workplane(cq.Plane(origin=(0.144, -0.045, -0.823), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.11).extrude(0.008))
result = resul... | 8 | 56 | 0.496835 |
train_02a29915b767ef0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.326, -1.055, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.214).threePointArc((-0.37, 0.694), (-1, 2.002)).lineTo(-0.894, 0.108).lineTo(1, 0.214).close().extrude(0.626)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.313, -0.246, -0... | 3 | 10 | 0.475753 |
train_0fdfaa170a3f3841 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.545, 0.67, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.8, 1.545).lineTo(0.8, -0.455).lineTo(0.533, -0.455).lineTo(0.533, 0.965).lineTo(-0.8, 0.965).lineTo(-0.8, 1.545).lineTo(0.8, 1.545).close().extrude(1.015)
result = result.edges().fillet... | 5 | 61 | 1.501128 |
train_36ca084eb587aa80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.005, 0, -0.965), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.509, 0.474).extrude(0.007)
result = result.union(cq.Workplane(cq.Plane(origin=(0.111, 0.041, -0.955), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.051, -0.027).lineTo(0.133, -0.028).thr... | 9 | 64 | 0.140676 |
train_d1411e6176e2524c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.073), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.693, 1).threePointArc((0.291, 0.441), (-0.34, 0.166)).threePointArc((-0.517, 0.152), (-0.693, 0.16)).lineTo(-0.693, 1).lineTo(-0.34, 1).lineTo(0.693, 1).close().revolve(angleDegrees=360, a... | 5 | 19 | 2.543815 |
train_d2ea87402ffc9bf7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.403), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.058).extrude(0.971)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.443, -0.17, 0.559), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.146).extrude(0.279))
result = result.union(cq.Wo... | 5 | 20 | 2.012452 |
train_2d4525b2e5b7167d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.266, 0.051, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.485, 0.433).extrude(0.074)
result = result.union(cq.Workplane(cq.Plane(origin=(0.266, 0.051, 0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.286, 0.315).extrude(0.016))
result = re... | 15 | 122 | 0.03505 |
train_0f9ef09f42b2a1e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.677, 0.199, -0.569), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.431, 0.425).lineTo(0.431, 0.022).threePointArc((0, 0.062), (-0.431, 0.022)).lineTo(-0.431, 0.425).lineTo(0.431, 0.425).close().extrude(1.353)
result = result.edges().fillet(0.086)... | 28 | 154 | 0.388075 |
train_d8c4341af4062e27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.785, -0.352, -0.301), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.706, 0.785).threePointArc((0, 0.079), (-0.706, 0.785)).lineTo(-0.353, 0.785).threePointArc((0, 0.432), (0.353, 0.785)).lineTo(0.706, 0.785).close().revolve(angleDegrees=180, axis... | 7 | 27 | 0.433105 |
train_1fcfb80a7e4b0202 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.297, -0.218, -0.428), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.139, 0.381).lineTo(-0.139, -0.329).lineTo(0.139, -0.329).lineTo(0.139, 0.381).lineTo(-0.139, 0.381).close().extrude(0.255)
result = result.edges().chamfer(0.058)
result = result... | 23 | 205 | 0.728906 |
train_f26362d671a52ad5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, 0.237, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.044, 0.34).lineTo(0.025, 0.327).lineTo(0.019, 0.298).lineTo(0.178, 0.34).lineTo(0.05, -0.279).lineTo(-0.178, -0.34).lineTo(-0.15, -0.198).threePointArc((-0.12, -0.153), (-0.067, -0.142... | 6 | 43 | 0.222143 |
train_848283cbfa8b24b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.688, 0.186, -0.142), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.323, 0.262).lineTo(0.251, -0.312).lineTo(0.323, -0.241).lineTo(-0.18, 0.262).lineTo(-0.215, 0.298).threePointArc((-0.251, 0.312), (-0.287, 0.298)).lineTo(-0.323, 0.262).close().s... | 7 | 33 | 0.146463 |
train_27be79762273ad59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.66, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.042, -0.34).lineTo(0.026, -0.34).lineTo(0.026, -0.094).lineTo(0.073, -0.094).lineTo(0.073, -0.071).lineTo(0.038, -0.071).lineTo(0.029, -0.028).lineTo(0.02, -0.071).lineTo(0.01, -0.071).li... | 2 | 28 | 0.11609 |
train_7a9ecdf132755331 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.446, 0.041), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.136, 0.155).lineTo(-0.136, -0.155).lineTo(0.136, -0.155).lineTo(0.136, -0.079).lineTo(0.015, -0.079).lineTo(0.015, 0.155).lineTo(-0.136, 0.155).close().sweep(cq.Workplane('YZ').moveTo... | 7 | 59 | 0.135159 |
train_be44533a1fbc75d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, 0, -0.194), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.988, 0.03).lineTo(0.537, 0.89).lineTo(-0.514, 0.896).lineTo(-1.012, 0.018).lineTo(-0.531, -0.896).lineTo(0.51, -0.86).close().center(-0.325, 0).circle(0.197).moveTo(0.531, 0.225).lineT... | 12 | 78 | 0.826466 |
train_1f7ae4d2a1975943 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.266, 0.361, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, -0.734).lineTo(-0.426, -0.732).lineTo(-0.426, 1.266).lineTo(0.426, 1.266).lineTo(0.426, -0.732).lineTo(0, -0.734).close().extrude(0.777)
result = result.edges().fillet(0.1)
result = r... | 7 | 46 | 1.286515 |
train_322398c0a6b92e10 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.677, 0.537, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.117, 0.123).lineTo(0.155, 0.323).lineTo(0.243, 0.171).threePointArc((0.274, 0.055), (0.243, -0.061)).lineTo(0.155, -0.213).lineTo(0.102, -0.323).lineTo(0.038, -0.323).lineTo(0.038, -0.2... | 3 | 48 | 0.100701 |
train_4252cc37bb16aba9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.659, -0.153, -0.031), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.133, 0.377).threePointArc((0, 0.386), (0.133, 0.389)).lineTo(0.133, -0.257).lineTo(-0.133, -0.257).lineTo(-0.133, 0.377).close().workplane(offset=0.042).moveTo(-0.12, 0.347).thr... | 9 | 93 | 0.090687 |
train_83c5b1a1cab1aaff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.33, 2).extrude(0.686)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2665, 0.1595, -1.181), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.047, 0.045).lineTo(0.047, 0.041).lineTo(-0... | 17 | 8 | 1.826015 |
train_8c81fa7530c1aeb1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, 0, 0.123), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.926, 0.163).threePointArc((-0.984, -0.138), (-0.694, -0.235)).threePointArc((0.148, -0.071), (0.984, -0.253)).threePointArc((0.428, 0.089), (-0.207, 0.245)).threePointArc((-0.423, 0.2... | 6 | 26 | 0.043937 |
train_21ddfa6f91dff69e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.462), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.968).extrude(0.659)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.19, 0.255, -0.175), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.241).extrude(0.275))
result = result.cut(cq.Workpl... | 13 | 89 | 1.044578 |
train_91b14cb14f4fbe40 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.09, -0.419, -0.486), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.793, 1.161).extrude(0.692)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.146, -0.444, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.1).extrude(0.186))
result = result.... | 33 | 257 | 0.379687 |
train_8eed90e2aea26a0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.916), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.958).extrude(1.832)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.221, 0.079, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.137).extrude(1.192))
result = result.cut(cq.Workpl... | 9 | 52 | 3.27926 |
train_aa8d91b58f89d7c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.141, 0.019, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.126, -0.981).lineTo(-0.126, 1.019).lineTo(-0.002, 1.019).lineTo(-0.002, -0.66).lineTo(0.126, -0.66).lineTo(0.126, -0.981).lineTo(-0.126, -0.981).close().extrude(0.281)
result = result... | 9 | 189 | 0.077805 |
train_7a97e3de72286eaf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.75, -0.303, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.186, 0.548).threePointArc((0.471, 0.597), (0.471, 0.308)).threePointArc((0.721, 0.163), (0.536, -0.058)).threePointArc((0.633, -0.329), (0.35, -0.381)).threePointArc((0.25, -0.652), (0... | 18 | 231 | 1.964208 |
train_34f59672d644d725 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.406, -0.043, 0.268), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.017, 0.951).extrude(0.203)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.321, 0.227, 0.375), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.149).extrude(0.031))
result = result.... | 23 | 172 | 0.737725 |
train_eb5444bf7f7b837d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.021, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.018, 0.669).threePointArc((-0.11, 0.616), (-0.162, 0.489)).lineTo(-0.162, -0.447).threePointArc((-0.11, -0.575), (0.018, -0.627)).lineTo(0.09, -0.627).lineTo(0.162, -0.627).lineTo(0.162, ... | 5 | 38 | 0.20881 |
train_aa56838e1ea7a4e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.713, 0, 0.321), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.371).sweep(cq.Workplane('XZ').spline([(0.342, -0.024), (0.33, 0.257), (0.049, 0.477), (-0.305, 0.331), (-0.451, -0.024), (-0.305, -0.377), (0.049, -0.524), (0.33, -0.304)]))
result = re... | 3 | 6 | 0.460771 |
train_ec3a480bcb8e5523 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.373), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.375).extrude(0.745)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.922, 0.076, -0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.165, 0.13).extrude(0.099))
result = result.cut(cq.W... | 8 | 34 | 1.887809 |
train_19189869e8b334a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.132, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.108, 1.195).extrude(0.746)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.132, -0.35), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.534, 0.55).extrude(1.35))
result = result.union(c... | 10 | 55 | 0.863102 |
train_9035aa09c919290c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.127, -0.286, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.539, 1.127).lineTo(-0.539, 0.26).lineTo(0.22, -0.873).lineTo(0.232, -0.803).lineTo(0.539, 0.936).lineTo(0.539, 0.937).lineTo(-0.539, 1.127).close().extrude(0.724)
result = result.cut... | 20 | 103 | 0.287001 |
train_6a7dbc4082516991 | 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.288).workplane(offset=0.523).circle(0.317).workplane(offset=0.54).circle(0.347).workplane(offset=0.542).circle(0.348).workplane(offset=0.396).circle(0.277).loft()
result = result.edges().fille... | 13 | 34 | 0.626342 |
train_79b92dfa4b4ff974 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.252, 0, -0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.496, 1.458).extrude(0.349)
result = result.faces('>X').shell(-0.038)
result = result.union(cq.Workplane(cq.Plane(origin=(0.252, -0.583 + 0.2915, -0.215), normal=(0, 0, 1), xDir=(1, 0, 0)... | 7 | 24 | 0.236962 |
train_692104e20cc2d920 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.011, -0.746), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.254, -0.005).lineTo(-0.254, 0.005).lineTo(0.254, 0.005).lineTo(0.254, -0.005).lineTo(-0.254, -0.005).close().sweep(cq.Workplane('XY').spline([(-0.192, 0.011), (-0.064, 0.031), (0.064,... | 4 | 16 | 0.002719 |
train_8a9135d916b7f349 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.332, -0.943, -0.005), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.935, 1.163).threePointArc((0.945, 1.138), (0.97, 1.127)).lineTo(0.97, -0.429).threePointArc((0.995, -0.49), (0.935, -0.465)).lineTo(-0.96, -0.465).threePointArc((-0.97, -0.44), (... | 10 | 72 | 4.834248 |
train_271427e7966f4aa3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.254, -0.355), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.093, 0.036).lineTo(0.061, 0.059).lineTo(0.029, 0.036).lineTo(0.093, 0.014).lineTo(0.029, -0.059).lineTo(0.029, -0.011).lineTo(-0.093, -0.059).lineTo(-0.093, 0.036).close().sweep(cq.Wo... | 2 | 11 | 0.023592 |
train_a80611873311aca4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.178, 0.342, -0.47), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.246, 0.901).extrude(0.609)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.062, 0.89, -0.409), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.227, 0.219).extrude(0.313))
result = r... | 16 | 154 | 0.702334 |
train_b46be0f6255be560 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.452, 0.076, -0.544), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.456, 0.2).lineTo(-0.456, 0.018).lineTo(0.456, 0.018).lineTo(0.456, 0.2).lineTo(-0.456, 0.2).close().extrude(0.293)
result = result.edges().fillet(0.013)
result = result.union(cq.... | 9 | 98 | 0.076288 |
train_23c0abe9fd129482 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.088, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.04, -0.173).lineTo(0.04, -0.157).lineTo(-0.175, -0.157).threePointArc((-0.211, -0.035), (-0.172, 0.085)).threePointArc((0, 0.173), (0.172, 0.085)).threePointArc((0.211, -0.035), (0.175, -... | 17 | 121 | 0.216627 |
train_70eb90f9fb3f9926 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.629, -0.829, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.075).lineTo(-1, 1.583).lineTo(-0.749, 1.583).lineTo(-0.749, 0.326).lineTo(1, 0.326).lineTo(1, 0.075).lineTo(-1, 0.075).close().extrude(1.259)
result = result.edges().fillet(0.035)... | 4 | 51 | 0.959049 |
train_3949d99e8adadf57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.046, 0.037, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.833, 0.602).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.276, -0.3, -0.253), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.038).extrude(0.305))
result = result.union(... | 12 | 74 | 0.978079 |
train_5b9f98585609b093 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.132, 0, -0.681), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.143, 2).extrude(1.151)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.051, 0.004, 0.442), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.35, 0.968).extrude(0.463))
result = result.uni... | 6 | 30 | 3.258036 |
train_1ce38a79abbcf23e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.001, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.353, 0.187).lineTo(0.252, 0.521).lineTo(0.353, 0.521).lineTo(0.353, 1.001).lineTo(-0.353, 1.001).lineTo(-0.353, 0.187).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.2... | 13 | 75 | 1.035832 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.