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_0d6eddb35e572155 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, -0.03, 0.5), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.121).lineTo(-0.5, -0.288).lineTo(-0.466, -0.288).lineTo(-0.466, 0.087).lineTo(0.466, 0.087).lineTo(0.466, -0.288).lineTo(0.5, -0.288).lineTo(0.5, 0.348).lineTo(0.466, 0.348).line... | 1 | 10 | 0.117297 |
train_53cf8f7468b46cff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.118, -0.205), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.652, -0.02).lineTo(-0.652, 0.256).lineTo(0.652, 0.256).lineTo(0.652, -0.02).lineTo(-0.652, -0.02).close().extrude(2)
result = result.edges().fillet(0.118)
result = result.union(cq.Wo... | 9 | 60 | 0.579291 |
train_fb345f00e28212ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.076, -0.389, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.55, 0.55).extrude(0.611)
result = result.union(cq.Workplane(cq.Plane(origin=(0.235, -0.384, -0.803), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.043).extrude(0.094))
result = result.un... | 4 | 27 | 0.905279 |
train_0e45b89be7551e04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.617, 0.052), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.043, -0.383).lineTo(0.64, -0.383).lineTo(0.555, -0.299).lineTo(0.435, -0.299).lineTo(0.398, -0.262).lineTo(0.462, -0.208).lineTo(-0.043, 0.383).lineTo(-0.548, -0.208).lineTo(-0.64, -0... | 5 | 26 | 1.222186 |
train_74e7141887a82cb3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.181), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.964, 2).extrude(0.361)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.181, -1.481), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.013, 0.067).lineTo(0.012, 0.074).lineTo(0.074, 0.074).... | 14 | 69 | 1.084873 |
train_11320e8cef695ab1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.337, -0.457, -0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.801, 1.086).extrude(0.423)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.133, -0.522, -0.108), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.413, 0.316).extrude(0.256))
result =... | 14 | 88 | 1.039907 |
train_6aec219833508cca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, -0.064, -0.328), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.221, -0.451).threePointArc((0, -0.61), (-0.221, -0.451)).lineTo(-0.221, 0.079).lineTo(-0.309, 0.079).lineTo(-0.227, 0.575).lineTo(-0.221, 0.61).lineTo(0.221, 0.61).lineTo(0.227,... | 17 | 211 | 0.25055 |
train_6a1e1cbd244ef8e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.236, 0.016, -0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.002, 0.756).lineTo(-0.441, 0.984).lineTo(-0.823, -0.014).lineTo(-0.609, -1.016).lineTo(-0.493, -0.885).lineTo(0.31, -0.7).lineTo(0.724, -0.461).close().moveTo(-0.022, 0.298).lineTo... | 9 | 59 | 0.779417 |
train_dc2565c7189ccac9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.39).extrude(0.928)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.169, -0.034, -0.479), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.214, 0.311).extrude(0.576))
result = result.edges()... | 26 | 190 | 1.250218 |
train_1ea956d9b66500ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.456, 0.383, 0.631), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.383, 0.854).lineTo(-0.383, 0.057).lineTo(0.383, 0.057).lineTo(0.383, 0.854).lineTo(-0.383, 0.854).close().revolve(angleDegrees=180, axisStart=(-0.383, 0.854), axisEnd=(-0.383, 0.0... | 9 | 48 | 0.614428 |
train_a07bdd739e0f3766 | 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.677, 0.852).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.038, 0.223, -0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.138, 0.428).extrude(0.624))
result = result.cut(cq.Work... | 14 | 112 | 0.950086 |
train_ef4e2f6734e718b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, -0.543, -0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.045, 0.615).threePointArc((0.061, 0.572), (0.104, 0.466)).lineTo(0.104, -0.308).threePointArc((0.061, -0.414), (-0.045, -0.457)).lineTo(-0.104, -0.457).lineTo(-0.104, -0.338).lin... | 12 | 245 | 0.068123 |
train_8f154faf3cce0087 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.237, 0.35, 0.115), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.195, 0.13).lineTo(-0.195, -0.13).lineTo(-0.185, -0.13).lineTo(-0.185, -0.122).lineTo(0.177, -0.122).lineTo(0.177, -0.13).lineTo(0.185, -0.13).lineTo(0.185, -0.122).lineTo(0.187, -... | 4 | 36 | 0.027698 |
train_d806dac889e4bbc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.213, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.257, 0.321).lineTo(0.257, 0.257).lineTo(0.321, 0.257).lineTo(0.321, -0.257).lineTo(0.257, -0.257).lineTo(0.257, -0.321).lineTo(0.321, -0.321).lineTo(-0.321, -0.321).lineTo(-0.321, 0.321).li... | 24 | 43 | 0.222845 |
train_9e1cb802b0184e43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.056, -0.25, -0.595), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.097, -0.153).lineTo(0.363, 0.309).lineTo(0.34, 0.322).lineTo(-0.012, 0.525).lineTo(-0.363, 0.322).lineTo(-0.35, 0.299).lineTo(-0.012, 0.494).lineTo(0.326, 0.299).lineTo(0.108, 0.12... | 16 | 102 | 0.229623 |
train_162dcd3d62942650 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.122, -0.583), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.232, 2.122).lineTo(0.232, 0.522).lineTo(-0.632, 0.522).lineTo(-0.632, 0.122).lineTo(0.632, 0.122).lineTo(0.632, 2.122).lineTo(0.232, 2.122).close().extrude(1.166)
result = result.edge... | 4 | 63 | 1.213437 |
train_cc7fdc69c8bd7b74 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.048, 0.267, -0.552), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.634, 1.466).extrude(0.728)
result = result.union(cq.Workplane(cq.Plane(origin=(0.233, 0.036, 0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.322).extrude(0.329))
result = result.... | 5 | 28 | 2.248159 |
train_420e9f9e630c2759 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.218, -0.729), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.193).workplane(offset=0.136).circle(0.269).workplane(offset=0.138).circle(0.209).workplane(offset=0.163).circle(0.236).loft()
result = result.edges().fillet(0.019)
result = result.uni... | 6 | 24 | 0.153898 |
train_80ed6bc153b03b7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.466, -0.219, -0.076), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.222).sweep(cq.Workplane('XY').spline([(0.072, -0.219), (0.802, -0.219), (0.975, -0.313), (1.147, -0.408)]))
result = result.edges().chamfer(0.047)
result = result.union(cq.Workp... | 9 | 41 | 0.132671 |
train_020137dce6461e1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.495, 0, -0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.01, 1.136).extrude(0.821)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.424, -0.093, 0.173), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.069).extrude(0.084))
result = result.edges(... | 14 | 96 | 0.703776 |
train_30d90fa3693a5c4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.559, 0.573, 0.106), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.876, 0.357).threePointArc((-0.894, 0.537), (-0.876, 0.717)).threePointArc((-0.632, 1.169), (-0.18, 1.413)).threePointArc((0, 1.432), (0.18, 1.413)).threePointArc((0.632, 1.169), (... | 5 | 45 | 2.86458 |
train_778ae45b94786203 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, -0.064, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.853, 1.853).extrude(1.724)
result = result.union(cq.Workplane(cq.Plane(origin=(0.093, 0.092, 0.697), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.728, 1.796).extrude(0.303))
result = resul... | 13 | 113 | 5.125662 |
train_275b36c5ea70fe5b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.831, 0.912, 0.096), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.498, 0.72).lineTo(-0.498, -0.151).lineTo(0.498, -0.151).lineTo(0.498, 0.72).lineTo(0, 1.354).lineTo(0, 0.72).lineTo(-0.498, 0.72).close().extrude(1.318)
result = result.edges().ch... | 11 | 129 | 0.836807 |
train_0c03063af77142be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.022, -0.171, -0.234), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.156, 1.022).lineTo(0.156, -0.978).lineTo(-0.156, -0.978).lineTo(-0.156, 1.022).lineTo(0.156, 1.022).close().extrude(0.47)
result = result.edges().chamfer(0.06)
result = result.un... | 7 | 94 | 0.38893 |
train_38456ec5546bfa1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.244, -0.085, 0.085), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.915, 0).lineTo(-0.915, -0.219).lineTo(0.915, -0.219).lineTo(0.915, 0.219).lineTo(-0.915, 0.219).lineTo(-0.915, 0).close().sweep(cq.Workplane('XY').spline([(-0.005, -0.216), (0.0... | 11 | 51 | 0.465311 |
train_dfbe0e24d143d52a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.083), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.134, 1.017).threePointArc((0.145, 0.985), (0.169, 0.96)).threePointArc((0.289, 0.778), (0.239, 0.565)).threePointArc((0.225, 0.534), (0.225, 0.5)).threePointArc((-0.289, 0.676), (0.134, 1.... | 4 | 16 | 0.909531 |
train_ee3bfbfe59aadada | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.07, 0.24, -0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.762, 0.017).lineTo(0.242, 0.76).lineTo(-0.616, 0.468).lineTo(-0.622, -0.435).lineTo(0.244, -0.747).close().moveTo(0.134, 0.237).lineTo(0.065, 0.353).lineTo(-0.069, 0.356).lineTo(-0.... | 13 | 116 | 0.242747 |
train_929e0475c06f9279 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.239, 0.811, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.437, 0.713).threePointArc((-0.63, 0.905), (-0.7, 1.167)).lineTo(-0.7, 1.172).threePointArc((-0.63, 1.434), (-0.437, 1.626)).lineTo(0.7, 2.282).lineTo(0.7, 0.057).lineTo(-0.437, 0.713)... | 10 | 93 | 1.981642 |
train_1f2b9754a8201921 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.032, -0.298, -0.242), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.181, 0.968).lineTo(0.181, 0.437).lineTo(0.138, 0.437).lineTo(0.138, 0.703).lineTo(0.032, 0.703).lineTo(0.032, -0.041).lineTo(-0.181, -0.041).lineTo(-0.181, 0.968).lineTo(0.181, ... | 3 | 19 | 0.246621 |
train_1599f2b65bf821a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.086, -0.316, -0.3), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.959, 1.369).extrude(0.475)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.058, 0.012, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.157).extrude(0.237))
result = result.cu... | 16 | 99 | 0.448241 |
train_be5ab1efb9a5ccd7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.249), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.843).extrude(0.403)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.092, 0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.659).extrude(0.032))
result = result.union(cq.Wo... | 4 | 20 | 1.599365 |
train_4ccee8e8341ac4d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.203, 0.081), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.852, 0.046).lineTo(-0.852, 0.102).threePointArc((-0.926, 0.028), (-1, 0.102)).lineTo(-1, -0.102).lineTo(1, -0.102).lineTo(1, 0.102).threePointArc((0.926, 0.028), (0.852, 0.102)).line... | 2 | 14 | 0.079788 |
train_166486b3bcad7873 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.144, -0.016, -0.462), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.538, -0.127).lineTo(0.538, -0.127).lineTo(0.538, 0.255).lineTo(-0.538, 0.255).lineTo(-0.538, -0.127).close().revolve(angleDegrees=270, axisStart=(-0.538, -0.127), axisEnd=(0.538,... | 15 | 256 | 0.35044 |
train_2aecf8fcd48dffb3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, -0.468, -0.021), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.275, -0.082).threePointArc((-0.262, -0.051), (-0.245, -0.02)).lineTo(-0.218, -0.045).threePointArc((-0.109, -0.04), (-0.115, 0.069)).lineTo(-0.143, 0.094).threePointArc((-0.095... | 12 | 83 | 0.160364 |
train_3a0c9c4c99c7159b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.424, -0.383, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.377).lineTo(-0.684, 0.377).lineTo(-0.684, 0.061).threePointArc((-1, 0.377), (-0.684, 0.693)).lineTo(0.684, 0.693).threePointArc((1, 0.377), (0.684, 0.061)).lineTo(0.684, 0.377).lin... | 18 | 94 | 0.433417 |
train_805fd329f282d8db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.397, -0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.371, 1.207).extrude(0.09)
result = result.union(cq.Workplane(cq.Plane(origin=(0.069, 0.457, 0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.234, 1.086).extrude(0.014))
result = result.... | 7 | 80 | 0.229897 |
train_4959c37a5a471b8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.543, 0.144, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.192, -0.396).lineTo(-0.192, 1.007).lineTo(-0.332, 1.007).threePointArc((-0.192, 1.144), (-0.052, 1.007)).threePointArc((0.055, 0.68), (0.332, 0.477)).lineTo(0.332, -0.396).lineTo(-0.1... | 14 | 75 | 0.417198 |
train_4a90bfceed6958cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.814).extrude(0.121)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.313, -0.277, -0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.974, 0.632).extrude(0.038))
result = result.unio... | 18 | 290 | 0.538561 |
train_e97900a4a6c9baff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.031, 0.328, -0.414), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.244, 1.344).extrude(0.32)
result = result.union(cq.Workplane(cq.Plane(origin=(0.094, 0.395, -0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.12, 1.21).extrude(0.021))
result = resu... | 5 | 34 | 0.943374 |
train_ac55a13e68c75189 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.166, -0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.285).extrude(0.35)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.23, 0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.157).extrude(0.029))
result = result.union(cq.... | 15 | 72 | 0.608683 |
train_95b44b93374e43ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.225, -0.49), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.514, 1.55).extrude(0.792)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.052, 0.392, -0.244), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.47, 0.333).extrude(0.24))
result = result.ed... | 29 | 151 | 0.889891 |
train_6920ce11bb4c3b82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.964, 0.639), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.307).workplane(offset=0.39).circle(0.257).workplane(offset=0.454).circle(0.393).loft()
result = result.edges().chamfer(0.069)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.011... | 7 | 31 | 0.138716 |
train_05c768275e8be657 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.261, -0.097, -0.618), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.478, 1.033).extrude(1.236)
result = result.faces('>Z').shell(-0.098)
result = result.union(cq.Workplane(cq.Plane(origin=(0.507, 0.513, -0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 7 | 38 | 0.850269 |
train_dee4687006ac46f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.028, -0.073, -0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.825, 0.798).extrude(0.691)
result = result.union(cq.Workplane(cq.Plane(origin=(0.57, -0.156, -0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.297, 0.473).extrude(0.369))
result = r... | 26 | 216 | 0.625117 |
train_e29e4a44937b3d60 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, -0.152), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.195).sweep(cq.Workplane('XZ').spline([(0.637, -0.319), (0.542, -0.187), (0.312, -0.13), (0.078, -0.182), (-0.025, -0.312)]))
result = result.edges().chamfer(0.043)
result = result.union(cq... | 5 | 15 | 0.107178 |
train_d7d40f5c6226b245 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.886, -0.07, 0.398), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.029, -0.19).lineTo(-0.034, -0.132).lineTo(-0.171, -0.132).lineTo(-0.166, -0.073).lineTo(-0.038, -0.073).lineTo(-0.054, 0.132).lineTo(-0.151, 0.132).lineTo(-0.146, 0.19).lineTo(0.... | 5 | 51 | 0.223735 |
train_e67ed30efb916889 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.982), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.392, 2).extrude(1.964)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.492, -0.734), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.1).extrude(1.468))
result = result.cut(cq.Workplane(c... | 9 | 86 | 5.199645 |
train_fbc26688edbfba66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.079, -0.024, 0.016), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.042, 1.024).lineTo(0.042, 1.024).lineTo(0.042, -0.976).lineTo(-0.042, -0.976).lineTo(-0.042, 1.024).close().extrude(0.092)
result = result.edges().chamfer(0.032)
result = result.... | 4 | 46 | 0.020278 |
train_372580ead8c33e03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.289, 0.165, -0.654), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.421, 1.245).extrude(1.308)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.209, -0.077, -0.113), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.681, 0.867).threePointArc((-0.716, ... | 11 | 40 | 1.877718 |
train_fd1e148c0869628e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.618, 0.327, -0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.382, -0.011).lineTo(0.259, 0.276).lineTo(-0.008, 0.397).lineTo(-0.28, 0.268).lineTo(-0.382, 0.012).lineTo(-0.273, -0.282).lineTo(0.006, -0.4).lineTo(0.269, -0.281).close().moveTo(0... | 17 | 157 | 0.581299 |
train_5a508e487f65a335 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.07, -0.947, -0.175), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.078, 0.053).lineTo(-0.078, -0.038).lineTo(-0.074, -0.038).lineTo(-0.074, -0.049).lineTo(0.051, -0.049).lineTo(0.051, -0.053).lineTo(0.078, -0.053).lineTo(0.078, -0.038).lineTo(0.... | 18 | 120 | 0.050546 |
train_c25836c7bbf9222d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.286, 0.127, 0.09), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.83, -0.83).lineTo(0.83, -0.538).lineTo(0.518, -0.336).lineTo(0.369, -0.369).lineTo(-0.336, -0.518).lineTo(0, 0).lineTo(-0.369, 0.369).lineTo(0.336, 0.518).lineTo(0.369, 0.369).lineTo... | 13 | 66 | 2.254239 |
train_e4eec842d90a8a84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.273, 0, 0.053), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.339, -0.339).lineTo(0.339, -0.22).lineTo(0.269, -0.174).lineTo(0.191, 0.191).lineTo(0.339, 0.339).lineTo(-0.339, 0.339).lineTo(-0.191, 0.191).lineTo(-0.269, 0.174).lineTo(-0.191, -0.19... | 11 | 42 | 0.296339 |
train_f3fd0973e262c080 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.07, -0.142, 0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.758, -0.017).lineTo(0.263, 0.725).lineTo(-0.616, 0.454).lineTo(-0.624, -0.476).lineTo(0.218, -0.758).close().moveTo(-0.112, -0.001).lineTo(-0.225, 0.156).lineTo(-0.412, 0.095).line... | 24 | 197 | 1.619477 |
train_0653bdaaa4ff0014 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.07, -0.466), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.385, 1.1).extrude(0.76)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.205, 0.067, -0.472), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.698, 0.393).extrude(0.224))
result = result.unio... | 22 | 83 | 0.841479 |
train_af06663a51094b55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.197, 0.118, 0.125), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.068, 0.356).lineTo(-0.432, 0.356).lineTo(-0.432, 0.037).lineTo(0.432, 0.037).lineTo(0.432, 0.356).lineTo(-0.068, 0.356).close().extrude(0.305)
result = result.edges().chamfer(0.02... | 12 | 144 | 0.078181 |
train_dbb4b48d88dc5342 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.135, -0.544, -0.109), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.178, 0.505).lineTo(-0.178, 0.134).threePointArc((-0.046, 0.043), (0.108, -0.004)).lineTo(0.178, 0.505).close().extrude(1.544)
result = result.edges().fillet(0.074)
result = resul... | 8 | 48 | 0.092027 |
train_a4027def4c306cb2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.204, -0.1, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.401, 0.433).extrude(0.211)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.345, -0.144, -0.165), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.062).extrude(0.092))
result = result.c... | 20 | 121 | 0.064702 |
train_7a77f526d4d5ad46 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.25, 0.023, -0.153), normal=(1, 0, 0), xDir=(0, 0, 1))).lineTo(0.234, -0.354).lineTo(0.234, 0.711).close().revolve(angleDegrees=360, axisStart=(0.234, 0.711), axisEnd=(0.234, -0.354))
result = result.edges().fillet(0.105)
result = result.union(c... | 6 | 41 | 0.116849 |
train_ca1137e37f3e9c34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.273, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.833, -0.017).lineTo(0.833, 0.187).lineTo(-0.833, 0.017).lineTo(-0.833, -0.187).lineTo(0.833, -0.017).close().sweep(cq.Workplane('XY').spline([(-0.273, -0.273), (0.427, -0.273), (0.678, -... | 5 | 30 | 0.30258 |
train_6f0c17f4218e4466 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.373), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.649).extrude(0.745)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.09, 0.148, -0.377), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.299, 1.022).extrude(0.169))
result = result.cut(cq.W... | 10 | 87 | 1.624571 |
train_7199691899e0cb81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.42, -0.674), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.665, 1.16).extrude(1.348)
result = result.union(cq.Workplane(cq.Plane(origin=(0.045, -0.404, -0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.482, 0.553).extrude(0.324))
result = result... | 4 | 20 | 2.658697 |
train_a6ed1458db85005d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.069, 0, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.718, 1.253).extrude(0.747)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.069 + 0.189 * math.cos(1.94 + 2 * math.pi * 0 / 3), 0.373 + 0.189 * math.sin(1.94 + 2 * math.pi * 0 / 3), -... | 12 | 40 | 1.600052 |
train_919f49844ca7dfdd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.049, -0.267), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.702).extrude(0.189)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.134, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.532).extrude(0.015))
result = result.union(... | 12 | 83 | 0.815734 |
train_f1f29254777db127 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.032, -0.012, -0.01), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.014, 0.205).lineTo(0.014, -0.196).lineTo(-0.014, -0.196).lineTo(-0.014, 0.205).lineTo(0.014, 0.205).close().extrude(0.021)
result = result.edges().fillet(0.002)
result = result.c... | 11 | 109 | 0.159526 |
train_4f80d3e4989e1f4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.055, -0.076, -0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.323, 0.239).extrude(0.064)
result = result.union(cq.Workplane(cq.Plane(origin=(0.071, -0.064, -0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.291, 0.215).extrude(0.009))
result =... | 5 | 46 | 0.038985 |
train_59121b767db7d27c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.615, -0.127, 0.363), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.167, 0.295).threePointArc((-0.277, 0.25), (-0.325, 0.14)).threePointArc((-0.279, 0.026), (-0.167, -0.021)).lineTo(-0.122, -0.021).lineTo(-0.122, -0.173).threePointArc((0, -0.295... | 18 | 104 | 0.325155 |
train_573a0f5330b82c3e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.757, 0.516, -0.386), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.447, 0.111).threePointArc((-0.447, 0.92), (0.362, 0.92)).threePointArc((0.408, 0.869), (0.447, 0.813)).threePointArc((0.362, 0.111), (-0.339, 0.027)).threePointArc((-0.396, 0.066... | 11 | 52 | 1.17734 |
train_a1a1488d4e7b2510 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.211), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.409, -0.153).lineTo(-0.409, -0.111).lineTo(-0.403, -0.107).lineTo(0.003, 0.153).lineTo(0.409, -0.107).lineTo(0.409, -0.15).lineTo(0.003, 0.111).lineTo(-0.403, -0.15).lineTo(-0.409, -0.1... | 1 | 10 | 0.034183 |
train_d970ada7742f090b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.102, -0.988), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.003, 0.004).lineTo(-0.004, 0.004).lineTo(-0.004, 0.003).lineTo(0.002, 0.003).lineTo(0.002, -0.004).lineTo(0.004, -0.004).lineTo(0.004, 0.003).lineTo(0.003, 0.003).lineTo(0.003, 0.004).... | 14 | 108 | 0.000535 |
train_8c0f5c11bf34c450 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.026, 0.011, -0.122), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.841, 0.66).extrude(0.189)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.268, 0.011, -0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.375, 0.501).extrude(0.018))
result = re... | 19 | 118 | 0.28541 |
train_dc789d6887673608 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.781, 0.047), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.569, 1.007).lineTo(0.793, 0.484).lineTo(-0.045, 0.124).threePointArc((-0.793, 0.424), (-0.494, 1.172)).lineTo(0.344, 1.532).lineTo(0.569, 1.007).close().extrude(2)
result = result.edg... | 2 | 23 | 3.033324 |
train_c8712105fee262fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.049, -1, -0.012), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.19, 0.016).lineTo(-0.19, 0.241).threePointArc((-0.066, 0.273), (0.058, 0.241)).lineTo(0.058, 0.314).lineTo(0.322, 0.314).lineTo(0.322, -0.314).lineTo(0.058, -0.314).lineTo(0.058, -... | 3 | 29 | 0.188661 |
train_426dbba13f5e265e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.381, 0.237, -0.237), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.237, 0.804).lineTo(0.237, -0.619).lineTo(-0.237, -0.619).lineTo(-0.237, 0.804).lineTo(0.237, 0.804).close().revolve(angleDegrees=180, axisStart=(0.237, 0.804), axisEnd=(0.237, 0.0... | 3 | 20 | 0.47539 |
train_b753a8233ff84e57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.197, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.149, 0.073).lineTo(-0.002, 0.74).lineTo(0.571, 1.073).lineTo(1.149, 0.08).lineTo(0, 0.077).lineTo(-1.149, 0.073).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.225, 0))
re... | 9 | 41 | 2.456405 |
train_8e8d1bad5aec2059 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.156, 0, -0.04), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.408).workplane(offset=0.061).circle(0.368).workplane(offset=0.059).circle(0.634).workplane(offset=0.059).circle(0.269).workplane(offset=0.063).circle(0.626).loft()
result = result.edge... | 18 | 124 | 0.171628 |
train_3cad562e1b526a53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.02, -0.851), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.911).extrude(1.702)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.297, 0.762, -0.681), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.358, 0.366).extrude(0.966))
result = result.edge... | 19 | 317 | 3.722429 |
train_a9f22e274fc710f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.075, -0.18, -0.196), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.56, 0.179).threePointArc((0, -0.38), (0.56, 0.179)).lineTo(0.35, 0.179).threePointArc((0, 0.529), (-0.35, 0.179)).lineTo(-0.56, 0.179).close().extrude(1.18)
result = result.union... | 11 | 50 | 0.906496 |
train_183a697aa28b0180 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.152, 0, 0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.695, 1.114).extrude(0.218)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.729, -0.183, 0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.57, 0.199).extrude(0.134))
result = result.... | 24 | 349 | 0.186314 |
train_a30b47dc9abf0182 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.443, -0.433), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.865, 0.84).extrude(0.741)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.134, -0.928, -0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.198, 0.145).extrude(0.161))
result = res... | 9 | 44 | 0.578887 |
train_eb6a095a300b82eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.039, -0.031, -0.321), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.065, 0.928).lineTo(0.065, -0.866).lineTo(-0.065, -0.866).lineTo(-0.065, 0.928).lineTo(0.065, 0.928).close().workplane(offset=0.052).moveTo(0.072, 1.029).lineTo(0.072, -0.968).lin... | 6 | 88 | 0.137412 |
train_af93c541f1ffd1a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.117, -0.562, 0.026), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.268).sweep(cq.Workplane('YZ').spline([(0.357, -0.549), (0.557, -0.31), (0.44, -0.012), (0.1, 0.175), (-0.254, 0.1), (-0.525, -0.098), (-0.544, -0.368), (-0.288, -0.65), (0.073, -... | 6 | 29 | 0.530893 |
train_a4d021d149c23a65 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.704, 0.507), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.209, 0.069).lineTo(-0.199, 0.06).lineTo(0.209, -0.296).lineTo(0.047, 0.02).lineTo(0.022, 0.069).lineTo(-0.012, 0.135).lineTo(-0.116, 0.093).lineTo(-0.159, 0.112).lineTo(-0.05, 0.208).l... | 3 | 24 | 0.095812 |
train_6cf430dd427d7663 | 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.369).workplane(offset=0.35).circle(0.417).workplane(offset=0.374).circle(0.54).workplane(offset=0.461).circle(0.459).workplane(offset=0.359).circle(0.298).workplane(offset=0.456).circle(0.531)... | 7 | 24 | 1.043963 |
train_d7d02808933bee84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.315, 0, -0.954), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.369, 1.959).extrude(1.5)
result = result.faces('>Y').shell(-0.064)
result = result.union(cq.Workplane(cq.Plane(origin=(0.181, 0.152, 0.523), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.3... | 5 | 20 | 1.080017 |
train_9e29d0f08232ed9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.13, -1, -0.245), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.134, 0.139).lineTo(-0.134, -0.139).lineTo(0.134, -0.139).lineTo(0.134, 0.139).lineTo(-0.134, 0.139).close().sweep(cq.Workplane('YZ').spline([(-0.513, -0.791), (-0.179, -0.78), (0.15... | 15 | 310 | 0.305301 |
train_d823c8a458c211ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.514), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.574, 2).extrude(1.028)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.075, -0.169, -0.528), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.413, 0.515).extrude(0.546))
result = result.cut(cq.... | 27 | 219 | 1.564051 |
train_cd441140eb298e7e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.331, -0.102, 0.604), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.274, 0.701).threePointArc((-0.009, 0.726), (-0.274, 0.826)).lineTo(-0.165, 0.042).lineTo(0.274, 0.701).close().extrude(1.102)
result = result.edges().chamfer(0.079)
result = resul... | 6 | 59 | 0.188462 |
train_6c5c157adc5cfcac | 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.851, 1.566).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.275, -0.363, -0.14), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.575, 3.687).lineTo(-0.575, -1.967).lineTo(-0.151, -... | 3 | 15 | 5.297853 |
train_951bd0f40091f03a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.233, -0.09, 0.059), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.08, 0.583).lineTo(0.08, -0.583).lineTo(0.017, -0.583).threePointArc((-0.009, -0.573), (-0.019, -0.547)).lineTo(-0.019, -0.427).threePointArc((-0.021, -0.407), (-0.025, -0.387)).line... | 17 | 163 | 0.503067 |
train_d9e8c7f2cadfc729 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.462, -0.421, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1.043, 0.05).threePointArc((0, 0.503), (-1.043, 0.05)).lineTo(1.043, 0.05).close().extrude(0.9)
result = result.edges().chamfer(0.061)
result = result.faces('>Z').shell(-0.027)
result =... | 5 | 40 | 1.114474 |
train_7b469a49e0c38753 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.823), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.614, 2).extrude(1.645)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.21, 0.455, -0.212), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.241).extrude(0.423))
result = result.cut(cq.Workpla... | 4 | 13 | 5.029256 |
train_01b13463a2eb7d49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.31, 0.038, -0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.38, 1.012).extrude(0.574)
result = result.faces('>Z').shell(-0.044)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.669, 0.071, 0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(... | 6 | 33 | 0.308145 |
train_0c0845677bae9c04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.278, -0.041, -0.489), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.445, 0.891).extrude(0.633)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.06, -0.632, -0.396), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.159).extrude(0.141))
result = res... | 18 | 128 | 1.326313 |
train_3117eeef590f5b6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.073, 0, -0.559), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.295, 0.235).lineTo(-0.295, 0.44).lineTo(0.295, 0.44).lineTo(0.295, 0.031).lineTo(-0.295, 0.031).lineTo(-0.295, 0.235).close().extrude(0.439)
result = result.edges().fillet(0.177)
resu... | 8 | 73 | 0.153371 |
train_6f4a3adb3dd3a838 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.036, -0.087, -0.006), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.25, 0.241).threePointArc((0.224, 0.242), (0.2, 0.243)).threePointArc((-0.121, 0.405), (-0.25, 0.74)).lineTo(-0.216, 0.74).threePointArc((-0.208, 0.828), (-0.183, 0.913)).lineTo(-... | 7 | 45 | 1.476532 |
train_b4a0e3c06639dc06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.069), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.215, -0.977).threePointArc((0, 1), (0.215, -0.977)).threePointArc((0, -1), (-0.215, -0.977)).close().extrude(0.153)
result = result.edges().chamfer(0.061)
result = result.cut(cq.Workplane... | 9 | 31 | 0.448232 |
train_2fd36ba1b0e9b8be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.772, 0.059), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.921, 0.772).lineTo(0.46, 1.569).threePointArc((0, 1.693), (-0.46, 1.569)).threePointArc((-0.797, 1.232), (-0.921, 0.772)).threePointArc((-0.797, 0.312), (-0.46, -0.025)).threePointArc... | 22 | 119 | 2.21701 |
train_92b604cccd254571 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.088, -0.602), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.507, 0.913).extrude(0.779)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.045, 0.647, -0.238), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.415, 0.438).lineTo(0.559, 0.521).lineTo... | 12 | 84 | 0.225398 |
train_db0a25cf65464f59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.148, -0.084, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.34, 1.832).extrude(0.893)
result = result.union(cq.Workplane(cq.Plane(origin=(0.659, -0.254, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.159).extrude(0.339))
result = resul... | 9 | 39 | 2.028905 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.