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_dc5ae8fb7d7e7f6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.383, 0.131, 0.061), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.371, 0.415).threePointArc((0, -0.557), (0.371, 0.415)).threePointArc((0, 0.557), (-0.371, 0.415)).close().workplane(offset=0.013).moveTo(-0.322, 0.36).threePointArc((0, -0.483), (... | 8 | 46 | 0.247242 |
train_3bf0725cfcfda51c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.039, 0.021, -0.003), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.021, -0.026).lineTo(-0.021, 0.018).threePointArc((0.001, 0.038), (0.01, 0.065)).lineTo(0.021, 0.065).threePointArc((0.013, 0.038), (-0.005, 0.016)).lineTo(-0.005, -0.026).lineTo(... | 9 | 105 | 0.009188 |
train_24b7d858c83d4ae5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.932, 0.487, -0.003), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.776, 0.957).threePointArc((-0.922, 0.528), (-0.776, 0.099)).lineTo(0.332, 0.099).lineTo(0.922, 0.099).lineTo(0.922, 0.957).lineTo(0.332, 0.957).lineTo(-0.776, 0.957).close().extr... | 5 | 37 | 2.45152 |
train_b80fd46004d647fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.435, -0.562, -0.04), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.105, 0.554).lineTo(-0.038, 0.564).lineTo(-0.076, -0.007).lineTo(-0.095, -0.292).lineTo(-0.105, -0.435).lineTo(0.038, -0.444).lineTo(0.047, -0.302).lineTo(0.067, -0.016).lineTo(0.1... | 25 | 106 | 0.180475 |
train_44dadcdab0a3c3ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, 0, 0.122), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.324, -0.41).lineTo(-0.365, -0.426).lineTo(-0.365, 0.345).threePointArc((-0.341, 0.402), (-0.285, 0.426)).lineTo(0.365, 0.426).lineTo(0.365, 0.385).lineTo(-0.243, 0.385).threePointArc(... | 2 | 27 | 0.119352 |
train_36c7b72c373de5a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.631, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.295, 0.092).lineTo(-0.295, 0.092).lineTo(-0.295, 0.189).threePointArc((-0.301, 0.209), (-0.315, 0.225)).threePointArc((-0.521, 0.471), (-0.55, 0.791)).threePointArc((-0.553, 0.868), (-0.59... | 3 | 24 | 1.692233 |
train_62ffb855787d8868 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.08, 0.02, -0.469), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.025, -0.016).lineTo(0.302, 0.98).lineTo(-0.86, 0.593).lineTo(-0.866, -0.642).lineTo(0.332, -1.02).close().center(-0.332, 0).circle(0.198).moveTo(0.631, 0).lineTo(0.631, 0.026).lineT... | 13 | 92 | 1.884269 |
train_a15e0b5c1175d912 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.504, 0.251, 0.545), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.541, 0.253).lineTo(-0.565, 0.054).lineTo(0.565, 0.054).lineTo(0.298, 0.253).lineTo(-0.541, 0.253).close().revolve(angleDegrees=180, axisStart=(-0.541, 0.253), axisEnd=(-0.565, 0.0... | 5 | 30 | 0.172608 |
train_c6f5018322638813 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.207, 0.392, -0.136), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.876, 1.181).threePointArc((0.575, -0.407), (-0.876, 0.302)).lineTo(-0.208, 0.637).threePointArc((0.28, 0.184), (0.208, 0.847)).lineTo(0.876, 1.181).close().extrude(1.239)
result =... | 9 | 46 | 1.00697 |
train_3a998f27aea08f1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.132, 0.215, -0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.736, 0.851).extrude(0.538)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.857, 0.467, -0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.286, 0.12).extrude(0.077))
result = r... | 12 | 67 | 0.614637 |
train_2ec1e6776cef42bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.751), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.535).extrude(1.503)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.348, 0.549, -0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.231).extrude(0.391))
result = result.edges().fille... | 6 | 52 | 4.510955 |
train_d57d1ac18e8c021f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.05, 0, -0.85), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.9, 1.912).extrude(1.7)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.24, -0.221, 0.273), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.141, 1.089).extrude(0.592))
result = result.edges... | 8 | 74 | 5.316596 |
train_5f3dc0b02f21a86c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.042, -0.854), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.004, -0.009).lineTo(0.014, -0.009).lineTo(0.004, 0.001).lineTo(0.004, 0.005).lineTo(0.006, 0.007).lineTo(0.004, 0.009).lineTo(0.002, 0.007).lineTo(0, 0.005).lineTo(-0.01, -0.005).line... | 3 | 28 | 0.00088 |
train_47eaba09a16b7269 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.289, 0.435, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.724).lineTo(-0.333, 0.724).lineTo(0, 1.3).lineTo(-1, 0.724).lineTo(-0.667, 0.146).lineTo(-1, -0.431).lineTo(1, -0.431).lineTo(0.667, 0.146).lineTo(1, 0.724).close().revolve(angleDeg... | 5 | 31 | 0.985374 |
train_d0f29cde40edf3fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.636), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.006).extrude(1.272)
result = result.faces('>Z').shell(-0.117)
result = result.edges().chamfer(0.048)
| 3 | 51 | 0.970644 |
train_c4f1fd174c5bbcc1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.164, -0.486, 0.054), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.426, 1.015).lineTo(-0.102, 1.339).lineTo(0.426, 1.339).lineTo(0.426, -0.366).lineTo(-0.087, -0.366).lineTo(-0.426, -0.027).lineTo(-0.426, 1.015).close().extrude(1.164)
result = r... | 3 | 24 | 1.636184 |
train_aa0b658316b85c02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.474, -0.271, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.866, 1.398).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.027, -0.082), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.259, 0.918).lineTo(0.234, 0.943).lineTo(0.229, ... | 7 | 42 | 2.240375 |
train_9d1503c511ce11eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.048, 0, -0.332), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.006, 2).extrude(0.608)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.022, -0.365, -0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.054).extrude(0.024))
result = result.cut(cq.... | 9 | 35 | 1.212579 |
train_aa07ffcfc60a7cb2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.04, 0, -0.521), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.211, 1.497).extrude(1.082)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.167, -0.107, -0.829), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.223).extrude(0.317))
result = result.un... | 7 | 99 | 2.227385 |
train_dee49549ee73557c | 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.265).workplane(offset=0.268).circle(0.251).workplane(offset=0.25).circle(0.271).workplane(offset=0.261).circle(0.262).workplane(offset=0.282).circle(0.253).workplane(offset=0.216).circle(0.257... | 20 | 39 | 0.279362 |
train_15dbc60a91e99596 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.649, -0.426, 0.07), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.244).transformed(offset=(0.094, -0.035, 0.073), rotate=(0, 10, 0)).circle(0.316).transformed(offset=(0.188, 0.017, 0.155), rotate=(0, 0, 0)).circle(0.127).transformed(offset=(0.28... | 3 | 33 | 0.213312 |
train_dfe21d4f604dfba1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.17, 0.021, -0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.66, 1.153).extrude(0.221)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.259, 0.072, -0.05), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.05, -0.198).lineTo(0.05, 0.667).lineT... | 3 | 27 | 0.777161 |
train_4107dca713632e2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.422), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.636, -0.27).lineTo(0.553, 1).threePointArc((0.214, 0.931), (-0.094, 0.773)).threePointArc((-0.459, 0.377), (-0.629, -0.134)).threePointArc((-0.635, -0.202), (-0.636, -0.27)).threePointArc(... | 23 | 110 | 0.235311 |
train_f420f1df9e842c85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.842, 0.357, 0.796), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.124, 1.106).threePointArc((-0.124, 0.841), (0.124, 0.577)).lineTo(0.124, 1.106).close().revolve(angleDegrees=90, axisStart=(0.124, 0.577), axisEnd=(0.124, 1.106))
result = result.e... | 10 | 61 | 0.017312 |
train_81054eefdb9a38f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.503, -0.04, -0.713), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.296, 0.423).threePointArc((-0.202, -0.009), (0.061, -0.364)).lineTo(0.296, -0.27).threePointArc((0.101, 0.052), (0.033, 0.423)).lineTo(-0.296, 0.423).close().extrude(1.005)
resul... | 3 | 32 | 0.242564 |
train_6891d1b1aa1a20e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.101, 0.572, -0.128), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.661, 0.517).threePointArc((0, 0.821), (-0.661, 0.517)).threePointArc((-0.872, -0.051), (-0.661, -0.62)).lineTo(0.661, -0.62).threePointArc((0.872, -0.051), (0.661, 0.517)).close()... | 14 | 142 | 2.468355 |
train_cc33b47186eef0c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.526).extrude(0.165)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2, -0.61 + 0.122, -0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.047, -0.048).lineTo(0.047, 0.043).lin... | 21 | 246 | 0.472237 |
train_b35261d16c3e7cdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.754, -0.394, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.734).lineTo(1, 0.734).lineTo(1, 0.024).lineTo(-1, 0.024).lineTo(-1, 0.734).close().extrude(0.705)
result = result.edges().fillet(0.076)
result = result.union(cq.Workplane(cq.Plane... | 11 | 51 | 1.413082 |
train_d8355a76aa03490e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.501, -0.805, -0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.08, 1.351).threePointArc((-0.546, 0.458), (-0.08, -0.436)).lineTo(0.546, 0.458).lineTo(-0.08, 1.351).close().extrude(1.024)
result = result.edges().chamfer(0.346)
result = result... | 4 | 32 | 0.724974 |
train_6d24e2ec8bf4c8e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.502, 0.11, 0.221), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.498, -0.498).lineTo(-0.221, -0.221).lineTo(-0.201, -0.31).lineTo(0.221, -0.221).lineTo(0, 0).lineTo(0.498, 0.498).lineTo(-0.498, 0.498).lineTo(-0.221, 0.221).lineTo(-0.31, 0.201).... | 3 | 24 | 0.269881 |
train_c3e34e7f5c4fa405 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.004, 0.015), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.984, -0.218).lineTo(0.917, -0.417).lineTo(0.984, 0.218).lineTo(-0.917, 0.417).lineTo(-0.984, -0.218).close().sweep(cq.Workplane('YZ').spline([(-0.183, -0.489), (-0.093, -0.437), (-0.00... | 3 | 13 | 0.685636 |
train_4d94fe72b4581f7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.285, 0.308, -0.124), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.174).workplane(offset=0.339).circle(0.172).workplane(offset=0.376).circle(0.181).loft()
result = result.edges().chamfer(0.133)
result = result.union(cq.Workplane(cq.Plane(origin=... | 21 | 157 | 0.228185 |
train_98f1688401cc6067 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.48, -0.319, -0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.04, 1.034).extrude(0.145)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.48, -0.272, 0.047), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.793, 0.922).extrude(0.03))
result = re... | 15 | 40 | 0.200403 |
train_cc0ca2171ea5753a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.029, -0.161, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.978, 0.193).lineTo(-0.978, 0.036).lineTo(0.978, 0.036).lineTo(0.978, 0.193).lineTo(0.88, 0.291).lineTo(0.782, 0.193).lineTo(0.685, 0.291).lineTo(0.587, 0.193).lineTo(0.196, 0.193).li... | 2 | 23 | 0.028935 |
train_f0c07513ab6f22eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.914, 0.236, -0.059), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.121, -0.513).lineTo(-0.121, 0.776).lineTo(0.121, 0.777).lineTo(0.121, -0.513).lineTo(-0.121, -0.513).close().extrude(0.44)
result = result.edges().fillet(0.063)
result = result.u... | 13 | 294 | 0.640989 |
train_ef00a3b61e37aaf4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.4, -0.168, 0.579), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.642, 0.642).lineTo(0.642, -0.422).threePointArc((0.577, -0.577), (0.422, -0.642)).lineTo(-0.422, -0.642).threePointArc((-0.577, -0.577), (-0.642, -0.422)).lineTo(-0.642, 0.422).thre... | 10 | 58 | 1.007974 |
train_eae55ad1f8a0b12d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, 0.161, 0.538), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.194, 0.119).lineTo(0.194, 0.067).threePointArc((0.175, 0), (0.194, -0.067)).lineTo(-0.194, -0.119).lineTo(-0.194, 0.119).close().sweep(cq.Workplane('YZ').spline([(0.005, 0.403), (-... | 8 | 48 | 0.3611 |
train_e643d1076dce48ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.214, -0.298), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.642, -0.681).lineTo(-0.993, 0.681).lineTo(0.993, 0.681).lineTo(0.522, -0.539).lineTo(0.247, -0.539).lineTo(0.247, -0.681).lineTo(-0.642, -0.681).close().sweep(cq.Workplane('YZ'... | 6 | 45 | 2.994613 |
train_486510aff3979042 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.086, 0.045, -0.384), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.148, -0.632).lineTo(0.389, 0.494).lineTo(0.068, 0.563).lineTo(-0.254, 0.632).lineTo(-0.389, 0).lineTo(-0.273, -0.541).lineTo(-0.174, -0.563).lineTo(-0.073, -0.584).lineTo(-0.027,... | 9 | 148 | 0.556289 |
train_48ab073e13103b7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.688, -0.039, -0.489), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.244, -0.273).lineTo(-0.007, 0.095).lineTo(0.006, 0.116).lineTo(-0.095, 0.273).lineTo(-0.11, 0.296).lineTo(0.122, 0.296).lineTo(0.107, 0.273).lineTo(0.135, 0.273).lineTo(0.02, 0... | 3 | 40 | 0.494376 |
train_094635fc756c7ccc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.142, -0.916, -0.395), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.368, 0.589).threePointArc((0.362, -0.036), (0.368, 0.925)).threePointArc((-0.078, 0.928), (-0.368, 0.589)).close().extrude(0.79)
result = result.edges().chamfer(0.248)
result = ... | 16 | 46 | 0.8459 |
train_a96aaaf3bcac18f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.864, -0.01, -0.304), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.136, 0.127).lineTo(-0.136, -0.127).lineTo(0.136, -0.127).lineTo(0.136, 0.127).lineTo(-0.136, 0.127).close().sweep(cq.Workplane('XZ').spline([(-0.864, -0.304), (-0.604, -0.156), ... | 21 | 111 | 0.055913 |
train_43ba3f0c6afbc0fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, -0.198, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.015, -0.027).lineTo(-0.024, -0.035).lineTo(-0.018, -0.033).lineTo(-0.015, -0.031).lineTo(-0.012, -0.03).lineTo(-0.005, -0.027).lineTo(0.013, -0.02).lineTo(0.03, -0.027).lineTo(0.063,... | 1 | 18 | 0.009797 |
train_4cf7c3cd395b94c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.258, -0.1, -0.423), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.485, 1.403).extrude(0.465)
result = result.union(cq.Workplane(cq.Plane(origin=(0.332, -0.03, 0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.632).extrude(0.054))
result = result.un... | 11 | 70 | 1.281759 |
train_aef1cde702caad1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.88, -0.422, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.243, 0.286).lineTo(-0.218, 0.243).lineTo(-0.064, 0.332).lineTo(-0.089, 0.375).lineTo(0.089, 0.375).lineTo(0.243, 0.286).lineTo(0.332, 0.132).lineTo(0.283, 0.132).lineTo(0.283, -0.046).... | 1 | 20 | 0.142833 |
train_1e60b820234c5163 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.657, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.699, 1.329).lineTo(0.699, 0.046).lineTo(-0.438, 0.046).threePointArc((-0.633, 0.674), (-0.699, 1.329)).lineTo(0.699, 1.329).close().extrude(2)
result = result.cut(cq.Workplane(cq.Plane(or... | 10 | 56 | 3.061234 |
train_99e2c9362fee82fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.288), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.246, 2).extrude(0.491)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.098 + 0.0245, 0, 0.202), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.018).extrude(0.086))
result = result.union(... | 7 | 22 | 0.241117 |
train_0255d3f80d4b7d6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.223, -0.037, 0.028), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.078).workplane(offset=0.038).circle(0.09).workplane(offset=0.031).circle(0.086).workplane(offset=0.029).circle(0.089).workplane(offset=0.03).circle(0.092).workplane(offset=0.036)... | 21 | 225 | 0.491178 |
train_c13ba046417a8ab2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.134, 0.221, -0.144), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.147, 0.253).lineTo(0.418, 0.025).lineTo(0.184, -0.253).lineTo(-0.418, 0.253).lineTo(0.147, 0.253).close().sweep(cq.Workplane('XY').spline([(-0.709, 0.221), (-0.064, 0.221), (0.456,... | 12 | 80 | 0.445287 |
train_742cade835019c0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.18, -0.255, 0.109), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.82).lineTo(0, 0.478).lineTo(-0.341, 0.478).lineTo(-0.341, -0.204).lineTo(0, -0.204).lineTo(0, 0.146).lineTo(0.341, 0.146).lineTo(0.341, 0.82).lineTo(0, 0.82).close().extrude(0.57... | 11 | 355 | 0.158944 |
train_d256d853629c3aef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.232, 0.162, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.571, 0.653).lineTo(-0.408, 0.653).lineTo(-0.408, 0.082).lineTo(0.408, 0.082).lineTo(0.408, 0.653).lineTo(0.571, 0.653).lineTo(0.571, -0.653).lineTo(0.408, -0.653).lineTo(0.408, -0.08... | 14 | 142 | 0.943278 |
train_91ba7837f94031d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.217, -0.192, -0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.213, 1.192).lineTo(-0.213, -0.808).lineTo(0.213, -0.808).lineTo(0.213, 1.192).lineTo(-0.213, 1.192).close().revolve(angleDegrees=270, axisStart=(-0.213, 1.192), axisEnd=(-0.213, ... | 16 | 103 | 0.812443 |
train_8fc0f0d73f5aee78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.113, 0.208), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.429).lineTo(-1, -0.429).lineTo(1, -0.429).lineTo(1, 0.429).lineTo(-1, 0.429).close().extrude(0.886)
result = result.edges().fillet(0.099)
result = result.union(cq.Workplane(cq.Pla... | 27 | 102 | 1.21214 |
train_1e9e13f6cb8947f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.051, -0.162, -0.059), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.18, 0.217).lineTo(0.18, -0.083).lineTo(0.18, 0.217).lineTo(-0.18, 0.217).close().extrude(0.548)
result = result.edges().chamfer(0.088)
result = result.cut(cq.Workplane(cq.Plane(... | 24 | 173 | 0.112584 |
train_3e4fc87133e8c167 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.204, -0.121), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.591).threePointArc((-0.113, 0.569), (-0.209, 0.505)).threePointArc((-0.273, 0.408), (-0.296, 0.296)).lineTo(-0.296, -0.591).lineTo(0.296, -0.591).lineTo(0.296, 0).lineTo(0.209, 0.... | 3 | 18 | 0.6638 |
train_a4651e6feec90a82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.019, 0.947), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.149).sweep(cq.Workplane('YZ').spline([(-0.167, -0.035), (-0.099, -0.134), (0.044, -0.139), (0.178, -0.059), (0.184, 0.071), (0.093, 0.166), (-0.031, 0.178), (-0.168, 0.105)]))
| 1 | 3 | 0.01884 |
train_d41cd6d46f83d1c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.126, -0.015, -0.345), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.051, 1.015).lineTo(0.051, -0.228).lineTo(-0.02, -0.228).lineTo(-0.02, -0.985).lineTo(-0.051, -0.985).lineTo(-0.051, 0.258).lineTo(0.02, 0.258).lineTo(0.02, 1.015).lineTo(0.051, 1.... | 5 | 124 | 0.085536 |
train_28e533dc542ff841 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.125, -0.335, -0.344), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.826, 0.67).extrude(0.025)
result = result.union(cq.Workplane(cq.Plane(origin=(0.131, -0.466, -0.316), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.217, -0.032).lineTo(-0.217, 0.004... | 18 | 197 | 1.122522 |
train_1219a184e3a4fb35 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, 0.242, -0.468), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.532, 0.107).lineTo(-0.532, 0.206).lineTo(0.439, 0.206).lineTo(0.532, 0.207).lineTo(0.532, 0.008).lineTo(0.439, 0.007).lineTo(0.439, 0.107).lineTo(-0.532, 0.107).close().workplane... | 38 | 129 | 0.031893 |
train_c19d2fe83a70018d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.431, -0.199, -0.493), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.347, -0.128).lineTo(-0.347, 0.564).lineTo(0.347, 0.564).lineTo(0.347, -0.128).lineTo(0.014, -0.128).lineTo(0.014, -0.1).lineTo(-0.014, -0.1).lineTo(-0.014, -0.128).lineTo(-0.347,... | 7 | 47 | 0.230612 |
train_2304de17e80a022e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.405, -0.317, -0.061), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.185, -0.133).lineTo(-0.185, 0.068).lineTo(-0.105, 0.068).lineTo(-0.105, 0.133).lineTo(0.105, 0.133).lineTo(0.105, 0.068).lineTo(0.185, 0.068).lineTo(0.185, -0.133).lineTo(-0.18... | 3 | 53 | 0.113789 |
train_2c2d56a070a04fe2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, 0.679, -0.221), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.108, 0.083).lineTo(0.036, 0.083).lineTo(0, 0.145).lineTo(-0.108, 0.083).lineTo(-0.036, 0.083).lineTo(-0.072, 0.021).lineTo(-0.108, -0.041).lineTo(0, -0.103).lineTo(0.108, -0.041)... | 14 | 210 | 0.174192 |
train_c24a443324f0fd77 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.756, -0.425), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.067, 0.051).threePointArc((-0.128, -0.025), (-0.052, -0.086)).threePointArc((0.073, -0.125), (0.129, -0.244)).threePointArc((-0.129, -0.025), (0.077, 0.244)).threePointArc((0.04... | 2 | 7 | 0.010563 |
train_dbb636b0c0821d33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.384, 0.519, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.049).lineTo(-1, -0.011).lineTo(0.47, -0.011).threePointArc((1, 0.519), (0.47, 1.049)).lineTo(0.102, 1.049).lineTo(-0.04, 1.049).lineTo(-1, 1.049).close().extrude(0.768)
result = re... | 6 | 39 | 1.298602 |
train_28c03b3f62acfcb5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.592, 0, 0.185), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.034, 0.095).threePointArc((0.052, -0.002), (0.036, -0.099)).lineTo(-0.005, -0.215).threePointArc((-0.012, -0.172), (-0.052, -0.154)).threePointArc((0.032, -0.001), (-0.052, 0.152)).thre... | 8 | 65 | 0.571965 |
train_b5d8d9e4cb95d6f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.768, -0.035, 0.186), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.113, 0.174).lineTo(0.222, 0.174).lineTo(0.222, -0.155).lineTo(0.232, -0.155).lineTo(0.232, -0.174).lineTo(-0.232, -0.174).lineTo(-0.232, 0.058).lineTo(-0.126, 0.058).lineTo(-0.12... | 3 | 58 | 0.334986 |
train_f925d6f890916e94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.031, -0.08), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.211, 0.556).lineTo(0.084, 0.556).lineTo(0.084, 0.759).lineTo(-0.211, 0.759).lineTo(-0.211, -0.759).lineTo(0.211, -0.759).lineTo(0.211, 0.556).close().sweep(cq.Workplane('XY').spline(... | 3 | 63 | 1.207705 |
train_0d0ec0dff98dedc9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.14, -0.146, -0.3), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.721, 1.089).extrude(0.599)
result = result.faces('>Z').shell(-0.046)
result = result.union(cq.Workplane(cq.Plane(origin=(0.335, 0.536, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).circl... | 4 | 17 | 0.255967 |
train_359872ef81d29187 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.355, 1, -0.352), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.491, 0.058).lineTo(0.491, 0.058).lineTo(0.491, 0.702).lineTo(0.401, 0.702).lineTo(-0.491, 0.117).lineTo(-0.491, 0.058).close().extrude(1.445)
result = result.union(cq.Workplane(cq.Pl... | 17 | 114 | 0.436306 |
train_c7109916bd8278d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.723, 1.165).extrude(1.689)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.145, 0.19, 0.658), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.116).extrude(0.342))
result = result.cut(cq.Workp... | 14 | 77 | 0.902977 |
train_d8e40c1698cad449 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.264, -0.227, 0.216), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.355, 0.07).lineTo(0.355, 0.245).lineTo(-0.18, 0.245).lineTo(-0.18, 0.779).lineTo(-0.355, 0.779).lineTo(-0.355, -0.464).threePointArc((-0.267, -0.552), (-0.18, -0.464)).lineTo(-0.1... | 35 | 204 | 0.211013 |
train_d56490d6ac4061a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.386, 0, -0.011), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.375, 0.375).lineTo(0.375, -1).lineTo(-0.375, -1).lineTo(-0.375, 1).lineTo(0.375, 1).lineTo(0.375, 0.375).close().revolve(angleDegrees=270, axisStart=(0.375, 0.375), axisEnd=(0.375, -... | 3 | 20 | 2.580815 |
train_5e9c0f327094197a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.426, 0, 0.302), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.464, 0.5).lineTo(0.464, 0.568).lineTo(-0.464, 0.568).lineTo(-0.464, 0.496).lineTo(-0.393, 0.496).lineTo(-0.393, -0.043).threePointArc((-0.003, 0.261), (0.393, -0.033)).lineTo(0.393, 0... | 9 | 64 | 1.129628 |
train_8ccd578efcec0962 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.286, 0, -0.52), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.428, 1.264).extrude(1.04)
result = result.union(cq.Workplane(cq.Plane(origin=(0.585, 0.023, -0.35), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.162).extrude(0.536))
result = result.union... | 6 | 22 | 1.452155 |
train_0c9d583b87da0a9f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.163, 0.553, 0.779), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.038, -0.069).lineTo(-0.054, -0.06).lineTo(-0.079, -0.046).lineTo(-0.079, 0.046).lineTo(-0.054, 0.06).lineTo(0, 0.091).lineTo(0.079, 0.046).lineTo(0.079, -0.046).lineTo(0.038, -0.0... | 2 | 19 | 0.069761 |
train_fa1bac3948b18397 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.035, 0, -0.84), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.386, 1.218).extrude(1.679)
result = result.faces('>Z').shell(-0.105)
result = result.union(cq.Workplane(cq.Plane(origin=(0.854, 0.172, 0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.29... | 12 | 57 | 1.206893 |
train_78f37c0275e4cbad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.786, 0.759, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.4, 1.786).lineTo(-0.4, 0.786).lineTo(-0.56, -0.014).lineTo(-0.6, -0.214).lineTo(-0.4, -0.214).lineTo(-0.367, -0.047).lineTo(-0.3, -0.114).lineTo(0.6, 0.786).lineTo(-0.2, 0.786).lineTo... | 9 | 73 | 0.426879 |
train_2f043ed18245cb7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.465, 0, 0.337), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.061, -0.375).lineTo(-0.061, -0.012).lineTo(-0.274, 0.111).lineTo(-0.274, 0.218).lineTo(-0.061, 0.095).lineTo(-0.061, 0.445).lineTo(0.061, 0.445).lineTo(0.061, 0.262).lineTo(0.182, 0.... | 6 | 110 | 0.157077 |
train_b0a1fabaddccadb9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.364, 0.603, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, 0.697).lineTo(0, 0.697).lineTo(0, 0.297).lineTo(-1, 0.297).lineTo(-1, 0.031).lineTo(1, 0.031).lineTo(1, 0.697).close().extrude(1.205)
result = result.edges().fillet(0.063)
result = re... | 8 | 62 | 1.051071 |
train_93fc0ab4ef181ee4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.095, 0.706, -0.304), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.871, 1.095).threePointArc((-0.162, 0.095), (-0.871, -0.905)).lineTo(0.871, -0.905).lineTo(0.871, 1.095).lineTo(-0.871, 1.095).close().extrude(1.413)
result = result.edges().chamf... | 10 | 64 | 2.419264 |
train_2284657aa982debd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.962, 0.116, 0.248), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.636).lineTo(-0.752, -0.636).lineTo(-0.752, 0.868).lineTo(0.752, 0.868).lineTo(0.752, 0.116).lineTo(0, 0.116).lineTo(0, -0.636).close().extrude(1.923)
result = result.edges().ch... | 17 | 302 | 2.61478 |
train_4df8c49571eea52e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.051, 0.022, -0.43), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.047, -0.135).lineTo(-0.047, 0.135).lineTo(0.047, 0.135).lineTo(0.047, -0.135).lineTo(-0.047, -0.135).close().sweep(cq.Workplane('XZ').spline([(-0.828, -0.999), (-0.569, -0.984), (... | 20 | 229 | 0.111855 |
train_ef4343c86a57788f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.414, 2).extrude(0.92)
result = result.union(cq.Workplane(cq.Plane(origin=(0.205, -0.435, -0.635), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.22).extrude(0.381))
result = result.edges().cham... | 9 | 49 | 2.25933 |
train_3b5ea865b913e27f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.084, 0.213, -0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.382, 0.076).lineTo(0.382, 0.684).lineTo(-0.382, 0.684).lineTo(-0.382, 0.076).lineTo(0.382, 0.076).close().extrude(0.277)
result = result.edges().fillet(0.121)
result = result.union(... | 13 | 107 | 0.137752 |
train_2e0f12f127f5d693 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.451, -0.003, -0.888), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.088, 0.186).lineTo(-0.186, -0.088).lineTo(-0.088, -0.186).lineTo(0.186, 0.088).lineTo(0.088, 0.186).close().transformed(offset=(-0.769, 0.094, 0.314), rotate=(0, 45, 0)).moveTo(0.... | 3 | 11 | 0.008174 |
train_2877e10843112459 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.271), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.009).sweep(cq.Workplane('XZ').spline([(-0.106, -0.307), (0.787, -0.158), (1.681, -0.313)]))
| 1 | 3 | 0.000445 |
train_8997b87c835bbcaa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.386, -0.052, -0.068), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.303).sweep(cq.Workplane('XZ').spline([(-0.308, -0.277), (-0.116, -0.38), (0.092, -0.38), (0.285, -0.277), (0.285, -0.166), (0.092, -0.062), (-0.116, -0.062), (-0.308, -0.166)]))
r... | 11 | 68 | 0.396093 |
train_5e5b5a8e94951b5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.275, -0.709, 0.035), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.86, -0.215).threePointArc((-0.832, -0.28), (-0.767, -0.308)).lineTo(-0.535, -0.308).lineTo(-0.22, -0.308).threePointArc((0.162, -0.422), (0.545, -0.308)).lineTo(0.86, -0.308).lin... | 16 | 85 | 2.252905 |
train_ed482ca131d78063 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.354).extrude(0.116)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.8 + 0.16, -0.542 + 0.1805, 0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.083, -0.01).lineTo(-0.1, -0.007)... | 16 | 201 | 0.314898 |
train_ca1192840a4e614d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.685).extrude(0.097)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2, -0.674 + 0.2245, -0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.088, 0.013).lineTo(0.088, 0.005).li... | 13 | 138 | 0.325013 |
train_aa1a2bf851f83b37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.296, 0.176, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.872, 0.841).lineTo(-0.872, -0.704).lineTo(0.872, -0.704).lineTo(0.872, 0.841).lineTo(0.446, 0.841).threePointArc((0.416, 1.011), (0.323, 1.158)).threePointArc((0, 1.296), (-0.323, 1.1... | 7 | 21 | 0.41423 |
train_c6dbec4a888c5f73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.18, -0.619, -0.409), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.827, 0.498).extrude(0.334)
result = result.union(cq.Workplane(cq.Plane(origin=(0.404, -0.721, -0.245), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.38, 0.137).extrude(0.115))
result = ... | 22 | 137 | 0.227581 |
train_d1205a5073c75e8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.082, -0.438), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.101).extrude(1.193)
result = result.faces('>Z').shell(-0.107)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.599, 0.463, -0.755), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.0... | 15 | 51 | 0.800225 |
train_8fc6ba38c28cc125 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.346, 0.289, -0.46), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.09, 1.422).extrude(0.921)
result = result.faces('>X').shell(-0.046)
result = result.union(cq.Workplane(cq.Plane(origin=(0.545, -0.702, 0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(... | 7 | 35 | 0.600961 |
train_54a0aa15ec1ac323 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.337, -0.033, -0.579), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.159, 1.159).extrude(1.159)
result = result.union(cq.Workplane(cq.Plane(origin=(0.095, 0.577, -0.37), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.157, 0.071).extrude(0.123))
result = r... | 9 | 60 | 1.33955 |
train_d25c4d876b6c5cdd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.642, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.081, -0.202).lineTo(0.129, -0.22).lineTo(0.145, -0.196).lineTo(0.183, -0.141).lineTo(-0.019, -0.106).lineTo(-0.12, 0.167).lineTo(-0.081, 0.22).lineTo(-0.083, 0.22).lineTo(-0.183, 0.08).lin... | 1 | 11 | 0.044307 |
train_d564ce24ef0f4c78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.351, -0.419), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.016, 0.021).threePointArc((0, 0.431), (1.016, 0.021)).lineTo(-1.016, 0.021).close().extrude(0.838)
result = result.edges().chamfer(0.021)
result = result.faces('>Z').shell(-0.024)
re... | 7 | 68 | 0.102647 |
train_1676e0d07820856c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.655, 0.179, -0.047), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.547, 0.828).lineTo(0.866, 0.828).lineTo(0.547, 0.275).lineTo(-0.866, 0.275).lineTo(-0.547, 0.828).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.241, 0))
result = ... | 14 | 96 | 0.696596 |
train_d7a93fc9b8d52c49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.062, 0.071, -0.169), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.448, 0.075).threePointArc((-0.523, 0), (-0.448, -0.075)).lineTo(0.448, -0.075).threePointArc((0.523, 0), (0.448, 0.075)).lineTo(-0.448, 0.075).close().transformed(offset=(0.121,... | 3 | 14 | 0.159442 |
train_ef97a1d643b997a1 | 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.626).workplane(offset=0.595).circle(0.508).workplane(offset=0.676).circle(0.39).workplane(offset=0.73).circle(0.272).loft()
result = result.edges().chamfer(0.129)
result = result.faces('>Z').s... | 7 | 5 | 1.240136 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.