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_5d62ad9448fcc4ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.333, -0.208), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.414, 0.351).lineTo(0.414, 0.338).lineTo(0.478, 0.338).lineTo(0.478, 0.194).lineTo(0.414, 0.194).lineTo(0.414, 0.182).lineTo(0.363, 0.054).lineTo(-0.478, 0.054).lineTo(-0.478, 0.612).... | 12 | 61 | 0.667054 |
train_7c578c4f2c856a4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.151, -0.484, -0.426), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.94, 1.032).extrude(1.049)
result = result.faces('<Y').shell(-0.089)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.02, -0.667, -0.063), normal=(0, 0, -1), xDir=(1, 0, 0))).mo... | 15 | 80 | 0.658465 |
train_5cb696d719ef54dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0.133, -0.024), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.06, -0.041).lineTo(0.06, -0.055).lineTo(-0.045, -0.055).lineTo(-0.045, -0.041).lineTo(-0.06, -0.041).lineTo(-0.06, 0.055).lineTo(-0.045, 0.055).lineTo(-0.045, 0.042).lineTo(0.045, 0.04... | 2 | 15 | 0.019759 |
train_c50e3c4e9c08fe5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.166, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.757).workplane(offset=0.489).circle(0.579).workplane(offset=0.511).circle(0.63).workplane(offset=0.496).circle(0.548).workplane(offset=0.505).circle(0.648).loft()
result = result.edges().c... | 4 | 14 | 1.088622 |
train_fcb248d6f77b126a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.415, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.419, 0.061).threePointArc((-0.395, 0.02), (-0.354, -0.004)).threePointArc((0, -0.133), (0.354, -0.004)).threePointArc((0.271, 0.144), (0.419, 0.061)).threePointArc((0.548, 0.415), (0.419... | 20 | 71 | 1.753029 |
train_948a6fcdd2c671ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.486, -0.847), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.009, 0.643).lineTo(-0.499, -0.503).lineTo(0.749, -0.372).lineTo(1.009, 0.855).lineTo(-0.077, 1.483).lineTo(-1.009, 0.643).close().extrude(1.495)
result = result.edges().fillet(0... | 12 | 94 | 3.200568 |
train_7b47b246a431780a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.063, -0.343, -0.329), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.309, 0.001).lineTo(0.157, 0.269).lineTo(-0.146, 0.259).lineTo(-0.295, 0.003).lineTo(-0.15, -0.271).lineTo(0.154, -0.262).close().circle(0.078).extrude(0.189)
result = result.cut(c... | 9 | 118 | 0.636371 |
train_a77caf90bbb97064 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.931, 0.498, 0.113), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.189, 0.069).lineTo(-0.189, -0.069).lineTo(0.189, -0.069).lineTo(0.189, 0.069).lineTo(-0.189, 0.069).close().sweep(cq.Workplane('XY').spline([(-0.931, 1.436), (-0.323, 2.023), (0.... | 2 | 12 | 0.149338 |
train_ee858dc304773c4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.854, 0.673, -0.912), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.024, -0.048).lineTo(-0.024, 0).lineTo(-0.048, 0).lineTo(-0.048, 0.048).lineTo(0.048, 0.048).lineTo(0.048, 0).lineTo(0.024, 0).lineTo(0.024, -0.048).lineTo(-0.024, -0.048).close(... | 1 | 10 | 0.043183 |
train_5016b3ef734d6581 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.249), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.122, -0.057).lineTo(-0.122, 0.006).threePointArc((-0.1, 0.035), (-0.071, 0.057)).lineTo(0.055, 0.057).lineTo(0.104, 0.057).lineTo(0.106, 0.057).lineTo(0.106, 0.055).lineTo(0.106, 0.006)... | 5 | 23 | 0.034574 |
train_1c603b7be2b08f37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.171, 0.175, -0.293), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.318, 1.306).extrude(0.239)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.171, 0.175, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.364).extrude(0.031))
result = resu... | 14 | 43 | 0.530855 |
train_d1c28470d5c7a3dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.389, 0, 0.221), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.611, -0.6).lineTo(-0.611, 0.6).lineTo(0.611, 0.273).lineTo(0.611, -0.273).lineTo(-0.611, -0.6).close().extrude(0.648)
result = result.edges().chamfer(0.107)
result = result.cut(cq.Wo... | 26 | 107 | 0.360566 |
train_228b57d6824eabcd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.342, -0.293, 0.174), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.167, 0.115).lineTo(-0.167, 0.45).lineTo(0.167, 0.45).lineTo(0.167, -0.219).lineTo(-0.167, -0.219).lineTo(-0.167, 0.115).close().revolve(angleDegrees=180, axisStart=(-0.167, 0.11... | 20 | 149 | 0.45946 |
train_286db155403c2702 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.181, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.238, 0.397).threePointArc((0.159, 0), (-0.238, -0.397)).lineTo(-0.238, -0.476).threePointArc((0.238, 0), (-0.238, 0.476)).lineTo(-0.238, 0.397).close().sweep(cq.Workplane('XY').spline([(... | 3 | 10 | 0.161314 |
train_68366ba0c4db3d0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.314, 0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.024, 0.911).extrude(0.539)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.051, 0.113, 0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.343, 0.148).extrude(0.223))
result = result... | 26 | 143 | 0.612467 |
train_b91f2784d42760fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, -0.001, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.024, -0.002).lineTo(0.698, 0.682).lineTo(0.002, 0.975).lineTo(-0.707, 0.694).lineTo(-0.992, -0.018).lineTo(-0.716, -0.709).lineTo(0.014, -0.973).lineTo(0.708, -0.714).close().mov... | 16 | 254 | 1.072482 |
train_273a5fc2d2dda7b5 | 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.972, 1.016).extrude(1.594)
result = result.union(cq.Workplane(cq.Plane(origin=(0.011, 0.092, 0.569), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.074).extrude(0.431))
| 2 | 8 | 1.581142 |
train_35e6e8a34f40976a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.713, 0.005, 0.404), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.36, 0.156).threePointArc((0.071, 0.355), (0.36, -0.021)).lineTo(0.322, -0.021).threePointArc((-0.022, -0.355), (-0.36, -0.014)).lineTo(-0.36, 0.156).close().sweep(cq.Workplane('XZ'... | 14 | 22 | 0.434429 |
train_1b8542e702e7fa3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.512, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.115, 0.046).lineTo(0.39, 0.046).lineTo(0.39, 1.025).lineTo(-0.39, 1.025).lineTo(-0.39, 0.046).lineTo(-0.115, 0.046).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.408, 0))... | 2 | 26 | 1.182993 |
train_514a20c90aae235b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.675, 0.264, 0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.319, 0.45).lineTo(0.326, 0.443).lineTo(0.311, 0.344).lineTo(0.058, 0.336).lineTo(0.05, -0.458).lineTo(-0.066, -0.434).lineTo(-0.052, 0.339).lineTo(-0.324, 0.344).close().moveTo(-0.... | 15 | 237 | 0.114756 |
train_91d06144a80ee46e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.167, -0.191, -0.386), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.256, 0.086).extrude(0.291)
result = result.union(cq.Workplane(cq.Plane(origin=(0.214, -0.18, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.052, 0.02).extrude(0.662))
result = r... | 7 | 66 | 0.077663 |
train_458f568100bede47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.144, 0, 0.016), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.246, 0.826).threePointArc((-0.382, 0.766), (-0.529, 0.78)).lineTo(-0.529, -0.826).threePointArc((-0.036, -0.548), (0.529, -0.497)).lineTo(-0.246, 0.826).close().workplane(offset=0.01... | 19 | 278 | 0.5738 |
train_3aea3926a23b0c2f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, 0.234, 0.101), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.093, 1.234).lineTo(-0.093, -0.766).lineTo(0.093, -0.766).lineTo(0.093, 1.234).lineTo(-0.093, 1.234).close().revolve(angleDegrees=270, axisStart=(-0.093, 1.234), axisEnd=(-0.093, -... | 12 | 52 | 0.118518 |
train_e542db4a5c2540bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.766, 0.138, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.064, -0.553).lineTo(-0.404, 0.382).lineTo(0.064, 0.553).lineTo(0.404, -0.382).lineTo(-0.064, -0.553).close().sweep(cq.Workplane('XY').spline([(-0.38, 0.138), (-0.294, -0.071), (-0.20... | 1 | 6 | 0.08753 |
train_c4774c82bfd2b825 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0.066, 0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.788, 1.396).extrude(0.098)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.017, -0.132, 0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.122, 0.72).extrude(0.042))
result = r... | 14 | 99 | 0.199337 |
train_901f167c510382cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.249, 0, -0.3), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.501, 1.177).extrude(0.948)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.113, 0.147, -0.648), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.747, 0.541).extrude(0.381))
result = resul... | 12 | 130 | 1.291503 |
train_670faa52e4bcaef1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.103, -0.248, 0.054), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.21, 0.09).threePointArc((-0.243, 0.03), (-0.254, -0.037)).lineTo(-0.051, -0.037).lineTo(0.051, -0.037).lineTo(0.153, -0.037).lineTo(0.254, -0.037).threePointArc((0.215, 0.043), (... | 28 | 215 | 0.729046 |
train_9a3fe3c4d2f3375a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.625, -0.757), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.207).threePointArc((-0.13, 1.192), (-0.254, 1.148)).threePointArc((-0.581, 0.648), (-0.296, 0.124)).threePointArc((-0.154, 0.064), (0, 0.043)).threePointArc((0.15, 0.079), (0.296, ... | 21 | 103 | 1.383571 |
train_d580f101a5d7b2df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.306, 0.206, -0.872), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.387, 0.888).extrude(1.333)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.12, 0.207, -0.912), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.085).extrude(1.6))
result = result.cut(... | 10 | 44 | 1.497246 |
train_df033c2066106168 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.138, -0.082, -0.37), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.034, 0.036).lineTo(0.034, 0.036).lineTo(0.034, -0.036).lineTo(-0.028, -0.036).lineTo(-0.028, -0.03).lineTo(-0.034, -0.03).lineTo(-0.034, 0.036).close().sweep(cq.Workplane('XY').s... | 25 | 160 | 0.353028 |
train_418bd339d0465fe4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.318, 0, -0.353), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.365, 0.912).extrude(0.705)
result = result.union(cq.Workplane(cq.Plane(origin=(0.671, -0.173, -0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.658, 0.383).extrude(0.262))
result = res... | 4 | 54 | 0.925195 |
train_4e7c2225364bc444 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.091, 0.039, 0.103), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.06, 0.643).threePointArc((0, -0.566), (-0.06, 0.643)).lineTo(0.06, 0.643).close().extrude(0.16)
result = result.edges().fillet(0.008)
result = result.union(cq.Workplane(cq.Plane(ori... | 8 | 190 | 0.357643 |
train_579ca127b768cafb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.106, -0.147, 0.759), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.27, 0.308).extrude(0.241)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.161, 0.147, 0.87), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.025, 0.307).extrude(0.022))
result = re... | 4 | 25 | 0.029581 |
train_44cbfe6425fbc062 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.366, -0.113, -0.185), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.019, 0.242).threePointArc((-0.193, 0.123), (-0.21, -0.088)).lineTo(-0.128, -0.041).threePointArc((-0.114, -0.076), (-0.09, -0.107)).lineTo(-0.171, -0.154).threePointArc((0.019,... | 11 | 126 | 0.610955 |
train_401402538e3dcb6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.039, 0.052, -0.486), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.364, 0.07).lineTo(-0.514, 0.07).lineTo(-0.514, 0.008).lineTo(0.514, 0.008).lineTo(0.514, 0.07).lineTo(-0.364, 0.07).close().extrude(0.124)
result = result.edges().fillet(0.023)
r... | 4 | 32 | 0.014834 |
train_23f7e2f8e505a4b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.168, 0.256, -0.019), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.754, 0.957).extrude(0.055)
result = result.union(cq.Workplane(cq.Plane(origin=(0.195, 0.251, 0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.361, 0.227).extrude(0.027))
result = re... | 9 | 114 | 0.080535 |
train_c0cde75944dbb1a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.293), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.887, 2).extrude(0.879)
result = result.faces('<Y').shell(-0.059)
result = result.union(cq.Workplane(cq.Plane(origin=(0.148, 0.404, -0.433), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.207).e... | 6 | 22 | 0.477002 |
train_8f57fd6802fc2d4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.762, -0.093, 0.06), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.167, -0.135).threePointArc((-0.098, 0.181), (0.167, -0.005)).threePointArc((0.043, -0.181), (-0.167, -0.135)).close().transformed(offset=(0.26, -0.196, 0.004), rotate=(0, 60, 0))... | 2 | 8 | 0.083111 |
train_1cfdbd6f50686ade | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.628, 0, 0.066), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.099, -0.805).lineTo(-0.099, 0.495).lineTo(-0.372, 0.495).lineTo(-0.372, 0.805).lineTo(-0.279, 0.805).lineTo(-0.279, 0.743).lineTo(0.099, 0.743).lineTo(0.099, 0.805).lineTo(0.372, 0.8... | 8 | 37 | 0.26727 |
train_773119baa447d7e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.163, 0.218, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.072, 1.513).extrude(0.18)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.11, 0.294, 0.014), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.965, 1.362).extrude(0.014))
result = re... | 15 | 75 | 0.268831 |
train_8e2cde179feef96b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, -0.054, 0.706), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.017, 0.017).lineTo(-0.115, 0.017).lineTo(-0.115, -0.017).lineTo(0.115, -0.017).lineTo(0.115, 0.017).lineTo(-0.017, 0.017).close().sweep(cq.Workplane('YZ').spline([(-0.341, 0.522),... | 3 | 32 | 0.233255 |
train_23c1a41689541ed8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, 0, 0.142), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.288, 0.424).threePointArc((-0.119, 0.832), (0.288, 1.001)).lineTo(0.288, -1.001).threePointArc((-0.126, -0.825), (-0.288, -0.405)).lineTo(-0.288, 0.424).close().extrude(0.087)
result ... | 19 | 164 | 0.145346 |
train_53aabb38f76d60ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.453, -0.003, 0.498), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.328, 0.71).threePointArc((-0.331, 0.678), (-0.33, 0.646)).lineTo(-0.307, 0.351).lineTo(-0.206, -0.997).threePointArc((0, -0.775), (0.206, -0.997)).lineTo(0.33, 0.646).threePointA... | 2 | 15 | 0.241289 |
train_9e4f216d4cf09778 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.167, -0.516), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.867, 1.666).extrude(1.032)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.167, -0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.684, 0.108).extrude(0.534))
result = result.fa... | 8 | 185 | 0.408203 |
train_8cb8f4c5822d13e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.158, 0.036, -0.409), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.202, 0.169).lineTo(-0.202, 0.223).lineTo(0.202, 0.223).lineTo(0.202, 0.169).lineTo(0.135, 0.079).lineTo(0.067, -0.01).lineTo(-0.067, -0.01).lineTo(-0.135, 0.079).lineTo(-0.094, 0... | 10 | 113 | 0.494958 |
train_82a37348908e5c0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.719, -0.047), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.325, 0.719).lineTo(-0.075, 0.719).lineTo(-0.075, 0.417).lineTo(-0.325, 0.119).lineTo(-0.313, 0.119).lineTo(-0.313, -0.281).lineTo(-0.2, -0.281).lineTo(-0.2, -0.206).lineTo(-0.15, -0.... | 3 | 18 | 0.724582 |
train_b7888c207f16e2c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.213, -0.389, -0.384), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.575, 0.807).extrude(0.767)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.779, -0.389, 0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.442, 0.343).extrude(0.199))
result =... | 14 | 73 | 1.431019 |
train_d3ccc5328ec52114 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.23, -0.53, -0.61), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.837, 0.824).lineTo(-0.178, -0.318).lineTo(-0.085, -0.256).lineTo(0.357, 0.08).lineTo(0.762, 0.459).lineTo(0.837, 0.54).lineTo(-0.172, 1.388).lineTo(-0.223, 1.335).lineTo(-0.491, 1.0... | 17 | 126 | 2.08167 |
train_9a6b3c28854c8f8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.448, -0.698, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.117, 1.338).lineTo(-0.117, 0.27).lineTo(-0.309, 0.199).lineTo(-0.032, 0.057).lineTo(0.309, 0.199).lineTo(0.309, 1.338).lineTo(-0.117, 1.338).close().workplane(offset=0.129).moveTo(-0... | 11 | 48 | 0.604345 |
train_22f8ddbf119331fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, -0.259, 0.228), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.062, -0.067).threePointArc((-0.034, 0.003), (-0.06, 0.075)).lineTo(0.062, 0.075).lineTo(0.062, -0.067).lineTo(-0.062, -0.067).close().extrude(0.142)
result = result.edges().chamfe... | 5 | 86 | 0.082162 |
train_37fcc39a339da574 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.075, 0.222, -0.314), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.612, 1.557).extrude(0.364)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.075 + 0.17 * math.cos(4.832 + 2 * math.pi * 0 / 2), 0.222 + 0.17 * math.sin(4.832 + 2 * math.pi * 0 /... | 28 | 170 | 0.21823 |
train_fbc16525380390e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.288, -1.076, -0.164), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.589, 1.507).lineTo(0.466, 1.507).lineTo(0.589, 0.076).lineTo(-0.589, 0.076).lineTo(-0.589, 1.507).close().extrude(0.364)
result = result.edges().chamfer(0.068)
result = result.u... | 18 | 164 | 0.659085 |
train_f2c8e36f06c7414f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.279, -0.353, -0.121), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.117, 0.238).lineTo(-0.117, 0.288).lineTo(0.005, -0.288).lineTo(0.117, 0.238).close().revolve(angleDegrees=360, axisStart=(0.117, 0.238), axisEnd=(-0.117, 0.288))
result = result.... | 31 | 201 | 0.476919 |
train_a798689c60c9634d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.574, 1, -0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.285, 0.439).lineTo(0.687, 1.024).lineTo(0.087, 1.024).lineTo(-0.507, 0.961).lineTo(-0.687, 0.236).lineTo(-0.352, 0.618).lineTo(-0.353, 0.082).lineTo(0.285, 0.439).close().extrude(2)
r... | 2 | 44 | 1.392574 |
train_bd6c1af2855b77fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.678, -0.45, -0.136), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.864, 0.79).lineTo(-0.864, 0.039).lineTo(0.864, 0.039).lineTo(0.864, 0.79).lineTo(-0.864, 0.79).close().extrude(1.603)
result = result.edges().fillet(0.173)
result = result.union(... | 10 | 73 | 1.760672 |
train_d0a701f32139dbce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, -0.013, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.449).sweep(cq.Workplane('XY').spline([(-1.042, -0.013), (-0.52, 0.158), (0.002, 0.266), (0.524, 0.289), (1.045, 0.25)]))
result = result.edges().chamfer(0.356)
result = result.cut(cq.W... | 8 | 46 | 0.77644 |
train_5d3b63d17ab2b528 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, -0.04, 0.245), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.084, 1.04).lineTo(-0.084, -0.96).lineTo(0.084, -0.96).lineTo(0.084, 1.04).lineTo(-0.084, 1.04).close().revolve(angleDegrees=90, axisStart=(-0.084, 1.04), axisEnd=(-0.084, 0.892))
r... | 6 | 149 | 0.157171 |
train_4ef03f19da03988f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.493, 0.493), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.417).sweep(cq.Workplane('YZ').spline([(-0.634, 0.399), (-0.369, 0.399), (-0.104, 0.399), (0.245, 0.448), (0.593, 0.498)]))
result = result.edges().chamfer(0.058)
result = result.union(... | 11 | 54 | 0.833666 |
train_7d9c0587acfd8237 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.409, -0.295, -0.239), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.181, 0.718).extrude(0.478)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.728, -0.295, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.574, 0.502).extrude(0.033))
result = r... | 12 | 51 | 0.464669 |
train_d22feb89f5a66df7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.047, 0.233, -0.343), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.362, 1.335).extrude(0.966)
result = result.faces('>Z').shell(-0.073)
result = result.union(cq.Workplane(cq.Plane(origin=(0.369, -0.195, -0.622), normal=(0, 0, 1), xDir=(1, 0, 0))).r... | 22 | 224 | 0.622461 |
train_18e8e76c6d0c67d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.598, 0.883, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.883, 1.48).lineTo(-0.883, 1.067).threePointArc((-1, 0.598), (-0.883, 0.127)).lineTo(-0.883, -0.293).lineTo(-0.456, -0.293).threePointArc((0, -0.402), (0.456, -0.293)).lineTo(0.889, -0... | 2 | 13 | 4.585671 |
train_35ea409221ea38e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.28, -0.564, -0.323), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.055, 0.01).threePointArc((0.056, 0.005), (0.058, 0.001)).threePointArc((-0.063, 0.011), (-0.178, -0.027)).threePointArc((-0.183, 0.002), (-0.184, 0.031)).threePointArc((-0.183, 0.... | 29 | 348 | 0.15362 |
train_f188feb73c7a5d5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.838, 0.52), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.084, 0.356).lineTo(-0.236, 0.325).lineTo(-0.364, 0.239).lineTo(-0.45, 0.11).lineTo(-0.48, -0.041).lineTo(-0.45, -0.193).lineTo(-0.364, -0.322).lineTo(-0.236, -0.407).lineTo(-0.084, -0... | 1 | 20 | 0.191319 |
train_74d1bae6344107c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.16, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.173).lineTo(-1, 0.013).lineTo(1, 0.013).lineTo(1, 0.173).lineTo(0.9, 0.273).lineTo(0.8, 0.173).lineTo(0.7, 0.273).lineTo(0.6, 0.173).lineTo(0.4, 0.173).lineTo(0.3, 0.273).lineTo(0.... | 17 | 162 | 0.156724 |
train_9b1d8b01af56eb48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.588, -0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.745, 0.824).extrude(0.351)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.368, -0.223), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.043, 0.015).lineTo(0.002, -0.007).lineTo(-0.... | 19 | 87 | 0.147524 |
train_c957d8037c9c1515 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.139, -0.059, -0.2), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.57, 0.188).lineTo(-0.57, 0.207).lineTo(0.57, 0.207).lineTo(0.57, 0.017).lineTo(-0.57, 0.017).lineTo(-0.57, 0.188).close().extrude(0.192)
result = result.edges().fillet(0.016)
resu... | 19 | 64 | 0.038511 |
train_dced2f8f443555ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.671), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1.074).workplane(offset=0.367).circle(0.658).workplane(offset=0.351).circle(0.346).workplane(offset=0.369).circle(0.165).loft()
result = result.edges().chamfer(0.102)
result = result.union(c... | 8 | 24 | 1.158694 |
train_b20374e28c54772c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.617, -0.005, 0.06), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.061, 0.224).threePointArc((-0.179, 0.125), (-0.206, -0.027)).lineTo(-0.345, -0.108).threePointArc((-0.373, -0.209), (-0.271, -0.236)).lineTo(-0.131, -0.156).threePointArc((-0.106... | 1 | 16 | 0.059963 |
train_3aa19a656032218d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.824, -1, 0.107), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.433, 0.015).threePointArc((-0.837, 0.361), (-0.96, 0.88)).threePointArc((-0.755, 1.371), (-0.3, 1.648)).lineTo(0.308, 1.793).lineTo(0.634, 1.259).lineTo(0.96, 0.724).lineTo(0.553, 0.... | 12 | 35 | 3.90991 |
train_e9222ee8caa8aaec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.042, 0.045, -0.026), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.061, 0.05).lineTo(0.023, 0.05).lineTo(0.061, -0.016).lineTo(0.001, -0.05).lineTo(-0.061, 0.05).close().extrude(0.026)
result = result.edges().fillet(0.007)
result = result.union... | 26 | 112 | 0.002985 |
train_2614790f407ad354 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.186, 0, 0.31), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.432).workplane(offset=0.178).circle(0.813).workplane(offset=0.158).circle(0.694).workplane(offset=0.142).circle(0.576).workplane(offset=0.142).circle(0.591).loft()
result = result.edges... | 4 | 9 | 0.794664 |
train_9ffb01d1448f8574 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, -0.048, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.903, 0.004).threePointArc((0.925, 0.008), (0.944, 0.019)).threePointArc((0.977, 0.053), (1.003, 0.091)).lineTo(0.965, 0.091).threePointArc((0.946, 0.067), (0.924, 0.045)).threePointAr... | 3 | 114 | 0.002019 |
train_f3ef64c1fd4ef988 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.745, 0.374, 0.644), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.178, -0.309).threePointArc((-0.309, -0.178), (-0.356, 0)).lineTo(-0.356, 0.206).lineTo(-0.178, 0.309).lineTo(0, 0.411).lineTo(0.178, 0.309).threePointArc((0.309, 0.178), (0.356, 0)... | 3 | 88 | 0.352453 |
train_4b734c31c9dadb78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, 0.077, -0.425), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.341, -0.022).threePointArc((0, 0.022), (0.341, -0.022)).lineTo(-0.341, -0.022).close().extrude(0.049)
result = result.edges().fillet(0.005)
result = result.union(cq.Workplane(cq.... | 5 | 90 | 0.034643 |
train_277d1f7611059af4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.148, 0.11, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.353, 0.537).lineTo(0.105, 0.89).lineTo(-0.376, 0.74).lineTo(-0.644, -0.79).lineTo(-0.19, -1.11).lineTo(0.261, -0.732).lineTo(0.476, -0.533).close().moveTo(-0.131, 0.171).lineTo(0.1... | 10 | 119 | 0.324421 |
train_a678bc98039f10f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.283, -0.16, -0.328), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.434, 0.466).extrude(0.581)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.29, -0.485, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.406, 0.709).lineTo(-0.406, -0.053).lin... | 5 | 71 | 0.758518 |
train_7d83c6c4d44b711a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.405, 0.336, -0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.932, 1.328).extrude(0.582)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.315, 0.148, -0.377), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.301, 0.488).extrude(0.189))
result =... | 5 | 19 | 0.682014 |
train_9602e77154761301 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.226, 0.504, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.835, 2.061).lineTo(-0.835, 2.061).lineTo(-0.835, 0.391).lineTo(0.835, 0.391).lineTo(0.835, 2.061).close().workplane(offset=0.311).moveTo(1.045, 2.271).lineTo(-1.045, 2.271).lineTo(-1.0... | 14 | 96 | 0.580163 |
train_123e37db04ea0ec2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.126, -0.091, -0.407), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.747, 1.466).extrude(0.57)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.126, -0.091, 0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.888, 0.745).extrude(0.093))
result =... | 14 | 73 | 0.302151 |
train_94ec540fd2bc7390 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.381), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.445, 2).extrude(0.66)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.33, 0.342), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.098, -0.002).lineTo(0.036, 0.104).lineTo(-0.082, 0.061)... | 10 | 55 | 1.280428 |
train_ef30e6a4bfbb0797 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.871, -0.016, -0.259), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.046, -0.063).lineTo(0.067, -0.063).lineTo(0.067, -0.05).lineTo(0.05, -0.05).lineTo(0.05, 0).lineTo(0.067, 0).lineTo(0.067, 0.063).lineTo(-0.067, 0.063).lineTo(-0.067, -0.05).lin... | 5 | 48 | 0.197114 |
train_cda61e367e8bbb43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.4, 0.055), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.141, 0.098).lineTo(0.157, 0.098).lineTo(0.157, 0.023).lineTo(0.149, 0.023).lineTo(0.149, -0.018).lineTo(0.157, -0.018).lineTo(0.157, -0.098).lineTo(-0.157, -0.098).lineTo(-0.157, 0.098).l... | 3 | 84 | 0.037394 |
train_d2cd3e36b3215ccd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.528, -0.413, -0.341), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.313, 0.587).threePointArc((0.143, 0.186), (0.313, -0.398)).threePointArc((-0.03, 0.075), (-0.313, 0.587)).close().extrude(0.825)
result = result.edges().fillet(0.067)
result = re... | 17 | 160 | 0.40648 |
train_d2576fd427d26122 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.475, -0.213, -0.026), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.142, 0.375).lineTo(-0.142, 0.375).lineTo(-0.142, -0.037).lineTo(0.142, 0.247).lineTo(0.142, 0.375).close().extrude(0.351)
result = result.edges().chamfer(0.047)
result = result.... | 17 | 398 | 0.252258 |
train_dc8675f8ac886b32 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.023, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.314, -0.723).lineTo(0.448, -0.701).lineTo(-0.375, 0.723).lineTo(-0.448, 0.596).lineTo(0.314, -0.723).close().sweep(cq.Workplane('XY').spline([(-0.432, -0.023), (-0.261, 0.085), (-0.09... | 2 | 23 | 0.085297 |
train_eea038acc18db859 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.691).workplane(offset=0.391).circle(0.573).workplane(offset=0.391).circle(0.533).workplane(offset=0.373).circle(0.609).workplane(offset=0.374).circle(0.711).workplane(offset=0.472).circle(0.59... | 14 | 101 | 1.86956 |
train_a2d57e546c2e46ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.085, -0.214), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.544, 0.584).lineTo(-0.544, 0.415).lineTo(-0.43, 0.415).lineTo(-0.43, -0.509).lineTo(0.441, -0.509).lineTo(0.441, -0.325).lineTo(0.544, -0.325).lineTo(0.544, 0.415).lineTo(0.441, 0.4... | 12 | 75 | 1.298588 |
train_fd3304a1a4542fb4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.436, -0.993, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.938, -0.308).threePointArc((0.937, -0.327), (0.935, -0.347)).lineTo(0.937, -0.347).threePointArc((0.861, -0.481), (0.715, -0.534)).lineTo(-0.774, -0.534).threePointArc((-0.934, -0.468... | 10 | 54 | 7.198763 |
train_c0c50926adc67fb7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.36, -0.638, 0.79), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.029, 0.011).threePointArc((-0.031, -0.005), (-0.075, -0.049)).lineTo(-0.349, 0.109).threePointArc((-0.407, -0.109), (-0.349, -0.327)).lineTo(-0.075, -0.169).threePointArc((-0.031, -... | 2 | 15 | 0.038164 |
train_8390fa0c5ea66e63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.261, -0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.627, 1.478).extrude(0.64)
result = result.union(cq.Workplane(cq.Plane(origin=(0.097, -0.717, -0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.283).extrude(0.358))
result = result.cut(... | 5 | 21 | 1.297414 |
train_98e074c1287a7fd1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.76, 0.013, -0.23), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.191, 0.077).threePointArc((0.24, -0.067), (0.191, -0.211)).threePointArc((0, -0.307), (-0.191, -0.211)).threePointArc((-0.24, -0.067), (-0.191, 0.077)).lineTo(-0.191, 0.211).threeP... | 7 | 41 | 0.364017 |
train_5b44a87e904b1bbb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.046, -0.124, -0.475), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.413, 1.565).extrude(0.95)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.063, -0.274, 0.067), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.237, 1.062).lineTo(0.413, 1.062).lin... | 11 | 94 | 1.619411 |
train_14f77cc21cc0b9ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.174, 0, -0.081), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.518, 0.318).lineTo(-0.518, -0.318).lineTo(0.518, -0.318).lineTo(0.518, -0.232).lineTo(0.141, 0).lineTo(0, 0.087).lineTo(0.376, 0.318).lineTo(-0.518, 0.318).close().sweep(cq.Workplan... | 4 | 27 | 0.575985 |
train_01c39dcc1b00afeb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.11, -0.222, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.409, -0.778).lineTo(-0.409, 1.222).lineTo(-0.279, 1.222).lineTo(-0.279, -0.3).threePointArc((-0.25, -0.381), (-0.178, -0.425)).lineTo(-0.17, -0.427).lineTo(0.409, -0.524).lineTo(0.409... | 7 | 70 | 0.411497 |
train_e5b999b15963a32a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.078, -0.709, -0.756), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.495, -0.212).lineTo(-0.495, -0.291).lineTo(0.495, -0.291).lineTo(0.495, 1.292).lineTo(-0.495, 1.292).lineTo(-0.495, -0.212).close().extrude(1.512)
result = result.union(cq.Workp... | 16 | 56 | 1.756332 |
train_00deb03f73ec1b70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.915), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.726, 2).extrude(1.83)
result = result.edges().fillet(0.104)
| 2 | 26 | 6.267082 |
train_f7ea4c137b9c8a61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.173, 0.091, 0.403), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.088, 0.263).threePointArc((-0.115, 0.275), (-0.143, 0.263)).threePointArc((-0.129, 0.222), (-0.171, 0.208)).lineTo(-0.183, 0.208).threePointArc((-0.175, 0.201), (-0.171, 0.191)).... | 5 | 69 | 0.211154 |
train_06bf3f6a6851e0ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.447, -0.023, 0.3), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.617, 0.088).lineTo(-0.482, 0.31).lineTo(0.207, 0.339).lineTo(0.367, 0.157).lineTo(0.617, 0.118).threePointArc((0.546, -0.009), (0.445, -0.115)).lineTo(0.445, -0.23).lineTo(-0.035, ... | 11 | 80 | 0.236138 |
train_d1a3ca317173ea44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.171, 0.666, 0.245), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.126, 0.077).threePointArc((0.118, 0.045), (0.139, 0.02)).threePointArc((0.276, -0.162), (0.414, 0.02)).threePointArc((0.435, 0.045), (0.427, 0.077)).threePointArc((0.404, 0.089), ... | 17 | 92 | 0.846172 |
train_cf15961819c34571 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.256), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.448).extrude(0.809)
result = result.union(cq.Workplane(cq.Plane(origin=(0.331, -0.692, 0.271), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.171, 0.386).lineTo(0.057, 0.386).lineTo(0.057, 0... | 15 | 39 | 1.611101 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.