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_f3296b124829ab08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.061, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, -0.468).lineTo(1, -0.457).lineTo(0.949, 0.467).lineTo(-0.999, 0.471).close().moveTo(0.107, -0.001).lineTo(0.076, 0.077).lineTo(0, 0.105).lineTo(-0.076, 0.074).lineTo(-0.107, -0.001)... | 12 | 74 | 0.212608 |
train_ba0c9260c678038b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.807, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.754, 0.931).threePointArc((0.626, 0.808), (0.754, 0.684)).lineTo(0.804, 0.684).threePointArc((0.775, 0.556), (0.724, 0.434)).lineTo(0.682, 0.464).threePointArc((0.507, 0.439), (0.537, 0.26... | 4 | 184 | 1.707401 |
train_09ebead532f324d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.079, -0.012, -0.07), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.008, -0.679).threePointArc((-0.247, -0.011), (-0.433, 0.679)).threePointArc((0.433, 0.21), (0.008, -0.679)).close().sweep(cq.Workplane('XZ').spline([(0.323, -0.925), (0.483, -0.9... | 5 | 12 | 0.656119 |
train_0047d07c8ed53384 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.661, 0.385, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.31, -0.188).threePointArc((0.31, 0), (-0.31, 0.188)).lineTo(-0.31, -0.188).close().sweep(cq.Workplane('XY').spline([(0.661, 0.049), (0.432, 0.16), (0.151, 0.144), (-0.05, 0.011), (-0.0... | 3 | 28 | 0.242488 |
train_e66fbb7508e295d9 | 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.307).workplane(offset=0.601).circle(0.264).workplane(offset=0.748).circle(0.22).workplane(offset=0.651).circle(0.178).loft()
result = result.edges().chamfer(0.093)
result = result.cut(cq.Workp... | 14 | 76 | 0.268495 |
train_5ad6ccf1de2664f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, 0.222, 0.441), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.137, 0.284).lineTo(-0.137, -0.284).lineTo(0.137, -0.284).lineTo(0.137, -0.277).lineTo(-0.13, -0.277).lineTo(-0.13, 0.277).lineTo(-0.002, 0.277).lineTo(-0.002, 0.284).lineTo(-0.137,... | 7 | 64 | 0.069843 |
train_485006981adc1c52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.204, -0.121, -0.359), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.593, 0.986).extrude(0.816)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.057, -0.107, -0.593), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.219).extrude(0.253))
result = res... | 25 | 66 | 1.137117 |
train_81927d623ffbf3c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.028, 0.447, -0.155), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.823, 0.23).lineTo(-0.845, 0.23).lineTo(-0.845, -0.174).lineTo(0.845, -0.174).lineTo(0.845, -0.013).lineTo(-0.823, -0.013).lineTo(-0.834, -0.013).lineTo(-0.834, 0.069).lineTo(-0.8... | 9 | 54 | 0.499514 |
train_06603cb09e5db8c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.105, 0, -0.484), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.791, 1.509).extrude(0.051)
result = result.union(cq.Workplane(cq.Plane(origin=(0.187, 0.094, -0.411), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.377, 0.618).threePointArc((0.612, 0.404... | 5 | 58 | 0.675136 |
train_714517cc0824e66f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.209, 0.438, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.657, 0.35).threePointArc((-0.797, 0.209), (-0.657, 0.069)).lineTo(0.657, 0.069).threePointArc((0.797, 0.209), (0.657, 0.35)).lineTo(-0.657, 0.35).close().workplane(offset=0.141).moveT... | 8 | 23 | 0.255776 |
train_54a8ed909472e03e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.498).workplane(offset=0.572).circle(0.497).workplane(offset=0.453).circle(0.47).workplane(offset=0.522).circle(0.493).workplane(offset=0.454).circle(0.451).loft()
result = result.edges().chamf... | 4 | 8 | 1.144246 |
train_535bdebb891c1d45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.614, -0.097, 0.004), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.114, 1.128).lineTo(0.114, 1.128).lineTo(0.114, 0.097).lineTo(0.281, -0.647).lineTo(0.344, -0.934).lineTo(-0.114, -0.934).lineTo(-0.114, -0.647).lineTo(-0.344, -0.647).lineTo(-0.3... | 6 | 72 | 0.537936 |
train_5657c61b751ebb85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.653, 0.536, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.93, 0.366).lineTo(0.93, 0.024).lineTo(-0.93, 0.024).lineTo(-0.93, 0.366).lineTo(0.93, 0.366).close().extrude(0.659)
result = result.edges().chamfer(0.032)
result = result.cut(cq.Workpl... | 23 | 352 | 0.634121 |
train_3614fb69be7c2f2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.671, 0, 0.43), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.329, -0.09).threePointArc((-0.207, -0.271), (0, -0.341)).threePointArc((0.207, -0.271), (0.329, -0.09)).lineTo(0.329, 0.09).threePointArc((0, 0.341), (-0.329, 0.09)).lineTo(-0.329, -0.0... | 8 | 61 | 0.009258 |
train_ae9eaf092a650808 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.071, -0.574, -0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.912, 0.851).extrude(0.133)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.054, -0.067, -0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.763, 0.177).extrude(0.09))
result ... | 30 | 228 | 0.614666 |
train_f4c0f60e2b2182d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.578), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.057, 0.95).lineTo(-0.794, 0.524).lineTo(0.057, -0.95).lineTo(0.794, -0.524).lineTo(0.737, -0.426).lineTo(0.099, -0.795).lineTo(-0.639, 0.482).lineTo(0, 0.852).lineTo(-0.057, 0.95).close()... | 3 | 24 | 0.345133 |
train_4ea16b483bbd613f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.075, -0.033, -0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.305, 0.336).extrude(0.006)
result = result.union(cq.Workplane(cq.Plane(origin=(0.041, -0.046, -0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.101, 0.135).extrude(0.008))
result =... | 9 | 98 | 0.028677 |
train_a39ae692868791b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.498, -0.014, -0.474), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.005, 0.683).extrude(0.722)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.588, 0.013, 0.314), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.209, 0.989).lineTo(0.01, 0.84).li... | 27 | 183 | 0.316821 |
train_b3434ae9684e9645 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, 0.34, -0.268), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.542, -0.148).lineTo(-0.542, 0.296).lineTo(-0.228, 0.296).threePointArc((0.125, 0.491), (0.477, 0.296)).threePointArc((0.518, 0.211), (0.539, 0.119)).threePointArc((0.542, 0.074),... | 17 | 185 | 1.062096 |
train_6e748d5d9be87173 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.34, -0.319), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.021).lineTo(1, 0.021).lineTo(1, 0.669).lineTo(-1, 0.669).lineTo(-1, 0.021).close().revolve(angleDegrees=90, axisStart=(-1, 0.021), axisEnd=(1, 0.021))
result = result.edges().fille... | 26 | 56 | 0.619766 |
train_f4e10a8cfeefd9d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.501, -0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.006, 0.028).lineTo(-0.79, 0.286).lineTo(-0.974, 0.888).lineTo(-1, 0.974).lineTo(-0.769, 0.974).lineTo(-0.769, 0.888).lineTo(-0.839, 0.888).lineTo(-0.686, 0.388).lineTo(0.006, 0.163).l... | 5 | 61 | 0.1748 |
train_f78a2ff469f42f29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.151, -0.343, -0.206), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.413, 0.413).extrude(0.222)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.014, -0.322, 0.027), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.12, 0.365).lineTo(-0.12, 0.377).... | 17 | 123 | 0.10414 |
train_e8eedcf8049bcae9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.002), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.873, 0.052).lineTo(1, 0.052).lineTo(0.911, -0.037).threePointArc((0.894, -0.048), (0.873, -0.052)).lineTo(-0.873, -0.052).threePointArc((-0.894, -0.048), (-0.911, -0.037)).lineTo(-1, 0.05... | 9 | 24 | 0.000859 |
train_2e835c573e7c0ed4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.414).workplane(offset=0.355).circle(0.407).workplane(offset=0.294).circle(0.417).workplane(offset=0.347).circle(0.422).workplane(offset=0.356).circle(0.42).workplane(offset=0.359).circle(0.412... | 17 | 64 | 0.676974 |
train_2fc26d0de21e2d2f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.152, 0.161, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.012).lineTo(-1, 0.279).lineTo(-0.967, 0.312).lineTo(0.967, 0.312).lineTo(1, 0.279).lineTo(1, 0.012).lineTo(-1, 0.012).close().extrude(0.304)
result = result.edges().fillet(0.011)
r... | 13 | 67 | 0.163807 |
train_b8de929000eb41d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.211, 0.002, -0.353), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.785, -1.002).lineTo(0.77, -0.982).lineTo(0.785, 0.998).lineTo(-0.763, 0.997).close().moveTo(-0.152, -0.233).lineTo(0.151, -0.233).lineTo(0.151, 0.228).lineTo(-0.152, 0.232).close(... | 11 | 73 | 1.05149 |
train_a8e62b8028fabfaf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.408, 0, -0.767), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.434, 0.505).extrude(0.475)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.798, 0.106, -0.691), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.403, 0.047).extrude(0.03))
result = resu... | 5 | 24 | 0.11279 |
train_a83bd5ea8f0b934b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.046, 3.075, 0.027), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.773, 3.196).lineTo(-0.773, 2.864).lineTo(0.289, 1.69).lineTo(0.773, 3.196).close().revolve(angleDegrees=270, axisStart=(0.773, 3.196), axisEnd=(-0.773, 2.864))
result = result.edge... | 8 | 62 | 1.436724 |
train_36b5495ef43bff50 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.081, 0.015, -0.072), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.928, 0.15).lineTo(0.928, 0.013).lineTo(-0.928, 0.013).lineTo(-0.928, 0.15).lineTo(0.928, 0.15).close().extrude(0.027)
result = result.union(cq.Workplane(cq.Plane(origin=(0.017, -0... | 10 | 48 | 0.011753 |
train_2da65e7d3e19dc1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.025, -0.727), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.637, 1.049).extrude(1.727)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.148, -0.524, 0.143), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.027).extrude(0.136))
result = result.cu... | 10 | 63 | 1.207586 |
train_f9799ba3614e985d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.298, -0.372), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.494, 0.528).lineTo(0.34, 0.261).lineTo(-0.494, 0.743).lineTo(-0.494, 0.817).lineTo(-0.005, 0.817).lineTo(0.494, 0.528).close().revolve(angleDegrees=360, axisStart=(0.494, 0.528), axi... | 3 | 31 | 0.708513 |
train_4cdf4b707f4f1a7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.894, 0, 0.277), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.72).lineTo(0.432, -0.72).lineTo(0.432, -0.605).lineTo(0.086, -0.605).lineTo(0.086, 0.72).lineTo(-0.086, 0.72).lineTo(-0.086, 0.201).lineTo(-0.432, 0.201).lineTo(-0.432, 0.086).lineT... | 12 | 34 | 0.735365 |
train_b1f020ec8a5b013a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, 0, 0.139), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.247, 1).lineTo(-0.247, -1).lineTo(0.247, -1).lineTo(0.247, 1).lineTo(-0.247, 1).close().extrude(0.509)
result = result.edges().chamfer(0.105)
result = result.union(cq.Workplane(cq.Pla... | 10 | 100 | 0.254374 |
train_26ccda832d41207a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.634, 1, 0.05), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.636, 0.872).threePointArc((-0.369, -0.136), (0.636, 0.137)).lineTo(0.636, 1.607).lineTo(-0.636, 0.872).close().extrude(2)
result = result.edges().chamfer(0.208)
result = result.cut(cq.... | 26 | 30 | 2.953975 |
train_e25cffd1a317af94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.288), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.699, 2).extrude(0.576)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.119, -0.182, -0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.039, 0.185).extrude(0.087))
result = result.cut(cq... | 10 | 82 | 1.738457 |
train_c7d510c1867b1275 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.16, 0, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.445, 0.612).extrude(0.014)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.018, -0.041, -0.25), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.225, 0.123).lineTo(0.037, 0.123).lineT... | 7 | 98 | 0.129211 |
train_ea0189707a362a33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.285, -0.286, 0.464), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.634, -0.714).lineTo(-0.634, 0.714).lineTo(0.041, 0.714).lineTo(0.041, 0.317).lineTo(0.634, 0.317).lineTo(0.634, -0.476).lineTo(0.041, -0.476).lineTo(0.041, -0.714).lineTo(-0.634,... | 12 | 92 | 0.46646 |
train_230c34f45fb0f8f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.581, -0.825, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.087, 0.1).lineTo(-1.087, 0.463).threePointArc((0, 1.55), (1.087, 0.463)).lineTo(1.087, 0.1).lineTo(-1.087, 0.1).close().workplane(offset=0.332).moveTo(-0.937, 0.2).lineTo(-0.937, 0.5... | 8 | 28 | 2.282159 |
train_199b8017570b444f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.025, -0.12), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.767, 0.026).lineTo(-0.88, 0.026).lineTo(-0.88, 0.684).lineTo(0.88, 0.684).lineTo(0.88, 0.026).lineTo(0.429, 0.026).lineTo(0.429, 0.355).lineTo(0.305, 0.355).lineTo(0.305, 0.026).li... | 10 | 73 | 1.760627 |
train_29b6c6ecd4dfd489 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.094, -0.005, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.079, 0.034).lineTo(0.353, 1.005).lineTo(-0.868, 0.6).lineTo(-0.891, -0.648).lineTo(0.315, -0.995).close().center(0, 0.323).rect(0.336, 0.423).center(-0.298, -0.554).rect(0.276, 0... | 13 | 82 | 1.126772 |
train_eae72e22b092319e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.468, 0.519, 0.239), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.159, 0.062).lineTo(0.212, 0.062).lineTo(0.212, 0.009).lineTo(-0.203, 0.009).lineTo(-0.203, -0.062).lineTo(-0.212, -0.062).lineTo(-0.212, 0.062).lineTo(0.159, 0.062).close().transf... | 2 | 13 | 0.178069 |
train_8c7da808a9848410 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.199, 0.482, 0.535), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.452).workplane(offset=0.177).circle(0.425).workplane(offset=0.141).circle(0.465).workplane(offset=0.177).circle(0.427).workplane(offset=0.186).circle(0.455).loft()
result = result... | 10 | 44 | 0.552024 |
train_f7c515b5e38e4341 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.523, -0.764, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 1.238).lineTo(0.217, 1.562).lineTo(0.293, 1.18).lineTo(0.541, 1.014).lineTo(0.706, 0.766).lineTo(0.765, 0.473).lineTo(0.706, 0.182).lineTo(0.541, -0.068).threePointArc((0.733, -0.256... | 10 | 167 | 3.249171 |
train_66dd01396b3660ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.077, -0.454, -0.458), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.287, 0.143).lineTo(-0.233, -0.021).lineTo(-0.287, 0.152).lineTo(0.059, 0.261).lineTo(0.005, 0.434).lineTo(0.178, 0.489).lineTo(0.287, 0.143).close().extrude(1.077)
result = resul... | 12 | 120 | 0.722691 |
train_b60c0c81781af596 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.009, 0.058, 0.134), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.902, -0.331).lineTo(-0.902, -0.272).lineTo(-0.666, -0.272).lineTo(-0.666, 0.272).lineTo(-0.337, 0.272).lineTo(-0.337, -0.272).lineTo(0.047, -0.272).lineTo(0.047, 0.272).lineTo(0.1... | 32 | 311 | 0.267173 |
train_e8737dc10932c6cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.298, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.417, 0.04).lineTo(-0.417, 0.323).lineTo(-0.311, 0.323).lineTo(-0.311, 0.429).threePointArc((0, 0.557), (0.311, 0.429)).lineTo(0.311, 0.323).lineTo(0.417, 0.323).lineTo(0.417, 0.04).lineT... | 6 | 130 | 0.219303 |
train_baf7a83be243a232 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, 0.254, 0.165), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.005, -0.746).lineTo(0.005, 0.34).lineTo(-0.131, 0.34).lineTo(-0.131, 0.746).lineTo(0.131, 0.746).lineTo(0.131, -0.746).lineTo(0.005, -0.746).close().sweep(cq.Workplane('XZ').splin... | 4 | 54 | 0.267188 |
train_dc6b3c484ef1a298 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.262, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.266, -0.921).lineTo(0.266, 1.445).lineTo(-0.159, 0.502).lineTo(-0.266, 0.262).lineTo(-0.159, 0.022).lineTo(0.266, -0.921).close().extrude(0.413)
result = result.edges().fillet(0.... | 16 | 177 | 0.200464 |
train_ce7a2f9ab7a41f77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.423, 0, -0.274), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.155, 1.634).extrude(0.047)
result = result.union(cq.Workplane(cq.Plane(origin=(0.332, -0.128, -0.229), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.742, 1.051).extrude(0.056))
result = resu... | 3 | 42 | 0.335598 |
train_d7b3d1fa40c1d2e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.587), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.775, 2).extrude(1.173)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.149, -0.042, -0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.121, 0.98).extrude(0.71))
result = result.cut(cq.W... | 6 | 21 | 3.023137 |
train_d6b4ce23a1be5185 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.001, 0.015), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.372, 0.467).threePointArc((-0.093, 0.993), (0.372, 0.621)).threePointArc((0.064, 0.236), (-0.372, 0.467)).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.255, 0))
r... | 13 | 43 | 0.850149 |
train_5fa31d929bfc8495 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.938, 0.574, 0.069), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.835, 1.574).lineTo(-0.274, 1.574).lineTo(-0.835, 1.167).lineTo(-0.835, -0.722).lineTo(0.835, 1.574).close().extrude(1.875)
result = result.edges().fillet(0.142)
result = result.cut... | 8 | 38 | 3.196342 |
train_619cc65ad3219b26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.32, 0.207, 0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.14, -0.108).lineTo(-0.121, 0.082).lineTo(-0.062, 0.108).lineTo(-0.068, 0.044).lineTo(0.14, -0.108).lineTo(-0.14, -0.108).close().sweep(cq.Workplane('YZ').spline([(0.207, -0.073), (0... | 2 | 33 | 0.211719 |
train_979bdf7989a67ce8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.928, -0.415), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.079, 0.072).lineTo(-0.079, 0.046).lineTo(-0.097, 0.046).lineTo(-0.097, -0.072).lineTo(-0.079, -0.072).lineTo(-0.079, -0.057).lineTo(0.06, -0.057).lineTo(0.06, -0.072).lineTo(0.076, ... | 3 | 25 | 0.055701 |
train_f193a69cb738da2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.104, 0, -0.464), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.104, -0.929).threePointArc((-0.105, -0.848), (0.896, -0.769)).threePointArc((0.297, -0.352), (-1.104, -0.929)).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(1.717, 0))... | 32 | 14 | 1.37513 |
train_4bcf4cec83ef5d9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.039, 0.217, -0.175), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.339, -0.134).threePointArc((-0.293, -0.2), (-0.231, -0.252)).threePointArc((0.054, -0.268), (0.22, -0.037)).lineTo(0.37, -0.037).threePointArc((0.371, -0.019), (0.371, 0)).three... | 28 | 137 | 0.138128 |
train_3bb7d99f34dc2c87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.563, 0.662, 0.04), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.633, 1.147).lineTo(0.611, 1.147).lineTo(0.611, 1.199).lineTo(0.386, 1.199).lineTo(0.386, 1.076).lineTo(-0.011, 0.907).threePointArc((-0.26, 0.86), (-0.505, 0.92)).lineTo(-0.505, 0.9... | 9 | 69 | 0.867317 |
train_67982ab9aaf8e934 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.031, -0.461), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.599).extrude(0.967)
result = result.union(cq.Workplane(cq.Plane(origin=(0.722, -0.799, -0.098), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.156, 0.064).extrude(0.092))
result = result.c... | 16 | 48 | 2.925655 |
train_bbd1f4d51899bb34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.736, -0.5, 0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.361).lineTo(-0.5, 0.381).lineTo(-0.48, 0.381).lineTo(-0.48, 1.008).lineTo(0.48, 1.008).lineTo(0.48, 0.381).lineTo(0.5, 0.381).lineTo(0.5, 0.361).lineTo(0.475, 0.361).lineTo(0.47... | 2 | 20 | 0.110172 |
train_0e78085b2d58e86d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.402, -0.642, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 1.093).lineTo(1, 0.057).threePointArc((0, 0.575), (-1, 0.057)).lineTo(-1, 1.093).lineTo(1, 1.093).close().extrude(0.803)
result = result.edges().chamfer(0.173)
result = result.cut(cq... | 9 | 58 | 0.563439 |
train_e006bb3303dcc69e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.703, 0, 0.052), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.297).sweep(cq.Workplane('XZ').spline([(-0.703, 0.052), (0.101, 0.248), (0.905, -0.14)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.31, 0.133, 0.257), normal=(0, 0, 1), xDir=... | 6 | 14 | 0.176124 |
train_5e321f9e40dad129 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, -0.974, 0.008), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.079, 0.026).threePointArc((0.002, -0.008), (-0.079, -0.026)).lineTo(-0.079, -0.006).threePointArc((-0.013, 0.005), (0.051, 0.026)).lineTo(0.079, 0.026).close().sweep(cq.Workplane(... | 4 | 26 | 0.013956 |
train_af848369def5024a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.811, 0.621, 0.009), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.515, 1.695).lineTo(0, 1.695).lineTo(0.515, 0.802).lineTo(0, -0.091).lineTo(-0.007, -0.091).lineTo(-0.007, 0.802).lineTo(-0.515, 0.802).lineTo(-0.515, 1.695).close().workplane(offs... | 7 | 45 | 1.136835 |
train_ff618fc0177ab4de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.747, -0.46), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.54).workplane(offset=0.356).circle(0.496).workplane(offset=0.345).circle(0.452).workplane(offset=0.346).circle(0.408).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(-0.095,... | 15 | 66 | 0.803868 |
train_5410b81b70794f98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.223, 0, -0.578), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.554, 1.772).extrude(1.135)
result = result.faces('>Z').shell(-0.046)
result = result.union(cq.Workplane(cq.Plane(origin=(0.526, 0.182, 0.189), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo... | 4 | 21 | 0.698097 |
train_68f6c8a9d9723bb4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.644, 0.555, -0.311), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.689, -0.047).lineTo(-0.448, -0.047).lineTo(-0.448, 1.094).lineTo(0.304, 1.095).lineTo(0.689, 1.095).lineTo(0.689, 1.335).lineTo(0.303, 1.335).lineTo(-0.448, 1.334).lineTo(-0.689,... | 4 | 55 | 0.847998 |
train_b4dfc8cc06fcdde1 | 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.267, 0.485).lineTo(-0.287, 0.474).lineTo(-0.554, -0.012).lineTo(-0.267, -0.485).lineTo(0.287, -0.474).lineTo(0.554, 0.012).lineTo(0.486, 0.124).lineTo(0.465, 0.113).lineTo(0.435, 0.105).lineTo(... | 23 | 42 | 0.66069 |
train_a411a9e71c4de53a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.42, -0.036), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.147).workplane(offset=0.104).circle(0.203).workplane(offset=0.095).circle(0.261).workplane(offset=0.092).circle(0.175).workplane(offset=0.103).circle(0.188).loft()
result = result.unio... | 8 | 54 | 0.162074 |
train_d83d30af35f0dbb0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.208, -0.002, -0.462), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.146, 0.155).threePointArc((0.17, 0.165), (0.16, 0.141)).lineTo(0.16, -0.151).lineTo(0.16, -0.165).lineTo(0.146, -0.165).lineTo(-0.146, -0.165).lineTo(-0.16, -0.165).lineTo(-0.16, ... | 13 | 97 | 0.081803 |
train_1d0ad3baa199eb95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.422), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.927).extrude(0.844)
result = result.edges().fillet(0.038)
| 2 | 26 | 1.560175 |
train_7c0077115d3eec17 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.048, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.923, 0.971).lineTo(0.923, -0.609).lineTo(0.763, -0.609).threePointArc((0.688, -0.64), (0.657, -0.715)).lineTo(0.657, -0.875).lineTo(0.923, -0.875).lineTo(-0.923, -0.875).lineTo(-0.923, 0.7... | 17 | 76 | 6.42845 |
train_f48c1fc1d803e593 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.173, 0, -0.674), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.196, 0.738).extrude(0.97)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.881, 0.08, -0.333), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.119).extrude(0.432))
result = result.uni... | 13 | 48 | 0.776912 |
train_4d7873680b9a666d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.141, 0, -0.413), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.717, 1.744).extrude(0.703)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.494, 0.242, -0.434), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.052).extrude(0.843))
result = result.edge... | 13 | 81 | 2.014902 |
train_90eafc4eafc5de94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.914).extrude(0.226)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.096, -0.054), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.861).extrude(0.027))
result = result.union(cq.Work... | 10 | 35 | 0.916737 |
train_436a1c3707de1014 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.504, 0.565, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.277, -0.215).lineTo(0.138, -0.215).lineTo(0.277, 0.215).lineTo(0.198, 0.215).lineTo(0.093, -0.133).lineTo(-0.277, -0.133).lineTo(-0.277, -0.215).close().sweep(cq.Workplane('XY').moveTo... | 5 | 12 | 0.112367 |
train_c1a6addc5cf42df1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.146, 0.03, 0.478), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.752, 0.31).threePointArc((0.433, 0), (0.762, -0.3)).lineTo(-0.762, -0.487).threePointArc((-0.382, -0.011), (-0.73, 0.487)).lineTo(0.752, 0.31).close().extrude(1.212)
result = resul... | 24 | 124 | 0.543092 |
train_383cba1e3058c20d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.771, -0.179, 0.185), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.308, 0.009).lineTo(-0.227, 0.088).lineTo(0.308, 0.009).lineTo(-0.308, 0.009).close().extrude(0.534)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.557, -0.24, 0.146), norma... | 13 | 234 | 1.028348 |
train_cbc98ab952d3a1ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.122, -0.191), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.93, 1.274).extrude(0.276)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.092, 0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.465, 1.081).extrude(0.04))
result = result.uni... | 13 | 101 | 0.741824 |
train_9e995d137baea3b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.645, -0.923, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.607, 1.718).threePointArc((-1, 0.923), (-0.607, 0.128)).threePointArc((1, 0.923), (-0.607, 1.718)).close().extrude(1.291)
result = result.edges().chamfer(0.555)
result = result.cut(c... | 6 | 160 | 2.19618 |
train_88c6968e26fd379d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.055, 0.176, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.447, -0.418).lineTo(0.456, -0.427).lineTo(0.438, 0.409).lineTo(-0.446, 0.414).close().moveTo(-0.088, 0.043).lineTo(0.09, 0.043).lineTo(0.089, 0.077).lineTo(-0.055, 0.076).lineTo(... | 15 | 119 | 0.19605 |
train_aaf1979ba9573ebe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.361), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.35, 1.924).extrude(0.828)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.15, 0.14, -0.607), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.267, 0.864).extrude(0.27))
result = result.union... | 6 | 26 | 2.104197 |
train_aa0ed213c1827b21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.246, 0.408, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.313, 0.181).lineTo(0.321, 0.183).lineTo(0.305, 0.114).lineTo(0.032, 0.12).lineTo(0.03, -0.181).lineTo(-0.036, -0.182).lineTo(-0.029, 0.117).lineTo(-0.315, 0.114).close().moveTo(-0... | 17 | 188 | 0.149237 |
train_e2d56c8828cfcb13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.034, 0.504, -0.075), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.392, 0.225).lineTo(-0.392, -0.068).lineTo(0.392, -0.068).lineTo(0.392, 0.225).lineTo(-0.392, 0.225).close().extrude(0.449)
result = result.edges().fillet(0.05)
result = result.un... | 7 | 60 | 0.211639 |
train_1cc9278a513a620b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.139, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.089, -0.004).lineTo(0.095, 0.004).lineTo(0.089, 0.011).lineTo(0.081, 0.004).lineTo(-0.088, 0.173).lineTo(-0.095, 0.166).lineTo(0.066, 0.004).lineTo(-0.095, -0.159).lineTo(-0.081, -0.173)... | 1 | 12 | 0.011409 |
train_f36ffc27ad48b02e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.339, -0.556, 0.174), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.826, 1.024).lineTo(0.826, 1.024).lineTo(0.826, 0.088).lineTo(-0.826, 0.088).lineTo(-0.826, 1.024).close().extrude(0.842)
result = result.edges().chamfer(0.157)
result = result.un... | 13 | 115 | 0.903942 |
train_51f7f494700f9257 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.471), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1.076).workplane(offset=0.414).circle(0.961).workplane(offset=0.321).circle(1.036).workplane(offset=0.376).circle(1.044).loft()
result = result.edges().fillet(0.441)
result = result.cut(cq.W... | 9 | 15 | 3.05441 |
train_3ae1e1a7564f057c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.368, 1.051, 0.293), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.046).lineTo(0.229, 0.141).lineTo(0.324, 0.37).lineTo(0.229, 0.599).lineTo(0, 0.693).lineTo(-0.229, 0.599).lineTo(-0.324, 0.37).lineTo(-0.229, 0.141).lineTo(0, 0.046).close().ext... | 4 | 60 | 0.221874 |
train_ca7ec544019e2e78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.809, -0.214, 0.005), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.337, -0.26).threePointArc((-0.358, 0.26), (0.358, -0.231)).threePointArc((0.348, -0.246), (0.337, -0.26)).close().sweep(cq.Workplane('XY').spline([(0, -0.6), (0.231, -0.591), (0.... | 9 | 20 | 1.080177 |
train_3a1ae5f5885c823e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, -0.403, -0.675), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.182, -0.341).lineTo(0.182, -0.157).lineTo(0.342, -0.065).lineTo(0.159, 0.251).lineTo(0.137, 0.291).threePointArc((0, 0.369), (-0.137, 0.291)).lineTo(-0.159, 0.251).lineTo(-0.342,... | 8 | 72 | 0.319192 |
train_035fb6e3dcffd953 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.21, -0.176, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.268, 1.112).lineTo(-0.268, -0.76).lineTo(0.268, -0.76).lineTo(0.268, 1.112).lineTo(-0.268, 1.112).close().workplane(offset=0.139).moveTo(-0.237, 1.006).lineTo(-0.237, -0.654).lineTo(0... | 12 | 39 | 0.342984 |
train_5236204b81026549 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.638, 0.143).lineTo(-0.638, 1).lineTo(0.638, 1).lineTo(0.638, 0.305).threePointArc((0.591, 0.191), (0.477, 0.143)).lineTo(-0.638, 0.143).close().revolve(angleDegrees=270, axisStart=(0, 0), axis... | 8 | 49 | 2.839298 |
train_fbeeb78df827c5e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.159, -0.207, 0.105), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.895, 0.297).lineTo(0.895, 0.029).lineTo(-0.895, 0.029).lineTo(-0.895, 0.297).lineTo(0.895, 0.297).close().extrude(0.415)
result = result.edges().chamfer(0.08)
result = result.unio... | 5 | 40 | 0.170467 |
train_8693e52612063b1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.024, -0.295, -0.37), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.104, 1.41).extrude(0.741)
result = result.union(cq.Workplane(cq.Plane(origin=(0.075, 0.694, -0.296), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.306).extrude(0.412))
result = result... | 18 | 111 | 0.921207 |
train_845f3636f7ce230d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, 0, -0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.817, 1.761).moveTo(0.087, 0.012).lineTo(0.067, 0.067).lineTo(0.002, 0.127).lineTo(0.015, -0.187).lineTo(0.021, -0.136).lineTo(0.068, -0.038).close().extrude(0.147)
result = result.cut(cq... | 14 | 97 | 0.3482 |
train_b94a8ba2e6055afb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.552, 0.332, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.391, -0.336).lineTo(-0.391, -0.144).threePointArc((-0.205, 0.025), (-0.355, 0.226)).lineTo(-0.355, 0.462).threePointArc((-0.366, 0.487), (-0.391, 0.497)).lineTo(-0.391, 1.44).lineTo(0... | 4 | 22 | 0.649259 |
train_0777a7237818cf04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.85, 0.63), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.15).lineTo(0.167, -0.15).lineTo(0.201, -0.117).lineTo(0.234, -0.084).lineTo(0.067, 0.084).lineTo(0.033, 0.117).lineTo(0, 0.15).lineTo(-0.033, 0.117).lineTo(-0.067, 0.084).lineTo(-0.23... | 1 | 14 | 0.094077 |
train_322a85d6bea08596 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.207, -0.58), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.464).lineTo(0.12, -0.166).lineTo(0.441, -0.143).lineTo(0.195, 0.063).lineTo(0.273, 0.376).lineTo(0, 0.205).lineTo(-0.273, 0.376).lineTo(-0.195, 0.063).lineTo(-0.441, -0.143).lineTo(... | 15 | 181 | 0.387307 |
train_d69268c537b04f23 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.325, 0.015, 0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.67, 0.487).extrude(0.19)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.069, 0.015, -0.013), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.142, 0.159).lineTo(-0.142, 0.159).lin... | 27 | 208 | 0.256321 |
train_b9808322a3c149ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.322), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.636, 0.833).lineTo(0.636, -0.833).lineTo(0.728, -0.833).lineTo(0.728, -1).lineTo(-0.728, -1).lineTo(-0.728, 1).lineTo(-0.614, 1).lineTo(-0.614, 0.833).lineTo(0.636, 0.833).close().extrude(... | 13 | 102 | 1.440376 |
train_e712d8ff8fad890d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.91, -0.033, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.351).sweep(cq.Workplane('XY').spline([(0.498, -0.002), (0.455, 0.313), (0.181, 0.575), (-0.216, 0.51), (-0.476, 0.2), (-0.476, -0.204), (-0.216, -0.514), (0.181, -0.579), (0.455, -0.3... | 2 | 5 | 0.282059 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.