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_b48b9c1e6c365e55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.274, -0.402, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.47, -0.028).lineTo(-0.47, 0.314).lineTo(-0.349, 0.314).threePointArc((0.043, 0.57), (0.434, 0.314)).threePointArc((0.47, 0.143), (0.434, -0.028)).lineTo(-0.349, -0.028).lineTo(-0.... | 16 | 123 | 0.240293 |
train_eb50311466326b29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.263, 0, -0.766), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.153, 0.43).lineTo(0.153, 0.43).lineTo(0.153, -0.357).lineTo(0.077, -0.357).lineTo(0.077, -0.43).lineTo(0.038, -0.43).lineTo(0.061, -0.357).lineTo(-0.061, -0.357).lineTo(-0.038, -0.43... | 11 | 144 | 0.501275 |
train_02154b99a5123978 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.023, -0.758), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.527, 1.52).extrude(1.758)
result = result.union(cq.Workplane(cq.Plane(origin=(0.549, 0.808, 0.616), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.101, 0.155).extrude(0.147))
result = result... | 4 | 19 | 4.085461 |
train_2ac3da650146f884 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.357), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.525, 2).extrude(0.464)
result = result.union(cq.Workplane(cq.Plane(origin=(0.076, 0.1, 0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.373, 1.8).extrude(0.043))
result = result.union(cq.Wo... | 5 | 28 | 1.600155 |
train_6044f95ccafe8d1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.259, 0, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.482, 0.804).extrude(0.052)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.334 + 0.2965, -0.322 + 0.0805, 0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.132, -0.003).lineTo(... | 10 | 59 | 0.064267 |
train_43b7093ca62d0332 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.502, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.073, 1.164).threePointArc((0.003, 1.097), (-0.073, 1.158)).lineTo(-0.091, 1.259).threePointArc((-0.133, 1.253), (-0.174, 1.245)).lineTo(-0.158, 1.149).threePointArc((-0.201, 1.062), (-0.29... | 10 | 121 | 2.730116 |
train_6fe534e60ac8c733 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.354, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.448, 0.02).lineTo(-0.448, 0.02).lineTo(-0.448, 0.689).lineTo(0.448, 0.689).lineTo(0.448, 0.02).close().extrude(0.611)
result = result.edges().fillet(0.114)
result = result.union(cq.Workpl... | 9 | 72 | 0.363036 |
train_35a3e7d168426608 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.206, 0.076, -0.589), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.588, 0.861).extrude(0.844)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.117, 0.33, -0.368), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.673, 0.373).extrude(0.539))
result = resu... | 13 | 105 | 0.798288 |
train_50b62dcacf5258ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.795, 0, -0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.052, -0.003).lineTo(-0.052, -0.015).lineTo(-0.05, -0.015).lineTo(-0.05, -0.029).threePointArc((-0.046, -0.033), (-0.042, -0.029)).lineTo(-0.042, -0.015).lineTo(-0.04, -0.015).lineTo(... | 7 | 59 | 0.214446 |
train_23f4d7f0577bf065 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.305, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.007, -0.305).lineTo(0.279, -0.305).lineTo(0.279, -0.069).lineTo(0.221, -0.069).lineTo(-0.022, 0.41).lineTo(-0.022, 0.567).threePointArc((-0.15, 0.695), (-0.279, 0.567)).lineTo(-0.279, 0.41... | 5 | 27 | 0.541402 |
train_fee0fa5149768692 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, -0.263, -0.354), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.693, -0.73).lineTo(0.717, -0.737).lineTo(0.715, 0.747).lineTo(-0.688, 0.73).close().moveTo(0.181, 0.001).lineTo(0.091, 0.158).lineTo(-0.088, 0.155).lineTo(-0.179, 0).lineTo(-0.0... | 6 | 74 | 0.825602 |
train_6faee8c6430e6147 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.305, 0.628, -0.154), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.846, -0.141).lineTo(0.846, 0.752).threePointArc((0, 0.596), (-0.846, 0.752)).lineTo(-0.846, -0.141).lineTo(0.846, -0.141).close().workplane(offset=0.287).moveTo(0.724, -0.077).lin... | 4 | 19 | 1.092712 |
train_4d6025764314e5c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.828, -0.138, 0.018), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.141).sweep(cq.Workplane('XY').spline([(0.828, 0.224), (0.62, 0.41), (0.252, 0.486), (-0.121, 0.419), (-0.343, 0.238), (-0.321, 0.018), (-0.064, -0.148)]))
result = result.edges().... | 12 | 54 | 0.642788 |
train_45e066c4d530203e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.316, 0.566, -0.137), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.959, 1.883).lineTo(-0.479, 2.16).threePointArc((0, 2.287), (0.479, 2.16)).threePointArc((0.83, 1.809), (0.959, 1.329)).threePointArc((0.83, 0.85), (0.479, 0.499)).lineTo(0, 0.222... | 4 | 41 | 2.139259 |
train_4f4ad4e05a89d424 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.133, 0.438, 0.23), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.441, 0.867).lineTo(0.441, -0.798).lineTo(-0.441, -0.798).lineTo(-0.441, 0.867).lineTo(0.441, 0.867).close().extrude(0.831)
result = result.edges().fillet(0.036)
result = result.uni... | 23 | 126 | 1.413982 |
train_737ca90658975751 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, -0.003, -0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.083, 0.993).lineTo(0.084, 1.003).lineTo(0.078, 0.115).lineTo(0.567, 0.096).lineTo(0.571, -0.101).lineTo(0.1, -0.065).lineTo(0.086, -0.997).lineTo(-0.081, -0.995).lineTo(-0.077, ... | 12 | 152 | 0.192193 |
train_28bdaaf09ebe3658 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.815, 0, -0.861), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.047, 0.041).lineTo(-0.043, 0.033).threePointArc((-0.049, 0.032), (-0.054, 0.035)).lineTo(-0.024, 0).lineTo(-0.009, -0.044).threePointArc((0, -0.05), (0.009, -0.044)).threePointArc((0... | 2 | 30 | 0.016215 |
train_31b5b8f629a4a347 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.294), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.565).extrude(0.589)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.14, -0.223, 0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.4, 0.125).extrude(0.055))
result = result.edges().fi... | 10 | 96 | 1.786851 |
train_b4a96bc1169f3683 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.009, 0.014, -0.7), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.991, 0.021).lineTo(0.701, 0.682).lineTo(0.005, 0.972).lineTo(-0.66, 0.698).lineTo(-1.009, -0.003).lineTo(-0.644, -0.663).lineTo(-0.026, -1).lineTo(0.68, -0.681).close().moveTo(-0.344... | 7 | 34 | 1.79504 |
train_de4cf923ea36ed8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, 0.102, 0.336), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.528, -0.285).lineTo(0.526, 0.011).lineTo(0.526, 0.285).lineTo(0.145, 0.285).lineTo(-0.013, 0.151).lineTo(-0.528, 0.285).lineTo(-0.528, -0.285).lineTo(-0.191, 0).lineTo(-0.022, -0.... | 18 | 171 | 0.303288 |
train_5018bc2b1d550818 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.252, -0.171, -0.335), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.755, 0.014).lineTo(0.376, 0.679).lineTo(-0.366, 0.661).lineTo(-0.749, -0.011).lineTo(-0.394, -0.647).lineTo(0.402, -0.661).close().moveTo(0.19, -0.001).lineTo(0.097, 0.166).lineT... | 13 | 198 | 0.522963 |
train_72fdf14223ea378b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, -0.431, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.5, 1.172).threePointArc((0, 1.183), (0.5, 1.172)).lineTo(0.5, -0.32).threePointArc((0, -0.307), (-0.5, -0.32)).lineTo(-0.5, 1.172).close().revolve(angleDegrees=360, axisStart=(0.5, 1.1... | 3 | 5 | 4.423259 |
train_11e4fe5ef6dce61b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.201, 0.643, 0.155), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.573, 0.377).lineTo(0.573, -0.238).lineTo(-0.573, -0.238).lineTo(-0.573, 0.377).lineTo(0.573, 0.377).close().workplane(offset=0.41).moveTo(0.509, 0.342).lineTo(0.509, -0.203).lineTo... | 18 | 158 | 0.832054 |
train_760108bd61e973ab | 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.086, 0.755).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.316, -0.035, -0.614), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.209).extrude(0.852))
result = result.cut(cq.Workplane... | 15 | 37 | 1.251235 |
train_f634216e9dab8da1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.562, -0.371), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.395, 0.115).lineTo(0.395, -0.28).lineTo(-0.395, -0.28).lineTo(-0.395, 0.438).lineTo(0.395, 0.438).lineTo(0.395, 0.115).close().extrude(0.606)
result = result.edges().fillet(0.121)
resu... | 16 | 146 | 0.281545 |
train_aa8df413bd389e55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.807, 0, 0.452), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.309, 0.265).lineTo(0.442, 0).lineTo(0.309, -0.265).lineTo(0.206, -0.265).lineTo(0.206, -0.205).lineTo(0.059, -0.205).lineTo(0.059, -0.265).lineTo(-0.059, -0.265).lineTo(-0.059, -0.21).l... | 6 | 81 | 0.616859 |
train_12fc4b17e4d54a76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.634).extrude(0.169)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.218, 0.363, 0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.066).extrude(0.047))
result = result.cut(cq.Workp... | 10 | 30 | 0.461965 |
train_3f3e45dc5cb2d1a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.146, 0.284, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.328, -0.005).lineTo(0.092, 0.304).lineTo(-0.267, 0.187).lineTo(-0.257, -0.18).lineTo(0.091, -0.31).close().moveTo(-0.143, 0.051).lineTo(-0.045, 0.051).lineTo(-0.045, 0.065).lineTo(-... | 26 | 149 | 0.579071 |
train_a8dda98ad7e98067 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, -0.046, -0.469), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.63, 1.207).extrude(0.588)
result = result.union(cq.Workplane(cq.Plane(origin=(0.049, 0.043, 0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.282).extrude(0.114))
result = result.c... | 27 | 161 | 0.481261 |
train_6e415154ef2e5e1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, -0.009, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.19, 0.06).lineTo(0.19, 0.06).lineTo(0.19, 0.047).threePointArc((0.162, -0.019), (0.096, -0.047)).lineTo(-0.19, -0.047).lineTo(-0.19, 0.06).close().extrude(0.295)
result = result.edg... | 9 | 60 | 0.108082 |
train_c82a403ca18968e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.198, -0.01), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.418, 0.802).lineTo(-0.418, -0.802).lineTo(0.418, -0.802).lineTo(0.418, 0.802).lineTo(-0.418, 0.802).close().extrude(0.191)
result = result.edges().chamfer(0.068)
result = result.union... | 6 | 40 | 0.229051 |
train_15aa6fb168be720a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.5, 0.009).lineTo(0.5, 0.149).lineTo(-0.424, 0.149).threePointArc((-0.461, 0.154), (-0.5, 0.149)).lineTo(-0.5, -0.149).threePointArc((-0.461, -0.154), (-0.424, -0.149)).lineTo(0.5, -0.149).l... | 16 | 51 | 0.848442 |
train_d7330e67e4217c43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.645, -0.645, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.711).threePointArc((-0.032, 0.343), (1, 0.249)).threePointArc((0.489, 0.666), (0.706, 1.289)).threePointArc((-0.12, 0.92), (-1, 0.711)).close().revolve(angleDegrees=90, axisStart=... | 5 | 19 | 0.556652 |
train_26494c406a2e9661 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.108), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.378, 0.252).lineTo(-0.378, -0.252).lineTo(0.378, -0.252).lineTo(0.378, -0.067).threePointArc((0.362, -0.02), (0.319, 0.006)).threePointArc((0.2, 0.074), (0.133, 0.194)).threePointArc((0... | 1 | 9 | 0.472977 |
train_952b956d56a3c717 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.021, -0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.158).extrude(0.18)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.374, 0.019, -0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.673, 0.093).extrude(0.154))
result = result.un... | 8 | 41 | 0.042105 |
train_61316689facec793 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.08, -0.073, -0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.095, 1.113).extrude(0.604)
result = result.faces('>Z').shell(-0.037)
result = result.union(cq.Workplane(cq.Plane(origin=(0.441, -0.123, -0.191), normal=(1, 0, 0), xDir=(0, 0, 1))).mov... | 4 | 32 | 0.446544 |
train_f7cea2cde4455fcf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.047, -0.1, -0.705), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.905, 1.413).extrude(1.404)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.116, 0.705, 0.261), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.074, 0.202).extrude(0.106))
result = r... | 6 | 27 | 3.784407 |
train_ca5555d45fa9115a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.663, -0.67, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.951, -0.241).lineTo(-0.951, 0.031).lineTo(-0.502, 0.165).lineTo(-0.104, 0.654).lineTo(-0.535, 1.006).lineTo(-0.951, 1.15).lineTo(-0.951, 1.486).lineTo(-0.472, 1.358).lineTo(0.152, 0.9... | 6 | 34 | 1.205351 |
train_b67c9bd6b3d6c0f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.128, -0.261, -0.587), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.055, 0.216).extrude(0.862)
result = result.union(cq.Workplane(cq.Plane(origin=(0.128, -0.204, 0.243), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.023).extrude(0.757))
result = resul... | 8 | 36 | 0.392983 |
train_0a33d8071f8b6cfb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, 0.122, -0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.987, -0.828).lineTo(1.012, -0.812).lineTo(0.998, 0.812).lineTo(-0.989, 0.837).close().moveTo(-0.396, -0.252).lineTo(-0.142, -0.252).lineTo(-0.142, -0.211).lineTo(-0.356, -0.211).l... | 9 | 95 | 0.420508 |
train_357cab355e34fea4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.301, -0.171, 0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.308, 0.763).extrude(0.592)
result = result.union(cq.Workplane(cq.Plane(origin=(0.631, -0.285, 0.223), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.647, 0.383).extrude(0.141))
result = ... | 15 | 94 | 0.892298 |
train_9311c3030889a4b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.883), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.551).extrude(1.241)
result = result.union(cq.Workplane(cq.Plane(origin=(0.316, 0.188, 0.338), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.897, 0.866).extrude(0.545))
result = result.cut(cq.... | 6 | 56 | 4.02347 |
train_4868e9a668befc99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.682), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.348, 2).extrude(1.364)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.141, 0.959, 0.289), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.249).workplane(offset=0.118).circle(0.26).workp... | 3 | 8 | 3.574491 |
train_811cb4f9438c2fbf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.039, 0, 0.051), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.961, 0.174).threePointArc((0, -0.509), (-0.961, 0.174)).threePointArc((0, 0.509), (0.961, 0.174)).close().extrude(0.171)
result = result.union(cq.Workplane(cq.Plane(origin=(0.039, 0, 0... | 17 | 90 | 0.246099 |
train_16dadad2a82bf713 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.461), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.807, 0.932).extrude(0.682)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.421, 0.434).extrude(0.305))
result = result.union(cq.Wo... | 11 | 70 | 0.710671 |
train_38fb9e58a9ef14fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.088, 0, -0.382), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.13, 2).extrude(0.94)
result = result.union(cq.Workplane(cq.Plane(origin=(0.558, -0.266, -0.288), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.19, 0.469).extrude(0.561))
result = result.uni... | 14 | 80 | 1.374944 |
train_766832c611741c58 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.166, 0.069, -0.306), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.668, 0.754).extrude(0.612)
result = result.faces('>Z').shell(-0.042)
result = result.union(cq.Workplane(cq.Plane(origin=(0.827, -0.008, 0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 8 | 26 | 0.273329 |
train_6277c3d43adb1845 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.575, -0.041), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.197, -0.151).threePointArc((0.215, -0.167), (0.231, -0.185)).threePointArc((0.285, -0.277), (0.303, -0.382)).lineTo(0.764, -0.382).threePointArc((0, 0.382), (-0.764, -0.382)).lineTo(-... | 13 | 116 | 0.620956 |
train_26110dbb3a145458 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.035, -0.069, -0.64), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.101, 0.853).extrude(1.072)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.026, 0.079, 0.533), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.107, 0.284).threePointArc((-0.01, 0... | 4 | 37 | 1.233785 |
train_a08d1cdf6149649a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.276, -0.858, 0.436), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.374, 0.841).lineTo(0.374, 0.905).threePointArc((0.179, 0.333), (-0.374, 0.09)).lineTo(-0.374, 0.841).close().revolve(angleDegrees=180, axisStart=(-0.374, 0.841), axisEnd=(0.374,... | 13 | 203 | 0.616758 |
train_1010f6762d95ab49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.851, 0.478, -0.088), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.131, 0.393).threePointArc((0, 0.522), (0.131, 0.392)).lineTo(0.211, -0.251).lineTo(0.218, -0.305).lineTo(0.213, -0.348).threePointArc((0, -0.522), (-0.213, -0.347)).lineTo(-0.218,... | 10 | 89 | 0.480077 |
train_cdb50f33d7f66ede | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0.387, -0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.315, 0.387).extrude(0.056)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.001, 0.405, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.258, 0.346).extrude(0.009))
result =... | 17 | 180 | 0.322565 |
train_bc16d15d10e0adb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.632, -0.121, -0.802), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.609, 0.77).extrude(0.558)
result = result.union(cq.Workplane(cq.Plane(origin=(0.691, -0.042, -0.255), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.092).extrude(0.274))
result = resul... | 6 | 52 | 0.331881 |
train_0fb1a8fda63641e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.478, 0.56, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.505).workplane(offset=0.39).circle(0.51).workplane(offset=0.429).circle(0.455).workplane(offset=0.301).circle(0.479).loft()
result = result.edges().chamfer(0.236)
result = result.cut(c... | 13 | 57 | 1.000542 |
train_ef4381e2a0e91c59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.021, -0.526, -0.745), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.666, 0.195).threePointArc((-0.541, 0.026), (-0.372, -0.099)).threePointArc((-0.041, -0.181), (0.29, -0.099)).threePointArc((0.459, 0.026), (0.584, 0.195)).threePointArc((0.666, ... | 32 | 151 | 2.271831 |
train_9d25abee430b11f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.216, -0.364, -0.101), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.001, -0.2).threePointArc((-0.035, -0.185), (-0.05, -0.15)).lineTo(-0.05, -0.018).threePointArc((-0.064, 0.017), (-0.099, 0.031)).lineTo(-0.177, 0.031).threePointArc((-0.212, 0.... | 9 | 48 | 0.047493 |
train_c9c78186e3e6e44d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.074, -0.1, -0.402), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.674, 0.89).extrude(0.59)
result = result.faces('<Z').shell(-0.066)
result = result.union(cq.Workplane(cq.Plane(origin=(0.155, 0.427, -0.182), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0... | 9 | 47 | 0.155806 |
train_4d20cc47d3e4413c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.389, -0.452, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.135, -0.548).lineTo(-0.139, 1.451).lineTo(-0.103, 1.451).lineTo(0.139, 1.453).lineTo(0.139, -0.546).lineTo(-0.11, -0.548).lineTo(-0.135, -0.548).close().revolve(angleDegrees=360, axis... | 12 | 83 | 0.784745 |
train_0a37567c66465e8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.026, -1, -0.077), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.382, 0.171).threePointArc((-0.32, 0.32), (-0.171, 0.382)).threePointArc((-0.022, 0.32), (0.039, 0.171)).lineTo(0.039, 0.046).lineTo(0.382, 0.046).lineTo(0.382, -0.046).lineTo(0.039... | 8 | 45 | 0.482091 |
train_379cd752db6a81c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.077, -0.025, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.044, -0.011).lineTo(0.329, 1.025).lineTo(-0.89, 0.588).lineTo(-0.885, -0.619).lineTo(0.303, -0.975).close().moveTo(-0.399, 0.196).lineTo(-0.291, 0.186).lineTo(-0.193, 0.23).lineT... | 13 | 129 | 0.493774 |
train_37946a225dcfcf4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.278, -0.409, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.291, 1.182).rect(0.304, 0.229).extrude(0.204)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.369, -0.53, -0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.549, 0.286).extrude... | 10 | 59 | 0.27372 |
train_07bd7c6d0400d823 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.544, -0.036, -0.086), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.501, 1.038).threePointArc((0.501, 0.036), (-0.501, -0.965)).lineTo(-0.501, -0.683).lineTo(-0.501, 0.755).lineTo(-0.501, 1.038).close().extrude(1.088)
result = result.edges().fil... | 10 | 59 | 1.234058 |
train_c574f05a47688d78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.602, -0.052, -0.231), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.769, -0.063).lineTo(-0.769, 0.168).lineTo(0.769, 0.168).lineTo(0.769, -0.063).lineTo(-0.769, -0.063).close().extrude(1.204)
result = result.edges().fillet(0.108)
result = result... | 11 | 51 | 0.32136 |
train_43a83ba3469f2d76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.436, -0.268, -0.446), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.128, 1.153).extrude(0.088)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.458, -0.439, -0.362), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.162).extrude(0.043))
result = re... | 6 | 52 | 0.420779 |
train_7ddbab8f7a5a937b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.499, 0.057, 0.071), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.481, 0.049).lineTo(-0.481, 0.019).threePointArc((-0.501, 0), (-0.481, -0.019)).lineTo(-0.481, -0.049).lineTo(0.501, -0.049).lineTo(0.501, 0.049).lineTo(-0.481, 0.049).close().tra... | 2 | 11 | 0.016419 |
train_35763e74b5e6ef0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.261, 0.421, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.539, 1.421).lineTo(0.539, 1.421).lineTo(0.539, -0.579).lineTo(-0.539, -0.579).lineTo(-0.539, 1.421).close().extrude(0.793)
result = result.edges().chamfer(0.067)
result = result.cut(c... | 11 | 73 | 1.446092 |
train_a18ae7bbb3c3498c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.067, -0.087, 0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.478, 0.068).lineTo(0.584, 0.922).lineTo(-0.294, 1.087).lineTo(-0.504, 0.197).lineTo(-0.531, -0.27).lineTo(-0.718, -0.525).lineTo(0.264, -0.913).close().circle(0.201).extrude(0.222)
... | 7 | 43 | 0.368352 |
train_3f437ad29fd01565 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.331, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.501, 0.604).threePointArc((-0.774, 0.331), (-0.501, 0.058)).lineTo(0.501, 0.058).threePointArc((0.774, 0.331), (0.501, 0.604)).lineTo(-0.501, 0.604).close().extrude(1.62)
result = result.... | 4 | 13 | 1.304322 |
train_e0bd8a8877bf10b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.643), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.555).extrude(1.019)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.477, 0.12, -0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.516, 0.332).extrude(0.592))
result = result.cut(cq.Wo... | 10 | 66 | 0.723324 |
train_40c4007f842b7b52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.001, -0.109), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.205, 0.681).lineTo(0.197, 0.674).lineTo(0.194, 0.202).lineTo(0.996, 0.17).lineTo(0.98, -0.194).lineTo(0.179, -0.167).lineTo(0.185, -0.682).lineTo(-0.198, -0.667).lineTo(-0.175, -0... | 11 | 115 | 0.152639 |
train_f4493adb293e71a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.364, -0.018, -0.697), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.376).lineTo(0.141, -0.294).lineTo(0.141, 0.811).lineTo(-0.141, 0.811).lineTo(-0.141, -0.783).lineTo(0, -0.702).lineTo(0.071, -0.661).lineTo(0.141, -0.62).lineTo(0.141, -0.457... | 16 | 181 | 0.764115 |
train_7af1aa66f159e0de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.73, 0.312, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.27, 0.034).lineTo(-0.27, -0.034).lineTo(-0.061, -0.034).lineTo(-0.061, -0.003).lineTo(0.061, -0.003).lineTo(0.061, -0.034).lineTo(0.27, -0.034).lineTo(0.27, 0.034).lineTo(0.061, 0.034)... | 9 | 201 | 0.117316 |
train_cd8bfcc9e8bb1699 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.208, 0.5, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.749, 0.208).lineTo(0.415, 0.208).lineTo(0.596, 0.375).lineTo(-0.607, 0.375).lineTo(-0.417, 0.208).lineTo(-0.75, 0.208).lineTo(-0.75, 0.875).lineTo(-0.5, 1.208).lineTo(0.499, 1.208).lineT... | 7 | 31 | 1.502436 |
train_3319a69d5636edfc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.809), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.851, 2).extrude(1.618)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.446, -0.561, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.199).extrude(0.552))
result = result.cut(cq.Work... | 42 | 197 | 2.923568 |
train_c9ce5c43a2685778 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.707, -0.212, 0.129), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.871, 0.127).lineTo(0.871, 0.449).lineTo(0.28, 0.785).threePointArc((0.085, 0.649), (-0.136, 0.56)).lineTo(-0.397, 0.749).lineTo(-0.127, 1.107).lineTo(-0.092, 1.169).lineTo(-0.24, ... | 8 | 159 | 0.574646 |
train_c1295ae87499ffd4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.33, 0.381, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.901).lineTo(-1, 0.616).threePointArc((-0.714, 0.33), (-1, 0.044)).lineTo(-1, -0.241).lineTo(0.429, -0.241).threePointArc((1, 0.33), (0.429, 0.901)).lineTo(-1, 0.901).close().workpla... | 14 | 48 | 0.918936 |
train_10ef58498b2b984b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.383, -0.119, -0.082), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.082, -0.11).lineTo(-0.082, 0.104).lineTo(-0.088, 0.104).lineTo(-0.088, 0.11).lineTo(0.088, 0.11).lineTo(0.088, -0.11).lineTo(-0.082, -0.11).close().sweep(cq.Workplane('XZ').spl... | 24 | 104 | 0.064386 |
train_3ab6f8ba601f8b54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.46, 0.155), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.391).workplane(offset=0.065).circle(0.477).workplane(offset=0.081).circle(0.334).workplane(offset=0.068).circle(0.414).workplane(offset=0.068).circle(0.453).workplane(offset=0.072).circ... | 18 | 198 | 0.235522 |
train_a6afad4f253d2fee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.265, 0.027), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.465, -0.39).lineTo(-0.465, 0.39).lineTo(0.465, 0.39).lineTo(0.465, -0.39).lineTo(-0.465, -0.39).close().sweep(cq.Workplane('YZ').spline([(-0.265, 0.027), (0.066, 0.103), (0.397, 0.09... | 3 | 16 | 0.270832 |
train_3e1407417c88b48b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.062, -0.367, -0.001), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.338, 1.064).threePointArc((-0.14, 0.866), (-0.338, 0.39)).lineTo(0.338, 1.064).close().extrude(0.961)
result = result.edges().chamfer(0.042)
result = result.cut(cq.Workplane(cq.P... | 11 | 31 | 0.167696 |
train_e135bb54071bbf56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.535, 2).extrude(0.048)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.614 + 0.2045, -0.8 + 0.16, -0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.084, 0.055).lineTo(0.042, 0.079).l... | 16 | 156 | 0.130924 |
train_11d3aba9b87febee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.052, 0.402, -0.455), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.343, 0.374).lineTo(-0.343, 0.005).lineTo(-0.183, -0.27).lineTo(0.135, -0.27).lineTo(0.167, -0.269).lineTo(0.343, -0.269).lineTo(0.343, 0.374).lineTo(-0.343, 0.374).close().extrud... | 33 | 291 | 0.304115 |
train_98c4835ce85f1d5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.064, -0.287, -0.118), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.145, -1.064).lineTo(0.145, 1.474).lineTo(0.145, -1.064).lineTo(-0.145, -1.064).close().extrude(0.435)
result = result.edges().fillet(0.032)
result = result.union(cq.Workplane(cq.... | 7 | 68 | 0.176086 |
train_ae917d1a6efe0b44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.757, 0.246, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.292).threePointArc((-0.292, 0), (0, 0.292)).threePointArc((0.292, 0), (0, -0.292)).close().sweep(cq.Workplane('XY').spline([(-0.045, 0.246), (0.539, 0.246), (0.959, 0.44), (1.38, ... | 13 | 21 | 0.31595 |
train_d0afe5839c1d2eea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.211, -0.231, -0.668), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.95, 1.141).extrude(1.082)
result = result.faces('<Y').shell(-0.067)
result = result.union(cq.Workplane(cq.Plane(origin=(0.466, -0.019, -0.076), normal=(0, 0, 1), xDir=(1, 0, 0))).c... | 15 | 162 | 0.795443 |
train_da2f62c4dce525ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.042), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.147, -0.295).lineTo(0.018, -0.166).lineTo(0.086, -0.151).lineTo(-0.147, 0).lineTo(0.018, 0.166).lineTo(0.147, 0.295).lineTo(0.147, -0.295).close().sweep(cq.Workplane('XY').spline([(-0.727, ... | 4 | 22 | 0.079492 |
train_d3cd65ef39c28cfe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.142, -0.068, -0.076), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.306, -0.007).lineTo(0.205, 0.219).lineTo(-0.004, 0.3).lineTo(-0.201, 0.214).lineTo(-0.31, 0.002).lineTo(-0.202, -0.211).lineTo(-0.009, -0.297).lineTo(0.223, -0.212).close().moveTo... | 17 | 493 | 0.081607 |
train_9efce43cdcd5563e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.747, 1.417), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(2.05, 1.38).lineTo(-0.785, 1.38).threePointArc((-1.678, 1.009), (-2.05, 0.113)).lineTo(-2.05, 1.38).lineTo(2.05, 1.38).close().extrude(2)
result = result.faces('>Z').shell(-0.08)
| 2 | 9 | 0.372692 |
train_19a6131e6695e521 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.785, 0, 0.199), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.215, 0.509).lineTo(0.031, 0.156).lineTo(-0.054, 0.096).lineTo(0.055, 0.115).lineTo(-0.116, -0.16).lineTo(0.02, -0.139).lineTo(-0.215, -0.509).lineTo(-0.059, -0.195).lineTo(-0.196, -0.2... | 1 | 13 | 0.005187 |
train_222e8a742650e292 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.598, -0.517, -0.408), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.4, 0.5).threePointArc((-0.402, 0.538), (-0.4, 0.577)).threePointArc((-0.284, 0.822), (-0.039, 0.938)).threePointArc((0, 0.901), (0.039, 0.938)).threePointArc((0.284, 0.822), (0.... | 3 | 63 | 0.41986 |
train_6f222aa1fe2eaa0d | 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.628).workplane(offset=0.833).circle(0.218).workplane(offset=1.167).circle(0.379).loft()
result = result.edges().fillet(0.27)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.625, 0.052, -0... | 10 | 44 | 0.423908 |
train_8fc34d67187a5ee1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.903, -0.164, 0.117), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.023, 0.199).lineTo(0.028, 0.249).lineTo(0.042, 0.239).lineTo(0.097, 0.199).lineTo(0.061, -0.137).lineTo(0.049, -0.249).lineTo(-0.097, -0.249).lineTo(-0.097, -0.137).lineTo(-0.012... | 1 | 11 | 0.009468 |
train_71c9d7d889546064 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.86, -0.016, -0.659), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.126, 0.212).lineTo(-0.335, 0.212).lineTo(-0.335, -0.031).lineTo(0.335, -0.031).lineTo(0.335, 0.212).lineTo(0.094, 0.212).lineTo(0.094, 0.35).lineTo(-0.094, 0.35).lineTo(-0.094, 0... | 15 | 148 | 0.405977 |
train_b605dd677d2606fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.883), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.735, 2).extrude(1.765)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.467, 0.197, -0.706), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.843, 1.022).extrude(1.007))
result = result.cut(cq.W... | 22 | 211 | 3.209411 |
train_f9b60790a96c5f2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.272, 0.507, -0.011), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.264, -0.751).threePointArc((0.584, 0.416), (-0.584, 1.265)).lineTo(-0.264, -0.751).close().revolve(angleDegrees=90, axisStart=(-0.584, 1.265), axisEnd=(-0.264, -0.751))
result = ... | 10 | 79 | 0.657173 |
train_816ddb4d063a6fe7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.399).extrude(0.183)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.261, 0.354, 0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.049).extrude(0.056))
result = result.cut(cq.Work... | 9 | 49 | 0.437738 |
train_f73f4899dd31f847 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.543, -0.134, -0.388), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.457, 0.393).lineTo(-0.457, -0.393).lineTo(-0.069, -0.004).lineTo(0.091, 0.156).lineTo(0.091, 0.027).lineTo(0.061, -0.004).lineTo(0.457, -0.004).lineTo(0.457, 0.393).lineTo(-0.4... | 8 | 51 | 0.333798 |
train_efcfcb9d4351a312 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, -0.011, -0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.015, -0.01).lineTo(0.738, 0.686).lineTo(-0.017, 1.007).lineTo(-0.714, 0.71).lineTo(-0.985, -0.018).lineTo(-0.739, -0.685).lineTo(-0.02, -0.986).lineTo(0.745, -0.689).close().move... | 10 | 77 | 0.483545 |
train_389b40a2541332a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.357, -0.113, -0.357), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.357, 0.515).lineTo(-0.357, 0.629).lineTo(0.357, 0.629).lineTo(0.357, -0.629).lineTo(0.072, -0.629).lineTo(0.072, -0.515).lineTo(0.243, -0.515).lineTo(0.243, 0.515).lineTo(-0.357... | 9 | 40 | 0.246664 |
train_a3c71ac751148367 | 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.049, 1.546).extrude(1.442)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.209 * math.cos(5.978 + 2 * math.pi * 0 / 5), 0 + 0.209 * math.sin(5.978 + 2 * math.pi * 0 / 5), -1), norm... | 17 | 196 | 2.319044 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.