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_49acf1168d507366 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.144), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.167, 0.25).lineTo(-1, 0.25).lineTo(-1, 0.583).lineTo(1, 0.583).lineTo(1, -0.583).lineTo(-0.167, -0.583).lineTo(-0.167, 0.25).close().extrude(0.288)
result = result.edges().fillet(0.118)
r... | 12 | 38 | 0.433298 |
train_a43ebff0c91a8f43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.708), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.686).workplane(offset=0.723).circle(0.993).workplane(offset=0.692).circle(0.842).loft()
result = result.edges().chamfer(0.354)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.403, -0.2... | 7 | 30 | 2.492413 |
train_5da6ac8127ba2c45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.935, -0.208, 0.017), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.202, -0.065).lineTo(-0.202, 0.137).threePointArc((-0.278, 0.337), (-0.202, 0.538)).lineTo(-0.202, 0.727).lineTo(0.278, 0.727).lineTo(0.278, 0.505).lineTo(0.278, 0.17).lineTo(0.27... | 5 | 63 | 0.310436 |
train_a00be24f923676c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.043, 0.768, -0.457), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.102, 0.27).threePointArc((0, 0.292), (0.102, 0.27)).threePointArc((0.216, 0.168), (0.248, 0.018)).threePointArc((0.216, -0.082), (0.146, -0.16)).threePointArc((0, -0.206), (-0.14... | 14 | 214 | 1.149954 |
train_0b92d71c208dd50a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.268, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.689, 0.268).lineTo(0.233, 0.268).lineTo(0.233, 0.657).lineTo(0.602, 0.657).threePointArc((0.667, 0.468), (0.689, 0.268)).threePointArc((0.667, 0.068), (0.602, -0.121)).lineTo(0.233, -0.1... | 19 | 68 | 1.267856 |
train_69d062d422e8aa1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.194, -0.738, 0.925), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.116, 0.74).lineTo(-1.099, -0.558).lineTo(-1.116, 2.028).lineTo(1.116, 0.74).close().revolve(angleDegrees=90, axisStart=(1.116, 0.74), axisEnd=(-1.099, -0.558))
result = result.edge... | 15 | 86 | 1.013464 |
train_ba2b213c04f39c9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.598), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.458, 2).extrude(1.195)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.102, 0.181, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.75, 0.188).extrude(0.151))
result = result.cut(cq.W... | 20 | 165 | 2.135522 |
train_7d0401ce6abcda2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.951, 0.261), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.071, 0.049).threePointArc((0.076, 0.049), (0.08, 0.048)).threePointArc((0.12, 0), (0.08, -0.048)).lineTo(0.071, -0.049).threePointArc((0.066, -0.049), (0.061, -0.048)).lineTo(-0.09, -0... | 2 | 14 | 0.027659 |
train_c704d154cb4c7a82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.402, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.52, 0.402).threePointArc((-0.316, -0.011), (0.136, -0.1)).threePointArc((0.415, 0.088), (0.52, 0.408)).lineTo(0.034, 0.276).threePointArc((-0.079, 0.299), (-0.13, 0.402)).lineTo(-0.13, 0.... | 8 | 40 | 1.002665 |
train_51682741e210e4e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.185, -1.354, 2.633), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1.877, -1.541).threePointArc((2.103, -1.084), (2.209, -0.588)).threePointArc((2.085, 0.296), (1.597, 1.042)).threePointArc((-0.375, 1.541), (-1.795, 0.084)).lineTo(-2.209, -1.541).li... | 10 | 37 | 0.954407 |
train_442ef40ac6b5742d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.869, 0.023, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.509).sweep(cq.Workplane('XY').spline([(0.869, -0.612), (1.557, -0.612), (2.108, -0.413), (2.659, -0.215)]))
result = result.edges().chamfer(0.407)
result = result.union(cq.Workplane(cq.... | 3 | 6 | 0.390654 |
train_d66adc2e230c2e34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.741), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.933, 0.385).threePointArc((0.982, 0.567), (0.801, 0.616)).lineTo(-0.933, -0.385).threePointArc((-0.982, -0.567), (-0.801, -0.616)).lineTo(0.933, 0.385).close().extrude(1.483)
result = resu... | 3 | 17 | 0.807122 |
train_195220b2b7da1108 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.842, -0.033, 0.81), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.188).sweep(cq.Workplane('XZ').spline([(0.842, -0.155), (1.258, -0.136), (1.673, 0.057), (2.088, 0.251), (2.503, 0.27)]))
result = result.edges().fillet(0.044)
result = result.cut(cq... | 4 | 8 | 0.042647 |
train_87203eab8aadbf98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.43, -0.458, -0.274), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.726, 0.809).lineTo(0.726, 0.051).lineTo(-0.726, 0.051).lineTo(-0.726, 0.809).lineTo(0.726, 0.809).close().extrude(0.917)
result = result.edges().chamfer(0.047)
result = result.uni... | 4 | 123 | 1.030644 |
train_3bf8f08e5d5771d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.539, 0.011, -0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.923, 0.081).extrude(0.179)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.447, 0.035, -0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.107, 0.018).extrude(0.07))
result = re... | 8 | 39 | 0.011368 |
train_9ae9cd335ebbeff4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.676, -0.24, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.587).workplane(offset=0.181).circle(0.708).workplane(offset=0.206).circle(0.608).workplane(offset=0.224).circle(0.729).workplane(offset=0.249).circle(0.715).workplane(offset=0.234).cir... | 8 | 24 | 0.899706 |
train_2b135c634a6dde8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.113, 0.545, 0.018), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.04, -0.183).lineTo(-0.058, -0.109).lineTo(-0.135, -0.083).lineTo(-0.187, -0.095).lineTo(-0.227, -0.059).lineTo(-0.219, -0.013).lineTo(-0.165, -0.013).lineTo(0.136, -0.095).lineTo(0... | 14 | 196 | 0.592867 |
train_1d7a060111ffce85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.31), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.204, 2).extrude(0.62)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.083 * math.cos(2.855 + 2 * math.pi * 0 / 8), 0.309 + 0.083 * math.sin(2.855 + 2 * math.pi * 0 / 8), -1.093), norm... | 14 | 11 | 1.469653 |
train_2d98d4ea681a8cd5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.305, 0.428, -0.036), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.036, 0.053).lineTo(1.036, 0.053).lineTo(1.036, 0.558).lineTo(-0.197, 0.558).lineTo(-1.036, 0.053).close().extrude(0.729)
result = result.edges().fillet(0.028)
result = result.uni... | 8 | 52 | 0.453827 |
train_61f31488a77ad14d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.575, 0.426, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.289, 0.865).threePointArc((0.375, 0.75), (0.426, 0.616)).threePointArc((0.439, 0.502), (0.426, 0.387)).threePointArc((0.375, 0.253), (0.289, 0.137)).lineTo(0.242, 0.184).threePointArc(... | 17 | 125 | 0.468083 |
train_b7987089d1527548 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.081, -0.003, 0.814), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.381, -0.997).lineTo(-0.265, -0.997).lineTo(-0.265, 0.616).threePointArc((0, 0.35), (0.265, 0.616)).lineTo(0.265, 0.342).threePointArc((0.351, 0.467), (0.381, 0.616)).threePointAr... | 2 | 9 | 0.017939 |
train_eb8b0c006d6058df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.074, 0.273, -0.155), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.074).lineTo(0.25, 1.074).lineTo(0.25, -0.926).lineTo(-0.25, -0.926).lineTo(-0.25, -0.676).lineTo(0, -0.676).lineTo(0, 1.074).close().extrude(0.545)
result = result.edges().fill... | 15 | 158 | 0.24196 |
train_fb121630df6112a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.179, 0.289, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.095, -0.019).lineTo(-0.094, 0.009).lineTo(-0.038, 0.009).lineTo(-0.038, 0.047).lineTo(0.038, 0.047).lineTo(0.038, -0.019).lineTo(0.095, -0.019).lineTo(0.095, -0.047).lineTo(0.038, -0.0... | 3 | 28 | 0.078885 |
train_2ebf8e014dd16215 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.522, -0.595), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.046, -0.023).threePointArc((0.03, -0.03), (0.023, -0.046)).lineTo(0.023, -0.023).lineTo(-0.023, -0.023).lineTo(-0.023, -0.046).threePointArc((-0.03, -0.03), (-0.046, -0.023)).lineTo(-... | 1 | 14 | 0.001777 |
train_26c09ec31c35d56d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.209), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.383).extrude(0.335)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.153 + 0.0255, 0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.017, -0.012).lineTo(0.016, -0.012).lineTo(0... | 11 | 220 | 0.250251 |
train_1d2c5129536dfb41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.87, -0.017, -0.045), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.524, 0.506).lineTo(-0.524, -0.506).lineTo(0.524, -0.506).lineTo(0.524, 0.506).lineTo(-0.524, 0.506).close().sweep(cq.Workplane('XZ').spline([(-0.001, -0.906), (0.289, -0.899), (... | 3 | 18 | 2.32249 |
train_9acc278fae1eda27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.14, 1.191, -0.006), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.636).lineTo(0.296, 0.123).threePointArc((0.592, 0.636), (0.296, 1.149)).threePointArc((-0.296, 1.149), (-0.592, 0.636)).lineTo(0, 0.636).close().extrude(0.242)
result = result.e... | 18 | 102 | 0.20405 |
train_edc70f45d19251cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.408, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.547, -0.579).lineTo(-0.547, -0.107).lineTo(0.633, 1.395).lineTo(0.633, 1.147).lineTo(-0.038, 1.147).lineTo(-0.299, -0.331).lineTo(-0.051, -0.331).lineTo(-0.051, -0.579).lineTo(-0.547, -0... | 2 | 19 | 0.177594 |
train_ff6d459be8a0039c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.063, 0.615, -0.166), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.398, -0.158).lineTo(0.398, 0.158).lineTo(-0.24, 0.158).threePointArc((-0.398, 0), (-0.24, -0.158)).lineTo(0.398, -0.158).close().sweep(cq.Workplane('YZ').moveTo(0.473, -0.169).spl... | 20 | 180 | 0.390094 |
train_f8a8e43b853f783b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.383, -0.124, -0.102), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.514, 1.087).threePointArc((-0.66, 1.026), (-0.72, 0.881)).lineTo(-0.72, -0.064).threePointArc((-0.715, -0.107), (-0.703, -0.148)).threePointArc((-0.685, -0.18), (-0.661, -0.208)... | 16 | 198 | 2.135679 |
train_9d0db5ac49e38cc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.252, 0.082, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.14).sweep(cq.Workplane('XY').spline([(-1.028, 0.082), (-0.252, 0.214), (0.524, 0.069)]))
result = result.edges().fillet(0.107)
result = result.union(cq.Workplane(cq.Plane(origin=(0.721... | 15 | 66 | 0.05895 |
train_12dc0eaf47019ee6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.197, 0.004, -0.369), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.956, 0.186).lineTo(-0.803, 0.656).lineTo(-0.619, -0.503).lineTo(0.915, -0.665).lineTo(0.838, -0.416).lineTo(1.197, -0.041).close().moveTo(0, 0.191).lineTo(0.017, 0.196).lineTo(0.0... | 6 | 44 | 0.895081 |
train_06f24649de321f3d | 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.205).lineTo(-1, 0.087).lineTo(1, 0.087).lineTo(1, 0.323).lineTo(-1, 0.323).lineTo(-1, 0.205).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.089, 0))
result = result.edges().... | 7 | 85 | 0.57818 |
train_87463c76716b52c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.035, -0.134), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.594, 0.555).lineTo(-0.594, 0.555).lineTo(-0.594, -0.485).lineTo(0.594, -0.485).lineTo(0.594, 0.555).close().extrude(2)
result = result.edges().fillet(0.094)
result = result.union(cq.W... | 8 | 78 | 1.711355 |
train_2074b4934b6201d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.617, -0.278, 0.187), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.276, -0.641).lineTo(0.276, -0.322).lineTo(0.276, 1.196).lineTo(-0.276, 0.877).lineTo(-0.276, -0.641).close().extrude(0.89)
result = result.edges().fillet(0.089)
result = result.u... | 16 | 137 | 0.872806 |
train_d84b6fd2b155d3a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.099, 0, -0.451), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.983, 2).extrude(0.903)
result = result.union(cq.Workplane(cq.Plane(origin=(0.484, 0.416, 0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.106).extrude(0.348))
result = result.cut(cq.... | 15 | 154 | 1.453298 |
train_f93ef910f1869556 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.131, 0.346), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.555, 0.424).lineTo(-0.375, 0.05).lineTo(0, 0.081).lineTo(0.375, 0.05).lineTo(0.555, 0.424).lineTo(0, 0.424).lineTo(-0.375, 0.799).lineTo(-0.555, 0.424).close().revolve(angleDegrees=270... | 3 | 13 | 0.801174 |
train_583b64634e0a6ae1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.111, 0, -0.486), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.471, 0.675).extrude(0.368)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.648, 0, -0.392), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.704, 0.486).extrude(0.18))
result = result.u... | 10 | 48 | 0.265253 |
train_a356f2f6a330e537 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.906, 2).extrude(0.475)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.069, 0.14, -0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.028).extrude(0.044))
result = result.cut(cq.Workpl... | 12 | 49 | 0.830219 |
train_97876d998f10256c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.718, -0.391), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.284, 0.124).lineTo(-0.284, 0.844).lineTo(-0.174, 0.844).lineTo(-0.174, 0.408).lineTo(0.174, 0.408).lineTo(0.174, 0.844).lineTo(0.284, 0.844).lineTo(0.284, 0.124).lineTo(-0.284, 0.12... | 9 | 57 | 0.80572 |
train_b7a578ab0f558c38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.27, 0, -0.816), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.46, 1.506).extrude(1.631)
result = result.union(cq.Workplane(cq.Plane(origin=(0.718, 0.194, 0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.565, 0.345).extrude(0.319))
result = result.c... | 8 | 33 | 3.025197 |
train_300148f1626cc7ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.063, -0.661, -0.377), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.129).lineTo(-1.063, 0.129).lineTo(-1.063, 1.192).lineTo(-0.532, 0.661).lineTo(-0.532, 1.192).lineTo(0, 1.192).lineTo(1.063, 0.129).lineTo(0, 0.129).close().extrude(0.753)
resul... | 17 | 95 | 0.768144 |
train_4af468a585b41f27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.461, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.157, -0.236).lineTo(0.157, 0.079).lineTo(0.315, 0.079).threePointArc((0.203, 0.125), (0.157, 0.236)).lineTo(-0.157, 0.236).threePointArc((-0.203, 0.125), (-0.315, 0.079)).lineTo(-0.157, ... | 2 | 13 | 0.107003 |
train_154d761ce0d25aa8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.688, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).threePointArc((-0.117, -0.213), (-0.118, -0.214)).threePointArc((-0.16, -0.22), (-0.193, -0.191)).lineTo(-0.128, -0.122).lineTo(-0.099, -0.091).lineTo(0, 0.014).lineTo(0.193, 0.22).close().sweep(cq.... | 1 | 9 | 0.004287 |
train_f8f0d6f523938b45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.392, -0.507, -0.56), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.986, 0.986).extrude(0.986)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.515, 0.243, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.269, 0.625).extrude(0.394))
result =... | 17 | 60 | 1.020848 |
train_a39d6a250d5989d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.409, -0.454, -0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.821, 1.092).extrude(0.224)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.409, -0.401, 0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.612, 0.979).extrude(0.041))
result =... | 32 | 449 | 0.822562 |
train_78630a4303dad454 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.197, -0.267, -0.588), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.996, 1.466).extrude(1.175)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.278, 0.71, -0.407), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.204, 0.58).extrude(0.652))
result = ... | 13 | 113 | 1.687068 |
train_96815b2ddfc615ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.275, -0.568, -0.144), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.525).lineTo(-0.587, 0.525).lineTo(-0.587, 0.186).lineTo(0, -0.153).lineTo(0.587, 0.186).lineTo(0.587, 0.864).lineTo(0, 1.203).lineTo(0, 0.525).close().extrude(1.135)
result = ... | 32 | 336 | 1.14395 |
train_f1aa7d2f9c7fb596 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.164, 0.253, 0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.335, 0.385).extrude(0.167)
result = result.union(cq.Workplane(cq.Plane(origin=(0.353, 0.275, 0.122), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.051, 0.071).extrude(0.099))
result = resu... | 39 | 289 | 0.177985 |
train_ff80d68e1f9a2098 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.584), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.753, 2).extrude(1.168)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.283 * math.cos(6.203 + 2 * math.pi * 0 / 6), 0 + 0.283 * math.sin(6.203 + 2 * math.pi * 0 / 6), -0.759), normal... | 27 | 81 | 3.83891 |
train_981de438d5c3d55a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.827, 0.349), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.016, 0.393).lineTo(0.016, 0.033).lineTo(0.082, 0.033).lineTo(0.082, 0.098).lineTo(0.377, 0.098).lineTo(0.377, -0.393).lineTo(0.129, -0.393).lineTo(0.082, -0.348).lineTo(0.082, -0.393).l... | 3 | 146 | 0.564432 |
train_4c3b87bcb393b5ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.611, 0.086, -0.849), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.224, 0.192).lineTo(0.114, 0.081).lineTo(0.16, -0.136).lineTo(0.114, -0.146).lineTo(0, -0.032).lineTo(-0.104, -0.192).lineTo(-0.114, -0.146).lineTo(-0.16, 0.071).lineTo(-0.224, 0.... | 1 | 12 | 0.090563 |
train_cb9a5952a2765885 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.053, -0.053, -0.526), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.506, 1.894).extrude(1.051)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.656 + 0.201, 0.192, -1.756), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.074, -0.094).lineTo(0.074, ... | 27 | 241 | 2.948559 |
train_0a18d10a797fe89f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.281, -0.99, -0.69), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.31, 0.008).threePointArc((-0.31, 0.366), (0.31, 0.724)).lineTo(0.31, 0.008).close().extrude(1.979)
result = result.edges().chamfer(0.083)
result = result.union(cq.Workplane(cq.Plan... | 6 | 34 | 0.89139 |
train_9c121a9572b490ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.485, 0.145), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.244).sweep(cq.Workplane('YZ').spline([(-0.84, -0.331), (-0.342, -0.567), (0.195, -0.567), (0.693, -0.331), (0.693, -0.077), (0.195, 0.159), (-0.342, 0.159), (-0.84, -0.077)]))
result = ... | 7 | 29 | 0.823956 |
train_d6357fccd8d351e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.027, -0.531), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.807, 1.361).extrude(1.069)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.127, 0.306, -0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.089).extrude(0.185))
result = result.edge... | 18 | 112 | 2.222475 |
train_0c78fadeec91f363 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.226, 0, -0.418), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.549, 0.924).extrude(0.588)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.226, 0, -0.507), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.944, 0.591).extrude(0.764))
result = result.un... | 11 | 32 | 0.585993 |
train_2e102404583f53b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.159, -0.281, -0.418), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.438, 1.438).extrude(0.922)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.41, 0.148, -0.22), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.544, 0.609).extrude(0.453))
result = resu... | 23 | 122 | 0.874648 |
train_fe6ac7a66d4ef96f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.571), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.717).workplane(offset=0.15).circle(0.601).workplane(offset=0.206).circle(0.594).workplane(offset=0.215).circle(0.792).workplane(offset=0.201).circle(0.998).workplane(offset=0.186).circle(0... | 6 | 22 | 1.292323 |
train_abcefdfdcc0f1a34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.304, 0.137, 0.153), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.175, 0.764).lineTo(-0.463, -0.867).lineTo(-0.205, -0.867).lineTo(0.049, 0.575).lineTo(0.44, 0.717).lineTo(0.463, 0.995).lineTo(-0.175, 0.764).close().revolve(angleDegrees=180, axi... | 2 | 26 | 0.291386 |
train_6a49ce7f9bbbd2ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.122, 0.096, 0.424), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.045, 0.205).lineTo(-0.045, 0.101).lineTo(-0.149, 0.101).lineTo(-0.149, 0.011).lineTo(0.149, 0.011).lineTo(0.149, 0.205).lineTo(-0.045, 0.205).close().extrude(0.232)
result = resul... | 6 | 51 | 0.020876 |
train_86beac734c1ff7fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.767, 0.965, -0.145), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.56, 1.229).threePointArc((-0.855, 0.52), (-0.561, -0.19)).lineTo(0.147, 0.519).lineTo(0.855, 1.228).threePointArc((0.148, 1.52), (-0.56, 1.229)).close().extrude(1.421)
result = r... | 17 | 51 | 1.780555 |
train_26fc1a0ae891596a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, 0.037, -0.457), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.007, -0.005).lineTo(0.708, 0.737).lineTo(-0.007, 0.963).lineTo(-0.676, 0.701).lineTo(-0.973, 0.05).lineTo(-0.688, -0.734).lineTo(-0.004, -1.037).lineTo(0.722, -0.729).close().move... | 14 | 188 | 1.68293 |
train_7d9b64e47ef9263b | 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.252, 0.327).extrude(0.697)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.327), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.053).extrude(0.29))
result = result.union(cq.Workplane(c... | 11 | 78 | 0.058478 |
train_621646399d4b5d7a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.519, 0, -0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.594, 0.248).extrude(0.193)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.899, 0.032, -0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.203, 0.122).extrude(0.063))
result = res... | 8 | 55 | 0.055167 |
train_122184d1f300f975 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.378, 0.355, 0.022), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.749, 0.688).lineTo(0.749, 0.469).lineTo(1.022, 0.069).lineTo(-1.022, 0.069).lineTo(-1.022, 0.688).lineTo(0.749, 0.688).close().extrude(0.711)
result = result.edges().fillet(0.048)
| 2 | 32 | 0.811015 |
train_fe54835913186baf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.045, -0.767, -0.23), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.715, 0.233).lineTo(-0.715, -0.233).lineTo(0.715, -0.233).lineTo(0.715, 0.233).lineTo(-0.715, 0.233).close().transformed(offset=(0.085, 0.306, 0.141), rotate=(0, 45, 0)).moveTo(-0... | 3 | 10 | 0.372705 |
train_a84e8832d4701f79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.055, -0.121, -0.533), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.289, 0.225).threePointArc((0.177, 0.273), (0.066, 0.225)).lineTo(-0.207, 0.225).threePointArc((-0.33, 0.131), (-0.225, 0.016)).lineTo(0.066, 0.016).threePointArc((0.177, -0.032),... | 12 | 98 | 0.101925 |
train_b5b35143e5906dea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.208, 0.731, 0.031), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.113, -0.174).lineTo(-0.075, 0.194).lineTo(-0.113, 0.174).lineTo(-0.019, -0.01).lineTo(0.075, -0.194).lineTo(0.113, -0.174).close().sweep(cq.Workplane('XY').spline([(-0.559, 0.731),... | 13 | 242 | 0.522577 |
train_7b294499ed5a8668 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.452), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.819, 2).extrude(0.904)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.458, 0.3).lineTo(-0.458, -0.3).lineTo(0.458, -0.3).lineTo(... | 9 | 50 | 2.090221 |
train_70bed4d026a86c4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.179, -0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.871, 1.642).extrude(0.964)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.256, 0.294, 0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.163).extrude(0.194))
result = result.cut(cq... | 15 | 238 | 2.143233 |
train_535b3078c7600ce7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, 0.012, -0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.003, -0.802).lineTo(0.98, -0.8).lineTo(0.989, 0.778).lineTo(-1.011, 0.763).close().moveTo(-0.193, 0.217).lineTo(-0.218, 0.279).lineTo(-0.279, 0.306).lineTo(-0.341, 0.281).lineTo(-... | 16 | 123 | 0.235944 |
train_6fc4469ad6e57017 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.914, 0.043, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.666, -0.405).lineTo(-0.666, 1.134).lineTo(0.666, 0.364).lineTo(0.666, -0.405).lineTo(-0.666, -0.405).close().extrude(1.827)
result = result.edges().chamfer(0.181)
result = result.face... | 6 | 69 | 1.150728 |
train_a7aeb4ef7487b69b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.713, 0.036, 0.542), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.287, -0.215).lineTo(-0.287, 0.194).lineTo(-0.255, 0.194).lineTo(-0.287, 0.215).lineTo(0.287, 0.215).lineTo(0.287, -0.215).lineTo(0.255, -0.215).lineTo(0.255, -0.011).lineTo(-0.25... | 9 | 128 | 0.267511 |
train_bd6fb6a5d5cd41e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.129, 0.361, -0.055), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.08, -0.031).lineTo(0.101, 0.028).lineTo(0.084, 0.088).lineTo(0.035, 0.126).lineTo(-0.028, 0.129).lineTo(-0.08, 0.094).lineTo(-0.101, 0.035).lineTo(-0.084, -0.025).lineTo(-0.035, -... | 36 | 224 | 0.025886 |
train_b82d55e4618bec84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, 0.209, -0.194), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.008, 1.583).extrude(0.757)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.183, 0.864, 0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.493, 0.287).extrude(0.29))
result = resu... | 15 | 213 | 0.563537 |
train_0f0cf1c2c55eb634 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.543, 0, -0.868), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.457, 0.638).lineTo(0.457, 0.429).lineTo(0.128, 0.114).lineTo(-0.113, -0.638).lineTo(-0.457, -0.146).lineTo(-0.184, -0.185).lineTo(-0.169, -0.136).lineTo(-0.089, 0.114).lineTo(0.457, ... | 13 | 127 | 0.895291 |
train_0a503371021ea0e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.233, -0.048), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.134).sweep(cq.Workplane('XY').spline([(0.004, -0.076), (0.163, -0.306), (0.323, -0.306), (0.483, -0.076)]))
result = result.edges().chamfer(0.11)
result = result.union(cq.Workplane... | 5 | 29 | 0.093457 |
train_d2379b5ae5653b38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.318, -0.522), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.77, 1.364).extrude(0.882)
result = result.faces('<Z').shell(-0.053)
result = result.union(cq.Workplane(cq.Plane(origin=(0.054, -0.429, 0.354), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(... | 7 | 110 | 0.239286 |
train_3b2ca200296c7f00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, -0.831, -0.457), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.428, 0.063).lineTo(-0.428, 0.765).lineTo(0.362, 0.765).lineTo(0.362, 0.721).lineTo(0.428, 0.721).lineTo(0.428, 0.107).lineTo(0.362, 0.107).lineTo(0.362, 0.063).lineTo(-0.428, 0.0... | 13 | 70 | 0.400907 |
train_6345ee25b161ba89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.834), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.661, 2).extrude(1.668)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.393, 0.444, 0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.237).extrude(0.654))
result = result.cut(cq.Workpla... | 3 | 9 | 5.405865 |
train_f0ae0a49baf0e5ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.649, 0, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.702, 0.206).extrude(0.218)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.674, 0.023, -0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.131, 0.041).extrude(0.307))
result = res... | 6 | 31 | 0.036348 |
train_8adf913c2566f035 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.414, -0.092, -0.264), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.149, -0.455).lineTo(-0.149, 0.639).lineTo(0.149, 0.639).lineTo(0.149, -0.455).lineTo(-0.149, -0.455).close().extrude(0.461)
result = result.edges().fillet(0.015)
result = result.... | 7 | 64 | 0.165752 |
train_5dce6fab20a3350d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.568, 0.026, -0.016), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.096, 0.193).lineTo(0.096, 0.017).lineTo(0.133, 0.017).lineTo(0.133, 0.001).lineTo(-0.133, 0.001).lineTo(-0.133, 0.017).lineTo(-0.096, 0.017).lineTo(-0.096, 0.193).lineTo(0.096, 0.... | 30 | 144 | 0.082713 |
train_30e7679030e419f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.048, 0.002, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.297).lineTo(1, 0.564).lineTo(-1, 0.564).lineTo(-1, 0.297).lineTo(-0.867, 0.297).threePointArc((-0.645, 0.223), (-0.417, 0.172)).lineTo(-0.417, 0.084).threePointArc((-0.084, 0.044), ... | 8 | 50 | 0.393682 |
train_cd9a2687fc065bc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.449, 0.052), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.093).lineTo(-1, -0.093).lineTo(1, -0.093).lineTo(1, 0.093).lineTo(-1, 0.093).close().extrude(0.038)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.14, -0.405, 0.022), normal... | 30 | 111 | 0.015136 |
train_2ceeb44ba3673c9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.437, 0, -0.072), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.382, 0).lineTo(0.098, -0.595).threePointArc((0.382, 0), (0.098, 0.595)).lineTo(-0.382, 0).close().sweep(cq.Workplane('XZ').spline([(0.148, -0.931), (0.343, -0.92), (0.538, -0.85), (... | 2 | 5 | 0.771805 |
train_e445ee20b064daec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.276, 0.001, -0.045), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.011, 0.935).threePointArc((0.09, -0.999), (-0.09, 0.928)).threePointArc((-0.044, 0.998), (-0.02, 0.999)).close().sweep(cq.Workplane('XZ').spline([(-0.189, -0.155), (-0.145, -0.13... | 4 | 72 | 0.708684 |
train_527d0606331cb489 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.089, 0.178, -0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.711, 0.902).extrude(0.145)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.089, 0.178, 0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.247).extrude(0.028))
result = resul... | 27 | 227 | 0.083203 |
train_e8b4b55733a29f7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.095, 0.031, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.471, 0).lineTo(0.282, -0.326).lineTo(0.094, -0.652).lineTo(-0.094, -0.326).lineTo(-0.471, 0.326).lineTo(-0.094, 0.326).lineTo(0.094, 0.652).lineTo(0.282, 0.326).lineTo(0.471, 0).close()... | 2 | 13 | 0.717791 |
train_7eef451227998eb6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.314, 0.31), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.659, -0.263).lineTo(0.659, 0.233).lineTo(-0.663, 0.233).lineTo(-0.663, -0.233).lineTo(-0.688, -0.233).lineTo(-0.688, 0.263).lineTo(0.688, 0.263).lineTo(0.688, -0.263).lineTo(0.659, -0... | 2 | 13 | 0.157755 |
train_659a85048d9d0736 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.399, 0.578), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.288, -0.324).lineTo(0.288, -0.036).lineTo(0.216, -0.036).lineTo(0.216, 0.295).lineTo(0.288, 0.295).lineTo(0.288, 0.324).lineTo(-0.216, 0.324).lineTo(-0.216, 0.295).lineTo(-0.288, 0.295... | 2 | 29 | 0.42251 |
train_a9862804fa180b8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.586, -0.377, -0.84), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.225, 0.088).threePointArc((-0.191, 0.059), (-0.155, 0.031)).threePointArc((0.15, 0.199), (0.225, 0.539)).lineTo(-0.225, 0.088).close().extrude(1.02)
result = result.edges().chamf... | 6 | 42 | 0.15134 |
train_e7c52354b38c8d0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.658, 0.444, 0.161), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.559, 0.966).lineTo(-0.839, 0.966).lineTo(-0.839, 0.089).lineTo(0.839, 0.089).lineTo(0.839, 0.282).lineTo(-0.559, 0.282).lineTo(-0.559, 0.966).close().revolve(angleDegrees=90, axis... | 13 | 64 | 0.488487 |
train_8c5434918722b289 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.039, 0, 0.625), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.714, 0.459).lineTo(-0.459, -0.714).lineTo(0.714, -0.459).lineTo(0.459, 0.714).lineTo(-0.714, 0.459).close().extrude(1.251)
result = result.edges().chamfer(0.164)
result = result.cut(... | 18 | 259 | 1.311228 |
train_5a794313ea6f0f9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.138, -0.071, 0.461), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.539, 0.256).lineTo(-0.26, 0.171).lineTo(0.26, 0.171).lineTo(0.539, 0.256).lineTo(0.539, 0.026).lineTo(-0.539, 0.026).lineTo(-0.539, 0.256).close().extrude(0.143)
result = result.... | 4 | 71 | 0.045919 |
train_27d6c803440855aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.657, 0.145, -0.429), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.343, 0.184).lineTo(0.338, 0.184).lineTo(0.338, 0).lineTo(0, 0).lineTo(0, 0.224).lineTo(-0.298, 0.224).lineTo(-0.298, 0.228).threePointArc((-0.33, 0.215), (-0.343, 0.184)).lineTo(... | 13 | 298 | 0.43283 |
train_08ddfd94d2663104 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.004), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.317).sweep(cq.Workplane('XZ').spline([(-0.428, -0.666), (0.145, -0.757), (0.717, -1.219)]))
result = result.edges().chamfer(0.274)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.656... | 7 | 23 | 0.412154 |
train_645a45f68c385197 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.249, 0.306, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.937, 1.187).lineTo(0.937, 1.434).lineTo(0.184, 1.434).lineTo(0.184, 2.186).lineTo(-0.062, 2.186).lineTo(-0.062, 1.434).lineTo(-0.813, 1.434).threePointArc((-0.937, 1.311), (-0.813, 1.1... | 6 | 28 | 0.370151 |
train_e7fc1aca6d656cfc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.093, 0.298, -0.09), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.174).workplane(offset=0.401).circle(0.197).workplane(offset=0.347).circle(0.196).loft()
result = result.edges().fillet(0.138)
result = result.union(cq.Workplane(cq.Plane(origin=(0.... | 33 | 168 | 0.148343 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.