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_e1af086c7e6b1756 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.472, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.386, 0.386).lineTo(0.214, -0.215).lineTo(-0.386, -0.215).lineTo(-0.386, 1.158).lineTo(0.386, 1.158).lineTo(0.386, 0.386).close().extrude(2)
result = result.edges().chamfer(0.139)
result = ... | 11 | 78 | 1.424994 |
train_679775d715a70dd8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.56, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.24).sweep(cq.Workplane('XY').spline([(-0.362, -0.56), (-0.107, -0.385), (0.149, -0.298), (0.404, -0.298), (0.659, -0.385), (0.914, -0.56)]))
result = result.edges().chamfer(0.078)
result ... | 6 | 22 | 0.147415 |
train_ebd1ae743d56faaf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.616, 0.545, 0.003), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.38, 0.426).threePointArc((0.245, 0.37), (0.19, 0.236)).lineTo(-0.19, 0.236).threePointArc((-0.245, 0.37), (-0.38, 0.426)).lineTo(-0.19, 0.426).lineTo(-0.19, 0.805).lineTo(-0.38, 0.... | 12 | 61 | 0.408134 |
train_c39bbbc0b5448963 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.91, 0.594, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.429).lineTo(0.862, 1.429).lineTo(0, 0.709).lineTo(-0.138, 0.594).lineTo(0, 0.479).lineTo(0.138, 0.594).lineTo(1, -0.126).lineTo(1, -0.24).lineTo(-1, -0.24).lineTo(-1, 1.429).close()... | 6 | 99 | 4.302103 |
train_1c9bbe07405c38a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.135, -0.117), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.612, -0.156).threePointArc((-0.629, -0.009), (-0.612, 0.138)).threePointArc((-0.445, 0.436), (-0.147, 0.603)).threePointArc((0, 0.62), (0.147, 0.603)).threePointArc((0.445, 0.436), (... | 4 | 46 | 0.130413 |
train_6439704acca47187 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.085, 0.083, 0.417), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.589, 0.028).threePointArc((-0.854, -0.317), (-0.911, -0.749)).threePointArc((-0.479, -0.805), (-0.078, -0.639)).threePointArc((0.354, -0.695), (0.756, -0.528)).threePointArc((0.9... | 8 | 45 | 1.936948 |
train_607e51e3713fd3cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.44, 0, 0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.609, 0.964).extrude(0.139)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.247, 0, 0.118), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.035).extrude(0.085))
result = result.cut(cq.Workp... | 19 | 282 | 0.195349 |
train_45b8e94efc44ab8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.201, 0.765, -0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.224, 0.003).lineTo(0.158, 0.165).lineTo(0.009, 0.235).lineTo(-0.164, 0.158).lineTo(-0.24, 0.003).lineTo(-0.164, -0.167).lineTo(-0.009, -0.233).lineTo(0.168, -0.167).close().moveTo(... | 9 | 88 | 0.101045 |
train_79d53c1caf61e47f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -1.071, -0.362), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.453, 0.915).threePointArc((-0.485, 0.701), (-0.417, 0.495)).threePointArc((-0.218, 0.319), (0.046, 0.28)).lineTo(0.203, 0.122).threePointArc((0.427, 0.102), (0.485, 0.319)).line... | 41 | 133 | 0.604375 |
train_b73e17726e5569fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.702), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.808).extrude(1.404)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.256, 0.141, 0.393), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.182).extrude(0.317))
result = result.cut(cq.Workpl... | 16 | 70 | 1.584108 |
train_08a1d645b2be3e47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 1.104, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.542, 0.611).lineTo(-0.542, 1.965).lineTo(0.542, 1.965).lineTo(0.542, 0.611).lineTo(0, 0.114).lineTo(-0.542, 0.611).close().extrude(2)
result = result.edges().fillet(0.361)
result = result... | 10 | 72 | 2.957113 |
train_327ada03bd805c87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.211, -0.018, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.591).lineTo(0.125, -0.216).lineTo(0.512, -0.296).lineTo(0.25, 0).lineTo(0.512, 0.296).lineTo(0.125, 0.216).lineTo(0, 0.591).lineTo(-0.125, 0.216).lineTo(-0.512, 0.296).lineTo(-... | 15 | 175 | 0.283841 |
train_973904fc7165e088 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.764), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.408).extrude(1.528)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.356, 0.348, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.884, 0.751).extrude(0.589))
result = result.edges().... | 20 | 108 | 2.65961 |
train_e9559dd41298fa78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.159, -0.056, -0.529), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.455, 1.29).extrude(1.058)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.46, -0.838, 0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.162).extrude(0.328))
result = resul... | 15 | 163 | 1.145209 |
train_8253a79514001ad4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, -0.006, 0.19), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.323, 0.532).lineTo(-1.032, -0.532).lineTo(0.323, -0.532).lineTo(0.323, 0.004).lineTo(1.032, 0.284).lineTo(0.323, 0.532).close().extrude(0.442)
result = result.edges().chamfer(0.037... | 16 | 83 | 0.365744 |
train_22b873821ae1ff3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.497), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.975).extrude(0.133)
result = result.union(cq.Workplane(cq.Plane(origin=(0.187, 0.163, -0.368), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.475, 0.299).extrude(0.063))
result = result.union(... | 14 | 158 | 1.000094 |
train_bd0ea109571f1bb5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.011, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.069, -0.851).lineTo(0.069, -0.989).lineTo(-0.069, -0.989).lineTo(-0.069, 1.011).lineTo(0.069, 1.011).lineTo(0.069, -0.851).close().extrude(0.241)
result = result.edges().chamfer(0.015... | 9 | 135 | 0.059213 |
train_8393f00389bcb870 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.181, 0.01, -0.624), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.424, 0.805).extrude(0.835)
result = result.union(cq.Workplane(cq.Plane(origin=(0.252, 0.05, 0.208), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.282, 0.724).extrude(0.085))
result = resu... | 8 | 77 | 0.399885 |
train_7138dd7bbfd00e8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.226, 0.028, -0.05), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.043, 0.103).lineTo(-0.043, -0.103).lineTo(0.003, -0.103).lineTo(0.003, -0.036).lineTo(0.043, -0.036).lineTo(0.043, 0.036).lineTo(0.003, 0.036).lineTo(0.003, 0.103).lineTo(-0.043, ... | 13 | 82 | 0.175647 |
train_70abc783295a8ea6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.69, -0.35), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.078, 0.156).threePointArc((0.078, 0), (-0.078, -0.156)).lineTo(-0.078, -0.134).threePointArc((0.056, 0), (-0.078, 0.134)).lineTo(-0.078, 0.156).close().sweep(cq.Workplane('YZ').spline(... | 1 | 6 | 0.017054 |
train_94c9747d0e10e92e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.209, -0.464, -0.336), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.297, -0.83).lineTo(-0.191, -0.618).lineTo(-0.297, -0.571).lineTo(-0.297, 0.937).lineTo(0.151, 0.062).lineTo(0.329, -0.284).lineTo(-0.101, -0.66).lineTo(0.07, -0.736).lineTo(0.278... | 19 | 172 | 0.637227 |
train_9de8c071f3e856fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.512, -0.084, 0.529), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.255, 0.718).lineTo(0.142, 0.718).lineTo(0.142, 0.574).lineTo(0.063, 0.574).threePointArc((-0.215, -0.045), (-0.31, -0.718)).lineTo(-0.246, -0.718).threePointArc((-0.158, -0.08), ... | 4 | 34 | 0.386074 |
train_7cf9708433162892 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.903, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.849, 0.543).lineTo(0.849, 1.605).lineTo(-0.849, 1.605).lineTo(-0.849, 0.543).lineTo(-0.19, 0.543).lineTo(-0.19, 0.201).lineTo(0.19, 0.201).lineTo(0.19, 0.543).lineTo(0.849, 0.543).close()... | 16 | 183 | 3.797668 |
train_cbd0bf08e034e44f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.294, -0.138, 0.074), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.346, 0.894).lineTo(0.346, -0.578).lineTo(-0.346, -0.578).lineTo(-0.346, 0.894).lineTo(0.346, 0.894).close().extrude(0.995)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.388... | 26 | 160 | 1.048916 |
train_cce68c9fb410d7f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.464, 0.17), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.599, -0.37).lineTo(-0.33, -0.37).lineTo(0.599, 0.101).lineTo(0.599, 0.37).lineTo(-0.075, 0.37).lineTo(-0.249, 0.292).lineTo(-0.229, 0.247).lineTo(-0.405, 0.168).lineTo(-0.424, 0.213).l... | 1 | 18 | 0.908406 |
train_993ade5cd289a27d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.287, 0.095, -0.483), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.426, 1.032).extrude(0.966)
result = result.faces('>Z').shell(-0.091)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.685, 0.221, -0.273), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 9 | 73 | 0.612379 |
train_a7326e158b7b986e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.104, 0, -0.412), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.157, 2).extrude(0.991)
result = result.faces('>Z').shell(-0.075)
result = result.union(cq.Workplane(cq.Plane(origin=(0.576, 0.272, 0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.10... | 10 | 64 | 0.614384 |
train_55db7da9a0943295 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.005, 0, -0.795), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.205, -0.083).lineTo(0.205, 0.093).lineTo(-0.205, 0.093).lineTo(-0.205, -0.083).lineTo(0.205, -0.083).close().revolve(angleDegrees=360, axisStart=(0.205, -0.083), axisEnd=(0.205, 0.093... | 8 | 28 | 0.104426 |
train_c1bab92822847071 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.045, -0.5, 0.525), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.525, 0.566).lineTo(-0.525, -0.476).lineTo(0.525, -0.476).lineTo(0.389, -0.341).lineTo(0.136, -0.341).lineTo(0.136, -0.09).lineTo(0, 0.045).lineTo(0.136, 0.18).lineTo(0.389, 0.431).... | 5 | 59 | 0.869706 |
train_7eb7914088d9324c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.542), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.233, 0.178).lineTo(-0.211, 0.139).threePointArc((-0.24, 0.134), (-0.266, 0.148)).lineTo(-0.118, -0.022).lineTo(-0.025, -0.183).lineTo(-0.002, -0.222).lineTo(0.02, -0.183).lineTo(0.112, -0.... | 1 | 17 | 0.084994 |
train_bbbd7d0ba128ce0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.061, 0.357, -0.246), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.121, -0.63).lineTo(0.121, -0.786).lineTo(0.38, -0.786).lineTo(0.38, 0.814).threePointArc((-0.38, 0.261), (-0.086, -0.633)).threePointArc((-0.076, -0.641), (-0.066, -0.648)).lineT... | 11 | 156 | 0.50072 |
train_55956dfddad95f2a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.052, -0.216, 0.203), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.076, 0.579).lineTo(-0.076, -0.374).lineTo(0.076, -0.435).lineTo(0.076, 0.518).lineTo(-0.076, 0.579).close().extrude(0.197)
result = result.edges().chamfer(0.016)
result = result.u... | 13 | 163 | 0.557618 |
train_f5a1fac483139235 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.02, -0.546, -0.251), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.907, 0.907).extrude(0.262)
result = result.union(cq.Workplane(cq.Plane(origin=(0.025, -0.501, 0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.408).extrude(0.034))
result = result... | 17 | 167 | 0.271382 |
train_1a55d789ea25ee93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.044, -0.307, -0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.827, 1.386).extrude(0.096)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.517, -0.045, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.075).extrude(0.016))
result = res... | 14 | 117 | 0.120446 |
train_b2964063e24ddae4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.633, -0.552), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.234, 1.232).lineTo(1.016, 1.232).lineTo(0.234, 0.633).lineTo(1.016, 0.035).lineTo(-0.234, 0.035).lineTo(-1.016, 0.633).lineTo(-0.234, 1.232).close().extrude(1.104)
result = result.cu... | 14 | 134 | 1.429943 |
train_af1ccebb9c040773 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.174, -0.048), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.291, -0.037).threePointArc((0.203, -0.118), (0.178, -0.233)).threePointArc((0.147, -0.254), (0.113, -0.27)).threePointArc((0, -0.234), (-0.113, -0.27)).threePointArc((-0.147, -0.25... | 5 | 31 | 0.341814 |
train_756f11d0467b1582 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.405, -0.038, -0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.125, -0.002).lineTo(0.065, 0.106).lineTo(-0.064, 0.105).lineTo(-0.123, 0.001).lineTo(-0.065, -0.107).lineTo(0.063, -0.103).close().moveTo(0.023, 0.035).lineTo(0.008, 0.057).lineTo... | 10 | 113 | 0.015712 |
train_61a61675d0a62a3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, -0.738, -0.477), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.819, 0.6).lineTo(-0.819, 0.833).threePointArc((-0.68, 1.214), (-0.327, 1.412)).lineTo(-0.273, 1.418).lineTo(0.762, 1.533).lineTo(0.819, 0.6).lineTo(0.528, 0.6).lineTo(-0.528, 0.6... | 29 | 163 | 1.255149 |
train_825a3e7e649a6f34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, 0.242, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.769, -0.73).lineTo(0.781, -0.736).lineTo(0.782, 0.758).lineTo(-0.764, 0.753).close().moveTo(-0.168, -0.119).lineTo(-0.269, -0.165).lineTo(-0.188, -0.202).lineTo(-0.171, -0.215).l... | 21 | 270 | 0.150678 |
train_df32557de6028266 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.464, 0.172, -0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.788, 0.487).extrude(0.138)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.334, 0.017, -0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.093).extrude(0.077))
result = result.u... | 26 | 110 | 0.260318 |
train_bf138eea95addde6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.213, 0.783, -0.204), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.058, 0.1).lineTo(-0.058, 0.1).lineTo(-0.116, 0).lineTo(-0.058, -0.1).lineTo(0.058, -0.1).lineTo(0.116, 0).lineTo(0.058, 0.1).close().sweep(cq.Workplane('YZ').spline([(0.581, -0.327... | 21 | 410 | 0.098344 |
train_b642358b967f889c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.385, 0.92, -0.16), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.07, 0.92).lineTo(0.84, 0.92).lineTo(0.84, 0.15).lineTo(-0.84, 0.15).lineTo(-0.84, 0.92).lineTo(-0.07, 0.92).close().revolve(angleDegrees=180, axisStart=(-0.07, 0.92), axisEnd=(0.07,... | 9 | 76 | 1.018949 |
train_4c84f248d787165c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.816, -0.172, 0.313), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.023, 0.086).lineTo(-0.01, 0.038).lineTo(0.01, 0.038).lineTo(0.023, 0.086).lineTo(0.063, 0.063).lineTo(0.086, 0.023).lineTo(0.086, -0.023).lineTo(0.038, -0.01).lineTo(0.028, -0.0... | 1 | 20 | 0.015059 |
train_88fb61dc9b186ae2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.736, -0.336, -0.483), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.527, 0.619).extrude(0.078)
result = result.union(cq.Workplane(cq.Plane(origin=(0.526, -0.298, -0.397), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.204, 0.249).lineTo(-0.204, 0.182... | 13 | 167 | 0.482271 |
train_4b0266c3cb4ae4e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.596).extrude(0.583)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.609), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.349, -0.554).lineTo(0.343, -0.541).lineTo(0.348, -0.379).... | 15 | 108 | 2.540581 |
train_54d81541ddc84c86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.714, 0, -0.04), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.102, 0.714).lineTo(-0.105, 0.714).lineTo(-0.105, 0.506).threePointArc((-0.308, 0.029), (0.102, -0.287)).lineTo(0.102, 0.404).lineTo(0.308, 0.404).lineTo(0.308, 0.506).lineTo(0.308, 0.7... | 13 | 48 | 1.027974 |
train_e346da131fa6a0cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.023, -0.785), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.252, 0.218).extrude(0.202)
result = result.union(cq.Workplane(cq.Plane(origin=(0.026, 0.012, -0.626), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.013).extrude(0.481))
result = result.un... | 6 | 25 | 0.019927 |
train_e0276493e490bc9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.382, -0.286, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.121, -0.361).threePointArc((0.247, -0.339), (0.614, -0.312)).threePointArc((0.29, 0.036), (-0.06, 0.361)).threePointArc((-0.337, 0.329), (-0.614, 0.303)).threePointArc((-0.357, -0.0... | 5 | 10 | 0.652353 |
train_5f64da65cddf89af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.039, 0.179, -0.659), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.014, 1.642).extrude(1.29)
result = result.union(cq.Workplane(cq.Plane(origin=(0.126, -0.089, -0.876), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.253, -0.014).lineTo(0.379, -0.232)... | 10 | 68 | 1.977275 |
train_c32952426a8ac0b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.16, -0.446, -0.426), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.433, -0.378).lineTo(0.433, 1.067).threePointArc((-0.18, 0.813), (-0.433, 0.2)).lineTo(-0.433, -0.378).lineTo(0.433, -0.378).close().extrude(1.16)
result = result.edges().fillet(0.... | 13 | 116 | 1.722156 |
train_5310547d6fcab97d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.806, -0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.809).threePointArc((0.171, 1.737), (0.241, 1.567)).threePointArc((0.239, 1.534), (0.233, 1.502)).threePointArc((0.138, 0.807), (0.233, 0.113)).threePointArc((0.239, 0.08), (0.... | 8 | 54 | 0.109937 |
train_77ed2993f0a51041 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.063, -0.109, -0.633), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.217, -0.135).lineTo(-0.26, -0.091).lineTo(-0.058, 0.111).threePointArc((-0.031, 0.128), (0, 0.135)).threePointArc((0.031, 0.128), (0.058, 0.111)).lineTo(0.26, -0.091).lineTo(0.2... | 4 | 52 | 0.198417 |
train_b4aaea4570cdceca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.723, 0, 0.01), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.124, 0.16).lineTo(0.011, 0.059).lineTo(-0.124, 0.21).lineTo(0.011, 0.311).lineTo(0.124, 0.16).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.109, 0))
result = result.edg... | 14 | 288 | 0.056702 |
train_d57c3e5d2b9ee038 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.642, 0, 0.038), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.358).sweep(cq.Workplane('XZ').spline([(-0.642, 0.038), (-0.406, -0.057), (-0.169, -0.113), (0.067, -0.132), (0.304, -0.113), (0.541, -0.057), (0.777, 0.038)]))
result = result.cut(cq.... | 8 | 21 | 0.192407 |
train_ea53b17b88efc7d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.056, 0.584, 0.408), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.12, 0.161).lineTo(-0.12, 0.134).lineTo(0.1, -0.161).lineTo(0.12, -0.161).lineTo(-0.11, 0.147).lineTo(-0.12, 0.161).close().transformed(offset=(0.049, 0.214, 0.108), rotate=(0, 0, ... | 2 | 15 | 0.116079 |
train_f08a8ac4bce638ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.093, -0.177, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.181, 0.177).lineTo(0.181, 0.491).lineTo(0.181, -0.137).lineTo(-0.181, 0.177).close().extrude(1.683)
result = result.edges().fillet(0.12)
result = result.union(cq.Workplane(cq.Plane(... | 13 | 81 | 0.100472 |
train_1140bfd7b497bfd2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.048, -0.241, 0.065), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.649, 0.022).lineTo(-0.649, 0.411).lineTo(0.649, 0.411).lineTo(0.649, 0.057).lineTo(0.424, 0.057).lineTo(0.424, 0.376).lineTo(-0.424, 0.376).lineTo(-0.424, 0.022).lineTo(-0.649, ... | 4 | 80 | 0.186535 |
train_fb431e410389163c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.161, 0.166, -0.022), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.218, 1.216).lineTo(-0.218, 0.963).lineTo(-0.218, -0.631).lineTo(0.218, -0.884).lineTo(0.218, 1.216).close().extrude(0.321)
result = result.edges().chamfer(0.099)
result = result.u... | 19 | 306 | 0.163814 |
train_bbedbf08dd55bf68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.392), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.56).extrude(0.785)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.008, -0.394, -0.416), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.053).extrude(0.942))
result = result.cut(cq.Workpl... | 12 | 61 | 2.384191 |
train_5371777b5dc479ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.183, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.117).workplane(offset=0.452).circle(0.082).workplane(offset=0.633).circle(0.055).workplane(offset=0.448).circle(0.045).workplane(offset=0.468).circle(0.003).loft()
result = result.cut(cq.... | 13 | 63 | 0.070646 |
train_633b619bbcfc6a07 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.292, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.35).lineTo(1, 0.117).lineTo(-1, 0.117).lineTo(-1, 0.583).lineTo(1, 0.583).lineTo(1, 0.35).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.253, 0))
result = result.edges()... | 9 | 50 | 0.953914 |
train_9cd6c4591ef2fec8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.273, 0.034, -0.176), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(-0.042, -0.325).lineTo(0.119, 0.325).close().sweep(cq.Workplane('XZ').spline([(0.869, -0.344), (0.926, -0.239), (0.587, -0.15), (-0.003, -0.116), (-0.591, -0.151), (-0.926, -0.24),... | 6 | 32 | 0.374588 |
train_a8588fd5f206f811 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.089, -0.074, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1.003, -0.068).threePointArc((0, 0.068), (-1.003, -0.068)).lineTo(1.003, -0.068).close().sweep(cq.Workplane('XY').spline([(0.022, -0.074), (0.031, -0.017), (0.008, 0.033), (-0.034, 0.047... | 2 | 9 | 0.006541 |
train_ebef9943be385c5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.187, -0.058, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.806, 0.008).lineTo(1, 0.008).lineTo(1, 0.202).lineTo(-1, 0.202).lineTo(-1, 0.008).lineTo(0.806, 0.008).close().extrude(0.38)
result = result.edges().chamfer(0.012)
result = result.cut... | 38 | 63 | 0.144263 |
train_a47afbb0cca05c86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.167, 0.102), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.314).lineTo(-1, 0.314).lineTo(0.868, 0.314).lineTo(1, -0.314).lineTo(-1, -0.314).close().extrude(0.253)
result = result.union(cq.Workplane(cq.Plane(origin=(0.007, -0.146, 0.099),... | 11 | 75 | 0.320501 |
train_f061c21ef951b6cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.096), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.222, -0.157).lineTo(0.223, -0.157).lineTo(0.223, 0.157).lineTo(-0.223, 0.157).lineTo(-0.223, -0.157).lineTo(-0.222, -0.157).close().extrude(0.364)
result = result.edges().chamfer(0.039)
... | 6 | 38 | 0.045491 |
train_6e2eaf76ecb7abd8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.141, 0.018, 0.019), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.125).workplane(offset=0.364).circle(0.081).workplane(offset=0.358).circle(0.106).loft()
result = result.edges().chamfer(0.077)
result = result.union(cq.Workplane(cq.Plane(origin=(... | 8 | 38 | 0.061458 |
train_134a97e36bb927fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.034, 0.059, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.042, 1.034).lineTo(-0.042, -0.966).lineTo(0.042, -0.966).lineTo(0.042, 1.034).lineTo(-0.042, 1.034).close().extrude(0.118)
result = result.edges().chamfer(0.031)
result = result.cut(c... | 3 | 28 | 0.0157 |
train_40b98ed98748fc80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.177, 0.314, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.129, 1.372).extrude(0.274)
result = result.union(cq.Workplane(cq.Plane(origin=(0.225, 0.314, 0.122), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.272, 0).lineTo(0.496, -0.389).lineTo... | 16 | 284 | 0.429506 |
train_4b7ce085b59a1759 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.44, -0.129, -0.303), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.12, 0.771).extrude(0.572)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.305, -0.016, 0.259), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.13).extrude(0.26))
result = result.... | 13 | 101 | 0.588185 |
train_04567ae6d3550705 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.09, 0.248, -0.143), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.219).workplane(offset=0.252).circle(0.197).workplane(offset=0.244).circle(0.21).loft()
result = result.edges().chamfer(0.107)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.0... | 41 | 87 | 0.190028 |
train_294ea0a5158fc2a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.94, 0.265), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.01, 0.003).threePointArc((-0.05, 0.022), (-0.091, 0.036)).threePointArc((-0.134, 0.044), (-0.177, 0.048)).threePointArc((-0.179, 0.083), (-0.183, 0.117)).threePointArc((-0.278, 0.104)... | 1 | 20 | 0.094459 |
train_b7e37d20d1956900 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.171), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.408).lineTo(-1, 0.408).lineTo(0.703, 0.408).lineTo(0.703, 0.087).lineTo(1, 0.087).lineTo(1, -0.408).lineTo(-1, -0.408).close().extrude(0.342)
result = result.edges().fillet(0.032)
res... | 13 | 90 | 0.466143 |
train_aa799b85d5e64804 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.182, -0.397), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.365).extrude(0.828)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, -0.114, 0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.228).extrude(0.078))
result = result.union... | 18 | 112 | 1.448188 |
train_cc00737a667a60a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.172, 0.031, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.986, 1.694).extrude(1.136)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.147, -0.253, -0.36), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.64, -0.462).lineTo(0.691, -0.462... | 3 | 29 | 2.233315 |
train_6add7d1735d68a7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.588, -0.301, -0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.823, 0.959).extrude(0.584)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.583, -0.266, -0.49), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.085).extrude(0.28))
result = resu... | 22 | 148 | 0.561634 |
train_9a0bdb3ff2be0b9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.2, -0.869, -0.15), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.75).lineTo(0, -0.75).lineTo(-0.235, -0.75).lineTo(-0.235, -0.8).lineTo(0.235, -0.8).lineTo(0.235, 0.8).lineTo(-0.235, 0.8).lineTo(-0.235, 0.75).lineTo(0, 0.75).close().sweep(cq.W... | 3 | 23 | 0.291452 |
train_9a7471122bf9b5b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, 0.128, 0.052), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.062, 0.062).lineTo(0.062, 0.872).lineTo(-0.062, 0.872).lineTo(-0.062, 0).lineTo(0, 0).lineTo(0, -0.062).lineTo(-0.062, -0.062).lineTo(-0.062, -0.872).lineTo(0.062, -0.872).lineTo(0... | 5 | 62 | 0.020475 |
train_bca649d3c5289826 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.867, -0.09, 0.094), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.134).sweep(cq.Workplane('XZ').spline([(-0.867, 0.094), (-0.286, 0.094), (0.295, 0.094), (0.486, -0.016), (0.678, -0.126), (0.869, -0.236)]))
result = result.union(cq.Workplane(cq.... | 10 | 48 | 0.033245 |
train_f208dbf2f96fb685 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, -0.165, -0.014), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.403, 0.429).extrude(0.185)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.088, -0.245, 0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.065).extrude(0.057))
result = result.... | 42 | 257 | 0.245769 |
train_b91ea001ea7dc803 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.055, -0.387, 0.003), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.345, -0.945).lineTo(0.345, 0.089).lineTo(0.517, 0.089).lineTo(0.356, 1.055).lineTo(-0.517, 1.055).lineTo(-0.517, -0.945).lineTo(0.345, -0.945).close().extrude(0.774)
result = resu... | 11 | 102 | 1.274069 |
train_15ba902936d62d60 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, 0.169, -0.446), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.117, -0.099).lineTo(0.116, -0.098).lineTo(0.121, 0.1).lineTo(-0.117, 0.099).close().moveTo(-0.016, 0).lineTo(-0.031, 0.021).lineTo(-0.056, 0.013).lineTo(-0.056, -0.013).lineTo(-0... | 23 | 389 | 0.690769 |
train_fbc848c7d26a48e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.009, -0.193), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.097, 0.649).lineTo(0.092, 0.64).lineTo(0.116, 0.125).lineTo(0.956, 0.131).lineTo(1.001, -0.101).lineTo(0.14, -0.119).lineTo(0.099, -0.631).lineTo(-0.096, -0.631).lineTo(-0.119, ... | 12 | 47 | 0.174607 |
train_ea0239ada774276b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.115, 0.354, 0.023), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.155, 0.245).lineTo(-0.155, 0.014).lineTo(0.155, 0.014).lineTo(0.155, 0.245).lineTo(-0.155, 0.245).close().extrude(0.216)
result = result.edges().fillet(0.106)
result = result.unio... | 13 | 102 | 0.085363 |
train_5715fab0c25cdba8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.535, 0.244, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.345, 1.352).threePointArc((0, 0.065), (-0.345, 1.352)).lineTo(0, 1.552).lineTo(0.345, 1.352).close().extrude(0.641)
result = result.edges().fillet(0.108)
result = result.union(cq.Workp... | 22 | 193 | 0.716986 |
train_199316504c2e12ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.056, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.05, 0.007).lineTo(-0.038, 0.019).lineTo(0.02, 0.077).lineTo(0.043, 0.1).lineTo(0.097, 0.154).lineTo(-0.002, 0.1).lineTo(-0.097, 0.1).lineTo(-0.061, 0.08).lineTo(-0.061, 0.019).lineTo(-0.... | 8 | 52 | 0.017618 |
train_2c2fb0152c23a000 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.267, 0.39, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.578, 0.236).lineTo(0.578, 1.267).lineTo(-0.578, 1.267).lineTo(-0.578, -0.859).lineTo(0.578, 0.236).close().extrude(0.78)
result = result.edges().chamfer(0.183)
result = result.cut(cq.Wo... | 11 | 55 | 1.171101 |
train_e96c31ec6f86943e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.673, -0.362), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.543).sweep(cq.Workplane('YZ').spline([(-0.673, -0.362), (-0.344, -0.057), (-0.014, 0.096), (0.315, 0.096), (0.645, -0.057), (0.974, -0.362)]))
result = result.edges().chamfer(0.372)
... | 4 | 15 | 0.850309 |
train_32bbb740684dd61b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.14, -0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.245, 1.72).extrude(0.108)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.327 * math.cos(4.597 + 2 * math.pi * 0 / 4), 0.14 + 0.327 * math.sin(4.597 + 2 * math.pi * 0 / 4), -0.049... | 13 | 45 | 0.196831 |
train_97d4f78529bb1829 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.074, -0.106, -0.723), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.336, 0.372).extrude(1.723)
result = result.union(cq.Workplane(cq.Plane(origin=(0.121, 0.106, 0.133), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.037, 0.053).extrude(0.145))
result = r... | 11 | 57 | 0.20846 |
train_2f6b63d4753eebff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.001, 0.524), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.022, -0.058).lineTo(0.121, 0.045).threePointArc((0.084, 0.071), (0.041, 0.084)).threePointArc((-0.004, 0.083), (-0.046, 0.068)).threePointArc((-0.082, 0.041), (-0.108, 0.004)).thre... | 4 | 21 | 0.005646 |
train_d36269868f7a1976 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.124, -0.018, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.44, 1.163).extrude(0.677)
result = result.union(cq.Workplane(cq.Plane(origin=(0.196, 0.04, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.296, 1.046).extrude(0.079))
result = result... | 15 | 211 | 0.920928 |
train_9c5df76a3fd283f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.034, -0.374, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.686, -0.626).lineTo(-0.686, -0.626).lineTo(-0.686, 1.374).lineTo(-0.667, 1.374).lineTo(-0.667, -0.607).lineTo(0.667, -0.607).lineTo(0.667, 1.374).lineTo(0.686, 1.374).lineTo(0.686, -0... | 2 | 12 | 0.120541 |
train_16b9f8dc0224d6b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.786).extrude(0.117)
result = result.union(cq.Workplane(cq.Plane(origin=(0.676, 0, -0.057), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.079).extrude(0.213))
result = result.cut(cq.Workplan... | 4 | 54 | 0.391684 |
train_499834f1dd30ab29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.377, -0.357), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.357, 0.117).lineTo(0.357, 0.56).lineTo(0.571, 0.56).threePointArc((0.622, 0.54), (0.643, 0.489)).lineTo(0.643, 0.76).threePointArc((0.622, 0.811), (0.571, 0.832)).lineTo(0.357, 0.832).... | 3 | 20 | 1.616459 |
train_213fc31da06fd8d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.001), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.28, 0.288).threePointArc((-0.262, 0.198), (-0.213, 0.122)).threePointArc((-0.046, -0.145), (0.235, -0.288)).threePointArc((0.28, -0.26), (0.256, -0.214)).threePointArc((0.055, -0.084), (-... | 1 | 10 | 0.098143 |
train_9ad440022e0a9994 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.48), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.474, 0.769).extrude(0.706)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.219), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.232, 0.39).extrude(0.224))
result = result.union(cq.Work... | 15 | 118 | 0.356055 |
train_8b8ad3412cba84ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.995, -0.106), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.33, 0.251).lineTo(0.894, -0.462).lineTo(0.629, -0.327).lineTo(-0.44, 0.249).lineTo(-0.497, 0.244).lineTo(-0.894, 0.445).lineTo(-0.882, 0.462).lineTo(-0.73, 0.404).lineTo(-0.342, 0.2... | 1 | 12 | 0.076215 |
train_71b61a6093afb5b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.518, -0.793, -0.623), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.346, 0.207).lineTo(-0.346, 0.172).lineTo(0.311, 0.172).lineTo(0.311, -0.207).lineTo(0.346, -0.207).lineTo(0.346, 0.207).lineTo(-0.346, 0.207).close().transformed(offset=(0.466, ... | 1 | 8 | 0.107156 |
train_fad1287eb70ace66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.021, -0.455, -0.699), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.301, 0.168).lineTo(-0.301, -0.126).lineTo(-0.188, -0.126).lineTo(-0.188, -0.095).lineTo(0.188, -0.095).lineTo(0.188, -0.125).lineTo(0.301, -0.125).lineTo(0.301, 0.138).lineTo(0.... | 4 | 26 | 0.088784 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.