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_d3a25cafc0dd891a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.105, -0.092, -0.445), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.147, -0.049).threePointArc((-0.248, 0.151), (0.147, 0.35)).threePointArc((0.179, 0.322), (0.206, 0.289)).threePointArc((0.248, 0.14), (0.194, -0.004)).threePointArc((0.172, -0.02... | 27 | 143 | 0.206633 |
train_551652f6a1bf5c72 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.791, -0.221, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.015, 0.209).lineTo(0.641, -0.209).lineTo(0.015, -0.209).lineTo(0.015, 0.03).lineTo(-0.451, 0.03).threePointArc((-0.547, -0.022), (-0.641, 0.03)).threePointArc((-0.515, 0.082), (-0.46... | 5 | 12 | 0.154946 |
train_02f6119af46abe2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.232, 0, -0.486), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.536, 1.355).extrude(0.972)
result = result.union(cq.Workplane(cq.Plane(origin=(0.751, 0.212, -0.333), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.249).extrude(0.293))
result = result.cu... | 4 | 18 | 1.833862 |
train_0932224dead421d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.104, -0.047, 0.122), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.004, 0.483).threePointArc((-0.079, 0.476), (-0.159, 0.455)).threePointArc((-0.194, 0.344), (-0.309, 0.369)).threePointArc((-0.415, 0.242), (-0.472, 0.087)).threePointArc((-0.48, 0... | 11 | 49 | 1.027452 |
train_1b4b30c641f58ec9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.578, 0.159, -0.013), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.646, -0.511).lineTo(-0.646, 1.188).threePointArc((0.062, 0.951), (0.769, 1.188)).lineTo(0.769, -0.511).lineTo(0.769, -0.61).lineTo(0.769, -0.756).threePointArc((0.062, -0.842), (... | 29 | 82 | 2.216247 |
train_adb55e70b947e659 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.009, -0.387, -0.368), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.644, 0.461).extrude(0.11)
result = result.union(cq.Workplane(cq.Plane(origin=(0.022, -0.212, -0.252), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.144, 0.547).lineTo(-0.144, -0.315)... | 18 | 204 | 0.33573 |
train_8bfd0daa1ef195c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, -0.01, -0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.042, 0.05).extrude(0.048)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.009, -0.008, 0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.015, 0.031).extrude(0.01))
result = result... | 13 | 96 | 0.000973 |
train_dc1a62617264302f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.255, -0.483, -0.293), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.13, 0.451).threePointArc((-0.056, 0.647), (0.13, 0.745)).lineTo(0.13, 0.451).lineTo(0.107, 0.451).lineTo(0.107, -0.492).lineTo(0.107, -0.745).threePointArc((-0.039, -0.654), (-0... | 7 | 51 | 0.459023 |
train_75bf98eaddaa10c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.119, -0.251), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.237, -0.468).threePointArc((0, -0.705), (0.237, -0.468)).lineTo(0.237, 0.705).threePointArc((0, 0.468), (-0.237, 0.705)).lineTo(-0.237, -0.468).close().sweep(cq.Workplane('XY').spl... | 5 | 23 | 0.718914 |
train_10be1f18b178ac22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.214, -0.831), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.92, 1.573).extrude(1.238)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.368 + 0.184, 0.214, 0.407), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.116, 0.159).lineTo(0.116, -0.159)... | 16 | 67 | 1.691788 |
train_de45bd92fe29b0b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.05, -0.309), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.175).lineTo(-0.084, 0.175).lineTo(-0.051, -0.062).lineTo(0.051, -0.062).lineTo(0.084, 0.175).lineTo(0, 0.175).close().extrude(1.241)
result = result.edges().fillet(0.045)
result = r... | 11 | 71 | 0.037145 |
train_7a8e826dfe65aeef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.625, -0.13, -0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.168, 0.213).extrude(0.069)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.644, -0.098, -0.063), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.044, 0.096).lineTo(0.063, 0.096).li... | 22 | 125 | 0.098673 |
train_2573048cbe8e0c4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.171, 0.049, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.464, 0.413).lineTo(-0.036, 0.698).lineTo(-0.671, 0.289).lineTo(-0.829, -0.007).lineTo(0.694, -0.119).close().moveTo(-0.178, 0.042).lineTo(-0.178, 0.037).lineTo(-0.167, 0.037).line... | 13 | 131 | 0.360269 |
train_0943a451bb916fcc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.011, 0.67, -0.04), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.488, 0.307).threePointArc((0.909, 0.131), (0.747, 0.558)).lineTo(0.747, 1.716).threePointArc((0.572, 1.788), (0.499, 1.964)).lineTo(-0.661, 1.964).threePointArc((-0.733, 1.788), (-0... | 12 | 81 | 3.338127 |
train_9cd9cd5e13607d15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.216, -0.004, -0.488), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.968).lineTo(-0.081, 0.968).lineTo(-0.081, 1.015).lineTo(-0.162, 0.968).lineTo(-0.312, 0.882).lineTo(-0.312, -0.996).lineTo(0, -0.996).lineTo(0, 0.874).lineTo(0.312, 0.694).lin... | 5 | 128 | 0.714006 |
train_3308e729091c3ba5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.24, -0.064), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.03, -0.037).lineTo(0.032, -0.037).lineTo(0.033, -0.004).lineTo(0.044, -0.004).lineTo(0.044, 0.037).lineTo(-0.044, 0.037).lineTo(-0.044, -0.037).lineTo(-0.03, -0.037).lineTo(-0.03, 0.03... | 1 | 12 | 0.002712 |
train_8eed838feeb13b0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.083, -0.412), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.02, 0.985).lineTo(-0.866, 0.985).lineTo(-1, 0.836).lineTo(-1, 0.1).threePointArc((-0.982, 0.056), (-0.938, 0.037)).lineTo(-0.02, 0.037).lineTo(0.247, 0.037).lineTo(0.897, 0.037).thre... | 5 | 50 | 2.472021 |
train_15ad456cf8a5c37d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.217, -0.651, 0.431), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.288, 0.447).lineTo(-0.306, 0.447).threePointArc((-0.113, 0.051), (0.306, -0.085)).threePointArc((0.292, -0.009), (0.288, 0.069)).lineTo(0.288, 0.447).close().extrude(0.985)
result... | 27 | 169 | 0.538249 |
train_a45283437787484c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.613, 0.045, -0.03), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.059, 0.035).lineTo(-0.048, 0.028).lineTo(-0.027, 0.015).lineTo(-0.01, 0.005).lineTo(0.01, -0.008).lineTo(0.027, -0.019).lineTo(0.048, -0.032).lineTo(0.059, -0.039).lineTo(0.059, ... | 14 | 118 | 0.024394 |
train_f5fa6ef7bfd9a8f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 1.129, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.793, 0.697).threePointArc((-0.938, 1.197), (-0.793, 1.697)).lineTo(0.793, 1.697).threePointArc((0.885, 1.505), (0.932, 1.298)).threePointArc((0.938, 1.197), (0.932, 1.095)).threePointArc((... | 10 | 71 | 2.088441 |
train_9c12f6d767f72c1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.944).extrude(0.241)
result = result.union(cq.Workplane(cq.Plane(origin=(0.317, 0.338, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.232, 0.251).lineTo(0.232, 0.247).lineTo(0.328, 0.247)... | 8 | 31 | 0.865642 |
train_b7043085ea644ff4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.119, 0.366, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.46, 0.634).lineTo(0.465, 0.624).lineTo(0.456, 0.421).lineTo(0.098, 0.433).lineTo(0.105, -0.611).lineTo(-0.11, -0.608).lineTo(-0.099, 0.407).lineTo(-0.457, 0.413).close().moveTo(-... | 11 | 161 | 0.443713 |
train_2b41a2915e99f21c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.015, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.798, 0.448).extrude(1.824)
result = result.union(cq.Workplane(cq.Plane(origin=(0.002, 0.224, -0.555), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.016).extrude(0.235))
result = result.cut(cq... | 10 | 66 | 0.656617 |
train_e9cd32ab5105fff6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.406), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.232).extrude(0.812)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.062, 0.066, -0.544), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.193).extrude(0.974))
| 2 | 7 | 1.905747 |
train_44cded55cb48d67e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.151, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.124, 0.16).lineTo(0.124, 0.158).lineTo(0.147, 0.158).lineTo(0.147, -0.177).lineTo(0.124, -0.177).lineTo(0.124, -0.009).threePointArc((-0.001, 0.084), (-0.124, -0.011)).lineTo(-0.124, -... | 11 | 53 | 0.056845 |
train_441ef69bd8e67178 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.572, 0.072), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.441).sweep(cq.Workplane('YZ').spline([(-0.572, 0.072), (-0.245, 0.165), (0.082, 0.182), (0.41, 0.09), (0.738, -0.078)]))
result = result.edges().chamfer(0.016)
result = result.cut(cq.... | 5 | 29 | 0.237544 |
train_ea69bce851866f74 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.213, 0.362, -0.368), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.632, 0.724).threePointArc((0, 0.093), (-0.632, 0.724)).lineTo(-0.545, 0.724).lineTo(0.545, 0.724).lineTo(0.632, 0.724).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(... | 4 | 13 | 0.507686 |
train_4e1aeb76761fc037 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.122, 0.264), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.713, 0).lineTo(-0.491, 0.225).lineTo(0.713, 0.225).lineTo(0.713, -0.225).lineTo(0.413, -0.225).lineTo(0.413, 0).lineTo(-0.713, 0).close().sweep(cq.Workplane('YZ').spline([(-0.122, -0.... | 8 | 89 | 0.187104 |
train_8b1330c9ee0aa6d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.729, 0.998, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 1.937).lineTo(1, 0.222).lineTo(0.714, 0.222).lineTo(0.714, 0.059).lineTo(-1, 0.059).lineTo(-1, 0.629).lineTo(0.429, 0.629).lineTo(0.429, 1.937).lineTo(1, 1.937).close().extrude(1.458)... | 12 | 108 | 2.544974 |
train_9996da1eb4e81b1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.827, 0.474, -0.342), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.421, -0.056).lineTo(0.421, -0.056).lineTo(0.421, 1.004).lineTo(0.247, 0.916).lineTo(-0.421, 0.574).lineTo(-0.421, -0.056).close().extrude(1.188)
result = result.union(cq.Workplan... | 20 | 127 | 1.303708 |
train_9a02caf9e5da205a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.2, -0.293, -0.249), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.751, 0.154).lineTo(-0.751, 0.01).lineTo(0.751, 0.01).lineTo(0.751, 0.154).lineTo(-0.751, 0.154).close().extrude(0.326)
result = result.edges().chamfer(0.037)
result = result.union... | 8 | 88 | 0.144682 |
train_88daad17d34f901f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.027, -0.646), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.348, 0.655).extrude(1.646)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.011, 0.326, -0.371), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.038, 0.055).extrude(0.267))
result ... | 10 | 205 | 0.355074 |
train_94203a433b90fd8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, -0.006, -0.474), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.099, -0.086).lineTo(0.099, -0.086).lineTo(0.099, 0.098).lineTo(-0.099, 0.098).lineTo(-0.099, -0.086).close().extrude(0.276)
result = result.edges().fillet(0.031)
result = result... | 6 | 61 | 0.016464 |
train_16b8dda9950dda64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.494), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.645, 1.313).extrude(1.055)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.078, -0.8, 0.168), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.433, 0.415).lineTo(-0.433, 0.396).lineTo(-1... | 12 | 91 | 0.722421 |
train_ba24e9565714b5bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.012, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.757, 0.142).lineTo(0.706, 0.142).lineTo(0.706, 0.047).lineTo(1, 0.047).lineTo(1, -0.142).lineTo(-1, -0.142).lineTo(-1, 0.047).lineTo(-0.757, 0.047).lineTo(-0.757, 0.142).close().sweep(... | 9 | 172 | 0.090058 |
train_815e999a2c1bf4bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.159, 0.094, -0.098), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.682, 1.234).extrude(0.078)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.101, -0.039, -0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.644, 0.716).extrude(0.037))
result ... | 16 | 195 | 0.206608 |
train_56c050ed70667637 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.721, -0.805, -0.177), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.097).threePointArc((0.028, -0.028), (0.097, 0)).threePointArc((0.166, 0.166), (0, 0.097)).threePointArc((-0.028, 0.028), (-0.097, 0)).threePointArc((-0.166, -0.166), (0, -0.0... | 1 | 6 | 0.018419 |
train_dde6ac3b69485ae5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.226, 0, -0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.406, 1.477).extrude(0.802)
result = result.union(cq.Workplane(cq.Plane(origin=(0.469, -0.432, 0.541), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.459, 0.561).lineTo(-0.459, 0.637).lin... | 10 | 46 | 1.566719 |
train_eeb030381c80579e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, 0, 0.011), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.155).workplane(offset=0.075).circle(0.136).workplane(offset=0.094).circle(0.158).workplane(offset=0.088).circle(0.18).workplane(offset=0.071).circle(0.177).workplane(offset=0.07).circ... | 21 | 134 | 0.13619 |
train_53eac6570c7b25df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.086, -0.526), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.807).extrude(1.052)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, 0.185, -0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.4, 0.28).extrude(0.127))
result = result.cut(cq.W... | 22 | 145 | 0.835169 |
train_fbe35fa9eb9e98a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.225, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.266).extrude(0.137)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.288, 0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.139).extrude(0.016))
result = result.union(c... | 12 | 109 | 0.280637 |
train_12b17a5cd8a7ffc9 | 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, 1.339).extrude(1.351)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.034, -0.094, -0.602), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.258, 1.607).extrude(0.339))
result = result.cut(cq... | 12 | 66 | 3.136324 |
train_08d6bb67e6935659 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.164, 0.204, -0.398), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.062, 0.796).lineTo(-0.062, 0.796).lineTo(-0.062, -0.441).threePointArc((-0.009, -0.494), (-0.062, -0.547)).lineTo(-0.062, -0.618).lineTo(0.061, -0.618).lineTo(0.061, 0.796).close(... | 10 | 122 | 0.291628 |
train_09b86446e1599d84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.304, 0.368, 0.105), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.368, 0.073).lineTo(-0.368, 0.368).lineTo(0.368, 0.368).lineTo(0.368, 0.073).lineTo(-0.368, 0.073).close().revolve(angleDegrees=180, axisStart=(-0.368, 0.073), axisEnd=(-0.368, 0.1... | 9 | 47 | 0.260925 |
train_46a3148f46ff8132 | 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.958).extrude(0.746)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.188, 0.381).lineTo(0.188, 0.369).lineTo(0.176, 0.369).lineTo... | 19 | 87 | 2.230557 |
train_7d02596a743571f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.239, 0.184), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.024, 0.072).lineTo(0.024, -0.245).lineTo(-0.024, -0.245).lineTo(-0.024, 0.353).lineTo(0.024, 0.353).lineTo(0.024, 0.072).close().extrude(0.791)
result = result.union(cq.Workplane(cq.P... | 11 | 104 | 0.344967 |
train_2470905e55e91a33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.341, 0.172).extrude(0.157)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.069 + 0.023, 0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.002, 0.006).lineTo(-0.001, 0.008).lineTo... | 15 | 98 | 0.073935 |
train_7b3c99baa10d09d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.201, 0.43, 0.22), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.899, 0.485).lineTo(-0.726, 1.424).lineTo(-0.899, 1.524).lineTo(-0.899, -0.553).lineTo(-0.726, -0.454).lineTo(0.899, 0.485).close().extrude(1.401)
result = result.edges().fillet(0.441... | 11 | 82 | 1.668267 |
train_29443995624914d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.405), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.285).extrude(0.811)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.867, -0.306, 0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.044, 0.395).lineTo(-0.657, 0.395).lineTo(-0.657, 0... | 9 | 76 | 1.841845 |
train_4516c03371138dc1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.583, 0.342, 0.066), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.062, 0.079).lineTo(-0.062, 0.054).lineTo(-0.078, 0.054).lineTo(-0.078, -0.039).lineTo(-0.062, -0.039).lineTo(-0.062, -0.079).lineTo(0.064, -0.079).lineTo(0.064, -0.052).lineTo(0.... | 17 | 135 | 0.200388 |
train_b366c8647e2b394e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.792, 0.007, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.036, -0.019).lineTo(0.036, 0.019).lineTo(-0.036, 0.019).lineTo(-0.036, -0.006).lineTo(-0.034, -0.006).lineTo(-0.034, -0.019).lineTo(0.036, -0.019).close().sweep(cq.Workplane('XY').splin... | 5 | 24 | 0.001841 |
train_3037db22cd9e4f38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.122, 0.082, -0.052), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.878, -0.092).lineTo(-0.878, -0.092).lineTo(-0.878, 0.092).lineTo(0.878, 0.092).lineTo(0.878, -0.092).close().sweep(cq.Workplane('YZ').spline([(0.082, -0.266), (0.099, -0.208), (0.... | 8 | 54 | 0.079267 |
train_b90060674d1c2881 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.025, -0.003, -0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.039, 0.012).extrude(0.018)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.002, -0.001, 0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.002, 0.01).lineTo(-0.998, 0.01).l... | 4 | 45 | 0.000079 |
train_a6ecbcfd38b2c54f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.31, 0.003, 0.416), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.252, 0.3).lineTo(0.252, -0.238).lineTo(-0.071, -0.238).threePointArc((-0.082, -0.262), (-0.099, -0.283)).threePointArc((-0.107, -0.289), (-0.114, -0.293)).threePointArc((-0.197, -0... | 11 | 81 | 0.310445 |
train_8b1f4c26c22fc5ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.635), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.672, 1.441).extrude(1.127)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.454), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.302).extrude(0.546))
result = result.union(cq.Workpla... | 5 | 38 | 3.270996 |
train_a4c142f591807c06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.646, 0.569, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.753, 0.611).lineTo(-0.347, 1.315).lineTo(0.093, 1.061).lineTo(0.753, 0.68).lineTo(0.347, -0.024).lineTo(-0.313, 0.357).lineTo(-0.753, 0.611).close().workplane(offset=0.231).moveTo(-0.... | 35 | 83 | 1.365072 |
train_7f41945072ec6518 | 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.951, 1.734).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.465, -0.202, -0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.191).extrude(0.363))
result = result.edges().chamfer(0... | 11 | 84 | 5.036 |
train_bc8104e6cea619f4 | 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.679, 0.771).extrude(0.745)
result = result.union(cq.Workplane(cq.Plane(origin=(0.044, -0.215, -0.358), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.08, 0.055).extrude(1.358))
result = result.cut(cq... | 6 | 66 | 0.332997 |
train_9b7fcdb7c7bb958d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.101), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.3, -0.404).threePointArc((-0.704, 0), (-0.3, 0.404)).lineTo(0.3, 0.404).threePointArc((0.704, 0), (0.3, -0.404)).lineTo(-0.3, -0.404).close().workplane(offset=0.263).moveTo(-0.214, -0.288... | 12 | 57 | 0.478334 |
train_fac421e986addfcd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.086, -0.763), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, -0.484).lineTo(0.996, 0.092).threePointArc((0.86, 0.59), (0.492, 0.954)).threePointArc((-0.008, 1.084), (-0.506, 0.947)).threePointArc((-0.869, 0.58), (-1, 0.08)).threePointArc((-0.8... | 7 | 86 | 3.556388 |
train_ed9f017dfb1dc999 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.45, -0.009, 0.22), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.743).lineTo(0.5, 0.079).lineTo(0.109, 0.079).lineTo(0.109, 0.351).lineTo(0.022, 0.351).lineTo(0.022, -0.301).lineTo(-0.454, -0.301).threePointArc((-0.35, -0.103), (-0.5, 0.064)... | 32 | 101 | 0.877875 |
train_7cf735a99e53ca59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.036, 0.023, 0.233), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.007, 0.024).threePointArc((0.004, 0.012), (0.019, 0.008)).lineTo(0.019, -0.006).threePointArc((-0.003, 0), (-0.019, 0.017)).lineTo(-0.007, 0.024).close().extrude(0.058)
result = r... | 17 | 162 | 0.049382 |
train_e537eb600d88a5fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.183, -0.343, 0.088), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.349, 0.049).lineTo(-0.349, 0.049).lineTo(-0.349, 0.528).lineTo(-0.239, 0.637).lineTo(0.349, 0.049).close().extrude(0.817)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.5... | 8 | 40 | 0.302453 |
train_42a7713c1db810cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.533, -0.52), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.969, 0.934).extrude(1.218)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.116, -0.525, -0.698), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.344, 0.658).extrude(0.195))
result = res... | 10 | 52 | 2.153538 |
train_043b0015d8f2e857 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.233, -0.142, 0.204), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.242, 0.412).lineTo(-0.242, 0.293).lineTo(-0.255, 0.293).lineTo(-0.255, 0.256).lineTo(-0.242, 0.256).lineTo(-0.242, 0.039).lineTo(0.242, 0.039).lineTo(0.242, 0.256).lineTo(0.255, ... | 16 | 74 | 0.343924 |
train_6ae50a9cf99dcf6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.761, 0.018, -0.801), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.382, -0.068).lineTo(-0.199, -0.068).lineTo(-0.199, 0.104).lineTo(0.382, 0.104).lineTo(0.382, -0.068).lineTo(-0.382, -0.068).close().extrude(1.521)
result = result.union(cq.Workpl... | 7 | 30 | 0.161331 |
train_7ffdaa6b79512c93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, -0.137, -0.143), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.613, 0.311).lineTo(0.857, 0.311).lineTo(0.857, 0.215).lineTo(0.662, 0.215).lineTo(0.662, 0.025).lineTo(-0.857, 0.025).lineTo(-0.857, 0.215).lineTo(-0.613, 0.215).lineTo(-0.613, ... | 24 | 299 | 0.03268 |
train_d7d2c18333a55065 | 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.889, 1).lineTo(0.889, 0.598).lineTo(-0.652, 0.598).lineTo(-0.652, 0.408).lineTo(-0.889, 0.408).lineTo(-0.889, 1).lineTo(0.889, 1).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0... | 2 | 14 | 2.467192 |
train_352531f203fb9119 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.159, 0.645, 0.287), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.713, -0.078).lineTo(-0.238, 0.396).lineTo(0.713, 0.396).lineTo(0.713, -0.078).lineTo(-0.713, -0.078).close().extrude(1.29)
result = result.edges().chamfer(0.17)
result = result.cu... | 26 | 211 | 0.484456 |
train_575ea9539eee54d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.67, -0.605, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 1.511).lineTo(-1, -0.17).lineTo(-0.692, -0.17).lineTo(-0.692, 0.476).lineTo(1, 0.476).lineTo(1, 0.865).lineTo(-0.692, 0.865).lineTo(-0.692, 1.511).lineTo(-1, 1.511).close().extrude(1... | 26 | 415 | 0.666131 |
train_05bc2641819845ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.578, -0.022, -0.198), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.274).workplane(offset=0.349).circle(0.191).workplane(offset=0.265).circle(0.256).workplane(offset=0.268).circle(0.311).workplane(offset=0.274).circle(0.168).loft()
result = resul... | 13 | 298 | 0.524145 |
train_d8b1c532ceee7316 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.264, -0.295), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.268, 1.472).extrude(0.497)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.344, 0.472, -0.081), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.297, 0.478).threePointArc((0.405, 0.401)... | 10 | 515 | 0.631243 |
train_7c460d9c6b6bd216 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.384, -0.314, 0.827), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.724, -0.513).lineTo(0.724, 1.373).lineTo(0.724, -0.513).lineTo(-0.724, -0.513).close().revolve(angleDegrees=90, axisStart=(-0.724, -0.513), axisEnd=(0.724, 1.373))
result = resul... | 23 | 88 | 0.872689 |
train_cc48fd3d4f70b74f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.42, 0.312, -0.46), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.879, 1.375).extrude(0.73)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.359, 0.61, -0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.055, 0.505).extrude(0.227))
result = result.... | 8 | 37 | 1.392648 |
train_59548e579df58450 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.923, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1.066).workplane(offset=0.3).circle(0.948).workplane(offset=0.284).circle(0.831).workplane(offset=0.295).circle(0.713).workplane(offset=0.341).circle(0.595).workplane(offset=0.277).circle(0.... | 9 | 29 | 2.072666 |
train_3e821d3579971b3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.272, 0.118), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.603, -0.728).lineTo(0.603, -0.728).threePointArc((0, 0.728), (-0.603, -0.728)).close().sweep(cq.Workplane('YZ').spline([(-0.272, 0.118), (0.184, 0.118), (0.377, -0.002), (0.571, -0.1... | 2 | 8 | 0.64736 |
train_61d6cbaa05a67840 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.949, 0.814, 0.1), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.904, 0.617).threePointArc((0.513, 1.561), (-0.432, 1.953)).lineTo(-0.432, 1.285).threePointArc((-0.904, 0.145), (0.236, 0.617)).lineTo(0.904, 0.617).close().extrude(1.628)
result = r... | 13 | 60 | 2.451896 |
train_e3959c45b387357a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.536, -0.018, -0.265), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.072, -0.212).lineTo(-0.388, -0.212).lineTo(-0.388, -0.006).lineTo(-0.309, -0.006).lineTo(-0.309, -0.133).lineTo(-0.151, -0.133).lineTo(-0.151, 0.058).threePointArc((-0.178, 0.2... | 1 | 14 | 0.15066 |
train_30f6b4fb54c488ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.189, -0.03, -0.131), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.215, -0.086).lineTo(-0.215, 0.086).lineTo(0.215, 0.086).lineTo(0.215, -0.086).lineTo(-0.172, -0.086).lineTo(-0.172, 0.017).lineTo(-0.189, 0.017).lineTo(-0.189, -0.086).lineTo(-0.... | 21 | 445 | 0.038233 |
train_c7a358dcee853ef3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, -0.034, -0.803), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.859, 0.354).extrude(0.581)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.227, 0.036, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.049).extrude(1.326))
result = res... | 8 | 43 | 0.232655 |
train_1a8c49d5b6856521 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.364, -1, -0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.168, 0.264).lineTo(-0.731, 0.239).lineTo(-0.274, -0.062).lineTo(0.004, -0.264).lineTo(0.281, -0.062).lineTo(0.731, 0.264).lineTo(-0.168, 0.264).close().sweep(cq.Workplane('XY').spl... | 2 | 29 | 0.231067 |
train_f7cf2507f8e4f647 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.04, 0.077, -0.74), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.001, 0.011).lineTo(0.26, 0.011).lineTo(0.26, 0.11).lineTo(-0.26, 0.11).lineTo(-0.26, 0.011).lineTo(-0.001, 0.011).close().extrude(0.112)
result = result.edges().fillet(0.005)
resul... | 20 | 123 | 0.010068 |
train_89705b0c287388ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.571, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.289, -0.07).lineTo(0.289, 1.086).lineTo(-0.289, 1.086).lineTo(-0.289, -0.07).lineTo(0.289, -0.07).close().extrude(2.025)
result = result.edges().chamfer(0.274)
result = result.union(cq.Wo... | 7 | 48 | 0.617282 |
train_944efc5d7d7c06e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.398, 0.507, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.465, 1.199).threePointArc((0.614, 0.798), (0.465, 0.398)).lineTo(-0.465, 0.398).threePointArc((-0.614, 0.798), (-0.465, 1.199)).threePointArc((0, 1.412), (0.465, 1.199)).close().revolv... | 11 | 72 | 1.374216 |
train_9250209d478419e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.633, -0.562, -0.112), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.33, 0.876).lineTo(0.33, -0.067).lineTo(-0.142, -0.067).lineTo(-0.142, 0.216).threePointArc((-0.33, 0.405), (-0.142, 0.593)).lineTo(-0.142, 0.876).lineTo(0.33, 0.876).close().extr... | 19 | 128 | 0.5148 |
train_de0b87bd11ad651e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.238, 0.62, 0.428), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.572, 0.333).lineTo(0.572, 0.056).lineTo(-0.203, 0.056).lineTo(-0.203, -0.221).lineTo(-0.572, -0.221).lineTo(-0.572, 0.333).lineTo(0.572, 0.333).close().extrude(1.239)
result = resul... | 8 | 77 | 0.929102 |
train_cfda9d030e399a9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.03, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.988, 0.463).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.172, 0.231, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.108, 0.062).extrude(0.198))
result = result.cut(cq.... | 11 | 66 | 0.873402 |
train_2b506e0e095f6487 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.838, -0.062, 0.01), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.736).workplane(offset=0.298).circle(0.671).workplane(offset=0.305).circle(0.607).workplane(offset=0.327).circle(0.542).workplane(offset=0.308).circle(0.477).workplane(offset=0.328)... | 9 | 41 | 1.328351 |
train_ff4fae79bc151514 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.005, -0.458, -0.522), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.015, -0.308).threePointArc((0.159, -0.337), (0.188, -0.193)).lineTo(0.267, -0.005).threePointArc((0.342, 0.136), (0.188, 0.184)).threePointArc((0.141, 0.337), (0, 0.262)).lineTo... | 3 | 25 | 0.513475 |
train_fa727c0c28271557 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.461, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.699, -0.238).lineTo(0.699, 0.393).threePointArc((-0.28, 0.181), (-0.069, 1.161)).lineTo(-0.699, 1.161).lineTo(-0.699, 0.046).threePointArc((-0.616, -0.155), (-0.415, -0.238)).lineTo(0.699... | 15 | 108 | 1.180734 |
train_0b32e7e0b240c01f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.12, 0.207, 0.121), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.134, 1).threePointArc((0.011, 1.07), (0.134, 1.176)).lineTo(0.134, -0.901).lineTo(-0.134, -0.901).lineTo(-0.134, 1).close().workplane(offset=0.071).moveTo(-0.115, 0.878).threePoint... | 13 | 93 | 0.076794 |
train_862631775c0ee9e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.126, 0.009, -0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.148, 0.6).lineTo(0.166, 0.601).lineTo(0.144, 0.176).lineTo(0.874, 0.148).lineTo(0.873, -0.15).lineTo(0.184, -0.147).lineTo(0.138, -0.598).lineTo(-0.183, -0.594).lineTo(-0.138, -0.... | 15 | 145 | 0.347309 |
train_6ba6f6ac90d7b15b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.854, -0.434, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.06).lineTo(-1, -0.013).lineTo(-0.219, -0.013).lineTo(-0.219, -0.55).lineTo(1, -0.55).lineTo(1, 1.06).lineTo(-1, 1.06).close().extrude(1.708)
result = result.edges().chamfer(0.247)... | 20 | 81 | 2.599344 |
train_d9e8cf48eeb18cd4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.14, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.139, -0.144).lineTo(0.139, -0.144).lineTo(0.139, 0.433).lineTo(0.139, 0.423).lineTo(-0.139, 0.423).lineTo(-0.139, -0.144).close().extrude(1.736)
result = result.edges().chamfer(0.054)
res... | 11 | 78 | 0.259535 |
train_a10e59d5361bcf5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.414, 0.446), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.279, 0.256).extrude(0.262)
result = result.union(cq.Workplane(cq.Plane(origin=(0.026, -0.029, 0.565), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.012, 0.629).extrude(0.033))
result = ... | 6 | 61 | 0.220292 |
train_6536a68e795b0cc3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.428, -0.007, 0.51), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.504, -0.075).lineTo(-0.504, 0.932).lineTo(0.504, 0.932).lineTo(0.504, -0.075).lineTo(-0.504, -0.075).close().revolve(angleDegrees=270, axisStart=(-0.504, -0.075), axisEnd=(-0.504,... | 9 | 46 | 2.050624 |
train_aac3a401c7db7505 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.249, 0.007, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.118, 0.561).lineTo(0.12, 0.564).lineTo(0.158, 0.143).lineTo(0.778, 0.139).lineTo(0.763, -0.125).lineTo(0.118, -0.15).lineTo(0.128, -0.579).lineTo(-0.137, -0.577).lineTo(-0.151, -... | 8 | 64 | 0.227245 |
train_293df39fff785a0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.448, 1, 0.069), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.55, 1.299).threePointArc((0.138, 0.418), (-0.193, -0.497)).threePointArc((-0.55, 0.703), (0.55, 1.299)).close().extrude(2)
result = result.edges().fillet(0.111)
result = result.cut(cq.... | 14 | 84 | 1.944565 |
train_4dbc3992f618aa87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.071, -1, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.566, 2.079).threePointArc((-0.063, 1.862), (-0.566, 1.426)).lineTo(0.566, 0.772).lineTo(0.566, 2.079).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.396, 0))
result = resu... | 10 | 48 | 1.646134 |
train_63a895b57cb7c015 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.457), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.406).extrude(0.959)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.07, 0.496), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.632).extrude(0.104))
result = result.union(cq.Workpl... | 16 | 122 | 2.345178 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.