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_1cde87386efbbc58 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.541, 0, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.918, 1.671).extrude(0.308)
result = result.union(cq.Workplane(cq.Plane(origin=(0.541, 0, 0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.348).extrude(0.028))
result = result.union(cq... | 19 | 213 | 0.924625 |
train_5b2f4e15f0375072 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.633, -0.522, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 1.206).lineTo(0.143, 1.205).lineTo(1, 1.205).lineTo(1, 0.062).lineTo(0.143, 0.062).lineTo(0.143, 0.06).lineTo(-1, 0.06).lineTo(-1, 1.206).close().extrude(1.044)
result = result.cut(... | 4 | 20 | 2.221784 |
train_8366132a542d8213 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.038, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.699, -0.022).lineTo(-0.699, 0.098).lineTo(0.699, 0.098).lineTo(0.699, -0.022).lineTo(-0.699, -0.022).close().extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.394, -0.013,... | 7 | 34 | 0.267137 |
train_fe9892487df7393f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.684, 0, 0.456), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.399, 0.155).lineTo(-0.361, 0.103).lineTo(-0.333, 0.066).lineTo(-0.333, -0.066).lineTo(-0.166, -0.288).lineTo(-0.166, -0.155).lineTo(0.166, -0.155).lineTo(0.166, -0.288).lineTo(0.333, -... | 9 | 67 | 0.500563 |
train_55172fe57559484b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 0.141), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.922, 0.745).threePointArc((-0.766, 0.89), (-0.586, 0.999)).lineTo(0.109, 0.745).threePointArc((0.505, 0.891), (0.661, 0.745)).threePointArc((0.922, 0.052), (0.661, -0.642)).threePoin... | 23 | 69 | 0.192067 |
train_93a29d7570fa39fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.099, -0.238, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.398, 0.398).extrude(0.222)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.22, -0.238, 0.107), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.022, 0.007).lineTo(0.022, 0.012).... | 6 | 80 | 0.20918 |
train_e0ab42277ef91b98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, 0.163, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.149, -0.938).lineTo(0.149, 1.062).lineTo(-0.149, 1.062).lineTo(-0.149, -0.938).lineTo(0.149, -0.938).close().extrude(0.326)
result = result.edges().fillet(0.03)
result = result.cut(cq.... | 8 | 90 | 0.172206 |
train_e9cbb4baa946908f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.308, 2).extrude(0.652)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.036, 0.258, -0.019), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.047, 0.062).lineTo(-0.047, 0.551).lineTo(0.564, 0... | 7 | 54 | 1.17424 |
train_46475b77df5cfe12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.826, 0.014, -0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.348, 0.028).extrude(0.062)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.508, 0.015, -0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.316, 0.004).extrude(0.043))
result =... | 7 | 46 | 0.004601 |
train_41795070a63815a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.421, 0.442, -0.099), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.343, -0.555).lineTo(-0.26, -0.579).lineTo(0.104, 0.687).lineTo(0.188, 0.983).lineTo(0.223, 0.973).lineTo(0.223, 0.943).lineTo(0.3, 0.675).lineTo(0.343, 0.687).lineTo(0.246, 1.027... | 2 | 21 | 0.225045 |
train_e300f98d14fb89e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.447, -0.592, 0.68), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.141, -0.249).lineTo(-0.141, 0.249).lineTo(0.141, -0.033).lineTo(0.141, -0.249).lineTo(-0.141, -0.249).close().transformed(offset=(0.102, -0.19, 0.073), rotate=(90, 0, 0)).moveTo(-... | 2 | 12 | 0.662026 |
train_b915d62ec41006e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.091, 0, -0.561), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.845, 2).extrude(1.122)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.415, 0.155, -0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.098).extrude(0.222))
result = result.cut(cq... | 5 | 66 | 1.459807 |
train_083194cb7d570be3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.366, -0.706, 0.14), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.677, 0.177).threePointArc((-0.552, 0.154), (-0.529, 0.029)).threePointArc((0, -0.153), (0.529, 0.029)).threePointArc((0.552, 0.154), (0.677, 0.177)).threePointArc((0.86, 0.706), (... | 15 | 139 | 1.832913 |
train_7975149e99c99311 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.25, -0.87), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.019, -0.156).lineTo(0.179, -0.079).lineTo(0.195, 0.164).lineTo(-0.195, 0.013).lineTo(-0.019, -0.156).close().extrude(0.508)
result = result.edges().chamfer(0.09)
result = result.un... | 10 | 68 | 0.067916 |
train_cfae600407bf84bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.297, 0.004, -0.243), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.703, 0.008).lineTo(0.496, 0.456).lineTo(-0.026, 0.659).lineTo(-0.467, 0.48).lineTo(-0.676, -0.009).lineTo(-0.46, -0.475).lineTo(-0.017, -0.668).lineTo(0.469, -0.474).close().moveTo... | 13 | 112 | 0.431268 |
train_6e838ee9bca8f44a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.606), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.732, 1.027).lineTo(1.027, 0.732).lineTo(1.027, -0.834).lineTo(0.834, -1.027).lineTo(-0.732, -1.027).lineTo(-1.027, -0.732).lineTo(-1.027, 0.631).lineTo(-0.631, 1.027).lineTo(0.732, 1.027).... | 7 | 83 | 2.429519 |
train_acead787951490fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.812, -0.082, -0.465), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.271, -0.387).threePointArc((0.465, -0.19), (0.535, 0.078)).threePointArc((0.462, 0.345), (0.264, 0.54)).lineTo(-0.004, 0.693).lineTo(-0.271, 0.536).threePointArc((-0.465, 0.339),... | 14 | 62 | 1.532985 |
train_b22e271bacbd4165 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.12, 0.14, -0.528), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.76, 1.443).extrude(1.056)
result = result.union(cq.Workplane(cq.Plane(origin=(0.072, -0.794, 0.211), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.215, 0.06).lineTo(-0.265, -0.06).line... | 5 | 40 | 2.569488 |
train_35a6aabf6b2e9fe2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.33, 0.077, 0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.289, 0.401).extrude(0.064)
result = result.union(cq.Workplane(cq.Plane(origin=(0.423, 0.077, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.128, 0.632).lineTo(-0.128, -0.644).lineTo(... | 12 | 193 | 0.231391 |
train_b7602b4f0ada7739 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.098, 0.04, 0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.013, 0.024).lineTo(0.013, 0.011).threePointArc((-0.001, -0.003), (0.013, -0.016)).lineTo(0.013, -0.022).lineTo(-0.003, -0.024).threePointArc((-0.013, -0.011), (-0.013, 0.006)).lineT... | 4 | 83 | 0.03453 |
train_433ce29ef0139c8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.199, -0.408), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.347, 0.107).threePointArc((0.261, 0.019), (0.347, 0.626)).threePointArc((-0.261, 0.715), (-0.347, 0.107)).close().extrude(0.578)
result = result.edges().fillet(0.03)
result = result.u... | 8 | 39 | 0.164921 |
train_4373ec4ed4c2e06e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, -0.342, -0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.398, -0.365).lineTo(0.376, -0.362).lineTo(0.388, 0.359).lineTo(-0.388, 0.355).close().moveTo(0.072, -0.001).lineTo(0.037, 0.062).lineTo(-0.037, 0.063).lineTo(-0.072, -0.001).line... | 18 | 277 | 0.158665 |
train_86696749cf300f9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.075, 0.04, -0.271), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.699, 1.61).extrude(0.509)
result = result.union(cq.Workplane(cq.Plane(origin=(0.23, 0.077, 0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.161, 0.116).extrude(0.036))
result = resu... | 6 | 30 | 1.396303 |
train_655a40458fa71204 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.459, 0, -0.19), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.082, 1.291).extrude(0.115)
result = result.union(cq.Workplane(cq.Plane(origin=(0.448, 0.291, -0.078), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.15).extrude(0.034))
result = result.union... | 9 | 45 | 0.216125 |
train_b5cb4049964684d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.536, 0.731, -0.245), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.29, 0.994).threePointArc((-0.342, 0.981), (-0.369, 0.933)).threePointArc((-0.375, 0.785), (-0.361, 0.636)).lineTo(-0.637, 0.593).threePointArc((-0.667, 0.58), (-0.688, 0.555)).li... | 13 | 151 | 0.797784 |
train_75e284c5c1ea5ffe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, -0.017, 0.092), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.123, -1.017).threePointArc((0.211, -0.075), (0.419, 0.849)).lineTo(-0.096, 1.017).threePointArc((-0.324, 0.01), (-0.419, -1.017)).lineTo(0.123, -1.017).close().extrude(0.263)
resu... | 14 | 281 | 0.215281 |
train_96c4b2147e1d478a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.983, 0.211, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.941, 1.865).lineTo(-0.941, 1.983).lineTo(0.941, 1.983).lineTo(0.941, -0.017).lineTo(-0.941, -0.017).lineTo(-0.941, 1.865).close().workplane(offset=0.159).moveTo(-0.742, 1.678).lineTo(... | 8 | 36 | 0.771204 |
train_580d61021476486a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.108, -0.686, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.242, 0.327).extrude(0.273)
result = result.union(cq.Workplane(cq.Plane(origin=(0.108, -0.84, -0.046), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.598, 0.181).lineTo(-0.598, 0.037).... | 6 | 137 | 0.217993 |
train_c5d6ed657e37ab95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.178, 0.069, -0.096), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.127, -0.16).lineTo(0.127, -0.109).lineTo(0.162, -0.109).lineTo(0.162, 0.109).lineTo(-0.162, 0.109).lineTo(-0.162, -0.109).lineTo(-0.127, -0.109).lineTo(-0.127, -0.116).lineTo(-0.21... | 5 | 167 | 0.229376 |
train_fc90ea22b3dacb4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.016, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.143, 1.429).extrude(0.231)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.406, -0.199, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.174).extrude(0.05))
result = result.cut(... | 10 | 70 | 0.224925 |
train_b32f0ae830664eb6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.251, -0.551, -0.256), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.753, 0.012).lineTo(0.753, 0.155).lineTo(-0.682, 0.155).threePointArc((-0.753, 0.084), (-0.682, 0.012)).lineTo(0.753, 0.012).close().workplane(offset=0.054).moveTo(0.709, 0.016).l... | 14 | 127 | 1.884847 |
train_46187bc21725f7de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.186, 0.038, -0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.311, 0.129).extrude(0.061)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.144, 0.063, -0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.02).extrude(0.029))
result = result.cu... | 13 | 86 | 0.122852 |
train_b54aefa1aeedd237 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.187, 0.309, 0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.175, 0.691).lineTo(0.203, 0.682).lineTo(0.187, 0.18).lineTo(0.782, 0.173).lineTo(0.765, -0.172).lineTo(0.161, -0.169).lineTo(0.172, -0.716).lineTo(-0.185, -0.705).lineTo(-0.193, -0... | 13 | 297 | 0.83459 |
train_5a1f9e8cebd1c382 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.071, 0.191), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.118, -0.156).threePointArc((-0.314, -0.384), (-0.087, -0.187)).threePointArc((0.07, -0.244), (0.226, -0.187)).threePointArc((0.24, -0.17), (0.258, -0.156)).threePointArc((0.314, 0), (... | 3 | 31 | 0.478573 |
train_2d736e7193ceca11 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.327, 0.076, -0.016), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.019).threePointArc((-0.061, 0.081), (-0.084, 0.164)).threePointArc((0, 0.187), (0.084, 0.164)).lineTo(0.084, 0.068).lineTo(0, 0.019).close().extrude(0.161)
result = result.edg... | 13 | 110 | 0.014688 |
train_57fb4849a3472965 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.489, 0, 0.555), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.511).workplane(offset=0.273).circle(0.401).workplane(offset=0.34).circle(0.23).workplane(offset=0.345).circle(0.121).workplane(offset=0.253).circle(0.019).loft()
result = result.union... | 8 | 53 | 0.421726 |
train_e9f7b79479964eb7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.325, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.541, 0.325).lineTo(0.288, 0.042).lineTo(0, -0.282).lineTo(-0.586, -0.282).threePointArc((-0.614, -0.27), (-0.626, -0.242)).lineTo(-0.626, 0.229).lineTo(-0.652, 0.229).lineTo(-0.652, 0.325... | 5 | 63 | 1.989586 |
train_982cec649ca95380 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.301).extrude(0.1)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.385, 0.153, -0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.83, 0.736).extrude(0.068))
result = result.cut(cq.Workp... | 12 | 44 | 0.160752 |
train_4d38dd50e3978d70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.208, -0.111, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.861).sweep(cq.Workplane('XY').spline([(-0.342, -0.111), (0.252, -0.111), (0.505, 0.066), (0.758, 0.244)]))
result = result.edges().chamfer(0.294)
result = result.cut(cq.Workplane(cq.Pl... | 9 | 129 | 2.032509 |
train_0be9d91667f40a5a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.068, 0.114, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.948, 0.018).lineTo(-0.948, 0.117).lineTo(0.948, 0.117).lineTo(0.948, 0.018).lineTo(-0.948, 0.018).close().workplane(offset=0.077).moveTo(-0.556, 0.039).lineTo(-0.556, 0.097).lineTo(0.... | 3 | 14 | 0.019831 |
train_7234fb9f178b95d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.835), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1.26).workplane(offset=0.697).circle(0.854).workplane(offset=0.743).circle(1.371).loft()
result = result.edges().fillet(0.287)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.14, -0.394... | 12 | 45 | 3.476123 |
train_3f5f4685af7481a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.035, 0, 0.164), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.274, -1).threePointArc((0.206, -0.72), (0.244, -0.434)).threePointArc((-0.17, 0.226), (-0.084, 1)).lineTo(-0.274, 1).lineTo(-0.274, -1).lineTo(0.274, -1).close().extrude(0.328)
result ... | 41 | 79 | 0.163039 |
train_39d514e59d38587a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.204, 0.3, 0.006), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.292).threePointArc((0.142, -0.349), (0.204, -0.49)).threePointArc((0, -0.7), (-0.204, -0.49)).lineTo(-0.17, 0.7).threePointArc((-0.122, 0.577), (0, 0.525)).lineTo(0, -0.292).clos... | 10 | 52 | 0.185909 |
train_24fdc439be053b70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.505, 0.383, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.735).lineTo(1, 0.031).lineTo(-1, 0.031).lineTo(-1, 0.735).lineTo(1, 0.735).close().extrude(1.011)
result = result.edges().chamfer(0.066)
result = result.cut(cq.Workplane(cq.Plane(or... | 12 | 209 | 1.036109 |
train_9cc551bf69a9ae02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.044, 0, -0.704), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.059, 0.856).extrude(1.704)
result = result.union(cq.Workplane(cq.Plane(origin=(0.529, 0.121, 0.378), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.09, 0.122).extrude(0.197))
result = result... | 14 | 255 | 1.468581 |
train_aac0d48c91081dbe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.161, -0.027, -0.085), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.015, 0.03).lineTo(0.015, 0.019).threePointArc((-0.004, 0), (0.015, -0.019)).lineTo(0.015, -0.03).threePointArc((-0.006, -0.021), (-0.015, 0)).lineTo(-0.015, 0.03).lineTo(0.015, 0... | 26 | 317 | 0.344179 |
train_a7e07c5c75658768 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.837, 0.256, 0.217), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.15, 0.163).lineTo(0.163, 0.15).lineTo(-0.15, -0.163).lineTo(-0.163, -0.15).lineTo(0.15, 0.163).close().sweep(cq.Workplane('XZ').spline([(-0.837, 0.217), (0.05, 0.141), (0.936, -0.... | 5 | 44 | 0.236171 |
train_81b09721bc9b8741 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.152), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.358, 0.146).lineTo(0.358, -0.146).lineTo(-0.358, -0.146).lineTo(-0.358, -0.024).lineTo(0.273, 0.146).lineTo(0.358, 0.146).close().sweep(cq.Workplane('XZ').spline([(-0.689, -0.323), (-0.5... | 4 | 19 | 0.150883 |
train_0956b17be7f3bbc8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.472, -0.344), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.89, 0.889).extrude(1.344)
result = result.union(cq.Workplane(cq.Plane(origin=(0.198, 0.115, 0.84), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.18, -0.18).lineTo(0, 0).lineTo(0.073, 0.11... | 15 | 41 | 0.729028 |
train_7d10328ab92d7ff8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.467, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).lineTo(1.467, 0.822).lineTo(0.334, 0.455).lineTo(-0.164, 0.255).lineTo(-0.164, 0.914).lineTo(-0.533, 0.914).lineTo(-0.533, 0.113).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.689,... | 4 | 15 | 1.113428 |
train_ff72c285b6f1aee1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.14, -0.176, -0.425), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.086, -0.011).threePointArc((0, -0.176), (0.086, -0.011)).lineTo(0.271, -0.276).lineTo(0.302, -0.321).threePointArc((0, 0.321), (-0.302, -0.321)).lineTo(-0.271, -0.276).lineTo(-0.... | 8 | 41 | 0.420861 |
train_bb9ee7900d84110e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.445, 0.175, -0.229), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.562, 0.465).extrude(0.24)
result = result.union(cq.Workplane(cq.Plane(origin=(0.085, 0.235, -0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.196, 0.099).extrude(0.039))
result = re... | 31 | 259 | 0.177224 |
train_175eeae9fc2b84ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.176, 2).extrude(0.521)
result = result.union(cq.Workplane(cq.Plane(origin=(0.058, 0.1, 0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.529).extrude(0.065))
result = result.union(cq.Workpl... | 18 | 92 | 0.993795 |
train_8fcdb6f3213b8288 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.819), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.791).extrude(1.637)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.376, 0.183, 0.37), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.327, 0.879).extrude(0.46))
result = result.cut(cq.Wor... | 4 | 76 | 5.570387 |
train_9ab0b075bb5e3427 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.255, 0.002, -0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.719, 0.015).lineTo(0.357, 0.625).lineTo(-0.344, 0.622).lineTo(-0.745, -0.01).lineTo(-0.358, -0.63).lineTo(0.342, -0.616).close().moveTo(-0.427, -0.209).lineTo(-0.038, -0.213).line... | 22 | 151 | 0.099817 |
train_c3616b358b194d4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.053, 0.28, 0.608), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.331).workplane(offset=0.2).circle(0.353).workplane(offset=0.163).circle(0.19).workplane(offset=0.142).circle(0.379).loft()
result = result.edges().chamfer(0.152)
result = result.cu... | 20 | 113 | 0.295645 |
train_464ce85c5909f602 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.697, -0.18, -0.419), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.248, 0.329).lineTo(0.248, 0.096).lineTo(-0.248, 0.096).lineTo(-0.248, 0.329).lineTo(0.248, 0.329).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.44, 0))
result = r... | 11 | 62 | 0.237133 |
train_0a4724c7692521ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.724, -0.571, 0.722), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.286).transformed(offset=(0.541, 0, 1.13), rotate=(90, 0, 0)).circle(0.172).transformed(offset=(1.082, 0, 1.432), rotate=(20, 0, 0)).circle(0.123).loft()
result = result.edges().c... | 4 | 18 | 0.012721 |
train_76f79c46203170c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.306, -0.189), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.337).sweep(cq.Workplane('YZ').spline([(-0.615, -0.812), (-0.388, -0.808), (-0.162, -0.785), (0.064, -0.694), (0.29, -0.533), (0.517, -0.443), (0.743, -0.42), (0.97, -0.415)]))
result ... | 5 | 18 | 0.179701 |
train_c3fcb47a7aa67eae | 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(0.947, 2).extrude(0.316)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.152, -0.14, 0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.03).extrude(0.021))
result = result.cut(cq.Workplan... | 13 | 72 | 0.549367 |
train_1d93dd967c826cfd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.513, 1.26).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.276, -0.256, -1.339), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.33, 0.257).extrude(2.399))
result = result.cut(cq.Workpl... | 21 | 42 | 2.790074 |
train_d196bdfd683d7fcd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.185).workplane(offset=1.119).circle(0.192).workplane(offset=0.881).circle(0.169).loft()
result = result.edges().chamfer(0.165)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.035, -0.283, ... | 6 | 21 | 0.157638 |
train_f38fb425d78e6186 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.519, -0.094, 0.089), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.079).workplane(offset=0.027).circle(0.083).workplane(offset=0.023).circle(0.073).workplane(offset=0.025).circle(0.073).workplane(offset=0.024).circle(0.075).workplane(offset=0.02... | 14 | 87 | 1.010392 |
train_d0e439536e0e421d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.066, 0.004, -0.325), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.013, -0.017).lineTo(0.304, 0.996).lineTo(-0.881, 0.613).lineTo(-0.84, -0.63).lineTo(0.337, -1.004).close().moveTo(-0.035, 0.112).lineTo(-0.035, 0.473).lineTo(0.035, 0.473).lineTo(... | 13 | 82 | 0.829985 |
train_9f596e7b1bb6f3c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.207, 0.119, 0.605), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.793, -0.664).lineTo(0.793, -0.664).lineTo(0.793, 0.664).lineTo(-0.793, 0.664).lineTo(-0.793, -0.664).close().revolve(angleDegrees=90, axisStart=(-0.793, -0.664), axisEnd=(0.793, -... | 14 | 107 | 1.201159 |
train_0bb4ecfcf742feb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.029, -0.274, -0.841), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.044, -0.036).lineTo(0.317, 0.186).lineTo(0.541, 0.686).lineTo(0.408, 0.961).lineTo(0.388, 1.001).threePointArc((-0.302, 1.22), (-0.541, 0.536)).lineTo(-0.453, 0.348).lineTo(-0.453... | 16 | 87 | 2.515543 |
train_38da053cdc934e54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.912, -0.308, 0.272), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.728, 0.608).lineTo(0.628, 0.608).lineTo(0, 0.084).lineTo(0.1, 0).lineTo(0.728, 0.524).lineTo(0.728, -0.608).lineTo(0.628, -0.608).lineTo(0, -0.084).lineTo(-0.628, -0.608).lineTo... | 8 | 51 | 1.326806 |
train_af675f206fa5b477 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.284, 0.074, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.928, 0.986).extrude(1.652)
result = result.union(cq.Workplane(cq.Plane(origin=(0.284 + 0.172 * math.cos(2.767 + 2 * math.pi * 0 / 4), 0.074 + 0.172 * math.sin(2.767 + 2 * math.pi * 0 / 4... | 10 | 78 | 1.561342 |
train_13f8fa688b2af5bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.554, 0.181, 0.336), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.444).transformed(offset=(0.245, -0.224, 0.108), rotate=(0, 60, 0)).circle(0.639).transformed(offset=(0.49, -0.224, 0.28), rotate=(0, 20, 0)).circle(0.365).transformed(offset=(0.735... | 4 | 11 | 0.904944 |
train_5e576c328cfff66f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.196, 0.444), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.386, 1.141).extrude(0.556)
result = result.faces('>Z').shell(-0.051)
result = result.union(cq.Workplane(cq.Plane(origin=(0.276, -0.024, 0.281), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0... | 7 | 62 | 0.535971 |
train_a5c931f49e10a0c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.358), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.455, 2).extrude(0.629)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.582 + 0.1165, -0.8 + 0.2, 0.272), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.069, 0.011).lineTo(0.069, -0.006).... | 41 | 529 | 1.455181 |
train_7a367951df0220fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.1, -0.494, -0.45), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.362, 0.077).lineTo(-0.362, 0.911).lineTo(0.362, 0.911).lineTo(0.362, 0.077).lineTo(-0.362, 0.077).close().extrude(0.872)
result = result.edges().fillet(0.13)
result = result.union(... | 6 | 54 | 0.437035 |
train_5154806bceacc106 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.557, 0.779, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.313, -0.049).threePointArc((0, -0.316), (-0.313, -0.049)).threePointArc((0, 0.316), (0.313, -0.049)).close().sweep(cq.Workplane('XY').spline([(0.557, 0.04), (0.416, 0.232), (0.19, 0.301... | 5 | 20 | 0.226712 |
train_db24bbf668ce0a3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.377), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.173, 0.307).lineTo(-0.173, 0.307).lineTo(-0.173, -0.153).lineTo(-0.083, -0.307).threePointArc((0, -0.162), (0.083, -0.307)).lineTo(0.173, -0.153).lineTo(0.173, 0.105).lineTo(0.173, 0.307... | 6 | 38 | 0.142192 |
train_e5d689ebb9fcffde | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.861, -0.119, 0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.211).lineTo(0.139, -0.211).lineTo(0.139, 0.211).threePointArc((0, 0.206), (-0.139, 0.211)).lineTo(-0.139, -0.211).lineTo(0, -0.211).close().sweep(cq.Workplane('XZ').spline([(-... | 10 | 60 | 0.161205 |
train_9d24f1a205c865e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.316, 0.361, 0.234), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.102, -0.178).lineTo(0.102, 0.178).lineTo(0.004, 0.178).lineTo(0.004, 0.08).lineTo(0.071, 0.08).lineTo(0.071, -0.08).lineTo(-0.102, -0.08).lineTo(-0.102, -0.178).lineTo(0.102, -0.178... | 10 | 71 | 0.534363 |
train_2122b5aca4359974 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.833, 0.341), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.08).sweep(cq.Workplane('YZ').spline([(0.241, -0.001), (0.183, 0.315), (-0.133, 0.519), (-0.501, 0.367), (-0.653, -0.001), (-0.501, -0.368), (-0.133, -0.52), (0.183, -0.317)]))
result ... | 5 | 17 | 0.050038 |
train_f63fa3f01edb9ca4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.039, -0.038, -0.281), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.923, 1.672).extrude(0.565)
result = result.union(cq.Workplane(cq.Plane(origin=(0.081, 0.835, -0.18), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.04).extrude(0.063))
result = result... | 5 | 24 | 1.818025 |
train_804e07f4b1f04593 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.968, -0.482, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.42).threePointArc((-0.469, 1.295), (-0.813, 0.952)).threePointArc((-0.938, 0.483), (-0.813, 0.013)).lineTo(-0.542, -0.455).lineTo(0.542, -0.455).lineTo(0.813, 0.013).threePointArc(... | 12 | 31 | 3.526961 |
train_af5e675cec57fba6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.559, 0.495, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.986, -0.048).lineTo(0.986, 0.298).lineTo(0.78, 0.433).lineTo(0.554, 0.384).lineTo(-0.506, 0.159).lineTo(0, 0.938).lineTo(-0.554, 1.492).lineTo(-0.78, 1.445).lineTo(-0.986, 1.579).lineT... | 13 | 121 | 1.473186 |
train_1325f11121eca58d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.001, 0.208), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.54, 0.145).threePointArc((0, -0.145), (1.54, 0.145)).lineTo(0, 0.145).lineTo(-1.54, 0.145).close().extrude(0.416)
result = result.edges().fillet(0.094)
| 2 | 14 | 0.191146 |
train_04cc5ee14da6bf63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.317, 0.071, -0.807), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.366, 1.394).extrude(1.615)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.573, 0.012, 0.057), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.308, 0.833).lineTo(0.308, 0.474).lin... | 20 | 69 | 2.042784 |
train_09434760df66e32d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.5, -0.001), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.191, 0.998).threePointArc((0.252, 0.968), (0.221, 0.907)).threePointArc((-0.03, 0.737), (-0.157, 0.462)).threePointArc((-0.212, 0.422), (-0.252, 0.478)).threePointArc((-0.103, 0.8), (0.... | 3 | 19 | 0.162379 |
train_fa5792704b922ba6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.425, 0.019, -0.182), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.151, 0.177).extrude(0.163)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.538, 0.027, -0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.924, 0.054).extrude(0.049))
result = ... | 9 | 36 | 0.027283 |
train_40e90c51a7d3ce37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.085, 0, 0.688), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0).lineTo(-0.306, 0).lineTo(-0.306, -0.255).lineTo(-0.255, -0.306).lineTo(0.255, -0.306).lineTo(0.306, -0.255).lineTo(0.306, 0.255).lineTo(0.255, 0.306).lineTo(0, 0.306).lineTo(0, 0).... | 3 | 37 | 0.305736 |
train_34328672f58a5b5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.358, -0.285, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.34, 0.763).lineTo(-0.34, 0.196).threePointArc((-0.307, 0.115), (-0.227, 0.082)).lineTo(0.227, 0.082).threePointArc((0.307, 0.115), (0.34, 0.196)).lineTo(0.34, 0.763).lineTo(-0.34, 0.... | 9 | 70 | 0.688064 |
train_631db1bfa507d718 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0, 0.267), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.435, 1).lineTo(-0.435, -1).lineTo(0.435, -1).lineTo(-0.124, 1).lineTo(-0.435, 1).close().extrude(0.534)
result = result.edges().chamfer(0.061)
result = result.cut(cq.Workplane(cq.Plan... | 6 | 44 | 0.552637 |
train_d5215ca760bd828b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.483, 0.674), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.35, -0.356).lineTo(0.335, -0.371).lineTo(-0.004, -0.032).lineTo(-0.338, -0.366).lineTo(-0.353, -0.35).lineTo(-0.368, -0.335).lineTo(-0.034, -0.001).lineTo(-0.368, 0.332).lineTo(-0.353... | 1 | 18 | 0.126125 |
train_14496d5cb7f85c6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.194, -0.512), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.803, 1.613).extrude(0.824)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.321 + 0.064, -0.194, 0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.027, 0.03).lineTo(-0.009, 0.0... | 35 | 140 | 0.820253 |
train_c9c15b77b4477e80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.427, 0.12, 0.485), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.515, 0.017).lineTo(0.514, 0.306).lineTo(0.142, 0.403).lineTo(0.142, 0.201).lineTo(-0.022, 0.156).lineTo(-0.187, 0.296).lineTo(-0.515, 0.574).lineTo(-0.515, 0.017).lineTo(0.515, 0.01... | 3 | 50 | 0.298651 |
train_4035169a43f706e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.345, -0.013, -0.637), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.363, 0.43).lineTo(0.363, -0.405).lineTo(-0.363, -0.405).lineTo(-0.363, -0.264).lineTo(0.221, -0.264).lineTo(0.221, 0.43).lineTo(0.363, 0.43).close().extrude(0.689)
result = resul... | 9 | 86 | 0.389025 |
train_180b345ac0cd98c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.043, -0.386), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.512, 1.404).extrude(1.015)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.071, 0.12, -0.559), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.207, 0.363).extrude(1.218))
result = result.... | 17 | 48 | 1.870651 |
train_e814aa8b127ef77c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.493, -0.037, 0.078), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.002).lineTo(-0.332, 0.002).lineTo(-0.301, 0.029).lineTo(0.301, 0.029).lineTo(0.332, 0.002).lineTo(0, 0.002).close().extrude(0.037)
result = result.edges().fillet(0.012)
result ... | 27 | 165 | 0.185523 |
train_e27dcda47a6a2a80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.282, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.854, 1.437).extrude(0.186)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.742 + 0.1855, -0.189, -1.005), normal=(0, 1, 0), xDir=(1, 0, 0))).circle(0.046).extrude(1.868))
result = ... | 18 | 159 | 0.443207 |
train_5c5f09126ba08a29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.034, 2).extrude(0.051)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.414 + 0.138, -0.8 + 0.16, 0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.09, 0.047).lineTo(0.09, -0.047).lin... | 16 | 141 | 0.108149 |
train_40fbf16a6b70dbec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.17, -0.034, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.203, -0.087).threePointArc((-0.176, 0.013), (-0.103, 0.087)).threePointArc((0, 0.059), (0.103, 0.087)).threePointArc((0.176, 0.013), (0.203, -0.087)).lineTo(-0.203, -0.087).close().sw... | 3 | 36 | 0.044299 |
train_f6802b429c002519 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.128, 0.606, -0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.276, 0.789).extrude(0.318)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.238 + 0.022, 0.606, 0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.001, 0.009).lineTo(-0.005,... | 18 | 312 | 0.123974 |
train_4a885b308107011b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.455, -0.12, -0.237), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.44, -0.511).lineTo(0.154, 1.122).lineTo(0.44, 1.018).lineTo(-0.116, -0.511).lineTo(-0.154, -0.615).lineTo(-0.44, -0.511).close().revolve(angleDegrees=270, axisStart=(-0.44, -0.51... | 18 | 172 | 0.736521 |
train_2bc7382037e4fb40 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.507, -0.192, 0.11), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.044).workplane(offset=0.093).circle(0.041).workplane(offset=0.08).circle(0.039).workplane(offset=0.075).circle(0.048).workplane(offset=0.069).circle(0.048).workplane(offset=0.091)... | 6 | 40 | 0.188073 |
train_e175030166d49367 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.477, -0.453, -0.209), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.834, 0.834).extrude(0.64)
result = result.faces('<X').shell(-0.059)
result = result.union(cq.Workplane(cq.Plane(origin=(0.572, -0.378, 0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 12 | 96 | 0.421746 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.