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_5760ee0bbf8b982c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.436, 0, -0.269), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.495, -0.313).lineTo(0.375, -0.313).lineTo(0.277, -0.215).threePointArc((0.229, -0.191), (0.178, -0.199)).lineTo(0.053, -0.262).threePointArc((0.023, -0.302), (0.037, -0.351)).threePoi... | 7 | 62 | 0.115278 |
train_6f093c2af31fb95f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.024, 0.104, 0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.972, 0.782).extrude(0.828)
result = result.faces('>Z').shell(-0.037)
result = result.union(cq.Workplane(cq.Plane(origin=(0.185, 0.064, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 27 | 167 | 0.366211 |
train_93c343e8a8b56be3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.147, 0.38), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.192).lineTo(1, 0.004).lineTo(0.84, 0.004).lineTo(0.818, -0.192).lineTo(-1, 0.01).lineTo(-1, 0.192).lineTo(1, 0.192).close().extrude(0.43)
result = result.edges().fillet(0.076)
resul... | 7 | 102 | 0.230152 |
train_6e40d920281236c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, 0.001, -0.006), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.034, 0.217).lineTo(-0.034, -0.934).lineTo(-0.033, -0.94).lineTo(-0.033, -0.947).lineTo(-0.032, -0.953).lineTo(-0.031, -0.959).lineTo(-0.029, -0.965).lineTo(-0.027, -0.97).lineTo(... | 8 | 90 | 0.004554 |
train_adb15adf2e1485c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.517, -0.489, 0.369), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.118, 0.471).threePointArc((-0.023, -0.45), (0.118, 0.465)).threePointArc((0, 0.483), (-0.118, 0.471)).close().extrude(0.053)
result = result.edges().fillet(0.019)
result = resul... | 4 | 73 | 0.1873 |
train_88774756c314079e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, -0.552, -0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.059, 0.878).extrude(0.281)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.312, -0.552, 0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.03).extrude(0.161))
result = result... | 19 | 95 | 0.324684 |
train_64091d95ec743862 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.605, -0.148, 0.342), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.001, 0.285).lineTo(0.652, 0.285).lineTo(0.652, 0.011).lineTo(0.001, 0.011).lineTo(0.001, 0.079).lineTo(-0.652, 0.079).lineTo(-0.652, 0.216).lineTo(0.001, 0.216).lineTo(0.001, 0.28... | 27 | 181 | 0.168451 |
train_8f245c91fd717331 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.031, -0.264, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.06, 0.06).threePointArc((-0.032, 0.075), (0, 0.08)).lineTo(0, 0.06).lineTo(0.06, 0.06).lineTo(0.084, 0.06).lineTo(0.084, 0.14).lineTo(0, 0.14).lineTo(-0.084, 0.14).lineTo(-0.084, 0.0... | 7 | 42 | 0.014032 |
train_cb88d77fcb720564 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.381, -0.052, -0.497), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.202, -0.948).lineTo(-0.202, 0.948).lineTo(-0.006, 0.948).lineTo(-0.006, -0.138).lineTo(0.202, -0.948).lineTo(-0.202, -0.948).close().sweep(cq.Workplane('XY').spline([(-0.112, -... | 3 | 64 | 0.743137 |
train_c25d177d7699615c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, 0.614, 0.524), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.036, 1.127).threePointArc((-0.309, 1.054), (-0.508, 0.855)).lineTo(-0.508, 0.311).lineTo(-0.036, 0.039).lineTo(0.435, 0.311).threePointArc((0.508, 0.583), (0.435, 0.855)).lineTo(-... | 10 | 60 | 1.684842 |
train_b5b978eab6b92c89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.196, -0.055, 0.836), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.164, 0.234).lineTo(0, 0.535).lineTo(0.164, 0.234).lineTo(0.164, 0.07).lineTo(0, -0.094).lineTo(-0.164, 0.07).lineTo(-0.164, 0.234).close().extrude(0.29)
result = result.edges().c... | 6 | 55 | 0.031432 |
train_e700eaac4d8be80b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.356, 0.036), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.727, -0.156).lineTo(-0.7, 0.283).lineTo(-0.727, 0.201).lineTo(0.685, -0.283).lineTo(0.727, -0.156).close().sweep(cq.Workplane('YZ').spline([(-0.317, -0.364), (0.185, -0.106), (0.688, -0... | 4 | 9 | 0.197441 |
train_e61a7a74078e1f19 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.205, -0.358, -0.49), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.59, 0.733).extrude(0.757)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.787, -0.438, -0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.213).extrude(0.371))
result = resul... | 14 | 180 | 1.385784 |
train_4ca894d2232cd15a | 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.951, 0.606).extrude(0.604)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.502), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.128).extrude(1.15))
result = result.union(cq.Workplane(c... | 7 | 34 | 0.379837 |
train_d8943f10db2e3986 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.717, -0.289, -0.295), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.654, -0.244).lineTo(0.654, -0.244).lineTo(0.654, 0.821).lineTo(-0.654, 0.821).lineTo(-0.654, -0.244).close().workplane(offset=0.759).moveTo(-0.704, -0.284).lineTo(0.704, -0.284)... | 6 | 45 | 2.2543 |
train_954186630ca22df0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.276), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.015).extrude(0.552)
result = result.faces('>Z').shell(-0.056)
| 2 | 11 | 0.274947 |
train_4542b2e8c6d3cb1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.657, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.737, 1.221).threePointArc((-0.108, 1.502), (0.521, 1.221)).threePointArc((0.737, 0.657), (0.521, 0.093)).threePointArc((-0.108, -0.188), (-0.737, 0.093)).lineTo(-0.737, 1.221).close().ext... | 10 | 50 | 3.450888 |
train_55bb190f3cb4e951 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.673, 0.845, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.75, 1.34).lineTo(-0.75, 0.006).lineTo(0.75, 0.006).lineTo(0.75, 1.34).lineTo(-0.75, 1.34).close().workplane(offset=0.616).moveTo(-0.975, 1.542).lineTo(-0.975, -0.195).lineTo(0.975, -0... | 5 | 57 | 3.848523 |
train_89f88af807de6d36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.08, 0.567, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.07, 0.612).lineTo(0.07, -0.428).threePointArc((0.068, -0.432), (0.064, -0.433)).lineTo(0.045, -0.433).threePointArc((0.041, -0.432), (0.04, -0.428)).lineTo(0.04, -0.416).threePointArc((... | 2 | 36 | 0.030223 |
train_899beff32fd6f704 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.077, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.844, -0.485).lineTo(-0.82, -0.485).lineTo(-0.825, -0.108).threePointArc((-0.827, -0.086), (-0.834, -0.066)).lineTo(-0.816, -0.047).lineTo(-0.791, -0.056).lineTo(1, 0.348).lineTo(0.969, 0.4... | 2 | 21 | 0.278105 |
train_7e6a5583040773df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.681).extrude(0.78)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.164, 0.118, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.708, 2.018).extrude(0.279))
result = result.cut(cq.Wor... | 11 | 67 | 2.039389 |
train_4a3437649df1c475 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.464, -0.391, 0.234), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.816, 0.048).lineTo(0.816, 0.592).lineTo(-0.816, 0.592).lineTo(-0.816, 0.048).lineTo(0.816, 0.048).close().workplane(offset=0.404).moveTo(0.717, 0.081).lineTo(0.717, 0.559).lineTo(... | 12 | 117 | 0.472855 |
train_ce95a21714a9af52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.448, -0.912), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.027, -0.052).lineTo(-0.031, -0.05).lineTo(0.027, 0.052).lineTo(0.031, 0.05).lineTo(-0.027, -0.052).close().sweep(cq.Workplane('YZ').spline([(-0.448, -0.983), (-0.145, -0.667), (0.159... | 2 | 10 | 0.000644 |
train_251a235ea2fd14f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.07, 0.002, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.272, 0.325).threePointArc((-0.292, 0.386), (-0.346, 0.423)).threePointArc((-0.461, 0.376), (-0.444, 0.253)).threePointArc((-0.385, 0.225), (-0.322, 0.238)).lineTo(-0.186, 0.002).line... | 3 | 26 | 0.336795 |
train_bcdf0474ab71def8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.691, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.761, 0.367).threePointArc((0.226, 0.712), (-0.265, 1.118)).lineTo(-0.265, 1.256).threePointArc((0.226, 0.848), (0.761, 0.503)).threePointArc((0.949, 0.315), (0.761, 0.127)).lineTo(-0.949,... | 4 | 21 | 0.770056 |
train_15ea72c7170d6da1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.6, -0.146, 0.041), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.171, -0.367).threePointArc((0.229, 0.061), (0.164, 0.488)).lineTo(-0.229, 0.488).threePointArc((-0.141, 0.061), (-0.219, -0.367)).lineTo(0.171, -0.367).close().revolve(angleDegrees=... | 20 | 128 | 0.395888 |
train_c93381d8600235e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.127, 0.134, -0.132), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.935, 0.026).threePointArc((-0.818, 0.143), (-0.935, 0.26)).lineTo(0.935, 0.26).threePointArc((0.818, 0.143), (0.935, 0.026)).lineTo(-0.935, 0.026).close().extrude(0.288)
result =... | 17 | 239 | 0.071544 |
train_5b865f1aabc545ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.3, -0.081, -0.287), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.246, -0.08).lineTo(-0.246, 0.309).threePointArc((0, 0.555), (0.246, 0.309)).lineTo(0.246, -0.08).lineTo(-0.246, -0.08).close().extrude(0.872)
result = result.union(cq.Workplane(cq... | 26 | 105 | 0.556505 |
train_7237af809a2fa5aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.485, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.639, 1.125).lineTo(0.639, 0.486).lineTo(0, 0.486).lineTo(0, -0.154).lineTo(-0.639, -0.154).lineTo(-0.639, 1.125).lineTo(0.639, 1.125).close().extrude(2)
result = result.edges().chamfer(0.... | 7 | 60 | 2.281052 |
train_a2d0c42fac07fd12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.028, -0.174, -0.45), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.441, 0.028).threePointArc((-0.312, -0.284), (0, -0.413)).lineTo(0.441, -0.413).lineTo(0.441, 0.028).threePointArc((0.312, 0.339), (0, 0.469)).lineTo(-0.441, 0.469).lineTo(-0.441,... | 17 | 93 | 0.927413 |
train_3f36c1ba73fb8206 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, 0.435, 0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.586, -0.481).lineTo(0.564, -0.478).lineTo(0.584, 0.485).lineTo(-0.588, 0.498).close().moveTo(-0.161, 0.087).lineTo(-0.15, 0.117).lineTo(-0.118, 0.112).lineTo(-0.139, 0.137).lineTo... | 8 | 110 | 0.281585 |
train_9b7028bc859b4431 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.498, -0.004, -0.75), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.618, 0.697).extrude(0.667)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.408, -0.159, -0.125), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.11, 0.133).extrude(1.045))
result =... | 9 | 42 | 0.349748 |
train_030ca92ffa81b271 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.226, 0.034), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.5).threePointArc((0.707, -0.207), (0, -0.5)).threePointArc((-0.707, -0.207), (-1, 0.5)).lineTo(1, 0.5).close().extrude(0.126)
result = result.union(cq.Workplane(cq.Plane(origin=(-0... | 16 | 76 | 0.167933 |
train_66cc168fa486b09b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.304, 0.553, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.663, -0.547).threePointArc((-1.079, 0.304), (-0.663, 1.155)).threePointArc((1.079, 0.304), (-0.663, -0.547)).close().workplane(offset=0.153).moveTo(-0.631, -0.506).threePointArc((-1.0... | 2 | 8 | 2.807944 |
train_588ac083afb5f251 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.066, 0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.432, -0.102).threePointArc((-0.366, -0.023), (-0.455, 0.029)).lineTo(0.349, 0.31).lineTo(0.39, 0.402).threePointArc((0.437, 0.42), (0.455, 0.373)).lineTo(0.265, -0.052).lineTo(0.... | 46 | 430 | 0.326342 |
train_252eca9f4140ca0d | 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.582).workplane(offset=0.52).circle(0.628).workplane(offset=0.478).circle(0.616).workplane(offset=0.43).circle(0.611).loft()
result = result.edges().fillet(0.326)
result = result.union(cq.Workp... | 6 | 20 | 1.433495 |
train_865c347f48dc8360 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.834, 0.045, 0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.095).threePointArc((0.028, 0.09), (0.054, 0.077)).threePointArc((0.084, 0.044), (0.095, 0)).lineTo(0.095, -0.095).lineTo(0, -0.095).lineTo(-0.095, -0.095).lineTo(-0.095, 0).three... | 14 | 14 | 0.07044 |
train_f0d484e9585fc72c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.141, -0.36, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.309, 0.777).lineTo(-0.309, -0.859).lineTo(0.309, -0.859).lineTo(0.309, 1.141).lineTo(-0.309, 1.141).lineTo(-0.309, 0.777).close().extrude(0.72)
result = result.edges().fillet(0.099)
r... | 19 | 35 | 0.783739 |
train_098c95cdf5944ca6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.089, 0.334), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.444, 0.75).lineTo(0.444, -0.667).lineTo(-0.972, -0.667).lineTo(-0.972, 0.25).lineTo(-1, 0.25).lineTo(-1, -0.75).lineTo(1, -0.75).lineTo(1, -0.667).lineTo(0.958, -0.667).lineTo(0.958, ... | 3 | 22 | 0.655945 |
train_c19a66798cee3e12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.394, -0.21, 0.476), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.462, 0.032).lineTo(0.462, 0.032).lineTo(0.524, 0.385).lineTo(0.52, 0.388).threePointArc((0, 0.145), (-0.52, 0.388)).lineTo(-0.524, 0.385).lineTo(-0.462, 0.032).close().extrude(0.7... | 6 | 48 | 0.250284 |
train_d44ae4b9c47f6743 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.75, -0.151, 0.049), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.395, 0.858).threePointArc((0.395, 0.385), (0.328, -0.532)).lineTo(-0.395, -0.532).lineTo(-0.395, 0.858).close().extrude(1.5)
result = result.edges().chamfer(0.136)
result = result... | 5 | 30 | 1.597499 |
train_1412be54e97b3cfe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.128, -0.09, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.502, 1.093).threePointArc((0.502, 0.09), (-0.502, -0.913)).lineTo(-0.502, -0.552).threePointArc((0.14, 0.09), (-0.502, 0.732)).lineTo(-0.502, 1.093).close().extrude(0.256)
result = re... | 6 | 50 | 0.193719 |
train_23500a3855e2391f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.326, 0.035, 0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.177, -0.107).lineTo(-0.285, 0.001).lineTo(-0.177, 0.463).lineTo(0.285, 0.355).lineTo(0.177, -0.107).close().extrude(0.64)
result = result.edges().fillet(0.094)
result = result.union... | 7 | 79 | 0.335652 |
train_b0a0d141e08953ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, -0.09), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.806).workplane(offset=0.451).circle(0.555).workplane(offset=0.517).circle(0.572).workplane(offset=0.465).circle(0.812).workplane(offset=0.409).circle(0.655).loft()
result = result.edges().... | 8 | 24 | 2.940803 |
train_6c18dbde11883820 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.529, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.529, -0.212).threePointArc((-0.041, 0.102), (0.529, 0.212)).lineTo(0.529, -0.212).lineTo(-0.529, -0.212).close().revolve(angleDegrees=360, axisStart=(0.529, 0.212), axisEnd=(0.529, -0.21... | 9 | 114 | 0.751172 |
train_a2cda9f720d7fcf3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.51, 0.087, -0.51), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.51, 0.608).lineTo(0.51, -0.434).lineTo(-0.51, -0.434).lineTo(-0.51, 0.608).lineTo(0.51, 0.608).close().revolve(angleDegrees=180, axisStart=(0.51, 0.608), axisEnd=(0.51, -0.434))
resu... | 6 | 22 | 1.444149 |
train_355d102eabe87559 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.287, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.634, 0.474).lineTo(0.634, 0.474).lineTo(0.634, 0.036).threePointArc((0, 0.214), (-0.634, 0.036)).lineTo(-0.634, 0.474).close().extrude(2)
result = result.edges().fillet(0.098)
result = r... | 17 | 41 | 0.62568 |
train_53c0f5332b4c4826 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.042, -0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.389, 1.112).extrude(0.715)
result = result.union(cq.Workplane(cq.Plane(origin=(0.813, 0.118, -0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.132).extrude(0.31))
result = resul... | 23 | 88 | 0.525301 |
train_9e7c9140302670b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.176, 0.063, 0.267), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.143, 0.197).lineTo(0.085, 0.164).lineTo(0.228, 0.345).lineTo(0.143, 0.559).lineTo(-0.085, 0.593).lineTo(-0.228, 0.412).lineTo(-0.143, 0.197).close().revolve(angleDegrees=270, axisS... | 11 | 89 | 0.657432 |
train_f6638fcfb07b598c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, 0, -0.327), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.955, 1.335).extrude(0.299)
result = result.union(cq.Workplane(cq.Plane(origin=(0.12, 0.067, -0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.76, 1.201).extrude(0.02))
result = result.u... | 4 | 23 | 0.914554 |
train_7c5504f950236b9f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.382, 0.382, -0.547), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.344, 0.772).threePointArc((0.453, 0.476), (0.344, 0.181)).lineTo(-0.344, 0.181).threePointArc((-0.453, 0.476), (-0.344, 0.772)).lineTo(0.344, 0.772).close().revolve(angleDegrees=9... | 10 | 98 | 0.463794 |
train_b17ac9051e38f6fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.147, -0.184), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.011, -0.433).lineTo(-0.011, -0.05).lineTo(0.165, 0.265).lineTo(0.138, 0.251).lineTo(-0.011, -0.017).lineTo(-0.152, 0.251).lineTo(-0.177, 0.264).lineTo(-0.487, 0.42).lineTo(0.461, 0.41... | 4 | 37 | 0.4228 |
train_81a5238bb067a155 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.405, 0, 0.153), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.264, 0.622).lineTo(-0.264, -0.622).lineTo(0.264, -0.622).lineTo(0.264, 0.622).lineTo(-0.264, 0.622).close().sweep(cq.Workplane('XZ').spline([(0.08, -0.172), (0.155, -0.042), (-0.002,... | 7 | 44 | 0.649713 |
train_02b86fe8742f422e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.076, 0.008, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.302, 0.489).threePointArc((-0.489, 0.232), (-0.489, -0.086)).lineTo(0, -0.441).threePointArc((0.302, -0.343), (0.489, -0.086)).threePointArc((0.489, 0.232), (0.302, 0.489)).threePoin... | 15 | 83 | 0.815887 |
train_c0fad4237eefe05b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.697, 0, -0.202), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.837).workplane(offset=0.285).circle(0.784).workplane(offset=0.293).circle(0.732).workplane(offset=0.258).circle(0.678).workplane(offset=0.285).circle(0.625).workplane(offset=0.272).ci... | 5 | 24 | 1.997947 |
train_59e6146bfc430bf5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.364, 0.946), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.199, 1.256).lineTo(0.199, 1.256).lineTo(0.199, -0.637).lineTo(-0.199, -0.637).lineTo(-0.199, 1.256).close().revolve(angleDegrees=90, axisStart=(-0.199, 1.256), axisEnd=(0.199, 1.256))... | 15 | 32 | 1.060662 |
train_e7d7fbe6da7a4c55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.215, 0, -0.241), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.18, 1.462).extrude(0.136)
result = result.union(cq.Workplane(cq.Plane(origin=(0.274, 0.073, -0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.531).extrude(0.013))
result = result.unio... | 18 | 122 | 0.341474 |
train_35fae69a46aba12c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.085, 0.093, 0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.1, -0.912).lineTo(-0.1, -0.916).lineTo(-0.1, 1.085).lineTo(-0.05, 1.083).lineTo(0.1, -0.912).close().extrude(0.151)
result = result.edges().fillet(0.018)
result = result.cut(cq.Wor... | 15 | 71 | 0.034705 |
train_01a63548ff4d32d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.509, -0.507, -0.652), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.036, 0.367).lineTo(0.037, 0.364).lineTo(0.046, 0.034).lineTo(0.191, 0.043).lineTo(0.194, -0.034).lineTo(0.039, -0.04).lineTo(0.044, -0.358).lineTo(-0.041, -0.368).lineTo(-0.044, ... | 15 | 251 | 0.589173 |
train_82208ac0d17bc9b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.447, -0.131, 0.031), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.292, 0.337).lineTo(0.292, 0.039).lineTo(-0.047, 0.039).lineTo(-0.047, 0.266).lineTo(-0.292, 0.266).lineTo(-0.292, 0.337).lineTo(-0.047, 0.337).lineTo(-0.047, 0.485).lineTo(0.199, ... | 17 | 287 | 0.094187 |
train_72f56aeb5a49897a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, 0, 0.588), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.827, -0.4).lineTo(0.827, 1).lineTo(-0.385, 1).lineTo(-0.506, 0.704).lineTo(-0.827, -0.081).threePointArc((-0.764, -0.704), (-0.21, -1)).lineTo(0.827, -1).lineTo(0.827, -0.6).lineTo(-0.... | 3 | 71 | 2.805036 |
train_b7ffdd169c8643b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.329, -0.005, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.612, 0.906).extrude(0.2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.092, 0.186, -0.099), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.062, -0.125).lineTo(-0.062, 0.324).... | 17 | 128 | 0.876943 |
train_aeaab5c14732c9e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.018, -0.002, -0.506), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.854, 1.996).extrude(1.379)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.508, 0.257, -0.368), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.072).extrude(0.767))
result = res... | 13 | 67 | 2.22376 |
train_03fd0381d71459d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.123, -0.117, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.709, -0.883).lineTo(0.716, -0.879).lineTo(0.735, 0.858).lineTo(-0.731, 0.852).close().moveTo(-0.11, 0.246).lineTo(-0.157, 0.327).lineTo(-0.25, 0.327).lineTo(-0.298, 0.247).lineTo... | 28 | 217 | 0.40635 |
train_65f8d71351c9271a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.835, 0.682, 0.075), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.162, 0.139).lineTo(-0.162, -0.048).lineTo(-0.162, -0.139).lineTo(0.162, -0.139).lineTo(0.162, 0.139).close().transformed(offset=(-0.46, 1.124, 0.087), rotate=(0, 0, 0)).moveTo(0.17... | 1 | 6 | 0.009751 |
train_e81d34b751be8ca4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.838, 0.437, -0.177), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.823, 1.521).lineTo(0.823, 0.154).lineTo(0, 0.154).lineTo(-0.823, 0.447).lineTo(-0.823, 1.228).lineTo(0, 1.521).lineTo(0.823, 1.521).close().extrude(0.718)
result = result.edges().... | 13 | 130 | 0.894615 |
train_4b253308ca381608 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.954, 0.001), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.065, 0.238).lineTo(-0.063, 0.239).lineTo(-0.017, 0.067).threePointArc((-0.017, 0.066), (-0.016, 0.065)).lineTo(-0.01, 0.043).lineTo(-0.01, 0.041).lineTo(-0.004, 0.019).threePointArc((... | 5 | 40 | 0.001469 |
train_1b26d57fe7a8cca3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.081, -0.837, 0.227), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.208, 0.146).threePointArc((-0.085, -0.146), (0.208, -0.023)).lineTo(-0.208, 0.146).close().sweep(cq.Workplane('YZ').spline([(-0.837, -0.191), (-0.413, -0.191), (0.011, -0.191), (0... | 4 | 19 | 0.11329 |
train_df72f416571e0136 | 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.93, 1.554).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.138, 0.107, 0.459), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.467, 0.494).extrude(0.555))
result = result.cut(cq.Workpl... | 12 | 51 | 2.35033 |
train_587bb454b9c05fc8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.858, -0.167, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.804, 0.383).lineTo(-0.362, -0.383).lineTo(0.115, -0.383).lineTo(0.442, 0.184).lineTo(0.689, 0.184).lineTo(0.804, 0.383).lineTo(-0.804, 0.383).close().sweep(cq.Workplane('XY').spline([... | 4 | 22 | 0.617326 |
train_293e256da807791b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.084, -0.1, -0.491), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.748, 0.708).extrude(0.553)
result = result.union(cq.Workplane(cq.Plane(origin=(0.084, -0.383 + 0.1415, -0.619), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.07, 0.092).lineTo(-0.07, 0.... | 17 | 94 | 0.493283 |
train_f05419c2a4b02e6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.449, -0.334, -0.009), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.028, -0.547).threePointArc((0.538, 1.12), (-0.538, -0.274)).threePointArc((-0.305, -0.453), (-0.028, -0.547)).close().extrude(0.898)
result = result.edges().chamfer(0.161)
resul... | 13 | 50 | 2.054697 |
train_70f0b72932998a84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, 0.201, -0.714), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.286, -0.196).lineTo(0.286, 0.218).lineTo(-0.286, 0.218).lineTo(-0.286, -0.196).lineTo(-0.149, -0.196).lineTo(-0.149, 0.011).lineTo(0.122, 0.011).lineTo(0.122, -0.196).lineTo(0.286... | 5 | 62 | 0.077991 |
train_1ed8aca33b109ce4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.501, -0.729, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.172, 1.29).lineTo(-0.858, 0.976).lineTo(-0.314, 0.976).lineTo(-0.314, 0.432).lineTo(0, 0.119).lineTo(1.172, 1.29).lineTo(-1.172, 1.29).close().extrude(0.651)
result = result.edges().... | 12 | 95 | 0.682943 |
train_ebd7560fdc96572b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.155, 0.101, -0.017), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.116, 0.113).lineTo(0.096, 0.146).lineTo(0.096, 0.306).lineTo(-0.369, 0.306).lineTo(-0.369, -0.113).lineTo(-0.176, -0.113).lineTo(-0.156, -0.146).lineTo(-0.156, -0.306).lineTo(0.36... | 18 | 235 | 0.465502 |
train_aad517a7b3571f45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.284, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.184, 1.37).extrude(1.614)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.187, 0.046, 0.592), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.287).extrude(0.408))
result = result.union(cq... | 15 | 57 | 1.960368 |
train_90146d5232b6ece5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.55, 0.025, -0.408), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.172).sweep(cq.Workplane('XZ').spline([(-0.08, -0.951), (0.076, -0.943), (0.233, -0.89), (0.389, -0.69), (0.546, -0.49), (0.702, -0.437), (0.859, -0.429)]))
result = result.union(c... | 5 | 37 | 0.225683 |
train_ab214133028cb906 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.049, 0.067).lineTo(0.217, 0.067).lineTo(0.217, -0.067).lineTo(-0.104, -0.067).lineTo(-0.092, -0.086).lineTo(-0.092, -0.18).lineTo(-0.217, -0.18).lineTo(-0.217, 0.18).lineTo(-0.092, 0.18)... | 3 | 45 | 0.083817 |
train_f7a42cb466f32fa2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.053, -0.144, -0.255), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.167, 0.144).lineTo(0.096, -0.857).lineTo(-0.096, -0.857).lineTo(-0.167, 0.144).lineTo(-0.167, 1.144).lineTo(0.167, 1.144).lineTo(0.167, 0.144).close().extrude(0.503)
result = res... | 11 | 100 | 0.176597 |
train_98a5839641043521 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.941, 0.069), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.205, 0.059).lineTo(-0.205, -0.059).lineTo(0.205, -0.059).lineTo(0.205, 0.059).lineTo(0.099, 0.059).threePointArc((0.07, -0.011), (0, -0.039)).threePointArc((-0.07, -0.011), (-0.099, 0... | 1 | 10 | 0.076561 |
train_14b5d6d3efa01f27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.032, 0, 0.002), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.006, -1).lineTo(0.006, -1).lineTo(0.006, 0.997).threePointArc((0, 0.998), (-0.006, 1)).lineTo(-0.006, -1).close().sweep(cq.Workplane('XZ').spline([(-0.032, 0.002), (-0.01, -0.003), (... | 5 | 24 | 0.000417 |
train_66db0e55c904fcdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.226, -0.402, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.258, -0.211).lineTo(0.258, 1.016).lineTo(0.003, 1.016).lineTo(0.003, 0.208).lineTo(-0.003, 0.208).lineTo(-0.003, 1.016).lineTo(-0.258, 1.016).lineTo(-0.258, -0.211).lineTo(0.258, ... | 2 | 13 | 1.009063 |
train_d6490c8aa9a52c35 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.962, -0.132, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.343, 1.084).lineTo(-0.155, 0.995).lineTo(-0.653, 0.904).lineTo(-0.824, 0.429).threePointArc((-0.863, -0.022), (-0.669, -0.433)).lineTo(-0.343, -0.819).lineTo(0.155, -0.73).threePointA... | 7 | 50 | 3.635847 |
train_2c0439d35ec3a0ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.204, -0.116, -0.329), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.592, 0.986).extrude(0.658)
result = result.faces('>X').shell(-0.037)
result = result.union(cq.Workplane(cq.Plane(origin=(0.49, 0.599, -0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 8 | 42 | 0.293283 |
train_8bd59abce8de4963 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.151, -0.532), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.78, 1.698).extrude(1.437)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.13, 0.567, -0.905), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.363, 0.45).extrude(0.415))
result = result.... | 16 | 44 | 1.421776 |
train_379df64914eaefd0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.191, -0.415, -0.034), normal=(0, 1, 0), xDir=(0, 0, 1))).lineTo(-0.16, 0.123).lineTo(-0.185, 0.123).lineTo(-0.185, 0.074).lineTo(-0.185, -0.121).lineTo(-0.185, -0.122).lineTo(0.185, -0.008).close().sweep(cq.Workplane('YZ').spline([(-0.532, -0.1... | 6 | 40 | 0.182428 |
train_61f8677ccba53521 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.197, 0, -0.023), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.75).sweep(cq.Workplane('XZ').spline([(-0.584, -0.404), (-0.111, -0.404), (0.252, -0.25), (0.615, -0.096), (0.978, 0.059)]))
result = result.edges().chamfer(0.372)
result = result.union... | 3 | 8 | 1.95057 |
train_4d48b703e3f25806 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.059, -0.065, -0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.14).lineTo(-0.06, 0.005).lineTo(-0.103, -0.038).lineTo(-0.205, 0.065).lineTo(0, 0.27).lineTo(0.205, 0.065).lineTo(0.103, -0.038).lineTo(0, -0.14).close().extrude(0.314)
result... | 24 | 190 | 0.072612 |
train_8bf750e7e3196513 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.29, -0.151), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.333, 0.09).lineTo(-0.333, 0.268).lineTo(-0.111, 0.268).lineTo(-0.111, 0.49).lineTo(0.111, 0.49).lineTo(0.111, 0.268).lineTo(0.333, 0.268).lineTo(0.333, 0.09).lineTo(-0.333, 0.09).clo... | 8 | 120 | 0.39741 |
train_4172797c32e465eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.363, -0.26, -0.129), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.18).sweep(cq.Workplane('XZ').spline([(-0.284, -0.485), (-0.131, -0.554), (0.034, -0.554), (0.187, -0.485), (0.187, -0.41), (0.034, -0.341), (-0.131, -0.341), (-0.284, -0.41)]))
r... | 9 | 47 | 0.22563 |
train_c30a09b61d0065d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.061, 0, -0.336), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.155, 0.596).extrude(0.819)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.142, 0.048, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.385, 0.129).extrude(0.212))
result = resul... | 22 | 172 | 0.348621 |
train_98f6c9103eb5ceb3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.255, -0.156, -0.803), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.489, 1.224).extrude(1.607)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.069, 0.693, -0.23), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.094, 0.113).lineTo(0.113, 0.094).l... | 2 | 22 | 2.934069 |
train_3b1dee905402f854 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.319, 0.269, 0.388), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.608).sweep(cq.Workplane('XY').spline([(0.319, -0.405), (0.541, -0.082), (0.399, 0.262), (-0.042, 0.465), (-0.577, 0.435), (-0.959, 0.186)]))
result = result.union(cq.Workplane(cq.Pl... | 2 | 14 | 1.943742 |
train_5ccb271ecea7f131 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.984).extrude(0.102)
result = result.union(cq.Workplane(cq.Plane(origin=(0.218, 0.3, 0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.04).extrude(0.04))
result = result.cut(cq.Workplane(c... | 11 | 45 | 0.352842 |
train_bf02aee794d2d2f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.332, -0.143, -0.777), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.337, 1.453).extrude(1.08)
result = result.faces('>X').shell(-0.113)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.479, -0.139, -0.339), normal=(0, 1, 0), xDir=(0, 0, 1))).move... | 14 | 71 | 0.895871 |
train_175e9f85ab175857 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, 0.136, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.231, 0.004).lineTo(0.169, 0.165).lineTo(0.007, 0.229).lineTo(-0.166, 0.164).lineTo(-0.236, -0.006).lineTo(-0.164, -0.165).lineTo(-0.007, -0.229).lineTo(0.166, -0.165).close().moveT... | 9 | 78 | 0.043242 |
train_468cb2a69add6cfd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.38, -0.012, 0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.24, 0.127).extrude(0.175)
result = result.union(cq.Workplane(cq.Plane(origin=(0.593, 0.016, 0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.813, 0.031).extrude(0.09))
result = result... | 9 | 36 | 0.032276 |
train_aac1c0f33250d2a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.3, 0, -0.554), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.399, 1.029).extrude(0.592)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.676, 0, -0.462), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.648, 0.518).extrude(0.206))
result = result.cut... | 13 | 458 | 1.20877 |
train_e57da54310719b06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.079, 0.193, 0.049), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.151, -0.026).threePointArc((0, 0.026), (-0.151, -0.026)).lineTo(0.151, -0.026).close().sweep(cq.Workplane('XY').moveTo(0.043, 0.197).spline([(0.036, 0.222), (0.005, 0.225), (-0.011,... | 12 | 120 | 0.024887 |
train_c0459bfec0884dca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.93, -0.913, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.41, 0.172).lineTo(-0.41, -0.087).lineTo(0.41, -0.087).lineTo(0.41, 0.926).lineTo(-0.41, 0.926).lineTo(-0.41, 0.172).close().extrude(1.86)
result = result.edges().fillet(0.08)
result =... | 21 | 123 | 1.123632 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.