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_87109851ecca4d4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.577, 0.47, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.562, -0.423).lineTo(-0.562, 1.577).lineTo(0.562, 1.577).lineTo(0.562, -0.423).lineTo(-0.562, -0.423).close().extrude(0.94)
result = result.edges().fillet(0.122)
result = result.cut(cq.... | 14 | 171 | 1.519793 |
train_49d948021a59f4ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -4.299, -0.068), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.794, -5.299).lineTo(0.794, -5.299).lineTo(0.794, 6.723).lineTo(-0.794, -5.299).close().revolve(angleDegrees=90, axisStart=(-0.794, -5.299), axisEnd=(0.794, -5.299))
result = result.... | 4 | 18 | 3.25305 |
train_40d80923d1b5c790 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.399), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1.024).lineTo(0.21, -0.363).lineTo(0.886, -0.512).lineTo(0.419, 0).lineTo(0.886, 0.512).lineTo(0.21, 0.363).lineTo(0, 1.024).lineTo(-0.21, 0.363).lineTo(-0.886, 0.512).lineTo(-0.419, 0).... | 17 | 293 | 0.856421 |
train_994d73dc976114b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.463, 0.786, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.635, 1.463).lineTo(-0.755, 1.376).lineTo(0.635, -0.537).lineTo(0.755, -0.45).lineTo(-0.635, 1.463).close().extrude(1.572)
| 1 | 6 | 0.55097 |
train_b8792998e44559bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.292, -0.209, 0.09), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.064).lineTo(0.309, 0.064).lineTo(0.309, -0.645).threePointArc((0, 0.837), (-0.309, -0.645)).threePointArc((-0.158, -0.693), (0, -0.709)).lineTo(0, 0.064).close().extrude(0.21)
r... | 6 | 70 | 1.052285 |
train_f71a758ca36dcaec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.505, -0.647, -0.117), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.883, 1.597).lineTo(0.883, -0.302).lineTo(0.663, -0.302).lineTo(0.663, 0.625).lineTo(-0.663, 0.625).lineTo(-0.663, -0.302).lineTo(-0.883, -0.302).lineTo(-0.883, 1.597).lineTo(0.88... | 11 | 26 | 2.091929 |
train_48ee28f78bb69f79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.582, 0.244, 0.558), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.15, -0.303).lineTo(0, -0.137).lineTo(0.097, -0.03).lineTo(0.15, 0.303).lineTo(0.15, -0.303).lineTo(-0.15, -0.303).close().extrude(0.154)
result = result.edges().fillet(0.007)
resu... | 24 | 258 | 0.637576 |
train_a34939ccf3ec19b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.199, -0.396, -0.932), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.123, -0.123).lineTo(0.123, 0.123).lineTo(-0.123, 0.123).lineTo(-0.123, 0.08).lineTo(-0.097, 0.063).lineTo(-0.069, 0.069).lineTo(0.063, 0.097).lineTo(0.069, 0.069).lineTo(0.097, -... | 1 | 16 | 0.008122 |
train_e79b9a083eeecbc7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.966, 0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.064, 0.369).lineTo(-0.698, -0.265).lineTo(-0.698, -0.429).lineTo(-0.519, -0.429).lineTo(-0.519, -0.308).lineTo(-0.572, -0.308).lineTo(0.02, 0.284).lineTo(0.614, -0.308).lineTo(0.698, -... | 3 | 24 | 0.248407 |
train_0783e0c37844e2ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.348, -0.291, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.359, 0.387).lineTo(0.428, 0.243).lineTo(0.303, 0.144).lineTo(0.234, 0).lineTo(0.078, -0.324).lineTo(-0.078, 0).lineTo(-0.428, -0.08).lineTo(-0.273, 0.243).lineTo(-0.203, 0.387).lineTo... | 4 | 21 | 0.734311 |
train_97043fbd5847a07c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.135, -0.555), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.235, -0.006).threePointArc((-0.235, 0.066), (0.222, -0.066)).close().sweep(cq.Workplane('XY').spline([(-1.129, -0.135), (-0.677, -0.426), (-0.226, -0.572), (0.226, -0.572), (0.677, -0... | 3 | 12 | 0.312691 |
train_3bda8d4994e21079 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.068, 1, -0.005), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.443, 0.547).lineTo(0.443, -0.412).lineTo(-0.443, -0.412).lineTo(-0.325, 0.547).lineTo(0.443, 0.547).close().workplane(offset=0.304).moveTo(0.66, 0.782).lineTo(0.66, -0.647).lineTo(-0.... | 7 | 39 | 3.174196 |
train_80402ea387c51dd0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.289).extrude(0.855)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.45, 0.09, -0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.617, 1.547).extrude(0.085))
result = result.cut(cq.Wor... | 9 | 35 | 2.043122 |
train_b9ebf93ee8d0f061 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, 0.025, -0.196), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.983, 0.015).lineTo(0.515, 0.842).lineTo(-0.526, 0.855).lineTo(-1.017, -0.006).lineTo(-0.507, -0.863).lineTo(0.496, -0.906).close().moveTo(-0.168, 0.378).lineTo(-0.212, 0.423).lineT... | 18 | 191 | 0.583785 |
train_7293ea7583b73f1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.011), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.079, 0.609).threePointArc((-0.055, 0.81), (0.015, 1)).threePointArc((0.067, 0.848), (0.079, 0.689)).lineTo(0.005, -0.83).threePointArc((-0.005, -0.916), (-0.027, -1)).threePointArc((-0.066... | 5 | 34 | 0.02743 |
train_3d99e987f0969407 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.471, 0.623, -0.099), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.901, 0.84).lineTo(0.901, 0.05).lineTo(-0.901, 0.05).lineTo(-0.901, 0.84).lineTo(0, 0.84).lineTo(0, 0.653).lineTo(0.652, 0.653).lineTo(0.652, 0.84).lineTo(0.901, 0.84).close().extr... | 8 | 306 | 1.63893 |
train_072659e4b3b2f24e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.061, -0.753, 0.161), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.074, 0.15).threePointArc((0, 0.165), (-0.074, 0.15)).lineTo(-0.074, 0.025).lineTo(-0.182, -0.037).threePointArc((-0.158, -0.109), (-0.108, -0.165)).lineTo(0, -0.103).lineTo(0.108,... | 3 | 27 | 0.308975 |
train_164a0e465c188619 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.583, -0.4, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.024, 0.274).threePointArc((0, 0.275), (-0.024, 0.274)).threePointArc((-0.138, 0.238), (-0.226, 0.158)).threePointArc((-0.238, 0.138), (-0.25, 0.117)).threePointArc((-0.275, 0), (-0.25, -... | 1 | 18 | 0.390449 |
train_ff07e3be307e3b4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.553, -0.994, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.986).threePointArc((0, 0.932), (1, 0.986)).lineTo(1, -0.286).lineTo(-1, -0.286).lineTo(-1, 0.986).close().extrude(1.577)
result = result.edges().fillet(0.252)
result = result.unio... | 8 | 46 | 4.234639 |
train_58c3072e65370819 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.038, -0.712, -0.182), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.062, -0.208).lineTo(0.062, -0.21).lineTo(-0.062, -0.21).lineTo(-0.062, 0.225).lineTo(0.062, 0.225).lineTo(0.062, 0.088).lineTo(-0.001, 0.088).lineTo(-0.001, -0.107).lineTo(0.062,... | 16 | 250 | 0.086373 |
train_971ef85d2fce52b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.304, 2).extrude(0.078)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.522 + 0.1305, -0.8 + 0.16, -0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.062, 0).lineTo(-0.066, -0.01).lin... | 21 | 166 | 0.197647 |
train_5c321d95e08a1018 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.827, -0.141, -0.344), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.656, 0.14).lineTo(0.656, 0.081).lineTo(-0.395, -0.016).lineTo(-0.519, -0.027).threePointArc((-0.656, 0.11), (-0.519, 0.247)).lineTo(-0.395, 0.236).lineTo(0.656, 0.14).close().ext... | 15 | 76 | 0.404353 |
train_f238cb79da4d3da7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.157, 0.444).extrude(0.388)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.047).extrude(0.303))
result = result.union(cq.Workpl... | 15 | 138 | 0.03811 |
train_8986dbe21bc0bd0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, 0.014, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.237, 0.346).threePointArc((0.501, 0.017), (-0.237, -0.313)).threePointArc((-0.311, -0.346), (-0.385, -0.313)).threePointArc((-0.348, -0.202), (-0.46, -0.165)).lineTo(-0.46, -0.12).line... | 1 | 14 | 0.352476 |
train_845a88ba4f0d57cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.151, 0.162, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.285).lineTo(-1, 0.102).lineTo(-0.553, 0.102).lineTo(-0.553, 0.017).lineTo(1, 0.017).lineTo(1, 0.285).lineTo(-1, 0.285).close().extrude(0.325)
result = result.edges().fillet(0.018)
... | 7 | 57 | 0.148076 |
train_d5a3e857d8482bf1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.034, 0.14, -0.277), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.913, 0.458).extrude(0.132)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.034, 0.312, -0.25), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.036).extrude(0.077))
result = result.u... | 30 | 180 | 0.299868 |
train_29bcc1e3e651059e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.318, -0.354), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.72, 1.364).extrude(1.009)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.036, 0.662, -0.188), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.816, 0.675).extrude(0.37))
result = resul... | 8 | 38 | 1.916734 |
train_9240ae3669e80674 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.618, 0.205, 0.304), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.696, 0.205).lineTo(-0.314, 0.205).lineTo(-0.314, 0.407).lineTo(0.696, 0.407).lineTo(0.696, 1.092).lineTo(-0.696, 1.092).lineTo(-0.696, 0.205).close().revolve(angleDegrees=180, axi... | 6 | 47 | 1.488752 |
train_93d285fa2c48d2e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.397, 0, 0.016), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.397, -0.406).lineTo(-0.397, 0.406).lineTo(0.397, 0.406).lineTo(0.397, -0.406).lineTo(-0.397, -0.406).close().revolve(angleDegrees=360, axisStart=(-0.397, -0.406), axisEnd=(-0.397, -0.... | 12 | 183 | 1.219119 |
train_38f4a81ceb2ddfc1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.263, 0.477, -0.039), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.963, 0.599).threePointArc((0, -0.364), (0.963, 0.599)).lineTo(0.592, 0.599).threePointArc((0, 0.007), (-0.592, 0.599)).lineTo(-0.963, 0.599).close().extrude(0.861)
result = resu... | 12 | 112 | 0.67858 |
train_e9c6d629149f2ec4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.392), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.005, -0.316).lineTo(-0.005, -0.343).lineTo(0.428, -0.343).lineTo(0.428, 1).lineTo(-0.428, 1).lineTo(-0.428, -1).lineTo(-0.005, -1).lineTo(-0.005, -0.316).close().extrude(0.783)
result = r... | 12 | 123 | 0.647526 |
train_b32387b71aa47b33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.521, -0.003, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1.155).workplane(offset=0.635).circle(0.99).workplane(offset=0.575).circle(1.188).loft()
result = result.edges().fillet(0.434)
result = result.union(cq.Workplane(cq.Plane(origin=(0.604,... | 15 | 151 | 2.967056 |
train_4fb1f2eaa7413c42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.253, -0.467, -0.259), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.231, 0.089).lineTo(-0.231, 0.009).lineTo(0.231, 0.009).lineTo(0.231, 0.089).lineTo(-0.231, 0.089).close().extrude(0.086)
result = result.edges().fillet(0.008)
result = result.u... | 9 | 97 | 0.238153 |
train_0282071735e9841a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.39, 0.04, -0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.171, 0.221).extrude(0.084)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.377, 0.047, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.031, 0.069).extrude(0.018))
result = re... | 20 | 159 | 0.117555 |
train_c18ad8a2b2fbfbfe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.482, -0.417, -0.26), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.453, 0.013).lineTo(0.308, 0.317).lineTo(0.005, 0.463).lineTo(-0.31, 0.319).lineTo(-0.446, -0.018).lineTo(-0.325, -0.312).lineTo(0.013, -0.433).lineTo(0.31, -0.299).close().moveTo(... | 8 | 98 | 1.169393 |
train_d7833c3f71fc77be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.067, -0.091, 0.338), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.422, 0.348).lineTo(0.422, -0.348).lineTo(0.263, -0.245).lineTo(0.187, -0.261).lineTo(-0.171, -0.337).lineTo(-0.187, -0.261).lineTo(0, -0.074).lineTo(-0.187, 0.113).lineTo(-0.422, 0... | 5 | 71 | 0.473493 |
train_0ab9e19449c74719 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.058, -0.586, 0.04), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.007, -0.021).lineTo(-0.007, -0.023).lineTo(-0.005, -0.023).lineTo(-0.005, -0.021).threePointArc((0, -0.01), (0.011, -0.004)).lineTo(0.012, -0.006).lineTo(0.024, -0.003).lineTo(0.0... | 2 | 15 | 0.000497 |
train_75ada45570e50dd5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.341), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.417, 1.043).lineTo(-0.417, -1.043).lineTo(0.417, -1.043).lineTo(0.417, 1.043).lineTo(-0.417, 1.043).close().workplane(offset=0.28).moveTo(-0.388, 0.971).lineTo(-0.388, -0.971).lineTo(0.38... | 30 | 220 | 0.774743 |
train_d0bab2fd0835f476 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.111, -0.613), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.271, 1.778).extrude(1.334)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.085, -0.236, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.12, 2.134).extrude(0.07))
result = result.... | 13 | 69 | 2.920827 |
train_77e84cfcf00e6657 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.33, 0, 0.006), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.341, 0.753).extrude(0.083)
result = result.union(cq.Workplane(cq.Plane(origin=(0.01, 0, 0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.053).extrude(0.305))
result = result.union(cq.Wo... | 6 | 78 | 0.239928 |
train_68ba67c727913aef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, -0.639, -0.705), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.383, 0.444).lineTo(-0.383, 0.444).lineTo(-0.383, -0.402).lineTo(0.383, -0.402).lineTo(0.383, 0.444).close().revolve(angleDegrees=180, axisStart=(0.383, 0.444), axisEnd=(-0.383, 0... | 24 | 183 | 0.640449 |
train_7ad059ee329506a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 1, -0.598), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.004, 2.001).lineTo(0.012, 2.001).lineTo(1.004, 0.283).lineTo(1.004, 2.001).lineTo(-1.004, 2.001).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.306, 0))
result = result.ed... | 11 | 91 | 1.772452 |
train_27a5960ea192339f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.308, 0.9, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.017, 0.029).threePointArc((0, 0.031), (-0.017, 0.029)).lineTo(-0.017, 0.18).threePointArc((-0.2, 0.065), (-0.208, -0.15)).lineTo(-0.077, -0.074).threePointArc((-0.07, -0.091), (-0.06, -0.... | 3 | 30 | 0.091302 |
train_19b3bce4fbdde0be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.126, 0.059, -0.453), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.028, 1.396).extrude(0.747)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.054, -0.202, -0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.233, 0.206).extrude(0.1))
result = re... | 18 | 109 | 0.908181 |
train_90c5f0d7166ed0fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.093, -0.025, 0.552), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.517, 0.192).lineTo(-0.517, 0.152).lineTo(-0.123, 0.152).lineTo(-0.123, -0.054).lineTo(0.369, -0.054).lineTo(0.369, -0.192).lineTo(0.517, -0.192).lineTo(0.517, 0.192).lineTo(-0.5... | 4 | 33 | 0.303596 |
train_23c530a04e83ede7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.48, -0.007, 0.453), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.547, 0.167).lineTo(0.547, 0.135).lineTo(0.026, 0.135).lineTo(0.026, -0.167).lineTo(-0.186, -0.167).lineTo(-0.186, 0.135).lineTo(-0.389, 0.135).lineTo(-0.389, -0.167).lineTo(-0.498... | 10 | 112 | 0.340823 |
train_2afaf2d66994592e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.348, 0.172, 0.701), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.174).workplane(offset=0.095).circle(0.259).workplane(offset=0.103).circle(0.194).workplane(offset=0.082).circle(0.207).workplane(offset=0.087).circle(0.252).workplane(offset=0.096)... | 13 | 75 | 0.49582 |
train_7df43c20b4112dd4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.919, 0.504, -0.504), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.504, 0.077).lineTo(0.504, 1.891).lineTo(-0.504, 1.891).lineTo(-0.504, 0.077).lineTo(0.504, 0.077).close().revolve(angleDegrees=180, axisStart=(0.504, 0.077), axisEnd=(0.504, 1.891... | 14 | 116 | 2.015845 |
train_d9854e923334d8b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.665, 0.15).lineTo(-1, 0.15).lineTo(-1, 0.432).lineTo(0.339, 0.432).lineTo(0.339, 0.694).lineTo(1, 0.694).lineTo(1, 0.15).lineTo(0.665, 0.15).close().revolve(angleDegrees=360, axisStart=(0, 0),... | 4 | 18 | 1.294511 |
train_470843523395c89a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.843, 0.704, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.063, 0.288).threePointArc((0, 1.35), (-1.063, 0.288)).lineTo(-0.243, 0.288).threePointArc((0, 0.046), (0.243, 0.288)).lineTo(1.063, 0.288).close().workplane(offset=0.257).moveTo(0.928,... | 4 | 36 | 2.019667 |
train_e98fe4cd1549c2a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.188, 0.045, -0.518), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.223, 0.198).extrude(0.213)
result = result.union(cq.Workplane(cq.Plane(origin=(0.416, 0.045, -0.452), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.251, 0.148).extrude(0.082))
result = r... | 9 | 69 | 0.435084 |
train_dea6e8fb98cdef29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.453), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.09).extrude(0.905)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.378, 0.136, 0.015), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.31, 0.167).extrude(0.339))
result = result.edges().cha... | 18 | 95 | 1.624406 |
train_5bf9c973dbb2b4c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.369, -0.155, -0.443), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.144, 0.328).lineTo(0, 0.411).lineTo(-0.144, 0.328).lineTo(-0.144, 0.162).lineTo(0, 0.079).lineTo(0.144, 0.162).lineTo(0.144, 0.328).close().revolve(angleDegrees=180, axisStart=(0... | 13 | 124 | 0.104087 |
train_48d637ca9409b5d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.159, 0.435), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.179, 0.592).lineTo(0.179, 0.592).lineTo(0.179, 0.127).lineTo(-0.179, 0.127).lineTo(-0.179, 0.142).lineTo(0.164, 0.142).lineTo(0.164, 0.577).lineTo(-0.179, 0.577).lineTo(-0.179, 0.592... | 10 | 129 | 0.76713 |
train_09daeb608ab0119d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.283, 0, 0.06), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.284, 0.23).lineTo(0.486, 0.028).lineTo(0.311, -0.146).lineTo(0.311, -0.23).lineTo(0.153, -0.23).threePointArc((0, -0.1), (-0.153, -0.23)).lineTo(-0.311, -0.23).lineTo(-0.311, -0.157).l... | 19 | 52 | 0.312083 |
train_ceafca04eab4ca51 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.123, -0.217, -0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.427, 0.783).extrude(0.622)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.261, 0.296, 0.195), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.391, -0.278).lineTo(0.391, 0.72).... | 11 | 74 | 0.412092 |
train_dc456d1a693d2e77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, 0.358), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.063, 0.049).lineTo(0.063, -0.026).lineTo(-0.012, -0.026).lineTo(-0.012, -0.03).lineTo(-0.027, -0.03).lineTo(-0.027, -0.026).lineTo(-0.038, -0.026).lineTo(-0.038, -0.049).lineTo(-0.063, -0... | 1 | 20 | 0.008279 |
train_ccccb361271294fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.23, -0.54, 0.195), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.059, 0.02).lineTo(0.059, -0.003).lineTo(0.075, -0.003).lineTo(0.075, -0.02).lineTo(0.068, -0.027).lineTo(-0.011, -0.027).lineTo(-0.011, -0.022).lineTo(-0.017, -0.022).lineTo(-0.017, ... | 7 | 110 | 0.158673 |
train_bcd9c824383bea5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.251, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.261).workplane(offset=0.226).circle(0.227).workplane(offset=0.156).circle(0.237).workplane(offset=0.186).circle(0.253).workplane(offset=0.175).circle(0.256).workplane(offset=0.161).circle... | 5 | 42 | 0.622689 |
train_b7189a0908259af9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.432, 0.499, -0.483), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.483, 1.432).threePointArc((0.224, 1.398), (-0.017, 1.298)).threePointArc((-0.483, 0.173), (0.483, -0.568)).lineTo(0.483, 1.432).close().revolve(angleDegrees=180, axisStart=(0.483,... | 6 | 21 | 1.890132 |
train_46d33f9a7e80a382 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.037, 0.521, -0.156), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.1, 0.062).lineTo(0.049, 0.175).lineTo(-0.074, 0.162).lineTo(-0.1, 0.041).lineTo(0.008, -0.021).lineTo(0.1, 0.062).close().extrude(0.247)
result = result.edges().chamfer(0.022)
res... | 7 | 101 | 0.40083 |
train_a65749ff70418902 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.453, -0.306, 0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.483, 0.434).extrude(0.064)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.318, -0.393, 0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.081).extrude(0.016))
result = result.c... | 23 | 74 | 1.63261 |
train_3301f46067057d71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.331, 0.027, 0.149), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.62, -0.31).lineTo(-0.62, 0.31).lineTo(0.62, 0.31).lineTo(0.62, -0.31).lineTo(-0.62, -0.31).close().sweep(cq.Workplane('XY').spline([(0.331, -0.564), (0.408, -0.311), (0.31, -0.064)... | 13 | 76 | 0.725542 |
train_909d43e2d1ce9af5 | 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.198, 1.255).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.136, 0.229, 0.192), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.566, 0.001).threePointArc((-0.45, 0.323), (-0.136, 0... | 3 | 48 | 2.625885 |
train_6e1411b341ae93ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.238, 0, -0.052), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.616, 0.825).extrude(0.048)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.095, -0.072, -0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.174, 0.096).extrude(0.058))
result = result.... | 14 | 90 | 0.040058 |
train_61ad47e2e6477d99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.18, 0.217, -0.043), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.044, 0.072).threePointArc((-0.015, 0.001), (-0.04, -0.072)).lineTo(0.044, -0.072).lineTo(0.044, -0.031).lineTo(0.044, 0.031).lineTo(0.044, 0.072).lineTo(-0.044, 0.072).close().wo... | 4 | 28 | 0.012302 |
train_38cb5d5bca8c5a42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.117, -0.393, -0.692), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.649, 0.649).extrude(1.692)
result = result.union(cq.Workplane(cq.Plane(origin=(0.117, -0.787, 0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.075).extrude(0.216))
result = resul... | 14 | 97 | 0.792662 |
train_b861573b11b30498 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.039, 0, -0.538), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.676, 2).extrude(1.204)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.317, -0.874, 0.414), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.158, 0.266).extrude(0.101))
result = result.cut... | 22 | 102 | 3.317623 |
train_36721b18030b6705 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.009, -0.041, -0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.548).lineTo(0.348, 0.01).threePointArc((0, 0.637), (-0.348, 0.01)).lineTo(0, -0.548).close().extrude(0.459)
result = result.edges().fillet(0.081)
result = result.cut(cq.Workp... | 27 | 174 | 0.307041 |
train_4f0e412ef4466bf7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.301, 0, -0.538), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.208, 0.614).threePointArc((0.175, 0.571), (0.143, 0.527)).threePointArc((0.02, 0.289), (-0.044, 0.029)).lineTo(-0.208, 0.519).lineTo(0.208, 0.614).close().revolve(angleDegrees=360, ax... | 7 | 27 | 0.071201 |
train_381de179466acc09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.028, 0, -0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.945, 1.283).extrude(0.331)
result = result.union(cq.Workplane(cq.Plane(origin=(0.125, 0.064, 0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.577).extrude(0.049))
result = result.unio... | 4 | 32 | 0.877955 |
train_8bcae05c179f17e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.404, -0.231, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.078, 0.009).threePointArc((0.095, 0.016), (0.102, 0.032)).lineTo(0.102, 0.189).threePointArc((0.095, 0.205), (0.078, 0.212)).lineTo(-0.078, 0.212).threePointArc((-0.095, 0.205), (... | 10 | 73 | 0.025773 |
train_e8929f5608fce6ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.647, -0.323, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.167, 0.148).lineTo(-0.177, -0.148).lineTo(0.177, -0.148).lineTo(0.177, 0.148).lineTo(-0.167, 0.148).close().sweep(cq.Workplane('XY').spline([(0.129, -0.323), (-0.066, -0.12), (-0.397,... | 3 | 12 | 0.060452 |
train_b2d5adf2c5982562 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.85, -0.557, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.931, 0.034).threePointArc((1, 0.374), (0.931, 0.714)).threePointArc((0.126, 1.248), (-0.679, 0.714)).lineTo(-1, 0.714).lineTo(-1, 0.034).lineTo(-0.679, 0.034).lineTo(0.931, 0.034).clos... | 18 | 111 | 3.075512 |
train_b0b595975711cbb9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.373, 0.028, 0.271), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.142, -0.127).lineTo(0.08, -0.065).lineTo(-0.073, -0.097).lineTo(-0.08, -0.065).lineTo(0, 0.015).lineTo(0.08, 0.095).lineTo(0.073, 0.127).lineTo(-0.08, 0.095).lineTo(-0.112, 0.088)... | 7 | 31 | 0.096452 |
train_ad9c8ef27a40f6f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.277, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.086, 1.445).moveTo(0.011, 0.1).lineTo(0, 0.111).lineTo(-0.011, 0.1).lineTo(-0.011, -0.1).lineTo(0, -0.111).lineTo(0.011, -0.1).lineTo(0.011, 0.1).close().extrude(0.153)
result = result.... | 11 | 62 | 0.212654 |
train_cc5296da92d45b2f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.082, 0.199, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.571, 1.228).extrude(0.203)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.082, 0.199, 0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.084, 0.537).extrude(0.076))
result = resu... | 27 | 141 | 0.417324 |
train_04fdca925caf19f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.125, 0.025, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.504, -0.929).lineTo(0.506, -0.947).lineTo(0.502, 0.937).lineTo(-0.514, 0.975).close().moveTo(-0.263, -0.202).lineTo(-0.065, -0.203).lineTo(-0.065, -0.159).lineTo(-0.217, -0.156).... | 17 | 236 | 0.270503 |
train_b42f53e434ff145c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.315, -0.013, -0.567), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.433).workplane(offset=0.313).circle(0.362).workplane(offset=0.241).circle(0.291).workplane(offset=0.309).circle(0.22).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(0... | 18 | 211 | 0.491242 |
train_29dc11ccba6184c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, 0.244, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.471).sweep(cq.Workplane('XY').spline([(-0.804, 0.244), (-0.396, 0.294), (0.012, 0.197), (0.42, -0.109), (0.829, -0.562)]))
result = result.edges().fillet(0.204)
result = result.cut(cq.W... | 6 | 17 | 1.081352 |
train_95fe069fe78217c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.074), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.031, 0.313).lineTo(-0.095, 0.202).lineTo(-0.141, 0.123).threePointArc((-0.15, 0.091), (-0.141, 0.059)).lineTo(-0.031, -0.132).lineTo(0.035, -0.207).lineTo(0.035, -0.349).lineTo(0.035, -... | 13 | 153 | 0.471996 |
train_8fb5d44e80c5eeb9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.195, -0.14, -0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.805, -0.01).lineTo(0.414, 0.691).lineTo(-0.399, 0.727).lineTo(-0.814, -0.007).lineTo(-0.409, -0.687).lineTo(0.432, -0.731).close().moveTo(0.111, 0.231).lineTo(0.036, 0.334).lineTo(... | 9 | 106 | 0.398268 |
train_db64a77e05ce5a84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.055, 0.022, -0.701), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.053, -0.098).threePointArc((0, 0.173), (0.053, -0.098)).threePointArc((0.028, -0.105), (0.003, -0.108)).lineTo(0.003, -0.117).lineTo(0.003, -0.129).lineTo(0, -0.129).lineTo(0, -0... | 4 | 19 | 0.009445 |
train_9eec88b771840473 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.84, -0.899, 0.047), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.95, 0.931).lineTo(-0.95, 1.425).lineTo(-0.536, 1.425).lineTo(-0.536, 2.583).lineTo(-0.95, 2.583).lineTo(-0.95, 2.748).lineTo(0.95, 2.748).lineTo(0.95, 0.931).lineTo(-0.95, 0.931).... | 3 | 15 | 4.997304 |
train_a8466808837a948a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.32, -0.172, -0.248), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.215).lineTo(0.026, -0.215).lineTo(0.026, -0.085).threePointArc((0.302, 0.142), (0.186, 0.48)).lineTo(0.126, 0.514).threePointArc((0.064, 0.534), (0, 0.541)).threePointArc((-0.0... | 21 | 274 | 1.236666 |
train_f599b7878382f995 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.409, 0.025, 0.396), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.313, 0.235).lineTo(-0.313, 0.212).lineTo(0.278, 0.212).lineTo(0.278, -0.235).lineTo(0.313, -0.235).lineTo(0.313, 0.235).lineTo(-0.313, 0.235).close().sweep(cq.Workplane('XZ').spli... | 2 | 28 | 0.067425 |
train_53b5528c76de4326 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.024, 0.104, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.987, 0.987).extrude(1.324)
result = result.union(cq.Workplane(cq.Plane(origin=(0.909, -0.056, -0.338), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.338, 0.932).lineTo(0.797, 0.932).line... | 12 | 110 | 1.18638 |
train_9d8b23f68647c317 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.076, 0.077, 0.325), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.341, -0.932).threePointArc((-0.735, 0.538), (0.735, 0.932)).lineTo(0.59, 0.681).threePointArc((-0.484, 0.393), (-0.196, -0.681)).lineTo(-0.341, -0.932).close().extrude(0.65)
resul... | 4 | 57 | 0.433927 |
train_e5c44b4cb2c30977 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.11, 0.221), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.187, -0.346).threePointArc((0.225, -0.381), (0.252, -0.425)).lineTo(-0.098, -0.425).lineTo(-0.269, -0.425).lineTo(-0.269, 0.425).lineTo(-0.098, 0.425).lineTo(0.252, 0.425).threePointArc... | 11 | 60 | 0.464357 |
train_228b4b187748b12a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.736, -0.356, 0.064), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.175, -0.391).lineTo(-0.175, -0.383).threePointArc((-0.296, -0.368), (-0.416, -0.347)).lineTo(-0.416, 0.391).lineTo(0.416, 0.391).lineTo(0.416, -0.347).threePointArc((0.296, -0.3... | 16 | 33 | 0.554116 |
train_339a85fa3a2711b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.447, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.017).extrude(0.489)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.074, -0.293, 0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.113).extrude(0.122))
result = result.union(c... | 9 | 40 | 1.864123 |
train_07072cb2a7a4ed6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.825, 1, 0.014), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.764, 0.666).threePointArc((-0.121, 0.932), (0.144, 1.575)).lineTo(0.764, 1.575).threePointArc((0.316, 0.495), (-0.764, 0.047)).lineTo(-0.764, 0.666).close().extrude(1.701)
result = re... | 14 | 99 | 0.530629 |
train_d5c03c780852728b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.078, 0.25, 0.423), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.575, -0.058).lineTo(0.575, 0.173).lineTo(-0.575, 0.173).lineTo(-0.575, -0.173).lineTo(0, -0.173).lineTo(0, -0.058).lineTo(0.575, -0.058).close().sweep(cq.Workplane('YZ').spline([(-0.... | 11 | 62 | 0.25739 |
train_3a3cc5802bb14eb4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.327, -0.016, 0.139), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.082).sweep(cq.Workplane('XZ').spline([(-0.711, 0.016), (-0.607, -0.028), (-0.494, -0.028), (-0.39, 0.016), (-0.39, 0.063), (-0.494, 0.107), (-0.607, 0.107), (-0.711, 0.063)]))
res... | 8 | 100 | 0.042855 |
train_bfd14fb7a2a6a56a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.045, 0.446, -0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.072, 0.555).threePointArc((-0.101, 0.497), (-0.124, 0.436)).threePointArc((-0.154, 0.24), (-0.124, 0.045)).threePointArc((-0.067, -0.198), (-0.049, -0.446)).lineTo(0.079, -0.446).... | 5 | 52 | 0.393044 |
train_d77e3cafafbb0af9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.073, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.004, 1.536).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.128, 0.767, 0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.138, 0.148).extrude(0.212))
result = result.cut(c... | 8 | 80 | 2.611523 |
train_323691950854c53e | 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.455).workplane(offset=0.259).circle(0.415).workplane(offset=0.314).circle(0.414).workplane(offset=0.323).circle(0.439).workplane(offset=0.328).circle(0.397).workplane(offset=0.323).circle(0.39... | 10 | 11 | 0.8718 |
train_ee9d3a54ce9661f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.233, 0.293, 0.677), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.895, 0.024).threePointArc((-0.738, 0.089), (-0.672, 0.248)).lineTo(-0.672, 0.421).lineTo(0.895, 0.024).lineTo(-0.895, 0.024).close().extrude(0.937)
result = result.edges().fillet... | 24 | 134 | 0.287793 |
train_cef2e06a7028dc8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.645, -0.932), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.197, 0.006).lineTo(-0.197, -0.026).lineTo(0.197, -0.026).lineTo(0.197, 0.006).lineTo(0.178, 0.026).lineTo(0.158, 0.006).lineTo(0.138, 0.026).lineTo(0.118, 0.006).lineTo(0, 0.006).lin... | 2 | 21 | 0.021607 |
train_ee06e529ce94a160 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.046, -0.25), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.314).sweep(cq.Workplane('XZ').spline([(-0.039, -0.436), (0.442, -0.324), (0.923, -0.235), (1.403, -0.177), (1.884, -0.143)]))
result = result.edges().fillet(0.15)
result = result.uni... | 4 | 11 | 0.577529 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.