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_c6f2cf0b0915593f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.412, -0.708, -0.586), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.583, 0.583).extrude(1.11)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.742, -0.794, -0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.094, 0.134).extrude(0.155))
result ... | 14 | 188 | 1.922237 |
train_6fe19235925d687f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.203, 0.213, -0.815), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.185, 0.794).lineTo(-0.091, 0.794).lineTo(-0.091, 0.27).lineTo(0.055, 0.097).lineTo(-0.185, 0.097).lineTo(-0.185, -0.368).lineTo(0.185, -0.368).lineTo(0.185, 0.794).close().extrude... | 10 | 59 | 0.23656 |
train_faf0a92fc9da55d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.08, 0.13, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.142).lineTo(-1, 0.004).lineTo(1, 0.004).lineTo(1, 0.142).lineTo(-1, 0.142).close().extrude(0.284)
result = result.edges().chamfer(0.052)
result = result.union(cq.Workplane(cq.Plane(o... | 4 | 35 | 0.066099 |
train_038a0e5c2eee656a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.761), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.555, -0.485).threePointArc((-0.52, -0.242), (-0.383, -0.038)).threePointArc((0, 1), (0.383, -0.038)).threePointArc((0.52, -0.242), (0.555, -0.485)).threePointArc((0, -1), (-0.555, -0.485)... | 11 | 92 | 1.794887 |
train_ab50cfa11fca9a8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.091, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.018, -0.017).lineTo(-0.018, 0.017).lineTo(0.012, 0.017).lineTo(0.016, 0.014).lineTo(0.018, 0.013).lineTo(0.018, 0.012).lineTo(0.018, -0.017).lineTo(-0.018, -0.017).close().sweep(cq.Workpla... | 1 | 8 | 0.001591 |
train_861855946264fe86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.46, -0.506, -0.506), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.506, 0.89).lineTo(0.506, 0.175).lineTo(-0.506, 0.175).lineTo(-0.506, 0.89).lineTo(0.506, 0.89).close().revolve(angleDegrees=180, axisStart=(0.506, 0.89), axisEnd=(0.506, 0.175))
r... | 15 | 47 | 0.917925 |
train_ed57ea9bcc0a822c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.04), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.121, 0.714).lineTo(-0.121, -1).lineTo(0.021, -1).lineTo(0.021, 0.714).lineTo(0.121, 0.714).lineTo(0.121, 1).lineTo(-0.121, 1).lineTo(-0.121, 0.714).close().extrude(0.063)
result = result.u... | 12 | 42 | 0.018808 |
train_7cfc6b4e17035d3a | 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.821).workplane(offset=0.602).circle(0.842).workplane(offset=0.603).circle(0.842).workplane(offset=0.702).circle(0.745).loft()
result = result.edges().fillet(0.275)
result = result.union(cq.Wor... | 4 | 18 | 3.96783 |
train_6ae434b6ffd78af1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.2, -1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.219, -0.235).lineTo(-0.354, 0).lineTo(-0.219, 0.235).lineTo(-0.196, 0.274).lineTo(0.121, 0.274).lineTo(0.144, 0.235).lineTo(0.354, 0.235).lineTo(0.354, -0.235).lineTo(0.144, -0.235).lineT... | 2 | 22 | 0.241286 |
train_2f2d49992c743a89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.184, 0.332, 0.042), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.388).sweep(cq.Workplane('YZ').spline([(0.066, -0.689), (0.423, -0.458), (0.368, -0.086), (-0.096, 0.059), (-0.432, -0.184), (-0.348, -0.547)]))
result = result.edges().chamfer(0.11... | 11 | 50 | 0.753041 |
train_8b87bf4778f96ecb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.197, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.539, 1.636).extrude(0.99)
result = result.union(cq.Workplane(cq.Plane(origin=(0.013, -0.195, -0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.161).extrude(0.441))
result = result.union(c... | 15 | 45 | 1.788693 |
train_c0684ed04cd28533 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.108, 0.109, 0.666), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.109, 1.093).lineTo(-0.109, -0.876).lineTo(0.109, -0.876).lineTo(0.109, 1.093).lineTo(-0.109, 1.093).close().extrude(0.219)
result = result.union(cq.Workplane(cq.Plane(origin=(0.39... | 6 | 111 | 0.238363 |
train_73989004d301260f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.112, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.044, 0.04).lineTo(-0.071, 0.01).lineTo(-0.098, -0.038).lineTo(-0.05, -0.066).lineTo(-0.034, -0.075).lineTo(-0.03, -0.067).lineTo(-0.003, -0.021).lineTo(0.036, 0.002).lineTo(0.098, 0.002).l... | 1 | 17 | 0.013062 |
train_28d6bb6a298a2228 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.118, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.255).lineTo(0.405, -0.255).lineTo(0.405, 0.49).lineTo(-0.146, 0.49).lineTo(-0.146, 0.426).lineTo(-0.211, 0.426).lineTo(-0.211, 0.49).lineTo(-0.405, 0.49).lineTo(-0.405, -0.255).lineTo... | 4 | 25 | 0.530848 |
train_bd7171c84dec8b53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.514, 0.146, 0.285), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.486, 0.577).lineTo(0, 0.059).lineTo(-0.167, -0.12).lineTo(-0.273, -0.232).lineTo(-0.486, -0.459).threePointArc((-0.379, -0.577), (-0.221, -0.566)).threePointArc((-0.158, -0.506), ... | 13 | 81 | 0.449052 |
train_f3cc9dadae303ba4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.315, 0, -0.007), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.685, -0.023).lineTo(-0.685, 0.023).lineTo(0.685, 0.023).lineTo(0.685, -0.023).lineTo(-0.685, -0.023).close().extrude(0.03)
result = result.edges().fillet(0.01)
result = result.union... | 7 | 54 | 0.00152 |
train_99c61e65f5459729 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.388, -0.375, 0.098), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.625, 1.375).lineTo(-0.625, -0.625).lineTo(0.625, -0.625).lineTo(0.625, 1.375).lineTo(-0.625, 1.375).close().extrude(0.776)
result = result.edges().fillet(0.018)
result = result.c... | 19 | 114 | 1.315719 |
train_3696dd8474f7ad56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.408, -0.284, -0.366), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.037, 1.431).extrude(0.731)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.257, -0.414, 0.252), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.244).extrude(0.116))
result = result.... | 14 | 50 | 1.136423 |
train_22858e785661bcee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.181, 0.198, 0.768), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.233).workplane(offset=0.333).circle(0.251).workplane(offset=0.34).circle(0.314).workplane(offset=0.343).circle(0.281).workplane(offset=0.419).circle(0.177).loft()
result = result.e... | 15 | 76 | 0.405087 |
train_a5065e3d3840a5fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, -0.017, -0.47), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.244, 0.205).extrude(0.271)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.013, -0.017, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.05).extrude(0.167))
result = resu... | 8 | 65 | 0.146275 |
train_32b4b5b63f4852eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.425, 0.203, 0.515), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.507, -0.132).lineTo(0.507, 0.703).lineTo(0.045, -0.132).lineTo(-0.507, -0.132).close().extrude(1.425)
result = result.edges().chamfer(0.118)
result = result.faces('>Y').shell(-0.0... | 18 | 122 | 0.603118 |
train_3db4c7af1565a96c | 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.909, 1.157).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.215, 0.439, -0.387), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.278, 0.293).extrude(0.953))
result = result.cut(cq.Work... | 7 | 25 | 1.895944 |
train_bc15af6961eb4366 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.346, -0.226, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.379, 0.137).lineTo(0.379, -0.219).lineTo(-0.379, -0.219).lineTo(-0.379, 0.469).lineTo(0.379, 0.469).lineTo(0.379, 0.137).close().extrude(0.751)
result = result.edges().chamfer(0.085)
... | 5 | 41 | 0.387789 |
train_e8faab050f78a47a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.095, -0.003, -0.323), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.087, -0.02).lineTo(0.358, 1.003).lineTo(-0.898, 0.636).lineTo(-0.842, -0.63).lineTo(0.371, -0.997).close().center(-0.466, 0).rect(0.544, 0.468).center(0.931, 0).rect(0.732, 0.371... | 15 | 92 | 0.962396 |
train_d20dfb4794765958 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.319, -0.055), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.564, 0.703).lineTo(0.564, -0.064).lineTo(-0.371, -0.064).lineTo(-0.371, 0.028).lineTo(-0.483, 0.098).lineTo(-0.371, 0.098).lineTo(-0.371, 0.158).lineTo(-0.483, 0.228).lineTo(-0.371, 0... | 13 | 62 | 1.461928 |
train_f7a8a17cda7409eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.009, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.631, -1.009).lineTo(-0.631, -1.009).lineTo(-0.631, 1.009).lineTo(0.631, 1.009).lineTo(0.631, -1.009).close().revolve(angleDegrees=90, axisStart=(0.631, -1.009), axisEnd=(0, -1.009))
resu... | 11 | 54 | 2.454355 |
train_835b5b8b7897936d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.151, -0.823, -0.008), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.142, -0.177).lineTo(-0.667, -0.177).lineTo(-0.667, 0.413).threePointArc((-0.662, 0.492), (-0.644, 0.568)).lineTo(-0.54, 1.262).lineTo(-0.53, 1.328).lineTo(-0.523, 1.371).lineTo(... | 12 | 55 | 0.547532 |
train_b6628f467508a66d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.612, -0.89, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, -0.016).lineTo(-0.598, 1.581).lineTo(-0.72, 1.703).lineTo(-0.841, 1.825).lineTo(-0.906, 1.89).threePointArc((-0.954, 1.844), (-1, 1.796)).lineTo(-0.935, 1.731).lineTo(-0.879, 1.675).t... | 2 | 36 | 0.320202 |
train_685442b0f6ee5879 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.383, 0.242, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.013).lineTo(1, 0.013).lineTo(1, 0.471).lineTo(-1, 0.471).lineTo(-1, 0.013).close().extrude(0.765)
result = result.edges().chamfer(0.131)
result = result.cut(cq.Workplane(cq.Plane(o... | 8 | 68 | 0.560566 |
train_48692871a502f95d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.92, 0.956, -0.21), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.131).threePointArc((-0.79, 0.92), (0, 1.71)).lineTo(0.79, 1.71).lineTo(0.79, 0.92).lineTo(0.79, 0.131).lineTo(0, 0.131).close().extrude(1.912)
result = result.edges().chamfer(0.3... | 35 | 154 | 1.786972 |
train_c74caaf9686e2159 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.078, 0.156, -0.552), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.136, 0.101).lineTo(0.136, 0.211).lineTo(0.054, 0.211).lineTo(0.054, 0.292).lineTo(-0.054, 0.292).lineTo(-0.054, 0.211).lineTo(-0.136, 0.211).lineTo(-0.136, 0.101).lineTo(-0.054, 0... | 10 | 68 | 0.015173 |
train_a23e60b57a149766 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.025, 0.949), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.516, 0.024).threePointArc((-0.476, 0.487), (-0.027, 0.365)).threePointArc((0, 0.347), (0.027, 0.365)).threePointArc((0.476, 0.487), (0.516, 0.024)).lineTo(0, -0.487).lineTo(-0.516, 0.... | 1 | 7 | 0.659272 |
train_46d733b7bbf5f361 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.229, -0.18, -0.445), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.008, 0.049).lineTo(-0.191, 0.049).lineTo(-0.191, 0.415).lineTo(0.174, 0.415).lineTo(0.174, 0.049).lineTo(0.191, 0.049).lineTo(-0.008, 0.049).close().revolve(angleDegrees=90, axis... | 18 | 154 | 0.092591 |
train_4220b74ae0780491 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.3, -0.055, -0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.131, 0.2).extrude(0.038)
result = result.union(cq.Workplane(cq.Plane(origin=(0.255, -0.055, 0.027), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.003, -0.04).lineTo(-0.055, -0.039).li... | 17 | 154 | 0.052405 |
train_c341a7515e867c6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.046, -1.125, 0.002), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(-0.133, 1.125).lineTo(0.129, 1.125).close().revolve(angleDegrees=360, axisStart=(0.129, 1.125), axisEnd=(-0.133, 1.125))
result = result.edges().fillet(0.016)
result = result.cut(cq... | 4 | 24 | 0.20753 |
train_ecc3c6506197ef50 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.169, 0.295, -0.344), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.401).workplane(offset=0.719).circle(0.6).workplane(offset=0.576).circle(0.566).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(-0.587, -0.319, -0.428), normal=(0, 1, 0)... | 7 | 31 | 1.049609 |
train_efc6888079780bd3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.607, 0.063, -0.23), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.168, -0.267).lineTo(0.195, -0.219).lineTo(0.223, -0.171).lineTo(0.195, -0.124).lineTo(0.393, 0.219).lineTo(0.366, 0.267).lineTo(0.31, 0.267).lineTo(0.113, -0.075).lineTo(-0.085, 0... | 7 | 59 | 0.067774 |
train_55fd8ef40957d4a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.469, -0.421, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.976, 0.097).lineTo(-0.976, 0.097).lineTo(-0.976, 0.746).lineTo(0.976, 0.746).lineTo(0.976, 0.097).close().workplane(offset=0.251).moveTo(0.991, 0.091).lineTo(-0.991, 0.091).lineTo(-0.... | 3 | 31 | 0.964295 |
train_4ab7bcbdcaa3a993 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.188, 0, -0.42), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.623, 1.827).extrude(0.75)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.409, 0.552, -0.199), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.38).extrude(0.149))
result = result.cut(cq.W... | 13 | 54 | 2.424277 |
train_db9f264d12b9fc15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.334, 0.16, 0.365), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.348, 0.22).lineTo(-0.348, 0.09).lineTo(0.218, 0.09).lineTo(0.218, 0.34).threePointArc((0.25, 0.417), (0.326, 0.448)).lineTo(0.348, 0.448).lineTo(0.348, 0.579).lineTo(0.326, 0.579).... | 4 | 41 | 0.106814 |
train_9c16b7868f3ebaba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.526, 0.309, 0.151), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.369, -0.369).lineTo(0.369, 0.369).lineTo(0.164, 0.164).lineTo(0.23, -0.149).lineTo(0.164, -0.164).lineTo(0, 0).lineTo(-0.149, -0.23).lineTo(-0.164, -0.164).lineTo(-0.369, -0.369).l... | 3 | 63 | 0.208228 |
train_f2716de93853886d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.794), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.814).extrude(1.588)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.157, 0.73, -0.57), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.186).extrude(0.347))
result = result.cut(cq.Workpla... | 11 | 113 | 5.476299 |
train_4c92bd2bf9cd71fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0.033, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.984, 0.117).lineTo(-0.984, 0.019).lineTo(1, 0.019).lineTo(1, 0.003).lineTo(-1, 0.003).lineTo(-1, 0.117).lineTo(-0.984, 0.117).close().extrude(0.243)
result = result.union(cq.Workplane... | 3 | 25 | 0.469258 |
train_d6a7e0542887f410 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.628, -0.121, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.062, 0.156).lineTo(-0.458, 0.052).lineTo(-0.529, 0.033).lineTo(-0.695, -0.01).lineTo(-0.969, -0.107).lineTo(-0.969, -0.052).lineTo(-1, -0.052).lineTo(-1, -0.155).lineTo(-0.969, -0.1... | 10 | 68 | 0.365894 |
train_7e44d178ba804b4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.335), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.53).extrude(0.67)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.278, 0.009).lineTo(-0.278, 0.027).lineTo(-0.29, 0.027).line... | 14 | 82 | 1.334965 |
train_f3b6179a162426a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, 0, -0.5), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.5, 0.898).lineTo(0.5, -0.898).threePointArc((0, -0.398), (-0.5, -0.898)).lineTo(-0.5, 0.471).lineTo(-0.5, 0.602).lineTo(-0.5, 0.898).lineTo(0, 0.898).lineTo(0.5, 0.898).close().revolve(a... | 7 | 36 | 1.775537 |
train_7ba82f50522274f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.156, -0.194, 0.361), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.519, 0.452).lineTo(-0.179, -0.136).lineTo(0.519, 0.267).lineTo(0.179, 0.854).lineTo(-0.519, 0.452).close().revolve(angleDegrees=270, axisStart=(-0.519, 0.452), axisEnd=(-0.179, -... | 6 | 36 | 0.828292 |
train_5d31ee24aaa30cb9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.454), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.272, 2).extrude(0.907)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.317, 0.431, 0.335), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.084).extrude(0.122))
result = result.cut(cq.Workpl... | 7 | 32 | 2.200571 |
train_7eb03e896f2fb18e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.855, 0.339, -0.238), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.458, 0.949).lineTo(-0.762, -0.27).lineTo(0.762, -0.27).lineTo(0.101, 0.39).lineTo(-0.458, 0.949).close().extrude(1.71)
result = result.union(cq.Workplane(cq.Plane(origin=(0.085, ... | 17 | 95 | 1.468902 |
train_a7c02410f9109f21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.628, 0, -0.126), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.557, 0.214).threePointArc((-0.002, -0.28), (-0.557, 0.219)).threePointArc((0, 0.28), (0.557, 0.214)).close().sweep(cq.Workplane('XZ').spline([(-0.29, -0.479), (-0.145, -0.479), (-0.0... | 19 | 74 | 0.365259 |
train_8642595c4e76fd8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.03, 0, 0.195), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.23).sweep(cq.Workplane('XZ').spline([(-0.636, -0.195), (-0.192, -0.07), (0.253, -0.168), (0.697, -0.49)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.274, -0.064, -0.592), norma... | 4 | 6 | 0.293984 |
train_41c41a99e542447c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.468, -0.035, 0.029), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.404).workplane(offset=0.213).circle(0.464).workplane(offset=0.196).circle(0.462).workplane(offset=0.214).circle(0.448).loft()
result = result.edges().fillet(0.052)
result = result... | 16 | 108 | 0.774701 |
train_53d3f1e72665b3c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.028, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.955, 0.469).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.085, -0.234, 0.177), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.084, 0.058).extrude(0.174))
result = result.cut(cq... | 10 | 83 | 0.809513 |
train_d397d60d9dd576f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.137, 0.5), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.081).lineTo(-0.5, 0.711).lineTo(0.315, 0.711).lineTo(0.315, 0.081).lineTo(0.5, 0.081).lineTo(0.5, -0.437).lineTo(-0.5, -0.437).lineTo(-0.5, 0.081).close().revolve(angleDegrees=360... | 4 | 27 | 2.734605 |
train_03be774b998dfd1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.963, 0, 0.012), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.534, 2.025).lineTo(0.32, 1.988).lineTo(-0.534, 1.837).lineTo(0.349, 0.978).lineTo(0.534, 2.025).close().revolve(angleDegrees=270, axisStart=(0.534, 2.025), axisEnd=(0.32, 1.988))
resul... | 9 | 48 | 0.616434 |
train_89fc208a342fa482 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.514, -0.205, -0.265), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.947).lineTo(0.518, 0.947).lineTo(0.518, -0.286).lineTo(-0.518, -0.286).lineTo(-0.518, 0.947).lineTo(0, 0.947).close().extrude(1.028)
result = result.edges().chamfer(0.175)
res... | 9 | 90 | 0.384343 |
train_ee5ac980f77a1cdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.029, 0.032, 0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.052, 0.043).extrude(0.044)
result = result.union(cq.Workplane(cq.Plane(origin=(0.009, 0.027, 0.004), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.004, -0.074).lineTo(-1.004, 0).lineT... | 4 | 32 | 0.000773 |
train_9f81ad611f966748 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, -0.627, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.377, 0.129).threePointArc((-0.561, 0.09), (-0.408, 0.201)).lineTo(0.361, 1.053).threePointArc((0.457, 1.215), (0.432, 1.029)).lineTo(0.484, 0.225).threePointArc((0.561, 0.064), (0.3... | 6 | 45 | 0.588077 |
train_45579e3e428d5680 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.812, 0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.812).lineTo(-0.574, 0.812).lineTo(-0.574, 1.812).lineTo(-0.5, 1.812).lineTo(-0.5, 1.364).lineTo(-0.487, 1.231).lineTo(-0.5, 1.231).lineTo(-0.5, 0.887).lineTo(0.5, 0.887).lineTo(0.5, 1... | 1 | 18 | 0.247447 |
train_f5dd4444ded5ba17 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.72), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.268, 2).extrude(1.232)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.504, 0.136, -0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.137).extrude(0.419))
result = result.cut(cq.Workpl... | 18 | 95 | 2.314164 |
train_85a2e22b47c00ac9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, 0, -0.579), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1, 0.763).extrude(0.053)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.02, -0.52), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.52, 0.063).lineTo(0.52, 0.055).lineTo(-0.48, 0.055... | 2 | 13 | 0.059103 |
train_35733f489a885855 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.201, 0, -0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.378, 2).extrude(0.712)
result = result.union(cq.Workplane(cq.Plane(origin=(0.044, -0.232, 0.535), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.197).extrude(0.164))
result = result.union(... | 4 | 19 | 2.098364 |
train_1960194e8c8b6b93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.34, 0.007, -0.712), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.288, 0.181).lineTo(-0.288, -0.164).lineTo(0.288, -0.164).lineTo(0.288, 0.181).lineTo(-0.288, 0.181).close().extrude(0.68)
result = result.edges().chamfer(0.075)
result = result.un... | 11 | 54 | 0.17043 |
train_d5021a6b6e5d8c22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, 0.244, -0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.468, 0.756).lineTo(0.485, 0.731).lineTo(0.475, 0.535).lineTo(0.108, 0.552).lineTo(0.095, -0.76).lineTo(-0.106, -0.766).lineTo(-0.098, 0.539).lineTo(-0.491, 0.542).close().moveTo(-... | 10 | 203 | 0.088335 |
train_5eac3a8f36589e5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.935), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.847).extrude(1.87)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.274, 0.543, -0.416), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.351).extrude(0.371))
result = result.cut(cq.Workpla... | 46 | 100 | 4.848358 |
train_0144806ec25231d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.331, -0.183), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.331, 0.359).extrude(0.365)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.099, 0.745, -0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.048, 0.51).extrude(0.022))
result = resul... | 5 | 62 | 0.043522 |
train_29461f7d15a06a49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.214, -0.231, -0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.632, -0.751).lineTo(0.616, -0.769).lineTo(0.631, 0.757).lineTo(-0.635, 0.741).close().moveTo(-0.053, -0.001).lineTo(-0.154, 0.135).lineTo(-0.316, 0.085).lineTo(-0.313, -0.084).li... | 6 | 82 | 0.368863 |
train_1ca4477d8b5f1edf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.089, 0, 0.762), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.458).sweep(cq.Workplane('XZ').spline([(0.201, 0.373), (-0.218, 0.305), (-0.447, 0.03), (-0.211, -0.298), (0.192, -0.345), (0.39, 0.027)]))
result = result.cut(cq.Workplane(cq.Plane(ori... | 2 | 9 | 0.374963 |
train_92f38a8cd76cfb3c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.566), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.531).extrude(1.131)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.123, 0.259, -0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.082, 0.32).lineTo(-0.052, 0.32).lineTo(-0.052, -0.... | 37 | 139 | 1.865962 |
train_a9e6695d33be2214 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.063, -0.585, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.569, 1.382).lineTo(0.569, 0.585).lineTo(-0.569, -0.212).lineTo(-0.569, 1.382).close().extrude(2)
result = result.edges().fillet(0.169)
result = result.cut(cq.Workplane(cq.Plane(origi... | 10 | 63 | 1.373275 |
train_2db15d73d0c8d585 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.213, -0.161, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.298, 0.147).extrude(0.076)
result = result.union(cq.Workplane(cq.Plane(origin=(0.227, -0.155, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.065).extrude(0.012))
result = resu... | 22 | 151 | 0.94876 |
train_7b8e587e240dcf43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.088, 0, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.364).lineTo(-0.255, 0.217).lineTo(-0.284, 0.268).lineTo(-0.503, 0.141).lineTo(-0.445, 0.04).lineTo(-0.226, 0.166).lineTo(0.226, 0.166).lineTo(0.445, 0.04).lineTo(0.503, 0.141).lineTo(0... | 2 | 70 | 0.469558 |
train_0bcd6cbce1cf204e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.785, -0.275, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.47, -0.65).lineTo(0.73, -0.389).lineTo(0.991, -0.129).lineTo(-0.47, 1.332).lineTo(-0.991, 0.811).lineTo(-0.782, 0.602).lineTo(0.261, -0.441).lineTo(0.47, -0.65).close().extrude(1.777)... | 4 | 38 | 2.655794 |
train_6dbf9f7a1e89791a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.058, -0.039), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.046, -0.014).lineTo(-0.011, 0.199).lineTo(0.046, 0.195).lineTo(0.046, -0.021).lineTo(-0.046, -0.014).close().extrude(0.932)
result = result.edges().chamfer(0.021)
result = result.uni... | 9 | 67 | 0.023206 |
train_aec6c93ffaa9746b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.586, -0.809), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.599, 1.282).lineTo(0.599, 1.238).lineTo(-0.831, 1.238).lineTo(-0.831, 1.04).lineTo(-0.875, 1.04).lineTo(-0.875, 0.268).lineTo(-0.831, 0.268).lineTo(-0.831, 0.145).lineTo(-0.607, 0.145... | 7 | 218 | 0.800962 |
train_fc4f1e15af63ca4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.219, -0.376), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.248, 1.562).extrude(0.93)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.499 + 0.083, -0.219, -0.596), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.035).extrude(0.221))
result = ... | 43 | 263 | 1.612982 |
train_ed1254b738182bba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.369, -0.209, -0.409), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.068, -0.068).lineTo(-0.074, -0.062).lineTo(0.035, 0.04).lineTo(0.064, 0.067).lineTo(0.045, 0.088).lineTo(0.015, 0.06).lineTo(-0.094, -0.042).lineTo(-0.097, -0.039).lineTo(-0.028... | 9 | 72 | 0.458922 |
train_7d0ed27a7d99311a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.188, 0.329, -0.469), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.625, 0.46).extrude(0.76)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.969, 0.305, 0.046), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.021, 0.81).lineTo(0.093, 0.81).lineTo... | 9 | 63 | 0.563021 |
train_61b63436712bbc9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.554, -1, -0.055), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.712, 0.51).threePointArc((0.343, 0.056), (0.712, 1.144)).threePointArc((0.025, 0.771), (-0.712, 0.51)).close().extrude(2)
result = result.edges().chamfer(0.044)
result = result.cut(... | 7 | 39 | 1.632547 |
train_4c10c4d4a69e2294 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.161, -0.241, -0.241), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.241, 1.161).lineTo(0.241, -0.839).lineTo(-0.241, -0.839).lineTo(-0.241, 1.161).lineTo(0.241, 1.161).close().revolve(angleDegrees=180, axisStart=(0.241, 1.161), axisEnd=(0.241, 0.... | 9 | 44 | 0.534329 |
train_5928d70712698440 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.821, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.118).workplane(offset=0.327).circle(0.088).workplane(offset=0.323).circle(0.058).workplane(offset=0.219).circle(0.028).loft()
result = result.edges().chamfer(0.027)
result = result.cut(cq.... | 29 | 189 | 0.01605 |
train_b5a648bb03955839 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.206, -0.057, -0.328), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.672, 0.756).lineTo(0.672, -0.635).lineTo(-0.672, -0.635).lineTo(-0.672, -0.443).lineTo(0.384, -0.443).lineTo(0.384, 0.756).lineTo(0.672, 0.756).close().extrude(0.837)
result = res... | 3 | 28 | 0.573413 |
train_ddb158fef65932fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.145, 0, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.709, 0.725).extrude(0.439)
result = result.union(cq.Workplane(cq.Plane(origin=(0.851, 0.057, 0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.15).extrude(0.155))
result = result.cut(... | 12 | 86 | 0.936526 |
train_3eac8a20e3158467 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.674, -0.451, -0.212), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.184).lineTo(-0.136, 0.42).lineTo(-0.273, 0.184).lineTo(-0.136, -0.052).lineTo(0, -0.289).lineTo(0.136, -0.052).lineTo(0.273, 0.184).lineTo(0, 0.184).close().workplane(offset=0... | 32 | 188 | 0.628637 |
train_7c19e631134f810c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, 0.075, -0.692), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.346, 0.421).lineTo(0.346, -0.27).lineTo(-0.346, -0.27).lineTo(-0.346, 0.421).lineTo(0.346, 0.421).close().revolve(angleDegrees=270, axisStart=(0.346, 0.421), axisEnd=(0.346, 0.359)... | 20 | 148 | 0.54509 |
train_64a1fc5755c7c9f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.91), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.394, 2).extrude(1.82)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.117, 0.374, 0.353), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.881, 0.446).extrude(0.572))
result = result.cut(cq.Work... | 13 | 135 | 4.540657 |
train_b2b556de1c7c9ac0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.094), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.541, 0.285).lineTo(-0.541, -0.285).lineTo(0.541, -0.285).lineTo(0.541, 0.285).lineTo(-0.541, 0.285).close().sweep(cq.Workplane('YZ').spline([(-0.636, -0.447), (-0.408, -0.304), (-0.181,... | 4 | 12 | 0.645026 |
train_bf967a4f5e9a6534 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.191, -0.015, -0.604), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.226, 1.226).extrude(1.555)
result = result.faces('>Z').shell(-0.076)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.133, 0.045, -0.583), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 11 | 52 | 0.652937 |
train_e0d21d3b45b0aad6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.27, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.445, -0.09).lineTo(-0.445, 0.446).lineTo(0.088, -0.446).lineTo(0.267, -0.268).lineTo(0.445, -0.09).close().sweep(cq.Workplane('XY').spline([(-0.529, -0.27), (-0.341, -0.051), (-0.152, 0.0... | 2 | 8 | 0.15357 |
train_0bc158fa36f854e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.113, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.865, -0.753).threePointArc((-0.26, -0.336), (-0.844, 0.712)).lineTo(-0.865, 0.712).lineTo(-0.865, 0.978).lineTo(0.865, 0.978).lineTo(0.865, 0.712).lineTo(0.865, -0.753).close().extrude(1.... | 11 | 123 | 3.833392 |
train_bbf2f0acc1ea7383 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.329, -0.123, 0.189), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.495, 0.366).lineTo(0.022, 0.839).lineTo(0.136, 0.971).lineTo(0.074, 1.033).lineTo(-0.04, 0.901).lineTo(-0.495, 0.372).lineTo(-0.433, 0.31).lineTo(-0.034, -0.09).lineTo(0.495, 0.36... | 18 | 185 | 1.050651 |
train_138e5a4873f06c26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.639), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.699).extrude(1.43)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.676, -0.119, -0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.119).extrude(0.166))
result = result.cut(cq.Workpl... | 7 | 28 | 4.363734 |
train_e43affb976bf4b86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.093, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.169, 1.007).extrude(1.324)
result = result.union(cq.Workplane(cq.Plane(origin=(0.582, 0.213, -0.639), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.191, 0.237).extrude(0.706))
result = result.u... | 5 | 31 | 1.662654 |
train_718380197cf7a3ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.067, -0.239, -0.274), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.933, -0.402).lineTo(-0.933, 0.16).lineTo(-0.933, 0.402).lineTo(0.933, 0.172).lineTo(0.933, -0.402).close().revolve(angleDegrees=180, axisStart=(0.933, -0.402), axisEnd=(-0.933, 0... | 7 | 26 | 0.474638 |
train_0ec9d4a92ea1ede3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.09, -0.014), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.552, 0.345).lineTo(-0.118, 0.345).lineTo(-0.118, 0.177).lineTo(-0.177, 0.177).lineTo(-0.177, 0.099).lineTo(-0.316, 0.099).lineTo(-0.316, 0.059).lineTo(-0.552, 0.059).lineTo(-0.552, 0).l... | 6 | 52 | 1.038502 |
train_eba6bcd9b8b3d489 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.296, 0.042, -0.381), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.619, 0.089).threePointArc((-0.558, 0.2), (-0.45, 0.268)).threePointArc((0, 0.338), (0.45, 0.268)).threePointArc((0.558, 0.2), (0.619, 0.089)).lineTo(-0.619, 0.089).close().revolv... | 30 | 210 | 0.179106 |
train_a5aba0a8cb0eb249 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.05, -0.437, -0.149), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.851, 0.835).lineTo(0.851, 0.04).lineTo(-0.851, 0.04).lineTo(-0.851, 0.835).lineTo(0.851, 0.835).close().extrude(0.756)
result = result.edges().fillet(0.299)
result = result.union(... | 5 | 60 | 1.540578 |
train_aebadeaf4a75d3c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.931, -0.296, -0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.008, 0.055).lineTo(0.024, 0.061).lineTo(0.069, 0.061).lineTo(0.069, 0.001).lineTo(0.018, 0.001).lineTo(-0.014, -0.017).lineTo(-0.035, -0.055).lineTo(-0.039, -0.061).lineTo(-0.05... | 1 | 14 | 0.002408 |
train_76d281c4c31843bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.133, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.903, 0.203).threePointArc((-1, 0.106), (-0.903, 0.009)).lineTo(0.903, 0.009).threePointArc((1, 0.106), (0.903, 0.203)).lineTo(-0.903, 0.203).close().extrude(0.101)
result = result.edge... | 6 | 53 | 0.04544 |
train_c59245ece36937c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.526, 0, 0.073), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.062).sweep(cq.Workplane('XZ').spline([(-0.125, -0.096), (-0.137, -0.067), (-0.295, -0.046), (-0.531, -0.042), (-0.737, -0.056), (-0.822, -0.082), (-0.749, -0.109)]))
result = result.e... | 7 | 36 | 0.028 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.