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_5fbba937185da14c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.407, 0.056, -0.05), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.439, 1.056).lineTo(0.439, -0.69).lineTo(0, -0.944).lineTo(0, 0.363).lineTo(-0.439, 0.11).lineTo(-0.439, 0.549).lineTo(0.439, 1.056).close().extrude(0.815)
result = result.union(cq.... | 21 | 188 | 0.783941 |
train_7e9ad0a6f5f38957 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.273, -0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.853, 1.453).extrude(0.446)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.23, -1, -0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.095, 0.149).lineTo(0.095, 0.163).lineTo(0... | 4 | 36 | 1.115682 |
train_d7334a6918fce3c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.126, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.635, 0.759).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.37, 0.371, -0.597), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.135).extrude(0.639))
result = result.cut(cq.Wor... | 4 | 63 | 2.293233 |
train_e7e40e3e9f00bc1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.178, 0.009, -0.442), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.643, 0.921).extrude(0.884)
result = result.faces('>Z').shell(-0.081)
result = result.union(cq.Workplane(cq.Plane(origin=(0.402, 0.586, -0.233), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 6 | 26 | 0.592965 |
train_44a38b165ea587f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.011, -0.572), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.274, 0.389).extrude(0.652)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.011, 0.055), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.096).extrude(0.394))
result = result.union(... | 13 | 75 | 0.118871 |
train_6133976dc801212a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.441, 0, 0.113), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.462, 0.775).extrude(0.133)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.441, 0.205, 0.26), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.012, 0.003).threePointArc((0.011, 0.006),... | 16 | 139 | 0.455922 |
train_83045851be597947 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.749, 0.061, -0.141), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.406, 0.316).threePointArc((0.393, 0.301), (0.383, 0.283)).lineTo(0.764, 0.283).lineTo(0.764, -0.939).lineTo(0.373, -0.939).lineTo(-0.764, -0.939).lineTo(-0.764, 0.283).lineTo(-0.2... | 7 | 48 | 2.911497 |
train_9d2d095a5901578c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.168, -0.723, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.158, 0.177).threePointArc((0, 0.019), (0.158, 0.177)).lineTo(0.409, 0.177).threePointArc((0, 0.587), (-0.409, 0.177)).lineTo(-0.158, 0.177).close().extrude(1.391)
result = result.edg... | 11 | 77 | 0.388668 |
train_37b4b6cc8146daed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.018, -0.235, 0.039), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.015, -0.985).threePointArc((-0.015, 0.018), (0.015, 1.02)).lineTo(0.015, -0.985).close().extrude(0.054)
result = result.edges().chamfer(0.002)
result = result.union(cq.Workplane(c... | 4 | 70 | 0.006707 |
train_66ba6f2e36b29c3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, -0.468, -0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.818, 0.89).lineTo(-0.818, 0.975).lineTo(0.818, 0.975).lineTo(0.818, 0.108).lineTo(-0.818, 0.108).lineTo(-0.818, 0.89).close().extrude(0.964)
result = result.edges().fillet(0.091)... | 23 | 176 | 1.11394 |
train_2803dd92fdaefdd9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.132, -0.224, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.044, 1.133).lineTo(-0.059, 0.912).lineTo(-0.088, 0.47).lineTo(-0.147, -0.413).lineTo(-0.176, -0.854).lineTo(0.044, -0.869).lineTo(0.074, -0.428).lineTo(0.132, 0.456).lineTo(0.162, 0.... | 8 | 76 | 0.154224 |
train_10b1c626d49be13f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.464, 0.062, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.115, 0.515).lineTo(0.115, 0.435).threePointArc((-0.118, 0.472), (-0.335, 0.38)).threePointArc((-0.359, 0.359), (-0.382, 0.335)).threePointArc((-0.405, 0.312), (-0.425, 0.288)).threePo... | 2 | 16 | 1.226374 |
train_f97debe5221e7ecb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.266, -0.896, -0.731), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.523, 1.464).lineTo(1.523, 0.093).lineTo(0.819, 1.464).lineTo(-1.523, 1.464).close().extrude(1.012)
result = result.edges().fillet(0.215)
result = result.union(cq.Workplane(cq.Pl... | 16 | 99 | 1.449835 |
train_b29f675f2e0ed1f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.088, 0.404, -0.259), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.247, -0.026).lineTo(-0.247, 0.017).lineTo(-0.273, 0.017).lineTo(-0.273, 0.026).lineTo(0.273, 0.026).lineTo(0.273, 0.017).lineTo(-0.013, 0.017).lineTo(-0.013, -0.026).lineTo(-0.09,... | 2 | 22 | 0.032882 |
train_2c93eb53cce53e4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.321, 0, 0.277), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.274).sweep(cq.Workplane('XZ').spline([(0.111, 0.004), (0.095, 0.078), (0.03, 0.132), (-0.058, 0.117), (-0.116, 0.049), (-0.116, -0.041), (-0.058, -0.11), (0.03, -0.125), (0.095, -0.07... | 5 | 19 | 0.461424 |
train_50366c8d016ebfd3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.125, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.006, -0.021).threePointArc((0.063, -0.032), (0.074, 0.025)).lineTo(0.105, 0.099).threePointArc((0.134, 0.154), (0.074, 0.173)).threePointArc((0.056, 0.233), (0, 0.204)).lineTo(-0.074, 0.1... | 7 | 41 | 0.029024 |
train_7e9f63fa57cf544a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.472, -0.18, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.856, 0.309).threePointArc((-1, 0.165), (-0.856, 0.021)).lineTo(1, 0.021).lineTo(1, 0.309).lineTo(-0.856, 0.309).close().extrude(0.944)
result = result.edges().chamfer(0.09)
result = r... | 14 | 75 | 0.444489 |
train_5d3090f286669a78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.811, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.883, -0.003).lineTo(-0.883, 1.626).lineTo(0.883, 1.626).lineTo(0.883, -0.003).lineTo(-0.883, -0.003).close().extrude(2)
result = result.edges().fillet(0.133)
result = result.cut(cq.Workp... | 16 | 80 | 5.059658 |
train_4273639a547a88eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.085, 0.273, -0.335), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.853, 1.454).extrude(0.555)
result = result.faces('<X').shell(-0.043)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.073, 0.336, -0.529), normal=(0, 0, 1), xDir=(1, 0, 0))).ci... | 11 | 48 | 0.353593 |
train_175e31e5dfe02857 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.235, -0.06, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.932, 0.629).extrude(0.246)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.001, -0.081, 0.202), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.022, 0.251).lineTo(-0.093, 0.274)... | 26 | 175 | 0.361634 |
train_7d3927e26843a517 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.368), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.563).lineTo(1, 0.563).lineTo(1, 0.313).lineTo(0.125, 0.313).lineTo(0.125, -0.563).lineTo(0, -0.563).lineTo(0, 0.313).lineTo(-1, 0.313).lineTo(-1, 0.563).lineTo(0, 0.563).close().extrude... | 9 | 83 | 0.432743 |
train_6a14e69908797018 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.104, 0.386, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, -0.896).lineTo(-0.21, -0.896).lineTo(-0.21, 1.104).lineTo(0.21, 1.104).lineTo(0.21, -0.896).lineTo(0, -0.896).close().extrude(0.772)
result = result.edges().chamfer(0.034)
result = re... | 8 | 45 | 0.629116 |
train_59f4c836c522cee1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.811).extrude(0.472)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.306), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.182, 0.825).extrude(0.612))
result = result.cut(cq.Workplane... | 5 | 10 | 1.249313 |
train_e02be1a4a5c5cef2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.578, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.629, 1.157).lineTo(0.629, 0.092).lineTo(-0.629, 0.092).lineTo(-0.629, 1.157).lineTo(0.629, 1.157).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.73, 0))
result = result.edg... | 2 | 26 | 1.961782 |
train_d1a1743c4aa0c4de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.613, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 1.232).lineTo(-1, 0.061).lineTo(-0.675, 0.061).lineTo(-0.675, -0.006).lineTo(0.854, -0.006).lineTo(0.854, 0.061).lineTo(1, 0.061).lineTo(1, 1.232).lineTo(-1, 1.232).close().extrude(... | 2 | 10 | 4.355997 |
train_4b91b93b1c0dda71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.915), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.109, 2).extrude(1.83)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.113).extrude(0.931))
result = result.edges().fillet(0.027)
r... | 14 | 55 | 3.364565 |
train_13e4a43449da0f1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.324, 0.068, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.352, 0.973).extrude(0.426)
result = result.faces('>Z').shell(-0.029)
result = result.union(cq.Workplane(cq.Plane(origin=(0.667, 0.207, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 5 | 25 | 0.145017 |
train_90f78a32e8c56532 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.504, -0.149, -0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.254, 0.44).extrude(0.06)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.502, -0.149, -0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.207, 0.26).extrude(0.008))
result = ... | 33 | 297 | 0.346761 |
train_c7fca65cad72c893 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.409, -0.691, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.302, -0.568).lineTo(1, -0.568).lineTo(1, 1.296).lineTo(-1, 1.296).lineTo(-1, -0.568).lineTo(0.302, -0.568).close().extrude(1.383)
result = result.cut(cq.Workplane(cq.Plane(origin=(1.0... | 16 | 69 | 4.908552 |
train_0711c7b5a5956e07 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.479, -0.373, -0.04), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.584, 1.386).threePointArc((0.078, 1.25), (-0.293, 0.879)).lineTo(-0.584, 0.373).lineTo(-0.293, -0.134).threePointArc((0.078, -0.505), (0.584, -0.64)).lineTo(0.584, -0.303).lineTo(... | 20 | 50 | 1.226134 |
train_99a3b0a7d9f46449 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.479, 0.033, 0.029), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.81, 0.521).lineTo(0.81, 0.521).lineTo(0, -0.289).lineTo(-0.81, -0.289).lineTo(-0.81, 0.521).close().extrude(0.12)
result = result.edges().fillet(0.041)
result = result.union(cq.W... | 7 | 53 | 0.242782 |
train_1da1c2520980db95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.412).extrude(0.421)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.003, 0.075, 0.014), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.138).extrude(0.237))
result = result.cut(cq.Workpla... | 10 | 49 | 0.542028 |
train_a02db23dc2b138d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.386, -0.268, -0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.604).transformed(offset=(0.308, 0.341, 0.113), rotate=(0, 30, 0)).circle(0.792).transformed(offset=(0.616, 0, 0.248), rotate=(0, 0, 90)).circle(0.486).loft()
| 1 | 4 | 0.782058 |
train_ab031f7516609c50 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.47), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.446, 2).extrude(0.939)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.32, 0.072, -0.629), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.381, 0.674).extrude(1.127))
| 2 | 10 | 2.474458 |
train_f99336d7b98e12d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.629, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.627).lineTo(0.417, 1.627).lineTo(0.688, 1.047).lineTo(0.932, 0.134).lineTo(0.536, -0.368).lineTo(-0.536, -0.368).lineTo(-0.932, 0.134).lineTo(-0.688, 1.047).lineTo(-0.417, 1.627).lineT... | 9 | 84 | 5.484285 |
train_bafa0b9e2b3e5469 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.66), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.966).extrude(1.32)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.281, -0.813, -0.074), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.289, 0.825).threePointArc((-0.813, 0.348), (-0.3... | 5 | 21 | 4.805357 |
train_873174229bf7e945 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.794, -0.83), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.744, -0.206).lineTo(0, 0.538).lineTo(0.744, -0.206).lineTo(1, 0.05).lineTo(0.128, 0.922).lineTo(0, 0.794).lineTo(-0.128, 0.922).lineTo(0, 1.05).lineTo(-0.744, 1.794).lineTo(-1, 1.538)... | 7 | 40 | 1.358285 |
train_fb975d700b86a70a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.112), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.727, 0.778).lineTo(-0.503, 0.465).lineTo(0.727, 1.057).lineTo(-0.727, 0.778).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.22, 0))
result = result.edges().fillet(0.039)
re... | 4 | 31 | 1.181577 |
train_40204cb3073cd5db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.264, -0.727), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.895, 1.077).extrude(1.419)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.264, 0.391), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.105, 0.432).extrude(0.309))
result = result.cut... | 17 | 79 | 2.753021 |
train_3e6b2b56a1610b6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.076, -0.011, 0.035), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.027, 0.108).lineTo(-0.027, 0.076).threePointArc((0, -0.078), (0.027, 0.076)).lineTo(0.027, 0.108).lineTo(-0.027, 0.108).close().workplane(offset=0.021).moveTo(-0.026, 0.105).line... | 17 | 83 | 0.43651 |
train_c6c553fed469e5dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.741, 0, -0.008), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.527).workplane(offset=0.486).circle(0.342).workplane(offset=0.414).circle(0.169).loft()
result = result.edges().fillet(0.176)
result = result.union(cq.Workplane(cq.Plane(origin=(0.324... | 11 | 40 | 0.318466 |
train_ca4968445165cd6b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.083, 0.433, 0.264), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.297, -0.27).lineTo(0.351, -0.27).lineTo(0.351, -0.324).lineTo(-0.243, -0.324).lineTo(-0.243, 0.243).lineTo(-0.351, 0.243).lineTo(-0.351, 0.324).lineTo(0.351, 0.324).lineTo(0.351, 0.... | 6 | 76 | 0.319757 |
train_b605fa469b7ba1a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.049, -0.051, -0.317), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.15, 0.13).extrude(0.139)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.073, -0.088, -0.447), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.015, 0.01).extrude(0.135))
result = ... | 5 | 74 | 0.025775 |
train_4fc91b56da46fd2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.722, 0.157, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.228, 0.18).lineTo(0.228, -0.094).lineTo(-0.043, -0.094).lineTo(-0.043, -0.108).lineTo(-0.099, -0.108).lineTo(-0.099, -0.094).lineTo(-0.138, -0.094).lineTo(-0.138, -0.18).lineTo(-0.228... | 3 | 30 | 0.080438 |
train_feeb1504c0d017c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.96, -0.935), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.858, -0.04).lineTo(0.858, 1.324).lineTo(-0.383, 1.324).lineTo(-0.383, 0.722).lineTo(-0.858, 0.722).lineTo(-0.858, -0.04).lineTo(0.858, -0.04).close().extrude(1.301)
result = result.edg... | 18 | 85 | 2.226218 |
train_ee6998a2fc55410c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.068, 0.028, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.109, 0.062).extrude(0.012)
result = result.union(cq.Workplane(cq.Plane(origin=(0.066, 0.04, -0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.043, 0.017).extrude(0.003))
result = re... | 43 | 248 | 0.015101 |
train_fb0d2f1340349086 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.352, -0.227), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.178, 1.296).extrude(0.455)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.017, 0.487, -0.145), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.416, 0.429).extrude(0.169))
result = res... | 4 | 18 | 0.684228 |
train_b40bfe02adab5ae8 | 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.619, 0.849).extrude(0.364)
result = result.union(cq.Workplane(cq.Plane(origin=(0.081, 0.042, -0.638), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.017, -0.001).threePointArc((-0.017, 0.005), (-... | 8 | 39 | 0.729968 |
train_f6b80c913dbd735c | 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.066, -0.032).threePointArc((0, -0.078), (0.066, -0.032)).lineTo(0.083, 0.012).lineTo(0.089, 0.027).lineTo(0.077, 0.027).lineTo(0.062, 0.027).threePointArc((0.045, 0.047), (0.022, 0.06)).lineTo... | 1 | 18 | 0.012391 |
train_f7e07b2cd0dbd09b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.139, 0.253, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.732, 0.562).threePointArc((0.92, 0.485), (1, 0.297)).threePointArc((0.922, 0.105), (0.732, 0.026)).lineTo(-0.732, 0.026).threePointArc((-0.921, 0.104), (-1, 0.294)).threePointArc((-0.9... | 20 | 146 | 0.3076 |
train_d890568316e83ec9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.211, -0.222, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.194, 0.098).threePointArc((-0.251, 0.011), (-0.271, -0.092)).lineTo(0, -0.092).lineTo(0.19, -0.092).threePointArc((0.21, -0.145), (0.259, -0.172)).threePointArc((0.268, -0.132), (0.... | 5 | 40 | 0.056973 |
train_8ab6131a40d5a0d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.392, -0.146, -0.098), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.526, 0.129).lineTo(-0.54, 0.129).lineTo(-0.54, -0.129).lineTo(-0.526, -0.129).lineTo(-0.526, -0.026).lineTo(-0.533, -0.026).lineTo(-0.533, 0.026).lineTo(-0.526, 0.026).lineTo(-... | 3 | 24 | 0.083984 |
train_30c09208d6899e0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.547), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.33, 0.906).lineTo(-0.33, -0.248).lineTo(-0.659, -0.248).lineTo(-0.659, -0.906).lineTo(0.659, -0.906).lineTo(0.659, -0.248).lineTo(0.33, -0.248).lineTo(0.33, 0.906).lineTo(-0.33, 0.906).cl... | 13 | 135 | 1.729884 |
train_874e6af51ecf80b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.32, 0.566, 0.148), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.6, -0.68).lineTo(-0.6, 1.32).lineTo(0.6, 1.32).lineTo(0.6, -0.68).lineTo(-0.6, -0.68).close().extrude(0.936)
result = result.union(cq.Workplane(cq.Plane(origin=(0.213, 0.046, -0.74... | 5 | 22 | 2.170863 |
train_367f3bda1bc3bb23 | 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.325).workplane(offset=0.225).circle(0.512).workplane(offset=0.216).circle(0.426).workplane(offset=0.259).circle(0.465).workplane(offset=0.211).circle(0.507).workplane(offset=0.23).circle(0.497... | 4 | 12 | 0.930388 |
train_1cf7a7571f56746d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.227, 0.205), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.059, -0.284).lineTo(0.137, 0.108).lineTo(0.217, 0.098).lineTo(0.225, 0.117).lineTo(0.166, 0.258).lineTo(0.153, 0.189).lineTo(0.059, 0.284).lineTo(-0.225, 0).lineTo(0.059, -0.284).close... | 7 | 31 | 0.153452 |
train_98cab37ebc6e0381 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.671, -0.106, -0.12), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.392, 0.286).lineTo(-0.453, 0.286).lineTo(-0.453, -0.204).lineTo(0.453, -0.204).lineTo(0.453, 0.286).lineTo(-0.392, 0.286).close().extrude(1.051)
result = result.edges().fillet(0.... | 12 | 65 | 0.401297 |
train_22ea220527450dd6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.314, 0, -0.133), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.394, 0.442).extrude(0.049)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.314 + 0.1 * math.cos(0.799 + 2 * math.pi * 0 / 5), 0 + 0.1 * math.sin(0.799 + 2 * math.pi * 0 / 5), -0.14),... | 20 | 193 | 0.078116 |
train_898cdd4d8877fa28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.557, -0.076, 0.038), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.149, 0.14).lineTo(-0.149, -0.14).lineTo(0.149, -0.14).lineTo(0.149, 0.14).lineTo(-0.149, 0.14).close().revolve(angleDegrees=180, axisStart=(-0.149, 0.14), axisEnd=(-0.149, -0.14)... | 27 | 218 | 0.287255 |
train_8fc57a52e8e429d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.673, 0.135, 0.022), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.101, 0.236).lineTo(-0.101, 0.014).lineTo(0.101, 0.014).lineTo(0.101, 0.236).lineTo(-0.101, 0.236).close().extrude(0.242)
result = result.edges().fillet(0.019)
result = result.unio... | 12 | 110 | 0.022798 |
train_5619418db9a258f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.159, 0.381, -0.475), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.476, 0.595).lineTo(-0.476, 0.095).lineTo(0.476, 0.095).lineTo(0.476, 0.595).lineTo(-0.476, 0.595).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.28, 0))
result =... | 11 | 159 | 1.069153 |
train_1ba251455245b690 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.078, -0.047, -0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.805, 1.177).extrude(0.657)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.054, 0.758, -0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.28, 0.483).extrude(0.238))
result =... | 30 | 218 | 1.149392 |
train_6ec6f1d4a4ef06ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.759, -0.128, 0.099), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.291).sweep(cq.Workplane('XY').spline([(0.043, 0.276), (-0.518, 0.219), (-0.799, -0.03), (-0.652, -0.175), (-0.233, -0.385), (0.185, -0.355), (0.65, -0.191), (0.753, -0.013), (0.391... | 2 | 9 | 0.302175 |
train_41c87ca1f65eca4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.614, 1.115, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.197, 0.083).lineTo(-0.436, 2.071).lineTo(-0.197, 2.147).lineTo(0.436, 0.16).lineTo(0.197, 0.083).close().extrude(1.228)
result = result.edges().fillet(0.123)
result = result.cut(cq.Wor... | 11 | 62 | 0.472434 |
train_aeb2d2d26af60d57 | 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.966, 1.03).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.122, 0.13, -0.351), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.218, 0.225).extrude(1.386))
result = result.cut(cq.Workpla... | 4 | 98 | 1.836674 |
train_b57db4cd5dc95fe4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.903, 0.472), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.259, -0.031).lineTo(-0.259, 0.183).lineTo(-0.259, -0.031).lineTo(-0.107, -0.183).lineTo(0.107, -0.183).lineTo(0.259, -0.031).close().sweep(cq.Workplane('YZ').spline([(-0.421, 0.254), ... | 1 | 7 | 0.044017 |
train_2176a6fde617f370 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.135, 0.103, 0.054), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.129, 0.247).lineTo(-0.129, 0.118).lineTo(0, 0.118).lineTo(-0.064, 0.054).lineTo(-0.129, -0.011).lineTo(0, -0.011).lineTo(0, -0.14).lineTo(0.129, -0.011).lineTo(0.129, 0.118).line... | 13 | 145 | 0.192178 |
train_54de4d2e1d55e930 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.488, 0.014, -0.09), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.171).lineTo(0, 0.188).lineTo(0.131, 0.188).lineTo(0.131, 0.171).lineTo(0.066, 0.171).lineTo(0.066, 0.04).lineTo(0.512, -0.059).lineTo(0.484, -0.188).lineTo(0.365, -0.161).lineTo... | 15 | 41 | 0.158912 |
train_c7d0cc6ae1fb153e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.047, 0.229, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.335, 0.194).threePointArc((0.253, 0), (0.335, -0.194)).threePointArc((0.126, -0.219), (0, -0.387)).threePointArc((-0.126, -0.219), (-0.335, -0.194)).lineTo(-0.335, 0.194).lineTo(0, 0.3... | 9 | 59 | 0.46814 |
train_699a149d8f65b522 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.287), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.159, -0.15).lineTo(-0.159, 0.15).lineTo(-0.142, 0.15).lineTo(-0.142, 0.166).lineTo(0.159, 0.166).lineTo(0.159, 0.135).lineTo(-0.126, 0.135).lineTo(-0.126, -0.135).lineTo(0.159, -0.135).... | 1 | 14 | 0.044594 |
train_05e23892f42a6f0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.456, -0.134, 0.037), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.158, -0.387).threePointArc((0, -0.545), (-0.158, -0.387)).lineTo(-0.158, 0.56).threePointArc((0, 0.718), (0.158, 0.56)).lineTo(0.158, -0.387).close().extrude(0.913)
result = resul... | 5 | 32 | 0.374518 |
train_a496ee6d3ff217fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.538), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.838).extrude(1.077)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.388, 0.059, -0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.261).extrude(0.138))
result = result.edges().chamf... | 12 | 94 | 1.60425 |
train_8c81b258509fed32 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 0.28), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.024, 0.27).lineTo(-1.024, -0.27).lineTo(-0.137, -0.141).lineTo(1.024, 0.27).close().extrude(0.559)
result = result.edges().chamfer(0.025)
result = result.cut(cq.Workplane(cq.Plane(orig... | 6 | 32 | 0.040347 |
train_3e30c5eaac831601 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.161, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.605, 0.839).lineTo(-0.281, 0.058).lineTo(-0.043, -0.517).lineTo(0.605, -0.517).lineTo(0.043, 0.839).lineTo(-0.605, 0.839).close().extrude(1.74)
result = result.edges().fillet(0.218)
resul... | 16 | 35 | 1.364668 |
train_1e8c5ed5833e9bd7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.487, -0.227, -0.23), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.025, 0.625).extrude(0.167)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.721, 0.174, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.329, 0.21).extrude(0.074))
result = ... | 32 | 328 | 0.276897 |
train_c97f1ad46a70a9cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.493, 0.168), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.74, 0.507).lineTo(-0.74, 0.477).lineTo(-0.781, 0.477).lineTo(-0.781, -0.436).lineTo(-0.812, -0.436).lineTo(-0.812, -0.507).lineTo(-0.74, -0.507).lineTo(-0.74, -0.477).lineTo(0.74, -0... | 15 | 195 | 0.798537 |
train_23d64a39d31eb7e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.483, -0.488), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.583).lineTo(-1, 0.884).lineTo(0.6, 0.884).lineTo(0.6, 0.583).lineTo(1, 0.583).lineTo(1, 0.083).lineTo(-1, 0.083).lineTo(-1, 0.583).close().extrude(0.976)
result = result.edges().f... | 3 | 43 | 1.393168 |
train_02d842402fef3e14 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.549, 0.052, -0.176), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.208, 0.356).threePointArc((-0.341, 0.214), (-0.389, 0.026)).threePointArc((-0.341, -0.162), (-0.208, -0.303)).lineTo(0.208, -0.303).threePointArc((0.341, -0.162), (0.389, 0.026))... | 19 | 80 | 0.342895 |
train_5f0cb929f5749e9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.206, -0.146, -0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.729, -0.005).lineTo(0.339, 0.629).lineTo(-0.353, 0.608).lineTo(-0.71, -0.006).lineTo(-0.36, -0.62).lineTo(0.371, -0.625).close().moveTo(-0.278, 0.131).lineTo(-0.118, 0.129).lineTo... | 9 | 141 | 0.699897 |
train_ab962ab352619221 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.207, 0.286, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.056, -0.806).lineTo(-0.293, 1.177).lineTo(-0.056, 1.219).lineTo(0.293, -0.764).lineTo(0.056, -0.806).close().extrude(0.572)
result = result.edges().fillet(0.077)
result = result.cut(cq... | 5 | 76 | 0.225946 |
train_08409cd1476feba2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.34, -0.207, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.039, 0.08).extrude(0.11)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.223, -0.213, -0.14), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.851, -0.126).lineTo(0.851, 0.003).li... | 6 | 127 | 0.52177 |
train_a83c0a91f4e3fc9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.129, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.247).workplane(offset=0.149).circle(0.46).workplane(offset=0.145).circle(0.545).workplane(offset=0.145).circle(0.348).workplane(offset=0.157).circle(0.395).workplane(offset=0.145).circle(... | 5 | 22 | 0.326996 |
train_cd0bf57eefb178e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.713, 0, 0.387), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.234).sweep(cq.Workplane('XZ').spline([(0.37, 0.012), (0.334, 0.246), (0.13, 0.437), (-0.162, 0.389), (-0.354, 0.161), (-0.354, -0.136), (-0.162, -0.364), (0.13, -0.413), (0.334, -0.22... | 6 | 77 | 0.429885 |
train_8babce73a058eede | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.06, -0.296, -0.35), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.896, 1.409).extrude(1.165)
result = result.union(cq.Workplane(cq.Plane(origin=(0.591, -0.391, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.184, 0.783).extrude(0.576))
result = r... | 6 | 25 | 1.763235 |
train_205240079f55db57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.092, 0.005, 0.059), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.038, -0.92).lineTo(0.038, -0.995).lineTo(-0.038, -0.995).lineTo(-0.038, 1.005).lineTo(0.038, 1.005).lineTo(0.038, -0.92).close().extrude(0.057)
result = result.edges().chamfer(0.00... | 19 | 256 | 0.028005 |
train_8ca167cda18e20e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.275, -0.04, 0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.45, 0.76).extrude(0.434)
result = result.faces('<Y').shell(-0.026)
result = result.union(cq.Workplane(cq.Plane(origin=(0.275 + 0.059 * math.cos(5.724 + 2 * math.pi * 0 / 5), 0.177 + 0... | 10 | 150 | 0.20589 |
train_1b4b3a085572a6ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.123, -0.073, -0.42), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.68, 0.629).extrude(1.42)
result = result.union(cq.Workplane(cq.Plane(origin=(0.134, 0.282, 0.27), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.317, 0.667).threePointArc((0.341, 0.679)... | 8 | 97 | 1.077913 |
train_de1b5cd92b8c7a15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.253, 0.167, -0.193), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.893, 0.857).extrude(0.588)
result = result.union(cq.Workplane(cq.Plane(origin=(0.294, 0.273, -0.395), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.249, 0.2).extrude(0.21))
result = resu... | 15 | 110 | 0.344931 |
train_e9ca6e282ae4f32d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.49, 0.784, 0.031), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.6, 1.49).lineTo(0.435, 1.19).lineTo(0.435, -0.51).lineTo(-0.6, -0.51).lineTo(-0.6, 1.49).lineTo(0.6, 1.49).close().extrude(1.569)
result = result.edges().chamfer(0.114)
result = res... | 6 | 154 | 2.74618 |
train_5e04a0797c41f32f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0.099), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.218).workplane(offset=0.425).circle(0.214).workplane(offset=0.595).circle(0.214).workplane(offset=0.472).circle(0.203).workplane(offset=0.507).circle(0.21).loft()
result = result.union(cq.... | 15 | 112 | 0.22806 |
train_1658ff45b590ad22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.263, -0.471), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.421, 1.475).extrude(1.03)
result = result.union(cq.Workplane(cq.Plane(origin=(0.321, 0.717, -0.183), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.408, 0.566).extrude(0.48))
result = result... | 6 | 88 | 2.421992 |
train_b426dfcd560ffe00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.08), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.551, -0.45).lineTo(0.4, -0.45).lineTo(0.4, -0.251).lineTo(-0.551, -0.251).lineTo(-0.551, 0.15).lineTo(0.05, 0.15).lineTo(0.05, 0.251).lineTo(0.4, 0.251).lineTo(0.4, 0.45).lineTo(0.551, 0.... | 3 | 19 | 0.648446 |
train_9f34be8a6de3f600 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, -0.717, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.788, 0.157).threePointArc((0.406, -0.145), (-0.077, -0.214)).threePointArc((-0.529, -0.034), (-0.83, 0.349)).threePointArc((-0.9, 0.831), (-0.718, 1.284)).threePointArc((-0.336, 1.586... | 12 | 56 | 4.24476 |
train_b24d01615a54c234 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.221, 0.2, -0.815), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.559, 1.521).extrude(1.15)
result = result.union(cq.Workplane(cq.Plane(origin=(0.761, 0.228, -0.332), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.477, 0.389).extrude(0.552))
result = res... | 9 | 90 | 1.335709 |
train_979ce2dbc4cf294f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.401, 0.628, 0.142), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.858, -0.242).lineTo(0.743, -0.242).threePointArc((0.858, 0.204), (0.725, 0.646)).threePointArc((-0.239, 1.01), (-0.858, 0.187)).lineTo(-0.858, -0.242).close().extrude(1.256)
resul... | 22 | 169 | 2.220851 |
train_48b3d4cb406ac27b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.058, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.104, 1.082).extrude(0.577)
result = result.faces('>Z').shell(-0.041)
result = result.union(cq.Workplane(cq.Plane(origin=(0.525, -0.18, 0.077), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo... | 5 | 32 | 0.240885 |
train_ad40040d23fb6339 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.066, -0.075, -0.455), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.239, 0.788).lineTo(0.308, 0.853).lineTo(0.308, 0.287).lineTo(0.239, 0.287).lineTo(0.239, 0.694).lineTo(-0.239, 0.246).lineTo(-0.239, -0.853).lineTo(-0.308, -0.853).lineTo(-0.308... | 21 | 210 | 0.720355 |
train_b606a12420ce9034 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.072, -0.664), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.166, 0.609).extrude(1.179)
result = result.union(cq.Workplane(cq.Plane(origin=(0.199, -0.461, -0.36), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.305, 0.201).extrude(0.198))
result = resu... | 6 | 27 | 0.946081 |
train_6761be2c9d23a1f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.94), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.384).extrude(1.378)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.069, 0.162, 0.416), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.151).extrude(0.524))
result = result.cut(cq.Workp... | 12 | 122 | 2.569093 |
train_e482ffb579084bbe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.223, -0.147, 0.781), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.554, 0.785).extrude(0.14)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.225, -0.152, 0.919), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.476, 0.426).extrude(0.037))
result = ... | 6 | 55 | 0.378188 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.