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_9a491c7f99388623 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.524, -0.407, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.033).lineTo(-1, 0.78).lineTo(1, 0.78).lineTo(1, 0.033).lineTo(-1, 0.033).close().extrude(1.047)
result = result.edges().chamfer(0.13)
| 2 | 26 | 1.447698 |
train_abea69cda4e405d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.076, -0.147, -0.498), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.233, -0.286).lineTo(-0.233, -0.286).lineTo(-0.42, 0.351).lineTo(0.42, 0.351).lineTo(0.233, -0.286).close().revolve(angleDegrees=270, axisStart=(0.233, -0.286), axisEnd=(-0.233, -... | 11 | 84 | 0.950003 |
train_18e2a3999e4ffe61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.76, -0.066, -0.255), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.044, 0.218).lineTo(0.044, -0.218).lineTo(-0.044, -0.131).lineTo(-0.044, 0.218).lineTo(0.044, 0.218).close().sweep(cq.Workplane('XZ').spline([(-0.76, -0.355), (-0.6, -0.272), (-0.4... | 22 | 132 | 0.177671 |
train_da512b86a4e80cc9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, -0.529), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.303, -0.353).threePointArc((0, -0.656), (-0.303, -0.353)).lineTo(-0.303, 0.141).threePointArc((-0.334, 0.214), (-0.409, 0.242)).lineTo(-0.409, 0.656).lineTo(0.409, 0.656).lineTo(0.409, 0.2... | 2 | 16 | 0.442498 |
train_8a7bf29d79359fc8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.091, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.054, -0.647).lineTo(0.54, -0.415).lineTo(0.054, 0.829).lineTo(-0.54, 0.596).lineTo(-0.054, -0.647).close().extrude(1.713)
result = result.edges().chamfer(0.041)
result = result.union(cq.... | 8 | 56 | 0.959586 |
train_5fa74fd8fd230d84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.27, -0.112), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.121, 0.083).threePointArc((-0.047, 0.086), (0.025, 0.07)).threePointArc((0.028, 0.063), (0.031, 0.058)).threePointArc((0.06, 0.034), (0.097, 0.028)).threePointArc((0.115, 0.012), (0.... | 9 | 61 | 0.124787 |
train_f8a9d30ec0346578 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.141, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.153, -0.106).lineTo(0.153, -0.106).lineTo(0.153, 0.106).lineTo(-0.153, 0.106).lineTo(-0.153, -0.106).close().sweep(cq.Workplane('YZ').spline([(-0.141, -0.349), (-0.277, -0.196), (-0.... | 18 | 81 | 0.115024 |
train_5b142d349422068f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.063), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.709).lineTo(-1, 0.709).lineTo(1, 0.709).lineTo(1, -0.709).lineTo(-1, -0.709).close().extrude(0.285)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.071, 0.061), normal=(0, ... | 7 | 19 | 0.827432 |
train_4a1d9bf3399500b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.347), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.081).extrude(1.123)
result = result.faces('>Z').shell(-0.087)
result = result.union(cq.Workplane(cq.Plane(origin=(0.467, -0.158, -0.775), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.2).ex... | 6 | 62 | 0.755485 |
train_6303a8d71372f8ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.505, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.605, 0.172).lineTo(0.605, 1.009).lineTo(-0.605, 1.009).lineTo(-0.605, 0.172).lineTo(0.605, 0.172).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.563, 0))
result = result.ed... | 9 | 38 | 1.470704 |
train_6c484bffc18d96ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.145, -0.103, -0.441), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.01, 0).lineTo(-0.019, -0.017).lineTo(0.019, -0.017).lineTo(0.01, 0).lineTo(0.019, 0.017).lineTo(0, 0.017).lineTo(-0.01, 0).close().sweep(cq.Workplane('XY').spline([(0.481, -0.10... | 7 | 64 | 0.330774 |
train_008dc0a6a8efd031 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.737, -0.633, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.441, 1.288).threePointArc((0.107, 1.435), (-0.257, 1.394)).lineTo(-0.698, 0.844).threePointArc((-0.657, 0.48), (-0.441, 0.186)).threePointArc((-0.107, 0.039), (0.257, 0.08)).lineTo(0.... | 18 | 154 | 1.602455 |
train_b52cd9169d6cd947 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.086, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.344, 0.026).lineTo(-0.344, 0.304).lineTo(0.179, 0.304).lineTo(0.344, -0.033).lineTo(0.344, -0.304).lineTo(0.266, -0.304).lineTo(0.088, 0.061).lineTo(0.064, 0.061).lineTo(0.064, 0.026).line... | 9 | 49 | 0.344438 |
train_5c0c8246edecca8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, 0.04, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.204, 0.204).extrude(0.204)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.058, -0.069, -0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.008).extrude(0.017))
result = resu... | 19 | 60 | 0.031745 |
train_cb9f2c3d6c38897c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.611, -0.941, -0.221), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.822, 1.466).lineTo(0.601, 1.244).lineTo(0.601, 0.863).lineTo(0.221, 0.863).lineTo(0, 0.641).lineTo(-0.22, 0.422).lineTo(-0.603, 0.422).lineTo(-0.603, 0.037).lineTo(-0.822, -0.183... | 14 | 127 | 2.867159 |
train_7849a4fff6348206 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.107, 0.009, -0.425), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.725, 0.561).extrude(0.304)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.056, -0.066, -0.338), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.024).extrude(0.047))
result = resul... | 18 | 100 | 0.27066 |
train_9eff4b11df4506e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.041, 0, -0.437), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.238, 2).extrude(0.989)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.841 + 0.4, 0.297, 0.182), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(-0.054, 0.071).lineTo(-0.017, 0.09).lin... | 18 | 140 | 1.777058 |
train_4e33fc4a337ca3b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.754, -0.177), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.288, 0.473).lineTo(-0.398, 0.124).lineTo(0.135, 0.121).lineTo(0.132, 0.112).lineTo(-0.021, -0.278).lineTo(0.161, -0.47).lineTo(0.163, -0.473).lineTo(0.163, -0.462).lineTo(0.312, 0.0... | 2 | 19 | 0.46024 |
train_0f342a22d101af95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.123, -1, -0.025), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.143, 0.912).threePointArc((-0.05, 1.006), (0.043, 0.912)).lineTo(0.043, -0.331).threePointArc((0.069, -0.505), (0.143, -0.665)).lineTo(-0.013, -0.767).threePointArc((-0.11, -0.558),... | 10 | 67 | 0.295543 |
train_72042237f880caa0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.761), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.835, 2).extrude(1.283)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.187, -0.23, 0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.457, 0.542).extrude(0.26))
result = result.cut(cq.... | 3 | 12 | 4.666086 |
train_bd4b608f738f5f05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.962, 0.453, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.842, 0.12).lineTo(-0.842, 0.682).lineTo(0.28, 0.682).lineTo(0.28, 1.242).lineTo(-0.842, 1.242).lineTo(-0.28, 1.804).lineTo(0.28, 1.804).lineTo(0.842, 1.242).lineTo(0.842, 0.12).lineTo... | 21 | 40 | 0.907177 |
train_040569d6b503fff7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.171, 0.019, -0.317), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.295, 0.034).lineTo(0.295, 0.034).threePointArc((0, -0.034), (-0.295, 0.034)).close().sweep(cq.Workplane('XY').spline([(0.171, 0.2), (0.394, 0.178), (0.617, 0.091)]))
result = res... | 14 | 79 | 0.018704 |
train_0d4fe025aefcd500 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.643, 0.55, -0.201), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.564, 1.617).lineTo(0.564, -0.33).lineTo(0.526, -0.293).lineTo(-0.526, -0.293).lineTo(-0.526, 1.579).lineTo(-0.59, 1.643).lineTo(-0.59, -0.357).lineTo(0.59, -0.357).lineTo(0.59, 1.6... | 16 | 37 | 0.437937 |
train_e098b404034329f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.048, 0.017, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.524, 0.355).extrude(1.562)
result = result.union(cq.Workplane(cq.Plane(origin=(0.032, 0.213, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.02).extrude(0.235))
result = result.unio... | 28 | 69 | 0.324435 |
train_baf526a26ee998c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.47, -0.358, -0.683), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.367, 0.981).lineTo(-0.147, 0.981).lineTo(-0.367, -0.264).lineTo(0.367, -0.264).lineTo(0.367, 0.981).close().extrude(0.589)
result = result.edges().fillet(0.258)
result = result.un... | 9 | 65 | 0.506933 |
train_72372d1dd6c21232 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.638, -0.214), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.21, 0.092).lineTo(-0.21, 0.175).threePointArc((-0.203, 0.222), (-0.183, 0.265)).lineTo(-0.03, 0.34).lineTo(0.09, 0.34).lineTo(0.09, 0.362).lineTo(0.21, 0.362).lineTo(0.21, 0.227).lin... | 20 | 123 | 0.161308 |
train_a3fcd46e8684987d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.094, 0.005, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.857, 0.016).threePointArc((-1, 0.158), (-0.857, 0.302)).lineTo(-0.857, 0.158).lineTo(-0.571, 0.158).lineTo(-0.286, 0.158).lineTo(0, 0.158).lineTo(0.286, 0.158).lineTo(0.571, 0.158).lin... | 8 | 137 | 0.104082 |
train_1691b6f9b5004ce2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.209, 0.079, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.071, -0.85).threePointArc((0, -0.921), (-0.071, -0.85)).lineTo(-0.071, 1.008).threePointArc((0, 1.079), (0.071, 1.008)).lineTo(0.071, -0.85).close().extrude(0.368)
result = result.edge... | 17 | 41 | 0.083254 |
train_434f3b751f4324a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.417, 0.693, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.457, -0.307).lineTo(-0.457, 1.693).lineTo(0.457, 1.693).lineTo(0.457, -0.307).lineTo(-0.457, -0.307).close().extrude(0.833)
result = result.edges().fillet(0.194)
result = result.cut(c... | 4 | 51 | 1.387723 |
train_6a9d1afd2e97a067 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, -0.001, -0.067), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.526).sweep(cq.Workplane('XZ').spline([(0.586, 0.179), (-0.133, 0.24), (-0.563, 0.077), (-0.731, -0.163), (-0.28, -0.328), (0.256, -0.32), (0.824, -0.254), (0.929, -0.014)]))
resu... | 8 | 37 | 0.539759 |
train_f932459f6059f7ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.488, -0.741), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.013).extrude(1.185)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.118, 0.733, -0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.415, 0.551).extrude(0.217))
result = result.unio... | 11 | 60 | 4.420682 |
train_54d4df7731156392 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.769, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.585, 0.131).lineTo(-0.032, 0.99).lineTo(-0.3, 1.406).lineTo(-0.236, 1.406).lineTo(-0.271, 1.46).lineTo(0.271, 1.46).lineTo(0.3, 1.406).lineTo(0.236, 1.406).lineTo(0, 1.04).lineTo(0.032, ... | 7 | 33 | 1.230782 |
train_5ac8c31481fd8401 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1).lineTo(0.241, -0.417).lineTo(0.866, -0.5).lineTo(0.481, 0).lineTo(0.866, 0.5).lineTo(0.241, 0.417).lineTo(0, 1).lineTo(-0.241, 0.417).lineTo(-0.866, 0.5).lineTo(-0.481, 0).lineTo(-0.8... | 10 | 75 | 0.219326 |
train_b058d5a4473cc7f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.287, 0.745), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.158).sweep(cq.Workplane('XZ').spline([(0.262, 0.356), (0.392, 0.389), (0.522, 0.394), (0.653, 0.361), (0.783, 0.3)]))
result = result.edges().fillet(0.069)
result = result.union(cq... | 6 | 28 | 0.192282 |
train_1e4a669dab1f0a21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.23, 0.365, -0.166), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.282, -0.158).threePointArc((0.111, -0.088), (0.04, 0.083)).lineTo(-0.523, 0.083).lineTo(-0.523, 0.888).lineTo(0.282, 0.888).lineTo(0.282, 0.324).lineTo(0.282, 0.083).lineTo(0.523, ... | 11 | 68 | 0.860126 |
train_50c9a24518232a13 | 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.317).workplane(offset=0.682).circle(0.17).workplane(offset=0.715).circle(0.506).workplane(offset=0.603).circle(0.638).loft()
result = result.edges().fillet(0.14)
result = result.cut(cq.Workpla... | 7 | 22 | 0.989947 |
train_361b09a96511fa9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.021, 0, 0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.549, 0.565).extrude(0.238)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.022, 0.111, 0.442), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.085).extrude(0.077))
result = result.edges(... | 23 | 176 | 0.142439 |
train_377e1c2033ee1119 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.24, -0.003, 0.485), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.482, 0.165).lineTo(-0.482, 0.014).lineTo(0.221, 0.014).threePointArc((0.482, 0.165), (0.482, 0.465)).lineTo(0.221, 0.465).lineTo(-0.482, 0.465).lineTo(-0.482, 0.165).close().revol... | 27 | 62 | 0.732843 |
train_435cd1d67e3c0b9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.582, 0.154, -0.551), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.197, 0.403).lineTo(0.197, -0.018).lineTo(0.197, 0.403).lineTo(-0.197, 0.403).close().extrude(0.417)
result = result.edges().fillet(0.044)
result = result.union(cq.Workplane(cq.Pl... | 9 | 68 | 0.116729 |
train_ded1801f6ee71320 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.074, -0.297, 0.028), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.044, 0.251).lineTo(0.044, 0.154).lineTo(-0.044, 0.106).lineTo(-0.044, 0.251).lineTo(0.044, 0.251).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.062, 0))
result = ... | 6 | 447 | 0.048641 |
train_a4bc82e52ac84692 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.423, 0.398, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.459, -0.578).lineTo(-0.459, 1.396).lineTo(0.459, 1.396).lineTo(0.459, -0.578).lineTo(-0.459, -0.578).close().workplane(offset=0.423).moveTo(-0.462, -0.584).lineTo(-0.462, 1.402).lineT... | 18 | 136 | 0.426468 |
train_af731cf53249e9cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.673, 0.099, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.206, 0.071).lineTo(-0.62, 0.071).lineTo(-0.62, 0.484).lineTo(-0.206, 0.484).lineTo(-0.206, 0.897).lineTo(0.206, 0.897).lineTo(0.62, 0.484).lineTo(0.206, 0.484).lineTo(0.206, 0.071).clo... | 14 | 31 | 0.239003 |
train_fded65154d97189b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.217, 0.711, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.809, 0.592).lineTo(0.561, 0.66).lineTo(-0.668, 0.66).lineTo(-1, 0.505).lineTo(-1, 0.079).lineTo(-0.678, -0.022).lineTo(0.663, -0.022).lineTo(0.809, 0.046).lineTo(0.809, -0.226).lineTo(... | 5 | 22 | 0.716244 |
train_8add934130704009 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.247, -0.173, 0.079), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.222, -0.228).lineTo(-0.222, -0.228).lineTo(-0.222, -0.179).lineTo(-0.136, -0.179).lineTo(-0.136, 0.228).lineTo(0.222, 0.228).lineTo(0.222, -0.228).close().revolve(angleDegrees=36... | 10 | 163 | 0.405089 |
train_eeae6b51e36ef56d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.014, 0.299), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.299, 1.014).lineTo(-0.299, -0.986).lineTo(0.299, -0.986).lineTo(0.299, 1.014).lineTo(-0.299, 1.014).close().revolve(angleDegrees=360, axisStart=(-0.299, 1.014), axisEnd=(-0.299, -0.986... | 11 | 51 | 1.794872 |
train_28c9009e5c0032d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, 0.168, 0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.067, 1.525).extrude(0.598)
result = result.union(cq.Workplane(cq.Plane(origin=(0.147, -0.052, -0.048), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.554, 0.891).threePointArc((-0.389,... | 7 | 85 | 1.088103 |
train_df38477b66569c83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.617, 0.195, 0.16), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.174, 0.583).lineTo(-0.429, -1.195).lineTo(-0.567, -1.195).lineTo(0.036, 0.583).lineTo(0.567, 1.783).lineTo(0.174, 0.583).close().extrude(1.235)
result = result.edges().fillet(0.055)... | 2 | 26 | 0.327893 |
train_36d84c9b163e59bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.525, -0.416, -0.013), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.531, -0.006).lineTo(0.531, 1.057).lineTo(0.082, 1.057).lineTo(0.082, 1.155).lineTo(0.63, 1.155).lineTo(0.63, -0.104).lineTo(-0.63, -0.104).lineTo(-0.63, 1.155).lineTo(-0.082, 1.1... | 4 | 23 | 0.372939 |
train_1969d4b6cc5718d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.513, 0.835), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.172, -0.273).threePointArc((-0.287, -0.146), (-0.319, 0.023)).threePointArc((-0.08, 0.307), (0.266, 0.173)).threePointArc((0.306, 0.089), (0.319, -0.003)).threePointArc((0.186, -0.... | 3 | 34 | 0.335232 |
train_44fcc37d66312058 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.2, 0.07, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.084, 0.646).lineTo(-0.183, 0.646).lineTo(-0.183, 0.8).lineTo(0.141, 0.8).lineTo(0.141, 0.646).lineTo(0.042, 0.646).lineTo(0.042, 0.174).lineTo(0.183, 0.174).lineTo(0.183, -0.024).lineTo... | 5 | 267 | 0.092765 |
train_e15ad08d48abcd61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.436, 0, -0.549), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.128, 1.497).extrude(0.286)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.015, 0.075, -0.245), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.509, 0.635).lineTo(-0.509, -0.028).li... | 4 | 42 | 1.193334 |
train_fa9918c480e12785 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.703, -0.334, -0.03), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.146, 0.045).threePointArc((-0.135, -0.071), (-0.039, -0.138)).lineTo(-0.039, -0.297).lineTo(0.013, -0.297).lineTo(0.013, -0.138).threePointArc((0.108, -0.071), (0.119, 0.045)).li... | 8 | 69 | 0.177037 |
train_7e1d60a1d8432331 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.269, -0.142, -0.499), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.463, 1.228).extrude(0.999)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.269, 0.2, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.287).extrude(0.069))
result = result.... | 12 | 37 | 1.615 |
train_b3a578675e82fd21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.977, -0.202), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.2, 0.023).lineTo(0.2, -0.023).lineTo(-0.2, -0.023).lineTo(-0.2, 0.023).lineTo(0.2, 0.023).close().sweep(cq.Workplane('YZ').spline([(-0.977, -0.202), (-0.648, 0.027), (-0.319, 0.164),... | 2 | 8 | 0.025646 |
train_eb62b3f42f3b0bc8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.029, -0.39, -0.685), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.971, -0.61).lineTo(0.971, 1.189).lineTo(-0.629, 1.189).threePointArc((-0.971, 1.331), (-0.829, 0.989)).lineTo(-0.829, -0.411).lineTo(-0.829, -0.61).lineTo(-0.629, -0.61).lineTo(0.7... | 20 | 167 | 3.654896 |
train_e3cff47ad403eddb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.07, -0.093, -0.706), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.699, 1.047).extrude(0.964)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.108, -0.802, -0.272), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.358, 0.396).extrude(0.4))
result = ... | 15 | 129 | 0.590639 |
train_6caacc2a51023106 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.444, 0.365, 0.214), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.2, 0.763).threePointArc((0, 0.854), (0.2, 0.763)).lineTo(0.459, 0.913).lineTo(0.509, 0.827).threePointArc((0.486, 0.31), (0.049, 0.032)).lineTo(-0.049, 0.032).threePointArc((-0.48... | 17 | 119 | 0.727639 |
train_72bee1c31a654cc4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.273, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.206, 1.454).extrude(0.855)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.014, -0.299, -0.405), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.124).extrude(0.332))
result = result.... | 9 | 68 | 0.483948 |
train_5fdfc8acea5189d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.214, -0.248, -0.425), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.508, 1.504).extrude(0.986)
result = result.union(cq.Workplane(cq.Plane(origin=(0.793, -0.481, 0.193), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.122, 0.155).threePointArc((-0.11... | 16 | 66 | 1.905883 |
train_76473452501ab382 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.138, -0.313, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.815, 1.374).extrude(0.436)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.601, -0.039, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.123, 0.521).extrude(0.083))
result... | 12 | 56 | 0.394535 |
train_79fb3b73585ed74a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.652), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.869, 2).extrude(1.304)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.735, 0.325, -0.522), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.189).extrude(0.69))
result = result.cut(cq.Workpl... | 11 | 84 | 3.464497 |
train_e15a3a056b47f6b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.167, 0, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.915, 2).extrude(0.123)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.199 + 0.183, -0.8 + 0.4, -0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.122).extrude(0.16))
result = resu... | 6 | 13 | 0.20608 |
train_1412537f2b1bc231 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, 0.104, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.303, 0.481).lineTo(-0.568, -0.022).lineTo(-0.265, -0.503).lineTo(0.303, -0.481).lineTo(0.568, 0.022).lineTo(0.265, 0.503).lineTo(-0.303, 0.481).close().sweep(cq.Workplane('XY').spline(... | 16 | 132 | 0.78423 |
train_b3c9c083454ae489 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.251, -0.202, 0.158), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.51, 1.196).lineTo(-0.51, 1.196).lineTo(-0.51, 0.658).threePointArc((0, 0.148), (0.51, 0.658)).lineTo(0.51, 1.196).close().workplane(offset=0.253).moveTo(0.514, 1.201).lineTo(-0.51... | 29 | 141 | 0.774481 |
train_69fef67787e43185 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.785), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.763, 2).extrude(1.569)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.286, -0.476, 0.398), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.69, 0.423).extrude(0.397))
result = result.cut(cq.Wo... | 11 | 49 | 4.542607 |
train_f15bab9bcdd0220f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.802, -0.188, 0.253), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.499).sweep(cq.Workplane('XY').spline([(0, -0.531), (0.229, -0.523), (0.458, -0.484), (0.688, -0.328), (0.917, -0.049), (1.146, 0.107), (1.375, 0.146), (1.604, 0.154)]))
result = ... | 15 | 59 | 1.235853 |
train_660b8095a50a3ee0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.36, 0.118), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.125, 0.108).lineTo(-0.125, 0.068).lineTo(-0.165, 0.068).lineTo(-0.165, -0.085).lineTo(0.109, -0.085).lineTo(0.109, -0.108).lineTo(0.133, -0.108).lineTo(0.133, -0.085).lineTo(0.165, -0.0... | 3 | 37 | 0.101554 |
train_3bd3e8a05b85c3cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.38, 0.298, 0.114), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.886, 0.561).lineTo(-0.886, 0.059).lineTo(-0.176, 0.059).lineTo(-0.176, 0.2).lineTo(0.886, 0.2).lineTo(0.886, 0.31).lineTo(-0.176, 0.31).lineTo(-0.176, 0.561).lineTo(-0.886, 0.561).... | 14 | 111 | 0.213292 |
train_0f689e3c26967853 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.869, -0.497, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.999, 0.095).lineTo(-1.001, 0.895).lineTo(0.999, 0.899).lineTo(1.001, 0.1).lineTo(-0.999, 0.095).close().extrude(1.738)
result = result.edges().fillet(0.38)
result = result.cut(cq.Wor... | 8 | 56 | 1.810609 |
train_dc58acd63a5095f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.24, 0.276), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.095, 0.157).extrude(0.091)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.24, 0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.023).extrude(0.228))
result = result.union(cq.... | 7 | 178 | 0.018173 |
train_11036461e2c364fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.287, 0, 0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.425, 1.002).extrude(0.488)
result = result.union(cq.Workplane(cq.Plane(origin=(0.119, 0.178, 0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.038).extrude(0.084))
result = result.unio... | 9 | 75 | 0.866554 |
train_d7b438fba23b6e3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.056, 0, 0.499), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 1.324).threePointArc((-0.304, 1.52), (-0.036, 1.592)).threePointArc((0.232, 1.52), (0.429, 1.324)).threePointArc((0.5, 1.056), (0.429, 0.787)).threePointArc((0.232, 0.591), (-0.036... | 14 | 67 | 0.844843 |
train_902bc75b45ee24a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.533, -0.067, -0.119), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.25, 0.194).lineTo(-0.25, -0.194).lineTo(0.232, -0.194).lineTo(0.232, -0.175).lineTo(0.25, -0.157).lineTo(0.25, 0.086).lineTo(0.232, 0.104).lineTo(0.232, 0.194).lineTo(-0.25, 0.... | 8 | 51 | 0.346348 |
train_b5bcdaa4641be3a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.328, -1, -0.298), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.485, 0.397).lineTo(-0.485, 0.051).lineTo(0.485, 0.051).lineTo(0.485, 0.462).threePointArc((0.481, 0.477), (0.471, 0.49)).threePointArc((0, 0.585), (-0.471, 0.49)).threePointArc((-0.... | 18 | 148 | 0.323505 |
train_d7f9e1f05596fdbe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, -0.393), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.578).sweep(cq.Workplane('XZ').spline([(0.597, -1.024), (0.411, -0.938), (0.209, -0.962), (0.047, -1.091)]))
result = result.edges().chamfer(0.515)
result = result.union(cq.Workplane(cq.Pla... | 3 | 11 | 1.290823 |
train_1b73d5fab9d9168f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.016, -0.427), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.001, 0.006).lineTo(0.498, 0.867).lineTo(-0.481, 0.877).lineTo(-0.999, -0.009).lineTo(-0.497, -0.908).lineTo(0.483, -0.894).close().moveTo(-0.19, 0.287).lineTo(-0.211, 0.225).lineT... | 18 | 146 | 1.278301 |
train_abd29759fb916b5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.118, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.212).sweep(cq.Workplane('YZ').spline([(-0.118, 0.513), (0.348, 0.913), (0.813, 0.913), (1.279, 0.513)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.138, -0.435, -1.06), normal=(0... | 3 | 13 | 0.231915 |
train_9a1497eae064fb59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.294, 0.187, -0.463), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.247, 0.245).extrude(0.106)
result = result.union(cq.Workplane(cq.Plane(origin=(0.294, 0.264, -0.35), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.036, 0.215).lineTo(0.036, 0.121).line... | 32 | 229 | 0.533499 |
train_97f595d80448f6a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.423, -0.64), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.57).sweep(cq.Workplane('YZ').spline([(-0.423, -1.148), (-0.211, -1.137), (0.003, -1.078), (0.216, -0.846), (0.429, -0.433), (0.642, -0.201), (0.855, -0.142), (1.068, -0.131)]))
result... | 5 | 13 | 1.721673 |
train_0bed885d88d2fd7f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.811, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.675, 1.811).lineTo(0, 0.811).lineTo(-0.121, 0.632).lineTo(-0.675, 1.454).lineTo(-0.675, -0.189).lineTo(0.675, -0.189).lineTo(0.121, 0.632).lineTo(0.675, 1.454).lineTo(0.675, 1.811).cl... | 7 | 54 | 0.582241 |
train_4c359ef339cfaf13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.045, 0, -0.45), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.45, 0.345).lineTo(0.45, -0.255).lineTo(0.15, -0.255).lineTo(0.15, -0.955).lineTo(-0.45, -0.955).lineTo(-0.45, 1.045).lineTo(0.15, 1.045).lineTo(0.15, 0.345).lineTo(0.45, 0.345).close()... | 5 | 88 | 2.80742 |
train_43dbed7f90b4ea28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.04, 0.757, 0.249), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.238).workplane(offset=0.232).circle(0.233).workplane(offset=0.265).circle(0.254).loft()
result = result.edges().chamfer(0.103)
result = result.union(cq.Workplane(cq.Plane(origin=(0... | 6 | 27 | 0.098342 |
train_27fdbe9817f6455e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.517, -0.04, -0.218), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.011, 0.146).threePointArc((-0.061, 0.126), (-0.115, 0.073)).lineTo(-0.157, 0).lineTo(-0.115, -0.073).threePointArc((-0.061, -0.126), (0.011, -0.146)).threePointArc((0.084, -0.126),... | 18 | 156 | 0.080902 |
train_076897bbef65f562 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.465, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.771, 0.861).threePointArc((0, 0.07), (-0.771, 0.861)).lineTo(0.771, 0.861).close().extrude(1.458)
result = result.edges().chamfer(0.063)
result = result.faces('>Z').shell(-0.056)
result =... | 23 | 44 | 0.414829 |
train_91b008568d7ac334 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.3), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.952, 2).extrude(0.601)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.3, -1.569), normal=(1, 0, 0), xDir=(0, 1, 0))).rect(0.915, 0.271).moveTo(0.037, -0.052).lineTo(0.098, -0.052).line... | 14 | 66 | 1.912831 |
train_7590e6d392148e99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.619, 2).extrude(0.578)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.597, 0.263, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.447, 0.325).extrude(0.123))
result = result.cut(cq.Wo... | 22 | 229 | 1.180657 |
train_ea961a2f722bd90a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, -0.001, -0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.009, -0.632).lineTo(0.986, -0.608).lineTo(0.983, 0.635).lineTo(-1.014, 0.617).close().center(-0.283, 0.175).rect(0.218, 0.146).center(0.566, 0).circle(0.093).moveTo(-0.648, -0.28... | 14 | 71 | 0.628892 |
train_152467897f4837d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.047, -0.475, 0.094), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.083, -0.401).lineTo(-0.093, -0.277).lineTo(-0.102, -0.154).lineTo(-0.136, 0.277).lineTo(-0.339, 0.277).lineTo(-0.329, 0.401).lineTo(0.287, 0.401).lineTo(0.296, 0.277).lineTo(0.3... | 5 | 37 | 0.134345 |
train_6a002b2bb6faf077 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.502), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.793).extrude(0.796)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.09, 0.291), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.614).extrude(0.049))
result = result.union(cq.Wor... | 16 | 74 | 2.683351 |
train_7ca4a849a70b260f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.555, -0.233, 0.087), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.098).sweep(cq.Workplane('XY').spline([(0.555, 0.158), (0.68, 0.321), (0.805, 0.329), (0.931, 0.237), (1.056, 0.099), (1.181, -0.004), (1.306, -0.012), (1.431, 0.08), (1.556, 0.158... | 8 | 32 | 0.037572 |
train_1d26d50d8785b3e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.298, -0.003, 0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.686, -0.665).lineTo(0.68, -0.642).lineTo(0.702, 0.661).lineTo(-0.686, 0.671).close().moveTo(-0.186, 0.141).lineTo(0.184, 0.138).lineTo(0.183, 0.072).lineTo(0.035, 0.072).lineTo(0.0... | 18 | 239 | 0.447728 |
train_3573411c398cf609 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.281, -0.76), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.004, -0.004).lineTo(-0.004, -0.001).lineTo(-0.001, -0.001).lineTo(-0.001, 0.001).lineTo(-0.004, 0.001).lineTo(-0.001, 0.004).lineTo(0.001, 0.004).lineTo(0.001, 0.001).lineTo(0.004, 0.0... | 3 | 27 | 0.000057 |
train_5ae4047c09e93680 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.867, 0.723, 0.141), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.615, 1.837).lineTo(-0.623, 0.266).lineTo(-0.258, -0.393).lineTo(0.623, 0.599).lineTo(-0.615, 1.837).close().extrude(1.733)
result = result.edges().chamfer(0.152)
result = result.c... | 10 | 124 | 2.32686 |
train_ca847f6b0dad4004 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.056, 0.329), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.901, 0.279).lineTo(-0.601, -0.12).lineTo(-0.3, -0.519).lineTo(0.3, -0.519).lineTo(0.3, -0.279).lineTo(-0.3, -0.279).lineTo(-0.42, -0.12).lineTo(-0.601, 0.12).lineTo(-0.651, 0.186).li... | 4 | 34 | 0.60732 |
train_b8f48d571b5298f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.722, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.875, 1.637).lineTo(-0.875, -0.112).lineTo(0.875, -0.112).lineTo(0.875, 0.692).lineTo(-0.071, 0.692).lineTo(-0.071, 1.637).lineTo(-0.875, 1.637).close().extrude(2)
result = result.edges()... | 7 | 50 | 3.887523 |
train_383efc9e79c2a725 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.137, 0.03, 0.361), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.923, 0.799).lineTo(-0.923, 0.799).lineTo(-0.616, 0.267).lineTo(-0.308, -0.267).lineTo(-0.923, -0.267).lineTo(0, -0.799).lineTo(0.923, -0.267).lineTo(0.308, -0.267).lineTo(0.616, 0.2... | 13 | 153 | 1.586698 |
train_52a43ccb3a901b19 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.323, -0.088, 0.009), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.325, 1.485).lineTo(-0.025, 0.379).lineTo(0.325, -0.912).lineTo(-0.325, -0.912).lineTo(-0.325, 1.485).close().extrude(0.646)
result = result.edges().fillet(0.06)
result = result.c... | 6 | 38 | 0.449567 |
train_ccc2f6456d111b29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.662, 0.085, -0.571), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.716).lineTo(0, 0.287).lineTo(-0.429, 0.287).lineTo(-0.429, -0.141).lineTo(0, -0.141).lineTo(0, -0.571).lineTo(0.429, -0.571).lineTo(0.429, 0.716).lineTo(0, 0.716).close().extru... | 26 | 210 | 0.87996 |
train_36b7b861ce704538 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.039, 0.041), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.212).sweep(cq.Workplane('YZ').spline([(-0.912, -0.048), (-0.367, -0.048), (0.178, -0.048), (0.447, 0.212), (0.716, 0.473), (0.986, 0.733)]))
result = result.edges().fillet(0.099)
resul... | 12 | 37 | 0.30893 |
train_92204af1c68a2368 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.246, -0.047, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.121, 0.278).threePointArc((0, 0.561), (0.121, 0.278)).threePointArc((0, -0.466), (-0.121, 0.278)).close().extrude(0.348)
result = result.edges().fillet(0.056)
result = result.union(... | 5 | 36 | 0.266147 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.