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_f2d720a48f0929ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.151, 0, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.199, 0.997).extrude(1.086)
result = result.faces('>Y').shell(-0.07)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.141, -0.494, 0.536), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo... | 7 | 49 | 0.592572 |
train_c8dae8feef65fd96 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.474), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.62).extrude(0.947)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.12 * math.cos(2.632 + 2 * math.pi * 0 / 7), 0.474 + 0.12 * math.sin(2.632 + 2 * math.pi * 0 / 7), 0.336), norm... | 25 | 78 | 2.50987 |
train_a62ee9a7edaadff1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.637, 0.266, -0.072), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.019, 0.017).lineTo(0.327, 0.325).lineTo(0.344, 0.309).lineTo(0.035, 0).lineTo(0.344, -0.309).lineTo(0.327, -0.325).lineTo(0.019, -0.017).lineTo(-0.29, -0.325).lineTo(-0.327, -0.36... | 3 | 24 | 0.025271 |
train_0b217d9dbd638f8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.232, -0.576, -0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.144, 0.622).extrude(0.173)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.129, -0.54, -0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.444, 0.275).extrude(0.108))
result = r... | 11 | 127 | 0.186464 |
train_37291c3ae03bf4b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.37).extrude(0.209)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.129, 0.156, 0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.115, 0.131).extrude(0.076))
result = result.cut(cq.... | 8 | 13 | 0.563326 |
train_2c9ee33cf08d4563 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.422), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.013).extrude(0.978)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.14, -0.094, -0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.057).extrude(0.082))
result = result.edges().fill... | 11 | 63 | 1.928944 |
train_9c4e155cd27f7203 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.792, 0.446), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.223, 0.208).threePointArc((0.161, 0.199), (0.104, 0.171)).threePointArc((0.015, 0), (0.104, -0.171)).threePointArc((0.047, -0.199), (-0.015, -0.208)).threePointArc((-0.223, 0), (-0.015... | 2 | 9 | 0.056868 |
train_006f6edcd799cd87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.863, 0.946, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.728, 1.793).lineTo(-0.728, -0.066).lineTo(0.728, -0.066).lineTo(0.728, 1.793).lineTo(-0.728, 1.793).close().workplane(offset=0.957).moveTo(-0.642, 1.684).lineTo(-0.642, 0.043).lineTo(... | 10 | 43 | 3.573202 |
train_8d1819b53b4864d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.083, -0.047, -0.052), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.047, 0.033).threePointArc((0.049, 0.022), (0.05, 0.011)).lineTo(-0.048, 0.001).threePointArc((-0.049, 0.008), (-0.05, 0.016)).lineTo(0.047, 0.033).close().extrude(0.104)
result =... | 18 | 126 | 0.005645 |
train_9c3175a78c6ee37a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.876, 0.053, 0.272), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.549, 1.546).lineTo(-0.549, 0.585).lineTo(0.549, -0.407).lineTo(0.549, 1.546).close().revolve(angleDegrees=270, axisStart=(0.549, 1.546), axisEnd=(-0.549, 0.585))
result = result.ed... | 8 | 27 | 1.276164 |
train_32469cda13599ab2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.308, 0.528, -0.411), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.956, 0.944).extrude(0.473)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.765, 0.676, -0.156), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.098, 0.241).lineTo(0.098, 0.271).l... | 8 | 42 | 0.717287 |
train_e444cb03b4a6b2b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.166, 0.035, -0.834), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.327, 1.191).extrude(1.347)
result = result.faces('<Z').shell(-0.113)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.288, 0.539, -0.369), normal=(0, 0, 1), xDir=(1, 0, 0))).circl... | 11 | 41 | 0.849355 |
train_b041fe738daa95a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.268, -0.02, 0.973), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.129).threePointArc((0.355, 0), (0.545, 0.327)).lineTo(0.732, 0.254).threePointArc((0, -0.327), (-0.732, 0.254)).lineTo(-0.545, 0.327).lineTo(0, 0.327).lineTo(0, -0.129).close().... | 5 | 31 | 0.821624 |
train_56f7db935769ca94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.408, -0.02), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.351, 0.409).threePointArc((-0.349, 0.489), (-0.353, 0.57)).threePointArc((-0.313, 0.657), (-0.277, 0.747)).lineTo(0.442, 0.747).threePointArc((0.44, 0.577), (0.42, 0.409)).threePoint... | 19 | 165 | 0.553398 |
train_49ba31ce13aed530 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.939, -0.201), normal=(-1, 0, 0), xDir=(0, 0, 1))).threePointArc((0.206, 0.873), (0.412, 0.939)).lineTo(0.48, 0.939).lineTo(0.799, 0.939).lineTo(0.798, 0.626).lineTo(0.48, 0.626).lineTo(0.48, 0.696).threePointArc((0.313, 0.655), (0.24, 0.501)... | 4 | 26 | 2.142637 |
train_63cce99cbd926d5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.273, 0.151, -0.182), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.122, 0.006).lineTo(0.122, -0.006).lineTo(-0.121, -0.006).threePointArc((-0.122, 0), (-0.122, 0.006)).lineTo(0.055, 0.006).lineTo(0.064, 0.006).lineTo(0.122, 0.006).close().sweep(... | 8 | 95 | 0.026468 |
train_fdbe35297c4d812c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.268).workplane(offset=0.28).circle(0.234).workplane(offset=0.317).circle(0.265).workplane(offset=0.338).circle(0.24).workplane(offset=0.354).circle(0.249).workplane(offset=0.342).circle(0.... | 2 | 8 | 0.329072 |
train_da9d644b10e54564 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.502, 0.345, 0.502), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.502, -0.123).lineTo(-0.502, 0.814).lineTo(0.502, 0.814).lineTo(0.502, -0.123).lineTo(-0.502, -0.123).close().revolve(angleDegrees=180, axisStart=(-0.502, -0.123), axisEnd=(-0.502, ... | 11 | 99 | 1.19277 |
train_cc1d91a75d1025ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.48, 0.023, 0.274), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.297).threePointArc((0.456, -0.128), (0.693, 0.297)).lineTo(0, 0.297).lineTo(-0.693, 0.297).threePointArc((-0.456, -0.128), (0, -0.297)).close().revolve(angleDegrees=90, axisSta... | 4 | 32 | 0.329462 |
train_91b1f2685eea0b1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.66, -0.247), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.907, 0.775).lineTo(1.013, 0.378).lineTo(0.724, 0.088).lineTo(-1.013, 0.554).lineTo(-0.83, 1.24).lineTo(0.907, 0.775).close().extrude(0.493)
result = result.edges().fillet(0.079)
r... | 8 | 62 | 0.629794 |
train_93bba23f1bd57aed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, -0.104, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.611, 0.192).lineTo(0.611, 0.07).lineTo(-0.611, 0.07).lineTo(-0.611, 0.192).lineTo(0.611, 0.192).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.093, 0))
result = result.... | 4 | 34 | 0.334419 |
train_94004877c441e20f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.995, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.875, 1.501).lineTo(0.437, 1.753).threePointArc((0, 1.871), (-0.437, 1.753)).threePointArc((-0.758, 1.433), (-0.875, 0.995)).threePointArc((-0.758, 0.558), (-0.437, 0.238)).threePointArc((... | 8 | 55 | 3.415762 |
train_feb22fefc0c8fc34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.274, 0.627, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.667, 1.141).lineTo(0.533, 1.141).lineTo(0.533, 1.274).lineTo(0.667, 1.274).lineTo(0.667, -0.726).lineTo(0.533, -0.726).lineTo(0.533, -0.593).lineTo(-0.667, -0.593).lineTo(-0.667, 1.14... | 10 | 84 | 2.845481 |
train_0e64572e7dcb2b25 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.122), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.15, -0.1).lineTo(0.15, -0.095).lineTo(-0.137, -0.095).lineTo(-0.137, 0.095).lineTo(0.137, 0.095).lineTo(0.137, 0.1).lineTo(-0.141, 0.1).lineTo(-0.141, -0.095).lineTo(-0.15, -0.095).lineT... | 8 | 68 | 0.414649 |
train_27d4dcc59c457277 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, 0.294, -0.458), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.037, -0.026).threePointArc((0.026, -0.032), (0.051, 0.025)).threePointArc((0.051, 0.029), (0.049, 0.032)).lineTo(-0.013, -0.004).lineTo(-0.022, 0.013).lineTo(-0.032, 0.007).lineTo... | 14 | 142 | 0.027995 |
train_b02128eed2c633d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.376).extrude(0.637)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.029, -0.272, -0.115), normal=(0, 0, -1), xDir=(1, 0, 0))).threePointArc((0.218, -0.097), (0.349, -0.064)).lineTo(0... | 35 | 84 | 0.965643 |
train_5218afef48f76ee9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.227, 0, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.546, 1.198).extrude(0.599)
result = result.faces('>X').shell(-0.052)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.024, 0.13, -0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.393... | 6 | 23 | 0.297216 |
train_ddf9ec86f46d2605 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.018, 0.009, 0.134), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.018, -0.268).lineTo(1.018, 0.268).lineTo(-0.662, 0.268).lineTo(-1.018, -0.09).lineTo(-0.662, -0.09).lineTo(-0.662, -0.268).lineTo(1.018, -0.268).close().extrude(0.386)
result = re... | 11 | 80 | 0.259735 |
train_ffc74d9098ab4149 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.376, 0.009, 0.175), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.043, 0.08).lineTo(-0.042, 0.075).lineTo(-0.025, 0.079).lineTo(0.014, -0.083).lineTo(0.017, -0.095).lineTo(0.043, -0.088).lineTo(0.04, -0.077).lineTo(0.001, 0.085).lineTo(0.018, 0.0... | 5 | 70 | 0.043006 |
train_2fb27535077580a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.069, -0.344, -0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.204, 0.501).threePointArc((0, 0.705), (0.204, 0.501)).lineTo(0.204, 0.407).threePointArc((0, -0.57), (-0.204, 0.407)).lineTo(-0.204, 0.501).close().extrude(0.297)
result = result... | 23 | 110 | 0.354716 |
train_f9f3692b5547a2e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.295, -0.696), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.329, 1.41).extrude(1.393)
result = result.union(cq.Workplane(cq.Plane(origin=(0.083, 0.682, -0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.644, 0.636).extrude(0.478))
result = result.... | 4 | 76 | 2.426148 |
train_80f43c8129f8ec4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, -0.001, -0.646), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.252, 0.167).extrude(0.299)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.003, -0.001, -0.363), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.14, 0.122).extrude(0.163))
result ... | 15 | 100 | 0.030499 |
train_e9de63a57ca3f24d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.064, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.064).lineTo(1, 0.064).lineTo(-0.223, 0.989).lineTo(-1, 0.064).close().revolve(angleDegrees=360, axisStart=(-1, 0.064), axisEnd=(1, 0.064))
result = result.edges().chamfer(0.235)
| 2 | 3 | 1.650327 |
train_6aedc83c5e56a59d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.152, 0.274, -0.129), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.232).lineTo(0.703, 0.232).threePointArc((0.71, 0.126), (0.703, 0.019)).lineTo(0, 0.019).lineTo(-0.703, 0.019).threePointArc((-0.71, 0.126), (-0.703, 0.232)).lineTo(0, 0.232).cl... | 15 | 211 | 0.084725 |
train_9a13ebb7eb0e7b52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.02, 0, 0.537), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.693).workplane(offset=0.39).circle(0.865).workplane(offset=0.392).circle(1).workplane(offset=0.292).circle(0.803).loft()
result = result.edges().fillet(0.181)
result = result.cut(cq.Wor... | 24 | 133 | 1.015436 |
train_c25d6ed195245418 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.5, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.229, 1).lineTo(0.229, 0.268).lineTo(-0.266, 0.268).lineTo(-0.266, 0.742).lineTo(-0.517, 0.742).lineTo(-0.517, 0.225).lineTo(0.517, 0.225).lineTo(0.517, 0.268).lineTo(0.495, 0.268).lineTo(0.4... | 8 | 107 | 0.444508 |
train_50911889022fae14 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, 0.123, -0.784), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.193, 0.031).threePointArc((-0.209, 0.024), (-0.216, 0.008)).lineTo(-0.216, 0.003).lineTo(0.216, 0.003).lineTo(0.216, 0.031).lineTo(-0.193, 0.031).close().extrude(0.246)
result = ... | 4 | 35 | 0.003181 |
train_7cebb74713a894ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.718, -0.991), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.618, 1.718).lineTo(-0.853, 1.718).lineTo(-0.853, -0.282).lineTo(0.853, -0.282).lineTo(0.853, 1.718).lineTo(-0.618, 1.718).close().extrude(1.982)
result = result.cut(cq.Workplane(cq.P... | 12 | 167 | 5.317184 |
train_5cf9834a4276a7b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.202), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.751, 2).extrude(0.448)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.123, 0.559, 0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.096).extrude(0.023))
result = result.cut(cq.Workpla... | 10 | 39 | 1.543768 |
train_c547e0ed4656590e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.029, 0.832), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.75).threePointArc((-0.866, 0.25), (-0.866, -0.75)).lineTo(-0.127, -0.324).threePointArc((0, -0.398), (0.127, -0.324)).lineTo(0.866, -0.75).threePointArc((0.866, 0.25), (0, 0.75)).cl... | 11 | 73 | 2.05686 |
train_d04ad3cd69d139f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0.003, -0.024), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.118, 0.295).threePointArc((0.132, 0.525), (0.433, 0.68)).lineTo(0.292, 1.069).lineTo(-0.433, 0.56).lineTo(-0.118, 0.295).close().revolve(angleDegrees=270, axisStart=(0, 0), axis... | 6 | 55 | 0.536539 |
train_9f682b74c50ad0e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.073, -1, 0.173), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.072, 0.145).lineTo(-0.072, 0.001).lineTo(-0.043, 0.001).lineTo(-0.043, 0.116).lineTo(0.072, 0.116).lineTo(0.072, 0.145).lineTo(-0.072, 0.145).close().extrude(2)
result = result.union... | 7 | 36 | 0.021155 |
train_e079b6dad683db8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.389, -0.344, -0.002), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.391, 0.431).lineTo(0.391, -0.656).lineTo(-0.391, -0.656).lineTo(-0.391, 1.344).lineTo(0.391, 1.344).lineTo(0.391, 0.431).close().revolve(angleDegrees=90, axisStart=(0.391, 0.431... | 20 | 112 | 0.523094 |
train_a576e06a0ce723c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.091, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.556, 0.091).lineTo(-0.222, 0.091).lineTo(-0.222, 0.925).lineTo(0.556, 0.925).lineTo(0.556, 1.091).lineTo(-0.389, 1.091).lineTo(-0.389, 0.258).lineTo(-0.556, 0.258).lineTo(-0.556, 0.091).c... | 3 | 182 | 0.955476 |
train_2875af22f68abd0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.137, 0.218, -0.173), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.768, 0).lineTo(0.538, 0.528).lineTo(-0.008, 0.751).lineTo(-0.532, 0.526).lineTo(-0.755, -0.015).lineTo(-0.539, -0.517).lineTo(0.008, -0.77).lineTo(0.55, -0.537).close().moveTo(0, ... | 7 | 163 | 1.024517 |
train_a4fa31074ccd7913 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.142, -0.027, -0.361), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.318, 0.575).extrude(0.213)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.167, -0.142, -0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.045).extrude(0.064))
result = resul... | 21 | 192 | 0.150097 |
train_3bad8c461d0169d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.049, 0.057, -0.613), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.092, -0.009).lineTo(0.092, 0.434).lineTo(0.387, 0.434).lineTo(-0.387, 0.434).lineTo(-0.387, -0.009).lineTo(0.092, -0.009).close().revolve(angleDegrees=360, axisStart=(0.092, -0.009... | 11 | 38 | 0.325002 |
train_e06bcde58bb668a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.486, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.241, -0.032).lineTo(-0.32, 0.047).lineTo(-0.507, 0.234).lineTo(-0.164, 0.047).lineTo(0.164, 0.047).lineTo(0.507, 0.234).lineTo(0.32, 0.047).lineTo(0.241, -0.032).lineTo(0.04, -0.234).lin... | 1 | 15 | 0.076704 |
train_8e5020e56224d37b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.151, 0.441, -0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.051, 1.119).extrude(0.152)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.791, 0.387, 0.084), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.23, -0.012).lineTo(-0.23, 0.006).l... | 13 | 101 | 0.21371 |
train_89bec7d75d7ce7f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.055, -0.073, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.879, 1.566).extrude(1.769)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.323, -0.125, 0.632), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.094).extrude(0.141))
result = result.edg... | 11 | 96 | 5.55873 |
train_c7e4eef2dfe46f2a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.061, 0.57, -0.196), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.067).sweep(cq.Workplane('YZ').spline([(0.736, -0.29), (1.006, -0.215), (0.742, -0.141), (0.081, -0.105), (-0.63, -0.127), (-1.021, -0.194)]))
result = result.edges().chamfer(0.05)... | 11 | 48 | 0.06425 |
train_a5af6679264ed630 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.018, 0.138, 0.222), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.018, 0.326).threePointArc((0.966, 0), (1.018, -0.326)).lineTo(-1.018, -0.326).lineTo(-1.018, 0.326).lineTo(1.018, 0.326).close().extrude(0.444)
result = result.edges().fillet(0.133... | 15 | 55 | 0.394669 |
train_fccc7f79ea8c5ba9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.398, -0.113, -0.666), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.602, -0.374).lineTo(0.602, -0.374).lineTo(0.602, 0.6).lineTo(-0.602, 0.6).lineTo(-0.602, -0.374).close().extrude(1.332)
result = result.edges().fillet(0.205)
result = result.cut... | 18 | 104 | 1.154566 |
train_2224a5f46dc5158b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.633, 0.014, -0.279), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.045, -0.721).lineTo(-0.721, 0.045).lineTo(-0.383, 0.383).lineTo(-0.045, 0.721).lineTo(0.721, -0.045).lineTo(0.045, -0.721).close().sweep(cq.Workplane('XY').spline([(0.339, 0.014)... | 3 | 14 | 0.976588 |
train_d3c98751f6a24ac1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.143), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.559, 2).extrude(0.12)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.117, 0.328, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.076, 0.117).lineTo(-0.088, 0.117).lineTo(-0.088, 0.... | 5 | 26 | 0.362616 |
train_31e4ec180640b823 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.996, 0.67, 0.162), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.491, -0.348).threePointArc((-0.856, 1.364), (0.856, 0.999)).lineTo(-0.491, -0.348).close().extrude(1.991)
result = result.edges().fillet(0.098)
result = result.cut(cq.Workplane(cq.... | 23 | 75 | 3.081491 |
train_dbed3f79797a76d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.588, -0.362, -0.036), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.186, 0.862).threePointArc((-0.314, 0.57), (-0.536, 0.34)).lineTo(-0.106, -0.25).threePointArc((0.306, 0.191), (0.536, 0.748)).lineTo(-0.186, 0.862).close().extrude(1.588)
result... | 4 | 39 | 0.508782 |
train_bb32be351a04402c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.237, 0, 0.219), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.149, -1).threePointArc((-0.388, 0.136), (0.388, 1)).close().sweep(cq.Workplane('XZ').spline([(0.237, -0.653), (0.451, -0.653), (0.654, -0.47), (0.858, -0.288)]))
| 1 | 4 | 0.195811 |
train_4f01c1d60e18db17 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.238, 0, 0.353), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.115).lineTo(-0.706, 0.591).lineTo(0, 1.296).lineTo(0.706, 0.591).lineTo(0, -0.115).close().revolve(angleDegrees=360, axisStart=(0, -0.115), axisEnd=(-0.706, 0.591))
result = result... | 3 | 12 | 2.851204 |
train_c34720173b822265 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.435).workplane(offset=0.347).circle(0.43).workplane(offset=0.504).circle(0.448).workplane(offset=0.347).circle(0.484).workplane(offset=0.395).circle(0.441).loft()
result = result.edges().fille... | 9 | 67 | 1.027455 |
train_7b0e334304f9057f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.035, 0.042), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.292, 0.036).lineTo(0.38, 0.036).lineTo(0.38, -0.494).lineTo(-0.149, -0.494).lineTo(-0.302, -0.053).lineTo(-0.149, 0.036).lineTo(-0.414, 0.494).lineTo(-0.326, 0.494).lineTo(-0.214... | 4 | 16 | 0.992026 |
train_3a544bb439a3e27a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, 0.137, -0.23), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.701, 1.186).extrude(0.809)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.068, 0.247, 0.115), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.17).extrude(0.109))
result = result.un... | 12 | 86 | 0.851375 |
train_e9a1653d6a658f4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.586, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.969, 0.771).threePointArc((0, -0.402), (0.969, 0.771)).threePointArc((0, 1.573), (-0.969, 0.771)).close().extrude(2)
result = result.edges().chamfer(0.337)
result = result.cut(cq.Workplan... | 9 | 28 | 3.998407 |
train_2d62dd17a38cd458 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.977, -0.269), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.041, -0.023).lineTo(-0.041, -0.009).lineTo(-0.046, -0.009).lineTo(-0.046, 0.009).lineTo(-0.041, 0.009).lineTo(-0.041, 0.023).lineTo(0.041, 0.023).lineTo(0.041, 0.009).lineTo(0.046, ... | 1 | 14 | 0.004773 |
train_517d8c627ddea3c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.275, 0.002, -0.195), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.903, 0.025).lineTo(0.267, 0.845).lineTo(-0.724, 0.541).lineTo(-0.725, -0.556).lineTo(0.264, -0.85).close().moveTo(-0.13, -0.002).lineTo(-0.175, 0.111).lineTo(-0.288, 0.157).lineTo... | 11 | 158 | 0.422593 |
train_e8a0673d77ab00b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.179, 0.057, -0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.952, 1.176).extrude(0.785)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.01, 0.807, -0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.193).extrude(0.138))
result = resul... | 8 | 66 | 0.393585 |
train_5ec419252e295c49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.025, -0.289, -0.486), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.493, -0.252).lineTo(0.514, -0.232).lineTo(0.017, 0.265).lineTo(-0.004, 0.244).lineTo(-0.025, 0.224).lineTo(-0.046, 0.244).lineTo(-0.514, -0.224).lineTo(-0.493, -0.244).lineTo(-0... | 2 | 21 | 0.017907 |
train_7a3ca9bd7de89fd7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.645, -0.439), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.833, 0.709).extrude(0.877)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.046, 0.291, -0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.044, 1.418).extrude(0.073))
result = res... | 3 | 15 | 0.512714 |
train_05ae79911eb9e695 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1.015, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.49).workplane(offset=0.606).circle(0.395).workplane(offset=0.826).circle(0.606).workplane(offset=0.583).circle(0.441).loft()
result = result.edges().fillet(0.353)
result = result.cut(cq.Wo... | 11 | 26 | 0.790532 |
train_dc8dd2ee0007b54f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.24, 0, -0.293), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.52, 0.571).extrude(0.587)
result = result.faces('<Y').shell(-0.04)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.199, 0.227, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.435... | 4 | 20 | 0.120759 |
train_313f2c2bb644cb3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.566, 0.188, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, -0.097).lineTo(-1, -0.063).lineTo(-0.811, -0.063).lineTo(-0.811, 0.097).lineTo(-0.526, 0.097).lineTo(-0.526, -0.063).lineTo(-0.331, -0.063).lineTo(-0.331, 0.097).lineTo(-0.046, 0.09... | 2 | 14 | 0.067429 |
train_a4ff16c2315f1a75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.128, 0.057, 0.305), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.179, -0.032).threePointArc((-0.128, -0.041), (-0.077, -0.045)).threePointArc((-0.025, -0.041), (0.026, -0.032)).threePointArc((0.106, -0.002), (0.179, 0.045)).threePointArc((0.054... | 10 | 67 | 0.108909 |
train_a8a60418c9781c41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.092, -0.519, -0.587), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.963, 0.963).extrude(1.319)
result = result.faces('<X').shell(-0.078)
result = result.union(cq.Workplane(cq.Plane(origin=(0.048, -0.438, -0.732), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 19 | 50 | 0.496767 |
train_74dd43b8163870d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.898).extrude(0.16)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.01, -0.221, 0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.15, 0.175).extrude(0.06))
result = result.union(cq.... | 8 | 36 | 0.525725 |
train_a52413f08de4c132 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.313, 0.219, -0.429), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.189, 0.226).lineTo(-0.209, 0.192).lineTo(-0.229, 0.192).lineTo(-0.229, -0.192).lineTo(0.15, -0.192).lineTo(0.17, -0.226).lineTo(0.209, -0.226).lineTo(0.229, -0.192).lineTo(0.209,... | 10 | 68 | 0.187459 |
train_e5cbf8cf30cda3d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.757, 0.237, -0.079), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.186, -0.243).lineTo(0.186, -0.186).lineTo(0.243, -0.186).lineTo(0.243, 0.243).lineTo(-0.243, 0.243).lineTo(-0.243, -0.186).lineTo(-0.186, -0.186).lineTo(-0.186, -0.243).lineTo(0.1... | 8 | 54 | 0.067663 |
train_be0c8c8a9d633c61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.023, -0.258, 0.173), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.203, -0.977).lineTo(0.203, 1.023).lineTo(-0.203, 1.023).lineTo(-0.203, -0.977).lineTo(0.203, -0.977).close().extrude(0.516)
result = result.edges().chamfer(0.031)
result = result.... | 17 | 325 | 0.592928 |
train_247fbaa2149887ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.002, -0.503), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.697, 0.305).extrude(0.936)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.002, 0.413), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.403, 0.225).extrude(0.587))
result = result.u... | 8 | 35 | 0.316237 |
train_9804474cc89cdde1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.57, -0.887, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.027, 1.887).lineTo(-0.761, 1.887).lineTo(-0.761, -0.113).lineTo(-0.708, -0.113).lineTo(-0.708, 1.834).lineTo(0.027, 1.834).lineTo(0.027, -0.06).lineTo(0.761, -0.06).lineTo(0.761, 1.887... | 8 | 65 | 1.148585 |
train_78131440c51cea75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.261, -1).lineTo(-0.261, 1).lineTo(0.261, 0.478).threePointArc((0.188, 0), (0.261, -0.478)).lineTo(-0.261, -1).close().sweep(cq.Workplane('XZ').spline([(-0.172, -0.359), (-0.057, -0.438), (0.05... | 7 | 61 | 0.262029 |
train_7e8a68095f599b2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.235, 0, -0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.261, 2).extrude(0.169)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.269 + 0.101, -0.8 + 0.2665, -0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.057).extrude(0.22))
result = r... | 17 | 24 | 0.410867 |
train_f295ba4b11bcfc5b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.292, -0.099, 0.336), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.241, 0.156).lineTo(0.036, 0.361).lineTo(0.241, 0.084).lineTo(-0.036, -0.121).lineTo(-0.241, 0.156).close().revolve(angleDegrees=270, axisStart=(-0.241, 0.156), axisEnd=(0.036, 0.... | 28 | 130 | 0.376483 |
train_aa7f5df8c275118d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.894, -0.01, -0.456), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.569, 0.028).lineTo(0.268, 0.512).lineTo(-0.301, 0.493).lineTo(-0.569, -0.009).lineTo(-0.268, -0.492).lineTo(0.301, -0.474).lineTo(0.569, 0.028).close().extrude(1.787)
result = res... | 9 | 101 | 1.251127 |
train_3c0fc8a4022c7e9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.396, -0.178), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.617, 0.106).threePointArc((0.146, 0.708), (-0.549, 0.39)).threePointArc((-0.617, 0.109), (-0.549, -0.173)).threePointArc((0.144, -0.492), (0.617, 0.106)).close().extrude(2)
result = r... | 25 | 158 | 2.100505 |
train_a5741160c3c30834 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.676, 2).extrude(0.055)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.67 + 0.1345, -0.8 + 0.4, 0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.07).extrude(0.01))
result = result.... | 11 | 36 | 0.185899 |
train_7f96cf1944aa8a70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.137, 0, -0.678), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.371, 1.982).extrude(1.374)
result = result.faces('<Z').shell(-0.143)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.174, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.411).... | 10 | 60 | 1.602285 |
train_4413c724552fe8c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.328), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.239, 2).extrude(0.655)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.243, 0.23, -0.439), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.038, 0.239).extrude(0.786))
result = result.cut(cq.W... | 13 | 79 | 1.562895 |
train_5f81463784fc0e30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.187, 0, -0.035), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.09, -0.266).threePointArc((0.176, -0.218), (0.241, -0.143)).threePointArc((0.28, 0), (0.241, 0.143)).threePointArc((0.176, 0.218), (0.09, 0.266)).threePointArc((-0.28, 0), (0.09, -0.26... | 6 | 28 | 0.370635 |
train_2510a90e48fd7f54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.119, -0.359, 0.164), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.37, -0.096).threePointArc((0.191, 0.139), (0.197, 0.436)).threePointArc((-0.37, 0.008), (0.185, -0.436)).threePointArc((0.239, -0.245), (0.37, -0.096)).close().sweep(cq.Workplane... | 10 | 56 | 0.234369 |
train_ef519b0ac29f5f5b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, 0, -0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.462, 0.408).extrude(0.006)
result = result.union(cq.Workplane(cq.Plane(origin=(0.021, 0.042, -0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.102).extrude(0.004))
result = result.uni... | 6 | 64 | 0.347228 |
train_d12f3c537047fdfc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.048, -1, -0.239), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.145, -0.039).threePointArc((0.13, -0.1), (0.091, -0.15)).threePointArc((-0.002, -0.183), (-0.095, -0.15)).threePointArc((-0.135, -0.098), (-0.148, -0.034)).lineTo(-0.145, 0.183).line... | 7 | 55 | 0.089446 |
train_2de61d680d3fcd6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.676), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.559, 1.279).extrude(1.676)
result = result.faces('>Z').shell(-0.104)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.172, -0.232, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.276, 0... | 12 | 16 | 1.081358 |
train_15b114d7aaeb077b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.057, -0.09, 0.025), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.055, 1.09).lineTo(0.055, 1.09).lineTo(0.055, -0.91).lineTo(-0.055, -0.91).lineTo(-0.055, 1.09).close().extrude(0.163)
result = result.edges().chamfer(0.011)
result = result.cut(cq... | 10 | 146 | 0.029594 |
train_a3a7b5700f6d1652 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.123, -0.097, 0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.782, 0.999).extrude(0.537)
result = result.union(cq.Workplane(cq.Plane(origin=(0.028, 0.496, 0.325), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.101).extrude(0.179))
result = result.... | 20 | 107 | 0.695337 |
train_c118ea07fc88bdc3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.592, 0.58, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.782, 0.881).threePointArc((-1, 0.592), (-0.782, 0.303)).lineTo(0.236, 0.015).threePointArc((1, 0.592), (0.236, 1.169)).lineTo(-0.782, 0.881).close().workplane(offset=0.436).moveTo(-0.5... | 2 | 12 | 0.829308 |
train_68d1703a8d104e16 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, -0.748, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.502, 1.47).lineTo(-0.502, 0.485).lineTo(-0.652, 0.386).threePointArc((-0.706, 0.111), (-0.428, 0.065)).lineTo(0.437, 0.07).threePointArc((0.62, 0.142), (0.706, 0.32)).lineTo(0.706, 0... | 29 | 9 | 3.520722 |
train_77582e8b59dc20b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.024, -0.768, 0.223), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.427, 0.638).threePointArc((-0.508, 0.591), (-0.573, 0.521)).threePointArc((-0.614, 0.252), (-0.432, 0.049)).threePointArc((-0.354, 0.028), (-0.274, 0.026)).lineTo(0.018, 0.058).l... | 8 | 58 | 0.601348 |
train_2b132089a7db7d04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.038, 0.104, -0.203), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.046, 1.038).lineTo(-0.046, 1.034).lineTo(-0.046, -0.962).lineTo(0.046, -0.962).lineTo(0.046, 1.038).close().extrude(0.103)
result = result.edges().chamfer(0.01)
result = result.un... | 7 | 143 | 0.066451 |
train_e40bc8d2aba8441b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.645, 0.013, 0.139), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.34, 0.022).lineTo(-0.34, 0.022).lineTo(-0.34, 0.414).lineTo(0.34, 0.807).lineTo(0.34, 0.022).close().revolve(angleDegrees=180, axisStart=(0.34, 0.022), axisEnd=(-0.34, 0.022))
resul... | 15 | 57 | 0.495245 |
train_59578e617cf50b65 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.241, -0.831, 0.092), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.609, 0.36).lineTo(-0.062, 1.31).lineTo(0.246, 1.133).lineTo(0.609, 0.923).threePointArc((0.443, 0.872), (0.304, 0.765)).threePointArc((0.177, 0.408), (0.342, 0.067)).lineTo(-0.00... | 7 | 60 | 1.264074 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.