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_9e31f7c9acd3f1b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.105, -0.167, -0.67), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.255, 0.103).lineTo(-0.348, 0.011).lineTo(0.348, 0.011).lineTo(0.348, 0.103).lineTo(-0.255, 0.103).close().extrude(0.24)
result = result.edges().fillet(0.012)
result = result.unio... | 6 | 89 | 0.064509 |
train_1d5692618e14dc20 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.242, -0.018, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.516, 0.908).extrude(1.058)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.501, 0.178, 0.165), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.364, -0.122).lineTo(0.364, 0.122).l... | 21 | 83 | 0.939827 |
train_eb8132e6f583e735 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.28).extrude(0.404)
result = result.union(cq.Workplane(cq.Plane(origin=(0.54, 0.024, 0.295), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.087).extrude(0.229))
result = result.union(cq.Workp... | 9 | 38 | 0.309764 |
train_604e22ac9c8db903 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.418, -0.561, 0.071), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.406, 0.351).threePointArc((-0.431, 0.289), (-0.493, 0.264)).lineTo(-0.493, -0.326).threePointArc((-0.431, -0.351), (-0.406, -0.413)).lineTo(0.344, -0.413).lineTo(0.431, -0.413).l... | 27 | 160 | 1.487546 |
train_4f2af8caa2810816 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.322, 1, 0.058), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.423, 0.846).lineTo(0.423, -0.262).lineTo(-0.348, -0.262).threePointArc((-0.423, 0.292), (-0.348, 0.846)).lineTo(-0.154, 0.846).lineTo(0.423, 0.846).close().extrude(0.983)
result = resu... | 12 | 76 | 0.957206 |
train_ee596190953750b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.557), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.075).extrude(0.895)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.26 * math.cos(6.216 + 2 * math.pi * 0 / 4), 0 + 0.26 * math.sin(6.216 + 2 * math.pi * 0 / 4), -0.691), normal=(... | 22 | 95 | 1.688502 |
train_e489ff50ed170686 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.261, 0, 0.038), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.739, -0.036).lineTo(-0.676, 0.036).lineTo(0.739, 0.036).lineTo(0.739, -0.036).lineTo(-0.739, -0.036).close().extrude(0.045)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.33 +... | 61 | 462 | 0.010361 |
train_cb0ca59b6e0bb672 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.654, 0.679, 0.463), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.362, 0.78).lineTo(-0.564, 0.578).lineTo(-0.143, 0.158).lineTo(-0.261, 0.04).lineTo(-0.008, -0.213).lineTo(0.109, -0.095).lineTo(0.362, -0.347).lineTo(0.463, -0.247).lineTo(0.564, ... | 5 | 106 | 0.732755 |
train_76f306343004ce53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.011, -0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.511, 0.968).lineTo(0.513, 1.011).lineTo(0.527, 0.787).lineTo(0.082, 0.794).lineTo(0.109, -0.976).lineTo(-0.112, -0.989).lineTo(-0.092, 0.768).lineTo(-0.524, 0.782).close().cente... | 8 | 79 | 0.190389 |
train_eebf5f05cdd93f4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.291, 0.21, -0.118), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.417, 1.079).extrude(0.498)
result = result.union(cq.Workplane(cq.Plane(origin=(0.432, -0.505, 0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.036, 0.095).threePointArc((0.046, 0.08... | 8 | 67 | 0.811845 |
train_31dccd5375e98f6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.231).lineTo(-1, 0.071).lineTo(1, 0.071).lineTo(1, 0.231).lineTo(0.9, 0.331).lineTo(0.8, 0.231).lineTo(0.4, 0.231).lineTo(0.3, 0.331).lineTo(0.2, 0.231).lineTo(0.1, 0.331).lineTo(0, 0.231).l... | 2 | 30 | 0.380355 |
train_e973fa4ede814a66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.979, 1.36, 0.172), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 2.363).lineTo(1.097, 1.266).lineTo(0, 1.266).lineTo(0, 0.167).lineTo(-0.549, 0.716).lineTo(-1.097, 1.266).lineTo(0, 2.363).close().extrude(1.958)
result = result.edges().fillet(0.1... | 12 | 85 | 2.975796 |
train_d985674c85458673 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.75, 0.525), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.234).sweep(cq.Workplane('YZ').spline([(0.332, 0.29), (0.134, 0.37), (-0.052, 0.245), (-0.125, -0.018), (-0.045, -0.278), (0.143, -0.395)]))
result = result.edges().chamfer(0.128)
| 2 | 5 | 0.277456 |
train_5a98c9ea3e8a8d99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.079, 0.308, -0.105), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.287, 1.079).lineTo(-0.287, -0.921).lineTo(0.287, -0.921).lineTo(0.287, 1.079).lineTo(-0.287, 1.079).close().extrude(0.532)
result = result.edges().chamfer(0.135)
result = result.... | 19 | 181 | 0.593484 |
train_c473618a9e9f952f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.322, -0.232, -0.711), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.198, 0.614).lineTo(0.022, 0.614).lineTo(0.198, 0.438).lineTo(0.198, -0.575).lineTo(0.11, -0.575).lineTo(0.11, 0.35).threePointArc((0.058, 0.474), (-0.066, 0.526)).lineTo(-0.198, ... | 5 | 75 | 0.387605 |
train_50533320d528537e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.379, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.819, 0.71).lineTo(-0.819, 0.019).lineTo(-0.848, 0.019).lineTo(-0.848, 0.738).lineTo(-0.097, 0.738).lineTo(0.459, 0.048).lineTo(0.848, 0.048).lineTo(0.848, 0.019).lineTo(0.445, 0.019).line... | 1 | 14 | 0.214226 |
train_ed13472eafa2cfc6 | 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.157, 1.012).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.125, 0.336, -0.741), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.178).extrude(1.253))
result = result.cut(cq.Workplane(... | 5 | 24 | 1.880023 |
train_2cd7727f82f66d95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.168, -0.313, -0.345), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.344, 0.33).lineTo(0.344, 0.068).lineTo(-0.344, 0.068).lineTo(-0.344, 0.33).lineTo(0.344, 0.33).close().revolve(angleDegrees=270, axisStart=(0.344, 0.33), axisEnd=(0.344, 0.068))
... | 14 | 80 | 0.182549 |
train_85a21f290bac33cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.365, -0.41), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.5, 0.055).threePointArc((0.088, 0.223), (0.5, 0.674)).lineTo(-0.5, 0.674).lineTo(-0.5, 0.055).close().extrude(1.41)
result = result.union(cq.Workplane(cq.Plane(origin=(0.152, 0.076, -... | 4 | 18 | 0.45724 |
train_9d7b9f1007162893 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, 0.007, -0.525), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.906, 1.842).extrude(1.036)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.509, 0.369, -0.408), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.085, 0.145).extrude(0.082))
result =... | 10 | 157 | 1.734653 |
train_508b99f52eb5765e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.476, 0, -0.679), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.047, 0.632).extrude(0.8)
result = result.faces('>Z').shell(-0.044)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.236, -0.133, -0.395), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.... | 8 | 39 | 0.203959 |
train_4184c4562bf217b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 1).lineTo(1, -1).lineTo(-1, -1).lineTo(-1, -0.965).lineTo(-0.95, -0.915).lineTo(-0.95, -0.95).lineTo(0.95, -0.95).lineTo(0.95, 0.95).lineTo(0.915, 0.95).lineTo(0.965, 1).lineTo(1, 1).close()... | 1 | 11 | 0.162495 |
train_d058cb9940ed8626 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.039, -0.001, 0.079), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.908, 0.408).threePointArc((-0.044, -0.408), (0.908, 0.304)).threePointArc((0.907, 0.319), (0.898, 0.331)).threePointArc((0.878, 0.349), (0.859, 0.369)).threePointArc((0.833, 0.378... | 1 | 8 | 0.289717 |
train_de5d9f5a03a3e31c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.153, 0, 0.325), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.37, -1).lineTo(0.365, -1).lineTo(0.37, -0.266).lineTo(0.37, 0.242).lineTo(-0.37, 1).lineTo(-0.37, -1).close().extrude(0.787)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.362... | 3 | 15 | 1.031575 |
train_bbba4c8f71031c31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.126, -0.267, 0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.842, 0.016).lineTo(0.388, 0.705).lineTo(-0.404, 0.721).lineTo(-0.853, 0.014).lineTo(-0.442, -0.722).lineTo(0.41, -0.733).close().moveTo(-0.398, -0.268).lineTo(-0.218, -0.268).line... | 11 | 154 | 0.301394 |
train_151f70b081fa74b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.111, -0.071, -0.23), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.288, 0.541).extrude(0.461)
result = result.faces('>Z').shell(-0.023)
result = result.union(cq.Workplane(cq.Plane(origin=(0.305, -0.417, -0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 7 | 45 | 0.119866 |
train_bdd89cde953a430d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.046, -0.062, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.263, 0.211).threePointArc((0.217, 0.256), (0.263, -0.224)).lineTo(-0.263, 0.211).close().extrude(0.691)
result = result.edges().fillet(0.029)
result = result.union(cq.Workplane(cq.P... | 15 | 124 | 0.186804 |
train_66c9a62e99115cd7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.307, 0, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.386, 0.485).extrude(0.28)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.665, -0.074, -0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.67, 0.239).extrude(0.103))
result = result.... | 4 | 56 | 0.196712 |
train_d192058a526c76f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.694, 0.328), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.578, 0.612).extrude(0.514)
result = result.union(cq.Workplane(cq.Plane(origin=(0.039, 0.68, -0.842), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.068, 0.038).extrude(1.239))
result = result.... | 4 | 87 | 0.194424 |
train_0053d5cb4acefe89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.299, -0.655, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.595, -0.486).threePointArc((-0.745, -0.423), (-0.808, -0.273)).lineTo(-0.808, 0.832).threePointArc((-0.745, 0.983), (-0.595, 1.044)).threePointArc((-0.535, 1.069), (-0.51, 1.13)).lin... | 6 | 31 | 3.302646 |
train_30e1297620aec1f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.167, -0.022, 0.007), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.18, 0.135).lineTo(-0.18, 0.18).lineTo(0.18, 0.18).lineTo(0.18, -0.18).lineTo(-0.18, -0.18).lineTo(-0.18, 0.135).close().workplane(offset=0.091).moveTo(-0.166, 0.125).lineTo(-0.1... | 9 | 69 | 0.228582 |
train_8edcc1da331d79f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.035, -0.101, -0.447), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.08, 1.018).extrude(0.631)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.74, -0.197, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.26).extrude(0.127))
result = result... | 6 | 25 | 0.821991 |
train_b483bb9b35c70629 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.328, -0.079, -0.268), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.015, -0.051).lineTo(0.116, -0.051).lineTo(0.087, -0.022).lineTo(0.073, -0.036).lineTo(0.005, 0.031).lineTo(-0.015, 0.051).lineTo(-0.044, 0.051).lineTo(-0.116, -0.022).lineTo(-0.... | 12 | 96 | 0.118953 |
train_eacdedc3b7ef1e06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.322, 0, 0.181), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.582, 0.382).lineTo(0.582, 0.114).lineTo(-0.582, 0.114).lineTo(-0.582, 0.382).lineTo(0.582, 0.382).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.134, 0))
result = resul... | 11 | 79 | 0.507152 |
train_2102eddc1ee7241a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, -0.259, 0.034), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.266).sweep(cq.Workplane('YZ').spline([(-0.391, -0.355), (-0.348, -0.381), (-0.301, -0.381), (-0.258, -0.355), (-0.258, -0.328), (-0.301, -0.303), (-0.348, -0.303), (-0.391, -0.328)... | 5 | 136 | 0.537438 |
train_8999126357afa7c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, 0.168, 0.5), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, -0.186).lineTo(-0.5, 0.314).lineTo(0.5, 0.314).lineTo(0.5, -0.186).lineTo(-0.5, -0.186).close().revolve(angleDegrees=180, axisStart=(-0.5, -0.186), axisEnd=(-0.5, 0.314))
result = r... | 14 | 55 | 0.585861 |
train_7e18d5a03f2b986c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.032, 0.539, -0.117), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.379, -0.968).lineTo(0.379, -0.192).lineTo(0.379, -0.899).lineTo(-0.145, -0.899).lineTo(-0.145, -0.151).lineTo(0.379, -0.151).lineTo(0.379, 1.032).lineTo(-0.293, 1.032).threePointA... | 7 | 79 | 0.812476 |
train_6cd0553c05581229 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.16, 0, -0.767), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.87, 2).extrude(1.534)
result = result.union(cq.Workplane(cq.Plane(origin=(0.43, 0.152, -0.436), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.165).extrude(0.863))
result = result.cut(cq.Wo... | 4 | 17 | 2.508848 |
train_00e0aae30d7bbaec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.907, 0.616, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.83, 0.331).threePointArc((-0.582, 0.61), (-0.836, 0.884)).threePointArc((-0.622, 1.237), (-0.268, 1.452)).threePointArc((0.009, 1.494), (0.285, 1.446)).threePointArc((0.628, 1.23), (0... | 6 | 26 | 4.051195 |
train_cc108cb1e34f4362 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.4, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.193, 0.082).lineTo(-0.193, 0.304).lineTo(-0.193, -0.082).lineTo(0.193, -0.304).lineTo(0.193, 0.082).close().sweep(cq.Workplane('XY').spline([(-0.503, 0.4), (-0.304, 0.063), (-0.105, -0.105)... | 2 | 11 | 0.113334 |
train_58fde373093794bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.084, 0, 0.021), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.141, 0.157).threePointArc((-0.153, 0.153), (-0.157, 0.141)).lineTo(-0.157, 0.073).lineTo(-0.129, 0.045).lineTo(-0.129, 0.087).lineTo(-0.103, 0.087).lineTo(-0.061, 0.045).lineTo(-0.061... | 2 | 80 | 0.072948 |
train_a2a1eadd076b1c75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, 0.242, 0.455), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.043, 0.15).lineTo(-0.043, -0.076).lineTo(-0.236, -0.076).lineTo(-0.236, -0.13).lineTo(0.236, -0.13).lineTo(0.236, -0.076).lineTo(0.019, -0.076).lineTo(0.019, 0.15).lineTo(-0.043, 0... | 17 | 260 | 0.021887 |
train_7a594ad73831ddf8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.429, 0.142, -0.231), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.135, -0.171).lineTo(-0.424, 0.388).lineTo(-0.231, 0.581).lineTo(0.328, 0.021).lineTo(0.231, -0.075).lineTo(0.424, -0.267).lineTo(0.328, -0.364).lineTo(0.135, -0.171).close().extr... | 20 | 134 | 0.438608 |
train_846769089174ac95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.468, -0.33, -0.47), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.064, 1.064).extrude(0.743)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.415, -0.277, 0.27), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.479).extrude(0.074))
result = result... | 17 | 67 | 1.014758 |
train_043a009f873315ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.345, 0.046, -0.445), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.25, 0.799).threePointArc((0.001, 1.046), (0.25, 0.796)).lineTo(0.404, -0.435).lineTo(0.417, -0.537).lineTo(0.408, -0.62).threePointArc((-0.001, -0.954), (-0.409, -0.618)).lineTo(... | 8 | 90 | 0.602764 |
train_febc4b3e86c01d75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.072, -0.005, -0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.135, 0.759).extrude(0.151)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.018, -0.005, 0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.018, 0.44).extrude(0.024))
result =... | 28 | 138 | 0.240042 |
train_6b6fcc76c9ac3fb4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.092, 0.067, -0.137), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.335, 0.271).threePointArc((-0.437, 0.168), (-0.335, 0.066)).lineTo(-0.283, 0.066).lineTo(-0.283, 0.076).lineTo(-0.257, 0.076).lineTo(-0.257, 0.066).lineTo(-0.206, 0.066).lineTo(-... | 2 | 30 | 0.177125 |
train_b668ae0245f98a10 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.733, -0.086), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.193, 0.067).threePointArc((-0.177, -0.103), (-0.038, -0.202)).lineTo(-0.038, -0.434).threePointArc((-0.377, -0.218), (-0.395, 0.183)).lineTo(-0.356, 0.249).threePointArc((0, 0.434), ... | 3 | 23 | 0.311743 |
train_f020893ab57727cd | 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.609).workplane(offset=0.357).circle(0.566).workplane(offset=0.493).circle(0.523).workplane(offset=0.412).circle(0.481).workplane(offset=0.362).circle(0.438).workplane(offset=0.376).circle(0.39... | 8 | 30 | 0.636116 |
train_09da8d9966eb41f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.033, -0.252), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.028).extrude(0.505)
result = result.faces('>Z').shell(-0.033)
result = result.union(cq.Workplane(cq.Plane(origin=(0.111, 0.617, -0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.317... | 4 | 19 | 0.182249 |
train_d51c363cd96f591e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.19, -0.987, 0.444), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.354, -0.387).lineTo(0.354, -0.062).lineTo(-0.401, -0.151).lineTo(-0.401, -0.103).lineTo(0.354, -0.015).lineTo(0.354, 0.387).lineTo(0.401, 0.387).lineTo(0.401, -0.387).lineTo(0.354,... | 4 | 83 | 0.490274 |
train_c15f97fa6d9f6fdb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.031, 0.53, 0.098), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.294, -0.071).lineTo(0.294, 0.019).lineTo(-0.294, -0.071).lineTo(0.294, -0.071).close().sweep(cq.Workplane('YZ').spline([(0.378, 0.005), (0.291, 0.029), (0.195, 0.017), (0.135, -0.02... | 5 | 44 | 0.095409 |
train_cb552a5b9bb904e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.023, 0.103, -0.545), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.245).workplane(offset=0.28).circle(0.263).workplane(offset=0.274).circle(0.186).loft()
result = result.edges().fillet(0.146)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.0... | 18 | 245 | 0.251033 |
train_c227b038c213ec66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.31, 0, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.12, -0.31).lineTo(0.18, -0.31).lineTo(0.18, -0.23).lineTo(-0.06, -0.23).lineTo(-0.06, 0.25).lineTo(0.18, 0.25).lineTo(0.18, 0.33).lineTo(-0.06, 0.33).lineTo(-0.06, 0.69).lineTo(-0.12, 0.6... | 2 | 80 | 0.241289 |
train_2584271eeeb37a43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.123, -0.007, 0.144), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.68, -0.023).lineTo(1.68, -0.247).lineTo(1.68, 0.247).lineTo(-1.68, -0.023).close().extrude(0.29)
result = result.edges().fillet(0.142)
result = result.cut(cq.Workplane(cq.Plane(... | 8 | 65 | 0.1171 |
train_66fa01489ac1fab7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.181, -0.134, -0.417), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.446, 1.323).extrude(0.211)
result = result.union(cq.Workplane(cq.Plane(origin=(0.697, -0.084, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.341, 0.245).extrude(0.114))
result ... | 19 | 90 | 0.477682 |
train_17648d9ce574ebec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, 0.204, -0.259), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.936, 0.02).lineTo(0.459, 0.796).lineTo(-0.491, 0.78).lineTo(-0.931, 0.012).lineTo(-0.458, -0.834).lineTo(0.475, -0.821).close().moveTo(-0.256, -0.207).lineTo(0.26, -0.21).lineTo(0... | 11 | 34 | 0.493876 |
train_a968602fdc175520 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.583, 0, 0.087), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.006, 0.106).lineTo(0.006, -0.105).lineTo(0.417, -0.105).lineTo(0.417, -0.137).lineTo(0.006, -0.21).lineTo(-0.006, -0.21).lineTo(-0.006, 0.106).lineTo(-0.417, 0.105).lineTo(-0.417, 0.1... | 2 | 20 | 0.015906 |
train_d56610623a5c21f7 | 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.313, 1.412).extrude(2)
result = result.edges().fillet(0.06)
| 2 | 26 | 3.6936 |
train_5f33ec4f0ef9f2a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.799), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.351, 2).extrude(1.597)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.337, 0.204, -0.546), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.712, 0.671).extrude(0.678))
result = result.edges()... | 15 | 175 | 3.321474 |
train_af439d5affef76d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.386, -0.403, -0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.87, 1.193).extrude(0.3)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.278, -0.64, 0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.052).extrude(0.434))
result = result.... | 11 | 70 | 0.920678 |
train_56965ee01dcecf85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.8, 0.255, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.454, 0.151).threePointArc((0.064, -0.192), (-0.454, -0.151)).threePointArc((-0.064, 0.192), (0.454, 0.151)).close().sweep(cq.Workplane('XY').spline([(-0.8, -0.367), (-0.604, -0.051), (-0... | 1 | 4 | 0.254337 |
train_e69be9976500f7c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.499, -0.5, 0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.924).lineTo(-0.5, 0.835).lineTo(-0.049, 0.835).lineTo(-0.049, 0.766).lineTo(-0.497, 0.766).lineTo(-0.497, 0.624).lineTo(-0.049, 0.624).lineTo(-0.049, 0.073).lineTo(0.058, 0.073)... | 9 | 77 | 0.204513 |
train_3203baeca77c03d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.179, -0.152, -0.083), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.202, 0.6).lineTo(-0.202, 0.821).lineTo(0.202, 0.821).lineTo(0.202, -0.135).lineTo(0.257, -0.135).lineTo(0.257, -0.356).lineTo(0.202, -0.356).lineTo(0.202, -0.577).lineTo(-0.202, ... | 16 | 152 | 0.098409 |
train_ea1cd9297a902149 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.85, -0.881, -0.083), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.083, 1.137).threePointArc((-0.014, 1.395), (1.083, 1.482)).lineTo(1.083, 0.386).threePointArc((0.17, 0.315), (-0.721, 0.103)).lineTo(-1.083, 1.137).close().extrude(1.762)
result ... | 2 | 26 | 2.125267 |
train_e14da9051caddc8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.058, 0.328, -0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.283, 0.002).lineTo(0.195, 0.211).lineTo(0.003, 0.28).lineTo(-0.205, 0.201).lineTo(-0.29, -0.01).lineTo(-0.206, -0.201).lineTo(0, -0.284).lineTo(0.204, -0.202).close().moveTo(-0.14... | 7 | 29 | 0.011142 |
train_7d99e807e390a94e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.93, -0.363, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.916).workplane(offset=0.529).circle(0.501).workplane(offset=0.43).circle(0.475).workplane(offset=0.463).circle(0.782).workplane(offset=0.439).circle(0.967).loft()
result = result.edges... | 11 | 70 | 0.784282 |
train_d6374271458aafea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.683, 0, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.317, 0.634).threePointArc((0.317, 0), (-0.317, -0.634)).lineTo(-0.317, -0.4).lineTo(-0.317, 0.4).lineTo(-0.317, 0.634).close().sweep(cq.Workplane('XZ').spline([(-0.683, -1.168), (-0.... | 7 | 12 | 1.15045 |
train_2abcf542ffde6288 | 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.712).workplane(offset=0.175).circle(0.547).workplane(offset=0.166).circle(0.593).workplane(offset=0.153).circle(0.498).workplane(offset=0.156).circle(0.536).workplane(offset=0.154).circle(0.66... | 10 | 34 | 0.904568 |
train_eccf915a62e291c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.34, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.915, 0.663).threePointArc((-0.97, 0.34), (0.915, 0.017)).threePointArc((0.97, 0.34), (0.915, 0.663)).close().extrude(2)
result = result.edges().fillet(0.072)
result = result.cut(cq.Workplan... | 12 | 46 | 5.082963 |
train_c956cc4e68e4ff2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.051, -0.144), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.283).extrude(0.279)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.079, -0.087, -0.503), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.724, 0.146).extrude(0.381))
result = result... | 5 | 21 | 0.293029 |
train_8cf615eb08f39301 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.415).workplane(offset=0.423).circle(0.707).workplane(offset=0.428).circle(0.436).workplane(offset=0.376).circle(0.495).workplane(offset=0.396).circle(0.506).workplane(offset=0.384).circle(0.47... | 10 | 29 | 1.11936 |
train_526a4830c180de31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.031, 0.77, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.977, 0.011).lineTo(0.977, 0.055).lineTo(-0.955, 0.055).lineTo(-0.955, 0.861).lineTo(1, 0.861).lineTo(1, 0.908).lineTo(-1, 0.908).lineTo(-1, 0.011).lineTo(0.977, 0.011).close().workplane... | 2 | 19 | 0.295338 |
train_e8bbf7f27035962c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.173), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1).lineTo(0.223, 1).lineTo(0.223, -0.721).lineTo(0.384, -0.721).lineTo(0.446, -1).lineTo(-0.446, -1).lineTo(-0.446, -0.721).lineTo(-0.384, -0.721).lineTo(-0.223, 0).lineTo(-0.223, 1).line... | 7 | 53 | 0.427112 |
train_b82556e2cc71be02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.02, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.98, 1.27).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.287, 0.689, 0.491), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.182, 0.071).extrude(0.04))
result = result.cut(cq.Wor... | 13 | 71 | 4.739087 |
train_aca5124d6311fe22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.055, -0.758, -0.37), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.342, 0.009).threePointArc((0, 0.208), (-0.342, 0.009)).lineTo(0.342, 0.009).close().extrude(0.304)
result = result.edges().chamfer(0.066)
result = result.union(cq.Workplane(cq.Pla... | 6 | 74 | 0.062126 |
train_5ccd3fd0ed37a7f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.403, -0.139, -0.289), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.597, -0.659).lineTo(0, 0.659).lineTo(0.597, -0.659).lineTo(-0.597, -0.659).close().sweep(cq.Workplane('XZ').spline([(-0.403, -0.289), (-0.216, 0.012), (-0.028, 0.192), (0.16, 0... | 9 | 46 | 0.710115 |
train_c4e4eecfaac6c128 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.602, -0.008, 0.091), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.398, -0.164).lineTo(0.398, -0.127).lineTo(0.398, 0.148).threePointArc((0.386, 0.075), (0.35, -0.021)).threePointArc((0.328, -0.038), (0.302, -0.05)).lineTo(0.302, -0.036).lineTo... | 1 | 8 | 0.002465 |
train_87a4549a0c3c8f3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.156, 0.006, -0.259), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0).lineTo(0.224, 0).lineTo(0.224, 0.062).threePointArc((0.287, 0), (0.224, -0.062)).lineTo(0, -0.062).lineTo(-0.224, -0.062).threePointArc((-0.287, 0), (-0.224, 0.062)).lineTo(0, ... | 27 | 231 | 0.14214 |
train_ad993ff0bd881ca8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.063, 0.436, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.007, 0.8).extrude(0.179)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.25, 0.38, -0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.185).extrude(0.047))
result = result.union... | 25 | 182 | 1.009958 |
train_171773368b13eeff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.747), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.405, 0.799).extrude(1.747)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.177, 0.154, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.026).extrude(0.13))
result = result.cut(cq.Work... | 13 | 171 | 0.554167 |
train_c2a918b51a6fe4b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.916, -0.055, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.42).sweep(cq.Workplane('XY').spline([(0.437, 0.497), (-0.255, 0.67), (-0.634, 0.232), (-0.516, -0.48), (-0.08, -0.73), (0.516, -0.389), (0.657, 0.01)]))
result = result.cut(cq.Workpl... | 3 | 11 | 0.257082 |
train_3c9de726c9f0096a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.13, 0, -0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.177, 0.096).threePointArc((0.087, 0.099), (0.057, 0.184)).threePointArc((-0.057, 0.162), (-0.143, 0.085)).threePointArc((-0.177, -0.054), (-0.119, -0.184)).lineTo(0.177, 0.096).close()... | 6 | 22 | 0.04443 |
train_81d8d3b389355e7e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.57, -0.472, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.945, 1.15).lineTo(-0.985, 1.15).lineTo(-0.985, -0.206).lineTo(0.056, -0.206).lineTo(0.056, -0.172).lineTo(0.175, -0.172).lineTo(0.175, -0.206).lineTo(0.985, -0.206).lineTo(0.985, 1.15... | 1 | 18 | 0.170364 |
train_e37c0eb3dfcc3f50 | 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.485).workplane(offset=0.984).circle(0.417).workplane(offset=1.016).circle(0.54).loft()
result = result.edges().fillet(0.106)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.838, 0.122, 0.1... | 6 | 24 | 1.139598 |
train_2f81d7e53a2b9609 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.112, -0.66, -0.297), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.478, 0.909).lineTo(-0.478, -0.348).lineTo(0.478, -0.348).threePointArc((0.374, 0.202), (0.057, 0.664)).lineTo(-0.478, 0.909).close().extrude(1.66)
result = result.edges().fillet(... | 16 | 100 | 1.097804 |
train_99ee10c74096d688 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.071, -0.026, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.996, 0.854).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.257, -0.475, 0.324), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.022).extrude(0.203))
result = result.union(... | 15 | 105 | 1.590407 |
train_95f87a3d1ef0e28d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.267, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.25, 1.267).lineTo(0, 1.267).lineTo(0, 0.836).threePointArc((-0.046, 0.692), (-0.167, 0.6)).lineTo(-0.167, 1.267).lineTo(-0.25, 1.267).lineTo(-0.25, 0.586).lineTo(-0.25, 0.281).lineTo(-... | 3 | 18 | 0.257472 |
train_03933df88195ef0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.176, -0.012, -0.01), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.272, 0.278).lineTo(-0.272, -0.278).lineTo(-0.147, -0.278).lineTo(-0.147, -0.138).lineTo(0.272, -0.138).lineTo(0.272, 0.278).lineTo(-0.272, 0.278).close().sweep(cq.Workplane('XY').... | 4 | 24 | 0.492548 |
train_64889517c968989e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.669, -0.045, -0.061), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.455, 0.984).lineTo(0.455, 1.045).lineTo(-0.545, 1.045).lineTo(-0.545, -0.955).lineTo(0.545, -0.955).lineTo(0.455, -0.955).lineTo(0.455, -0.228).lineTo(-0.424, -0.228).lineTo(-0.4... | 4 | 62 | 1.235925 |
train_6b68ba3c5dfddc37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.338, -0.152, -0.358), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.639, 0.002).lineTo(0.34, 0.567).lineTo(-0.314, 0.586).lineTo(-0.662, -0.017).lineTo(-0.321, -0.552).lineTo(0.344, -0.543).close().moveTo(0.167, 0.001).lineTo(0.117, 0.117).lineTo... | 10 | 104 | 0.436535 |
train_cd7e24f2ec771e24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.186, 0.113, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.834, -0.496).lineTo(0.789, -0.511).lineTo(0.814, 0.507).lineTo(-0.807, 0.491).close().moveTo(0.119, 0.001).lineTo(0.062, 0.102).lineTo(-0.061, 0.105).lineTo(-0.119, 0).lineTo(-0.0... | 13 | 56 | 0.650745 |
train_0ef871742d391c2a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.323, -0.38, -0.629), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.249, -0.091).lineTo(0.373, 0.656).lineTo(0.249, 0.656).lineTo(0.149, 0.142).lineTo(0.05, 0.469).lineTo(-0.05, 0.469).lineTo(-0.149, 0.136).lineTo(-0.249, 0.656).lineTo(-0.373, 0.6... | 6 | 91 | 0.313164 |
train_920bba8204a9a0d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.05, 0, -0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.073, 0.047).extrude(0.002)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.052, 0, -0.31), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.053, 0.038).extrude(0.003))
result = result.un... | 9 | 227 | 0.053608 |
train_f15b0c7ccdd89120 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, 0.65, -0.007), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.005, 0.359).threePointArc((0, 0.364), (-0.005, 0.359)).lineTo(-0.005, -0.345).threePointArc((0, -0.35), (0.005, -0.345)).lineTo(0.005, 0.359).close().extrude(0.012)
result = result... | 3 | 14 | 0.00009 |
train_da5726651a13db63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.189), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.857, 0.5).lineTo(0.429, 0.5).lineTo(0.429, 1).lineTo(0.857, 1).lineTo(0.857, -1).lineTo(0.429, -1).lineTo(0.429, -0.5).lineTo(-0.857, -0.5).lineTo(-0.857, 0.5).close().extrude(0.52)
resul... | 15 | 143 | 1.082579 |
train_3d6c33d0db1b9202 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.543, -0.219, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 1.043).lineTo(0, 1.043).lineTo(0.5, 0.543).lineTo(1, 0.543).lineTo(1, 0.043).lineTo(-1, 0.043).lineTo(-1, 1.043).close().extrude(0.437)
result = result.cut(cq.Workplane(cq.Plane(ori... | 10 | 52 | 0.630939 |
train_ef397966daca7a35 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.62), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.618).extrude(1.195)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.082, 0.061, 0.434), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.231, 0.09).extrude(0.144))
result = result.cut(cq.Wor... | 15 | 33 | 3.553137 |
train_d09e5f589fab9425 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.883, 0.356, 0.101), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.799, 0.643).lineTo(0.484, 1.054).lineTo(-0.799, 0.069).lineTo(-0.484, -0.341).lineTo(0.799, 0.643).close().extrude(1.41)
result = result.edges().fillet(0.245)
result = result.union... | 15 | 88 | 0.669957 |
train_d3654d780815a998 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.613, 0.29, 0.253), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.052, 0.545).threePointArc((0, 0.598), (0.052, 0.545)).lineTo(0.052, -0.503).threePointArc((0, -0.555), (-0.052, -0.503)).lineTo(-0.052, 0.545).close().extrude(0.107)
result = resul... | 8 | 220 | 0.464463 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.