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_1c0cfec3d6a57710 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.486), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.849).extrude(1.376)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.494 * math.cos(2.71 + 2 * math.pi * 0 / 3), 0 + 0.494 * math.sin(2.71 + 2 * math.pi * 0 / 3), -0.693), normal=(... | 24 | 206 | 4.392047 |
train_022ec4d82143ca30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.386, -0.134, -0.477), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.227, 0.439).extrude(0.334)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.54, 0.156, -0.34), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.675, 0.149).extrude(0.09))
result = r... | 27 | 133 | 0.219864 |
train_16f5583e79637ab7 | 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.718, 1.703).extrude(1.707)
result = result.union(cq.Workplane(cq.Plane(origin=(0.397, 0.074, 0.681), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.403, 0.685).extrude(0.319))
result = result.cut(cq.... | 18 | 51 | 3.87155 |
train_82aa353fc0557710 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.483, -0.209, -0.199), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.269, 0.459).lineTo(0.269, 0.09).threePointArc((0.192, 0.107), (0.209, 0.03)).lineTo(0.159, 0.03).lineTo(-0.159, 0.03).lineTo(-0.159, 0.117).threePointArc((-0.166, 0.133), (-0.182... | 9 | 64 | 0.165293 |
train_d2ff7b44f3676068 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, -0.049, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.589, 0.074).lineTo(0.589, 0.026).lineTo(-0.589, 0.025).lineTo(-0.589, 0.074).lineTo(0.589, 0.074).close().workplane(offset=0.015).moveTo(0.831, 0.084).lineTo(0.831, 0.017).lineTo(-0.8... | 16 | 40 | 0.004765 |
train_53dc3a46d09e8844 | 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.877, 0.906).extrude(1.601)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.185, 0.042, -1.048), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.046).extrude(1.922))
result = result.cut(cq.Workpl... | 11 | 59 | 0.985764 |
train_29f11fcd60f0590e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.38, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.381, 0.071).lineTo(0.381, 0.071).lineTo(0.381, 0.295).lineTo(-0.157, 0.833).lineTo(-0.381, 0.833).lineTo(-0.381, 0.071).close().extrude(1.663)
result = result.edges().fillet(0.154)
result ... | 43 | 326 | 0.383589 |
train_5453c07e7d58c44b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.269, -0.355, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.05).lineTo(1, 0.66).lineTo(0.887, 0.66).lineTo(0.887, 0.109).lineTo(0.047, 0.109).lineTo(0.047, 0.66).lineTo(-0.281, 0.66).lineTo(-0.281, 0.109).lineTo(-0.672, 0.109).lineTo(-0.672... | 5 | 94 | 0.272352 |
train_f951b1c319596727 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.502), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.588).extrude(1.004)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.107 * math.cos(0.171 + 2 * math.pi * 0 / 6), 0.502 + 0.107 * math.sin(0.171 + 2 * math.pi * 0 / 6), -1.534), no... | 8 | 16 | 2.493166 |
train_953e657e9b2278de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.296, -0.624), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.082, 1.409).extrude(1.124)
result = result.faces('<X').shell(-0.085)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.039, -0.292, -0.22), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.32... | 11 | 112 | 0.984307 |
train_a091f3ab3653bac3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.806, 0.941, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.257).sweep(cq.Workplane('XY').spline([(0.806, 0.164), (1.2, 0.189), (1.594, 0.441), (1.988, 0.694), (2.382, 0.719)]))
result = result.edges().chamfer(0.11)
| 2 | 5 | 0.09202 |
train_1f612951ad413295 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.272, 0.344, -0.487), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.272, 0.091).threePointArc((-0.235, -0.045), (-0.136, -0.144)).lineTo(0.136, -0.144).threePointArc((0.235, -0.045), (0.272, 0.091)).lineTo(0.136, 0.326).threePointArc((0, 0.363), ... | 36 | 444 | 0.449242 |
train_937cc324053749f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.064, -0.19, -0.013), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.114, 1.029).lineTo(-0.109, -0.877).lineTo(0.114, -0.943).lineTo(0.114, 1.068).lineTo(-0.114, 1.029).close().extrude(0.381)
result = result.edges().chamfer(0.023)
result = result.... | 12 | 86 | 0.163143 |
train_6314ec1daa729f5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.278, 0.119), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.265, 0.292).threePointArc((0.246, 0.31), (0.226, 0.326)).lineTo(0, 0.196).lineTo(-0.226, 0.326).threePointArc((-0.246, 0.31), (-0.265, 0.292)).threePointArc((-0.321, 0.218), (-0.357, ... | 8 | 24 | 0.335469 |
train_8297b98e06410704 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.799, 0, 0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.189).sweep(cq.Workplane('XZ').spline([(-0.799, -0.56), (-0.431, -0.952), (-0.063, -0.952), (0.305, -0.56)]))
result = result.edges().chamfer(0.132)
result = result.union(cq.Workplane(c... | 4 | 16 | 0.163747 |
train_000635455abb67ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.081, -1.096, -0.296), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.34, 0.034).lineTo(-0.341, 0.573).lineTo(0.1, 0.489).lineTo(0.341, 0.315).lineTo(-0.34, 0.034).close().extrude(0.591)
result = result.edges().fillet(0.125)
result = result.union(c... | 4 | 38 | 0.183044 |
train_5375cbdbb79eb0b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.725, 0.539, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.467, 0.072).lineTo(-1, 0.072).lineTo(-0.734, 0.338).lineTo(-0.6, 0.204).lineTo(0.022, 0.828).threePointArc((0.104, 0.883), (0.2, 0.901)).lineTo(0.2, 1.006).lineTo(0.377, 0.828).lineTo... | 1 | 13 | 0.658345 |
train_faece721eb6a46f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.945, 0, -0.812), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.055, -0.014).lineTo(-0.055, 0.014).lineTo(-0.043, 0.014).lineTo(-0.041, 0.016).lineTo(-0.023, 0.016).lineTo(-0.022, 0.014).lineTo(0.047, 0.014).lineTo(0.055, 0).lineTo(0.047, -0.014)... | 8 | 30 | 0.016784 |
train_ffa9ac00b3045e03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.724, -0.153, -0.094), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.224, -0.013).threePointArc((0, 0.211), (-0.224, -0.013)).lineTo(-0.275, -0.013).threePointArc((0, 0.275), (0.275, -0.013)).threePointArc((0.19, -0.199), (0, -0.275)).lineTo(0, -... | 4 | 22 | 0.105015 |
train_3dab8b67b23da6a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.077, 0, 0.099), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.25).sweep(cq.Workplane('XZ').spline([(-0.869, -0.292), (-0.516, -0.292), (-0.163, -0.292), (0.232, -0.426), (0.627, -0.561), (1.023, -0.695)]))
result = result.edges().chamfer(0.232)
re... | 3 | 9 | 0.323487 |
train_4d84ee7140133a24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, 0.126), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.267, -0.258).lineTo(0.267, -0.161).lineTo(0.343, -0.161).lineTo(0.343, 0.258).lineTo(-0.343, 0.258).lineTo(-0.343, -0.161).lineTo(-0.267, -0.161).lineTo(-0.267, -0.258).lineTo(0.267, -0.2... | 21 | 90 | 0.237515 |
train_45b904c4fb12d5dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.081, -0.277, -0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.061, 0.262).lineTo(0.076, 0.256).lineTo(0.073, 0.063).lineTo(0.342, 0.073).lineTo(0.329, -0.059).lineTo(0.073, -0.072).lineTo(0.071, -0.262).lineTo(-0.069, -0.253).lineTo(-0.075,... | 22 | 294 | 0.328333 |
train_e0dc84b50d9802f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.991, 2).extrude(0.068)
| 1 | 6 | 0.270776 |
train_aaf54bfb581cce11 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.036, -0.036, 0.678), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.036, 1.036).threePointArc((-0.346, 0.346), (-1.036, -1.036)).lineTo(-0.336, -1.036).threePointArc((0.144, -0.144), (1.036, 0.336)).lineTo(1.036, 1.036).close().extrude(1.356)
res... | 3 | 30 | 1.853664 |
train_0490e6692ca66d1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, 0, -0.426), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.407, 0.825).threePointArc((0.279, 0.815), (0.154, 0.785)).threePointArc((0.021, 0.729), (-0.1, 0.65)).threePointArc((-0.378, 0.252), (-0.407, 0.133)).threePointArc((-0.221, -0.534), (... | 5 | 28 | 0.435071 |
train_0124a4897dd27c7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.115, -0.047, -0.451), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.432, -0.022).lineTo(-0.432, 0.569).threePointArc((-0.001, 0.023), (0.432, -0.521)).lineTo(-0.432, -0.022).close().extrude(1.214)
result = result.edges().fillet(0.074)
result = re... | 20 | 142 | 0.1976 |
train_a6161a7070d4a517 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.132, 0, 0.855), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.872).workplane(offset=0.297).circle(0.725).workplane(offset=0.262).circle(0.836).workplane(offset=0.227).circle(0.63).workplane(offset=0.328).circle(0.711).workplane(offset=0.314).circ... | 4 | 11 | 2.320714 |
train_6533b4b2cc7e38d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.043, 0, -0.165), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.975, 0.294).extrude(0.255)
result = result.faces('<Y').shell(-0.015)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.023, 0.114, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.4... | 7 | 46 | 0.017611 |
train_7143629705829c90 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.005, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.58, 0.91).lineTo(0.58, 1).lineTo(0.58, -1).lineTo(-0.58, -0.97).lineTo(-0.58, 0.91).close().extrude(2)
result = result.edges().chamfer(0.201)
result = result.cut(cq.Workplane(cq.Plane(or... | 13 | 88 | 2.753852 |
train_abf4ced4f399dd75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.251, 0.506, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.824, 1.13).lineTo(-0.824, -0.749).lineTo(-0.363, -0.749).lineTo(-0.363, 0.668).lineTo(0.363, 0.668).lineTo(0.363, -0.749).lineTo(0.824, -0.749).lineTo(0.824, 1.13).lineTo(-0.824, 1.13... | 11 | 97 | 1.587685 |
train_db12d0a2bd001edf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.237, -0.632, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.17, 0.13).lineTo(0.569, 0.103).lineTo(1.17, 0.834).lineTo(0.616, 1.203).lineTo(-1.17, 0.13).close().extrude(2)
result = result.edges().fillet(0.232)
result = result.cut(cq.Workplane... | 18 | 207 | 1.879378 |
train_10f2ae89bd21d244 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.867, -0.134), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.674, 1.127).threePointArc((-0.777, 1.084), (-0.821, 0.979)).lineTo(-0.821, 0.244).threePointArc((-0.777, 0.14), (-0.674, 0.096)).lineTo(0.674, 0.096).threePointArc((0.777, 0.14), (0... | 13 | 66 | 2.529182 |
train_e82cf89b2416a6c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.453, -0.183, -0.413), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.095, 1.077).extrude(0.825)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.376, -0.154, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.314, 0.379).extrude(0.222))
result =... | 22 | 373 | 0.931442 |
train_a362ae6661e89cb9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.231, -0.175, -0.196), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.894, 1.05).extrude(0.693)
result = result.union(cq.Workplane(cq.Plane(origin=(0.357, -0.258, -0.337), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.115).extrude(0.145))
result = resul... | 18 | 71 | 0.47901 |
train_7e35419dfd979bc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.057, -0.055, -0.377), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.495, 0.056).lineTo(0.407, 0.056).lineTo(0.441, 0.152).lineTo(0.118, 0.13).lineTo(-0.224, 0.106).lineTo(-0.531, 0.086).lineTo(-0.52, 0.056).lineTo(-0.531, 0.027).lineTo(-0.224, 0.0... | 11 | 126 | 0.32356 |
train_9d6f43a9847c916c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.105, -0.11, -0.397), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.1).lineTo(0.216, 0.1).lineTo(0.216, 0.007).lineTo(-0.216, 0.007).lineTo(-0.216, 0.1).lineTo(0, 0.1).close().extrude(0.287)
result = result.edges().chamfer(0.021)
result = resul... | 26 | 195 | 0.057107 |
train_38dde968c0b8e8c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, -0.355, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.062, -0.103).threePointArc((0.041, 0.013), (0.035, 0.131)).threePointArc((-0.121, 0.163), (-0.28, 0.177)).threePointArc((-0.286, 0.303), (-0.302, 0.428)).threePointArc((-0.649, 0.382... | 2 | 31 | 0.711798 |
train_efcae35c49fd808d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.614, -0.144, 0.287), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.058, 1.041).threePointArc((-0.175, 1.017), (-0.287, 0.968)).lineTo(-0.287, 0.758).lineTo(-0.495, 0.758).threePointArc((-0.545, 0.648), (-0.57, 0.529)).lineTo(-0.344, 0.529).lineT... | 7 | 33 | 1.062841 |
train_343fbdb0ea41103b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.613, 0, 0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.604, 0.36).extrude(0.19)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.577, -0.045, 0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.106, 0.162).extrude(0.106))
result = result.cut(... | 16 | 184 | 0.086688 |
train_1316b69bb5b855ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.628, -0.2, 0.581), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.01, 0.002).lineTo(-0.01, 0.375).lineTo(0.372, 0.377).lineTo(0.372, 0.002).lineTo(0.367, -0.377).lineTo(-0.372, -0.377).lineTo(-0.372, 0.356).lineTo(-0.016, -0.005).lineTo(-0.01, -0.... | 7 | 69 | 0.203842 |
train_29f8b3b6a0642e28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, 0.316, 0.239), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.146, 0.163).threePointArc((-0.128, 0.106), (0.146, 0.049)).lineTo(0.343, -0.037).threePointArc((-0.343, 0.106), (0.343, 0.249)).lineTo(0.146, 0.163).close().extrude(0.641)
result = ... | 6 | 47 | 0.164015 |
train_810d312715aebf63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.005, -0.665), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.826, 0.652).extrude(0.014)
result = result.union(cq.Workplane(cq.Plane(origin=(0.039, 0.223, -0.645), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.07, 0.1).threePointArc((-0.154, 0.02), ... | 11 | 93 | 0.783845 |
train_8d164c06d2dab0e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.289, -0.114, -0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.423, 1.258).extrude(0.088)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.218, -0.051, 0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.281, 1.132).extrude(0.01))
result =... | 16 | 75 | 0.190895 |
train_be2256c6f2ec2ca7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.244, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.157).extrude(0.697)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.422, -0.163, -0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.524, 1.389).extrude(0.172))
result = result.c... | 14 | 87 | 1.234976 |
train_7fd0786b0aff266f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.84, -0.845, -0.853), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.013, -0.155).threePointArc((-0.155, -0.013), (-0.013, 0.155)).threePointArc((0.155, 0.013), (0.013, -0.155)).close().transformed(offset=(0.185, 0.274, 0.151), rotate=(60, 0, 0)).m... | 1 | 7 | 0.111855 |
train_0e22a4ebcadb7879 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.41, 0, -0.277), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.757, 2).extrude(0.838)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.128, -0.264, -0.192), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.174).extrude(0.358))
result = result.union(... | 5 | 23 | 1.435795 |
train_f38d9180cf8af281 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.06, 0.167, -0.623), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.295, 1.592).extrude(1.579)
result = result.union(cq.Workplane(cq.Plane(origin=(0.033, 0.948, -0.064), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.033, 1.033).threePointArc((0.063, 1.... | 21 | 80 | 2.463944 |
train_8614fe59fe281160 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.971, 0, 0.497), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.02, 0.039).lineTo(0.023, 0.039).lineTo(0.023, 0.035).lineTo(0.02, 0.035).lineTo(0.02, -0.039).lineTo(-0.02, -0.039).lineTo(-0.02, -0.035).lineTo(-0.023, -0.035).lineTo(-0.023, 0.035)... | 1 | 12 | 0.002154 |
train_c929bbbdf346815b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.375, -0.045, -0.193), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.634, 0.737).extrude(0.699)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.375, -0.231, -0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.036).extrude(0.329))
result = resu... | 17 | 96 | 0.739544 |
train_046d2afbd845ba77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.266, -0.213, -0.442), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.468, 0.713).extrude(0.623)
result = result.union(cq.Workplane(cq.Plane(origin=(-1.229, 0.047, -0.017), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.45, 0.311).threePointArc((0.459, ... | 7 | 135 | 0.671292 |
train_010faff81c6712ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.158, -0.225, -0.539), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.515, 1.55).extrude(0.144)
result = result.union(cq.Workplane(cq.Plane(origin=(0.157, 0.081, -0.399), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.235, 0.405).extrude(0.064))
result = r... | 15 | 242 | 0.980391 |
train_4c5c83ec1e75359f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.182, 0, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.637, 1.656).extrude(0.42)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.1, 0.083, 0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.736).extrude(0.055))
result = result.union... | 4 | 19 | 1.191279 |
train_c8fb06de111cee8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.119, -0.066), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.987, 0.144).lineTo(-1, 0.144).lineTo(-1, 0.143).lineTo(-0.987, -0.048).lineTo(-0.987, -0.144).lineTo(1, -0.144).lineTo(1, 0.144).lineTo(-0.987, 0.144).close().sweep(cq.Workplane('YZ... | 6 | 26 | 0.144137 |
train_0bcd956b24845ee4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.627, 0, -0.161), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.122, -0.091).lineTo(-0.122, -0.091).lineTo(-0.122, 0.091).lineTo(0.122, 0.091).lineTo(0.122, -0.091).close().sweep(cq.Workplane('XZ').spline([(-0.627, -0.415), (-0.219, -0.076), (0.19... | 3 | 17 | 0.118169 |
train_340026478fc0fb89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.83, -0.657, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.599, 0.657).lineTo(0.588, 0.538).lineTo(0.555, 0.421).lineTo(0.504, 0.312).lineTo(0.435, 0.215).lineTo(0.349, 0.133).lineTo(0.247, 0.069).lineTo(0.128, 0.028).lineTo(-0.005, 0.014).lin... | 9 | 63 | 2.165526 |
train_d92b6d5f0721cba5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.497, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.459, 0.885).lineTo(0.459, 0.92).lineTo(0.007, 1).lineTo(0.007, 0.653).lineTo(-0.007, 0.653).lineTo(-0.007, 0.885).lineTo(-0.459, 0.885).lineTo(-0.459, 0.619).lineTo(-0.007, 0.538).lineTo(0... | 5 | 49 | 0.553462 |
train_53371a8281b44609 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.881, 0.117, 0.038), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.06, 0.119).lineTo(-0.024, 0.119).lineTo(-0.024, 0.114).threePointArc((0.06, 0), (-0.024, -0.114)).lineTo(-0.024, -0.119).lineTo(-0.06, -0.119).lineTo(-0.06, 0.119).close().sweep(c... | 2 | 16 | 0.005947 |
train_f2b3ae5a26ef6dbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.174, -0.335, 0.665), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.335, 0.015).lineTo(-0.335, -0.117).lineTo(0.335, -0.117).lineTo(0.335, 0.148).lineTo(0.206, 0.148).lineTo(0.206, 0.309).lineTo(-0.224, 0.309).lineTo(-0.224, 0.148).lineTo(-0.004,... | 19 | 187 | 0.136307 |
train_e2b3c4bb3e3b0457 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.679, -0.068, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.325, -0.352).lineTo(0.321, -0.345).lineTo(0.317, 0.355).lineTo(-0.318, 0.349).close().moveTo(-0.188, -0.063).lineTo(-0.02, -0.063).lineTo(-0.021, -0.032).lineTo(-0.158, -0.033).l... | 17 | 159 | 0.069342 |
train_89bb09766aa03c46 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.93, 0, -0.185), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.315, -0.019).lineTo(0.142, -1).lineTo(0.238, -0.765).lineTo(0.238, -0.758).lineTo(0.237, -0.763).lineTo(0.119, -0.638).lineTo(0.218, -0.386).lineTo(0.22, -0.381).lineTo(-0.125, -0.37... | 22 | 27 | 0.352502 |
train_690d7ea2b95b0f00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.304, -0.301), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.561, 1.392).extrude(1.117)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.092, 0.683, 0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.265, 0.635).extrude(0.241))
result = resul... | 9 | 43 | 0.736811 |
train_dff7500fa70aa493 | 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.765, 0.867).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.347, -0.054, -0.498), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.029).extrude(0.222))
result = result.edges().fillet(... | 11 | 81 | 1.253427 |
train_6e07eddc410d7024 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.845, 2).extrude(0.61)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.439, 0.109, -0.323), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.215).extrude(0.732))
result = result.edges().fille... | 13 | 36 | 2.112079 |
train_b2022d0d3128e378 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.141, -0.684, -0.319), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.536).threePointArc((0.393, -0.411), (0.642, -0.082)).threePointArc((0.681, 0.145), (0.642, 0.372)).threePointArc((0.393, 0.701), (0, 0.826)).lineTo(0, 0.372).lineTo(-0.642, 0... | 12 | 88 | 1.522313 |
train_e45831c9b3d07de4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.454, 0.411, 0.264), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.2, 0.833).lineTo(-0.2, 0.033).lineTo(0.2, 0.033).lineTo(0.2, 0.833).lineTo(-0.2, 0.833).close().extrude(0.206)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.388, 0.258)... | 15 | 115 | 0.096534 |
train_15b3266718f60067 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.668, 1, 0.1), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.455, 0.123).lineTo(0.455, 0.262).lineTo(0.594, 0.262).lineTo(0.594, 1.31).lineTo(-0.455, 1.31).lineTo(-0.455, 1.172).lineTo(-0.594, 1.172).lineTo(-0.594, 0.123).lineTo(0.455, 0.123).clos... | 12 | 69 | 1.145206 |
train_f99d7c0de7df07c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.005, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.895, 1.033).extrude(0.966)
result = result.union(cq.Workplane(cq.Plane(origin=(0.173, 0.714, -0.652), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.214, 0.192).lineTo(1.652, 0.192).threePoin... | 3 | 12 | 0.936805 |
train_54d0fe4f9e076513 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.074), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.914, 2).extrude(0.121)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.365 + 0.1825, -0.8 + 0.2665, 0.047), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.119, 0.013).lineTo(-0.119, 0.0... | 7 | 108 | 0.221777 |
train_fc729d4a7599251f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.618, 0.502, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.541).lineTo(0.923, 0.618).lineTo(0, -0.306).lineTo(-0.923, 0.618).lineTo(0, 1.541).close().extrude(1.502)
result = result.edges().chamfer(0.359)
result = result.cut(cq.Workplane(cq.... | 19 | 312 | 1.369795 |
train_0b8f021222f61b69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.797, -0.576, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.556, 1.001).lineTo(-1.078, 0.7).lineTo(-0.726, 0.091).lineTo(0.726, 0.091).lineTo(1.078, 0.7).lineTo(0.875, 0.817).lineTo(0.556, 1.001).lineTo(-0.556, 1.001).close().extrude(1.593)
r... | 35 | 264 | 1.841346 |
train_add0b4acfe7cc94a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.279, 0.159, 0.247), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.344, 0.385).extrude(0.331)
result = result.union(cq.Workplane(cq.Plane(origin=(0.206, -0.186, 0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.05, 0.33).extrude(0.015))
result = resu... | 3 | 41 | 0.095991 |
train_542970e4368c72c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.229, 0.46, 0.252), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.482, 1.1).lineTo(0.482, 1.1).lineTo(0.482, 0.589).lineTo(0.748, 0.589).lineTo(0.748, -0.038).lineTo(-0.748, -0.038).lineTo(-0.748, 0.589).lineTo(-0.482, 0.589).lineTo(-0.482, 1.1).... | 16 | 136 | 0.633216 |
train_3224789015ef7675 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.055, 0.054, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.46, 1.293).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.138, -0.645, 0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.056).extrude(0.214))
result = result.edges(... | 14 | 105 | 3.6586 |
train_77cfcd728fcf84af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.653, 0.191, -0.162), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.347, -0.162).threePointArc((-0.335, -0.07), (-0.302, 0.016)).threePointArc((-0.239, 0.099), (-0.155, 0.162)).lineTo(0.201, 0.162).threePointArc((0.284, 0.099), (0.347, 0.016)).l... | 3 | 18 | 0.058261 |
train_2ebe983b656b3c37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.381, -0.035, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.417, 0.266).extrude(0.282)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.089, 0.003, -0.047), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.099, -0.911).lineTo(-0.099, 1.08... | 7 | 144 | 0.040241 |
train_a488ff04c75775b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.326, -0.617, -0.012), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.512, 0.028).lineTo(-1.023, 0.028).lineTo(-0.767, 0.283).lineTo(-0.639, 0.156).lineTo(-0.043, 0.753).lineTo(0.128, 0.924).lineTo(0.384, 0.924).lineTo(1.023, 0.283).lineTo(0.895, ... | 7 | 80 | 0.296588 |
train_1c3548dbf1dc75c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.221, -0.952), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.932, 1.559).extrude(1.904)
result = result.union(cq.Workplane(cq.Plane(origin=(0.276, 0.759, -0.393), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.241).extrude(0.845))
result = result.ed... | 3 | 39 | 5.810315 |
train_041afbb3c1520d54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.357, -1, -0.013), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.035, 0.059).lineTo(0.035, 0.02).lineTo(-0.041, 0.02).lineTo(-0.041, -0.053).lineTo(-0.043, -0.053).lineTo(-0.043, 0.02).lineTo(-0.079, 0.02).lineTo(-0.079, -0.059).lineTo(0.079, -0.0... | 3 | 26 | 0.029611 |
train_5bcd328493a9eee6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.066, 0.087, -0.247), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.467, -0.004).lineTo(0.331, 0.317).lineTo(-0.002, 0.471).lineTo(-0.334, 0.348).lineTo(-0.476, -0.005).lineTo(-0.34, -0.32).lineTo(-0.006, -0.483).lineTo(0.341, -0.344).close().moveT... | 26 | 104 | 0.201764 |
train_d2fa5aabf5b069ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.514, -0.75), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.22).workplane(offset=0.177).circle(0.195).workplane(offset=0.173).circle(0.204).workplane(offset=0.182).circle(0.233).workplane(offset=0.157).circle(0.204).workplane(offset=0.159).circ... | 6 | 19 | 0.115869 |
train_8caf3f07013bd4bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.151, -0.004, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.159, -0.3).lineTo(-0.478, 0.018).lineTo(-0.159, 0.018).lineTo(-0.159, 0.337).lineTo(0.159, 0.018).lineTo(0.478, -0.3).lineTo(-0.159, -0.3).close().extrude(0.748)
result = result.edge... | 13 | 141 | 0.290326 |
train_d78d02c64020af3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.154, -0.001, -0.167), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.157, 0.099).extrude(0.016)
result = result.union(cq.Workplane(cq.Plane(origin=(0.154, -0.041, -0.149), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.024, -0.014).threePointArc((0, 0... | 9 | 180 | 0.050777 |
train_2a00892621fa57bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.46, -0.037, -0.093), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.556, -0.963).lineTo(-0.556, 1.037).lineTo(0.283, 1.037).threePointArc((0.363, 0.845), (0.556, 0.765)).lineTo(0.556, -0.963).lineTo(-0.556, -0.963).close().extrude(0.921)
result =... | 10 | 46 | 1.426083 |
train_81a043daaa68f4c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.217, 0.517, 0.004), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.521, 1.217).lineTo(-0.521, -0.783).lineTo(0.521, -0.783).lineTo(0.521, -0.496).threePointArc((-0.1, 0.125), (0.521, 0.746)).lineTo(0.521, 1.217).lineTo(-0.521, 1.217).close().revo... | 7 | 66 | 0.726078 |
train_e9cdbd9b02619746 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.262, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.605, 0.49).threePointArc((0, 0.034), (1.605, 0.49)).lineTo(-1.605, 0.49).close().extrude(0.425)
result = result.edges().fillet(0.166)
result = result.cut(cq.Workplane(cq.Plane(origin... | 9 | 107 | 0.272677 |
train_e31981e0e1a34222 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, -0.445, 0.607), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.306, 1.144).lineTo(-0.393, 1.144).lineTo(-0.393, 0.445).lineTo(-0.306, 0.445).lineTo(-0.306, -0.255).lineTo(-0.218, -0.255).lineTo(-0.218, 0.357).lineTo(0.393, 0.357).lineTo(0.393,... | 3 | 18 | 0.263087 |
train_a2e401ccf235cab0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.62, -0.005, 0.007), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.38, -0.008).lineTo(-0.38, 0.008).lineTo(0.38, 0.008).lineTo(0.38, -0.008).lineTo(-0.38, -0.008).close().extrude(0.013)
result = result.edges().fillet(0.003)
result = result.union... | 5 | 53 | 0.000165 |
train_581fdc5b5ac1650c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.566, -0.637, 0.004), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.291, -0.373).threePointArc((0.709, 0.104), (0.607, 0.73)).threePointArc((-0.074, 1.565), (-0.657, 0.659)).threePointArc((-0.709, 0.079), (-0.325, -0.361)).threePointArc((-0.019, -... | 4 | 30 | 2.757706 |
train_c92dee07dd01f52e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.153, 0.049, 0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.86, 0.031).lineTo(0.793, 0.103).lineTo(0.085, 0.951).lineTo(-0.553, 0.696).lineTo(-0.384, -0.405).lineTo(-0.124, -0.8).lineTo(0.241, -0.549).lineTo(0.538, -0.224).close().moveTo(-0... | 25 | 179 | 0.500912 |
train_a6234ffe9c56eec3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, 0, -0.291), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.261, 0.72).extrude(0.581)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.056, 0, -0.378), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.81, 0.418).extrude(0.755))
result = result.unio... | 11 | 32 | 0.355492 |
train_af05c9f94697df57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.259, -0.215, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.754, -0.18).threePointArc((0, 0.459), (0.754, -0.18)).lineTo(0.804, -0.23).lineTo(1.004, -0.03).threePointArc((0, 0.736), (-1.004, -0.03)).lineTo(-0.804, -0.23).lineTo(-0.754, -0.18)... | 4 | 50 | 0.284005 |
train_0210deea6460d500 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.424, 0.754, 0.615), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.628, 1.619).extrude(0.519)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.468, 0.669, 0.813), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.754, 0.236).extrude(0.05))
result = result... | 25 | 43 | 0.108418 |
train_9c580cf536a3c906 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0, -0.61), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.116, 0.158).extrude(0.228)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.004, 0, -0.391), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.034).extrude(0.182))
result = result.union(... | 14 | 88 | 0.009016 |
train_69c424476d5942fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.838, 0.387), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.031, -0.054).lineTo(-0.156, -0.054).lineTo(-0.093, 0.054).lineTo(-0.031, 0.162).lineTo(0.031, 0.054).lineTo(0.156, 0.054).lineTo(0.093, -0.054).lineTo(0.156, -0.162).lineTo(0.031, -0.1... | 6 | 35 | 0.027081 |
train_1362c69681548a0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.027, -0.031, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.533, 0.456).extrude(1.782)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.061, 0.227, -0.728), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.032).extrude(0.234))
result = result.... | 12 | 83 | 0.417063 |
train_423503a19d77f9d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.424, -0.64, -0.358), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.576, 0.596).lineTo(0.576, 0.596).lineTo(0, 0.02).lineTo(-0.288, 0.308).lineTo(-0.576, 0.308).lineTo(-0.576, 0.596).close().extrude(0.325)
result = result.edges().fillet(0.083)
re... | 8 | 106 | 0.392174 |
train_824ffe7cb3a002d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.174, 0.092, 0.516), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.466).sweep(cq.Workplane('XZ').spline([(-0.446, 0.015), (-0.316, 0.143), (-0.281, 0.303), (-0.348, 0.456)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-0.063, -0.097, -0.98... | 9 | 43 | 0.622938 |
train_5b46db64f62c5996 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.627, -0.067, 0.366), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.065, -0.386).threePointArc((0.388, 0.386), (-0.388, 0.073)).lineTo(-0.388, 0.062).threePointArc((-0.254, -0.255), (0.065, -0.386)).close().sweep(cq.Workplane('XZ').spline([(-0.18... | 3 | 5 | 0.278454 |
train_727a375587d359e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.467, -0.614, -0.105), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.349).sweep(cq.Workplane('XY').spline([(0.467, 0.035), (0.366, 0.363), (0.135, 0.538), (-0.127, 0.483), (-0.307, 0.223), (-0.33, -0.131), (-0.184, -0.427), (0.068, -0.54)]))
resul... | 5 | 12 | 0.633672 |
train_084bdabdc6d9b1b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.118, 0.606, -0.182), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.552, 0.513).lineTo(-0.552, 0.35).lineTo(-0.818, 0.35).lineTo(-0.818, 0.022).lineTo(0.818, 0.022).lineTo(0.818, 0.513).lineTo(0.45, 0.513).lineTo(0.45, 0.227).lineTo(0.245, 0.227)... | 17 | 293 | 0.258448 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.