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_7c25f4c07f520fe8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.077, 2).extrude(0.613)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.431 + 0.108, -0.8 + 0.4, 0.223), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.051, 0.015).lineTo(-0.051, 0.071).l... | 22 | 184 | 0.994214 |
train_fd7e17c07b0a6f0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.205, 0.002, 0.828), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.619).workplane(offset=0.453).circle(0.703).workplane(offset=0.413).circle(0.788).workplane(offset=0.395).circle(0.542).workplane(offset=0.395).circle(0.33).loft()
result = result.... | 12 | 51 | 1.088204 |
train_1f2d51de78d296d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.13, -0.675), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.106, 0.562).lineTo(-0.28, -0.425).lineTo(-0.124, -0.425).lineTo(0.03, 0.448).lineTo(0.266, 0.534).lineTo(0.28, 0.702).lineTo(-0.106, 0.562).close().extrude(0.754)
result = result... | 12 | 94 | 0.158758 |
train_e03e2f6fd5978994 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.679, 2).extrude(0.072)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.672 + 0.168, -0.8 + 0.16, 0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.033, 0.065).lineTo(-0.033, 0.059)... | 21 | 266 | 0.242038 |
train_e209210dc3ee7e11 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.189, 0, -0.434), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.244, 0.542).threePointArc((-0.024, 0.6), (-0.244, 0.763)).lineTo(0.226, -0.726).threePointArc((0.234, -0.746), (0.244, -0.763)).lineTo(0.244, 0.542).close().sweep(cq.Workplane('XZ').sp... | 8 | 60 | 0.340884 |
train_037c3fdaa0ad8909 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, -0.358, -0.842), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.95, -0.642).lineTo(-0.539, -0.284).lineTo(-0.182, -0.445).lineTo(-0.673, -0.642).lineTo(0.95, -0.642).lineTo(0.673, -0.102).lineTo(0.363, 0.502).lineTo(-0.01, 1.227).lineTo(-0.727... | 8 | 79 | 2.869428 |
train_cde9b969846a469f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.013, -0.328, 0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.463, 0.227).threePointArc((-0.051, 0.051), (0.36, 0.227)).threePointArc((0.463, 0.433), (0.36, 0.638)).threePointArc((-0.051, 0.814), (-0.463, 0.638)).lineTo(-0.463, 0.227).close(... | 10 | 60 | 0.47731 |
train_be14ff23de4669d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.336, -0.483, -0.329), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.136, 0.504).lineTo(0.126, 0.506).lineTo(0.137, 0.122).lineTo(0.595, 0.135).lineTo(0.59, -0.131).lineTo(0.123, -0.15).lineTo(0.13, -0.504).lineTo(-0.132, -0.517).lineTo(-0.132, -0... | 23 | 189 | 0.801211 |
train_13c31c8ff5fd06da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.671, -0.554, 0.004), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.818, 0.079).threePointArc((-0.197, 1.067), (0.832, 0.522)).lineTo(1.003, 0.552).threePointArc((0.556, 1.119), (-0.154, 1.252)).threePointArc((-0.744, 0.923), (-1.003, 0.3)).three... | 3 | 56 | 0.523454 |
train_f942077e3e56ab24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, -0.248, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.768, 0.032).lineTo(0.539, 0.516).lineTo(-0.018, 0.78).lineTo(-0.554, 0.533).lineTo(-0.792, -0.003).lineTo(-0.533, -0.588).lineTo(0.013, -0.752).lineTo(0.548, -0.568).close().moveTo... | 9 | 53 | 0.521854 |
train_b2780d434aee32c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.823, 0, 0.528), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.131, -0.1).threePointArc((-0.098, 0.005), (-0.131, 0.109)).lineTo(-0.14, 0.146).lineTo(0.172, 0.07).threePointArc((0.177, 0.005), (0.172, -0.061)).lineTo(-0.14, -0.137).lineTo(-0.177, ... | 1 | 9 | 0.036019 |
train_7e962b369f99964e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.387, -0.166, 0.012), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.401, 1.669).extrude(0.253)
result = result.union(cq.Workplane(cq.Plane(origin=(0.2535, -0.166, 0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0).lineTo(0, -0.011).lineTo(-0.011... | 17 | 103 | 0.296039 |
train_6af80621720a4cca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.068, 0.651, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.735, -0.932).lineTo(0.735, -0.932).lineTo(0.735, -0.461).lineTo(-0.265, -0.461).lineTo(-0.265, 1.068).lineTo(-0.735, 1.068).lineTo(-0.735, -0.932).close().extrude(1.303)
result = resu... | 4 | 174 | 1.339055 |
train_4494b2c023bb011a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.46, -0.839, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.3, -0.161).lineTo(-0.3, 0.239).lineTo(0.3, 0.239).lineTo(0.3, -0.161).lineTo(0.7, -0.161).lineTo(0.7, 1.839).lineTo(0.3, 1.839).lineTo(0.3, 1.772).lineTo(-0.3, 1.772).lineTo(-0.3, 1.8... | 6 | 33 | 0.833064 |
train_9db3336e9a335642 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.386, -0.032, -0.12), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.625, -0.968).lineTo(0.625, 1.032).lineTo(-0.625, 1.032).lineTo(-0.625, -0.968).lineTo(0.625, -0.968).close().extrude(0.772)
result = result.edges().fillet(0.062)
result = result.u... | 9 | 33 | 1.860021 |
train_d2b3cbca4503574a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.358, 0.009, 0.052), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.64, -0.734).lineTo(0.626, -0.735).lineTo(0.635, 0.714).lineTo(-0.642, 0.716).close().moveTo(0, -0.131).lineTo(0.033, -0.045).lineTo(0.125, -0.041).lineTo(0.053, 0.017).lineTo(0.07... | 11 | 143 | 0.666757 |
train_18dc63089fa35614 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.032, -0.176, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.228, 1.033).lineTo(-0.336, 1.002).lineTo(-0.21, 0.562).lineTo(0.228, -0.97).lineTo(0.336, -0.939).lineTo(-0.102, 0.593).lineTo(-0.228, 1.033).close().extrude(0.524)
result = result.u... | 8 | 153 | 0.123835 |
train_c764c7a28605abdb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.202, -0.048, 0.095), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.348, 0.003).lineTo(0.348, 0.065).lineTo(-0.345, 0.065).threePointArc((-0.347, 0.034), (-0.348, 0.003)).lineTo(-0.102, 0.003).lineTo(0.348, 0.003).close().extrude(0.403)
result = r... | 29 | 218 | 0.017243 |
train_8e9ab1b8f2b7353d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.367, 0.298, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.418, -0.328).lineTo(0.418, -0.328).lineTo(0.418, 0.425).lineTo(-0.283, 0.534).lineTo(-0.418, -0.328).close().extrude(0.529)
result = result.edges().chamfer(0.106)
result = result.uni... | 19 | 119 | 0.625881 |
train_5ba9b1167a0e4cce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.245, 0.263, -0.605), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.931, 1.042).extrude(0.838)
result = result.union(cq.Workplane(cq.Plane(origin=(0.306, 0.883, -0.327), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.199, 0.234).extrude(0.477))
result = r... | 24 | 139 | 1.470936 |
train_0e5585d14fe0a7d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.261, 0.124, -0.431), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.478, 1.083).extrude(0.862)
result = result.faces('>Z').shell(-0.088)
result = result.union(cq.Workplane(cq.Plane(origin=(0.381, -0.636, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).re... | 9 | 113 | 0.569803 |
train_5518dbff997367ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.274), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.204).extrude(0.549)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.274, -1.057), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.191, -0.034).lineTo(-0.198, -0.034).lineTo(-0.214, -0... | 20 | 83 | 0.946078 |
train_206c17853e70d4e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.326, -0.659), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.549, -0.674).lineTo(0.706, 0.8).lineTo(-0.706, 0.8).lineTo(-0.549, -0.674).lineTo(0.549, -0.674).close().extrude(1.217)
result = result.edges().chamfer(0.255)
result = result.union(cq... | 20 | 59 | 1.664093 |
train_7610b0dc9e4224c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, 0.152, -0.722), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.499).lineTo(0.278, 0.499).lineTo(0.278, -0.465).lineTo(-0.278, -0.465).lineTo(-0.278, -0.079).lineTo(0, -0.079).lineTo(0, 0.253).lineTo(-0.278, 0.253).lineTo(-0.278, 0.499).lin... | 5 | 86 | 0.129597 |
train_57523aecc815a25a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.264), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.388, 2).extrude(0.528)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.243, 0.254, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.626, 1.092).extrude(0.321))
result = result.cut(cq.W... | 5 | 23 | 1.116953 |
train_c10249643fc39fec | 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.622, 1.344).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.142, 0.242, -0.14), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.027, 1.826).threePointArc((0.19, 1.84), (0.353, 1.851)... | 2 | 23 | 4.281547 |
train_34c0b0975d074934 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, -0.384, -0.844), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.614, 1.233).extrude(1.218)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.435, 0.471, -0.111), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.465, 0.258).lineTo(-0.465, -0.2... | 5 | 44 | 2.531948 |
train_ec2b5fd79f526936 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.066, 0.674), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.844, 0.644).lineTo(1, 0.644).lineTo(1, -0.511).lineTo(-0.844, -0.511).lineTo(-0.844, -0.262).lineTo(-1, -0.262).lineTo(-1, -0.012).lineTo(-0.844, -0.012).lineTo(-0.844, 0.644).close()... | 17 | 247 | 1.663711 |
train_449692b5d23ee353 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.094, -0.525, -0.059), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.392, 0.028).threePointArc((-0.406, -0.011), (-0.368, -0.029)).lineTo(0.406, -0.029).threePointArc((0.384, -0.002), (0.401, 0.029)).lineTo(-0.362, 0.028).lineTo(-0.392, 0.028).c... | 5 | 106 | 0.19586 |
train_a19989aab97a51fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.5, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.885, -0.5).lineTo(0.885, -0.5).lineTo(0.885, -0.192).lineTo(-0.269, -0.192).lineTo(-0.269, -0.038).lineTo(0.885, -0.038).lineTo(0.885, 0.5).lineTo(-0.885, 0.5).lineTo(-0.885, -0.5).close()... | 10 | 146 | 4.92827 |
train_d9d4a6f08d11b8db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.036, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.871, 0.51).extrude(1.667)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.434, 0.022, 0.025), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.075, 0.07).extrude(0.103))
result = result.cut(... | 13 | 81 | 0.691237 |
train_c6990ede943bf633 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.194), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.211, -0.272).threePointArc((0.221, -0.276), (0.217, -0.265)).lineTo(0.217, 0.265).threePointArc((0.221, 0.276), (0.211, 0.272)).lineTo(-0.211, 0.272).threePointArc((-0.212, 0.267), (-0.217,... | 7 | 73 | 0.340848 |
train_0e379e57595e5284 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.313, 0, 0.528), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.167, -0.393).lineTo(-0.182, -0.436).lineTo(-0.472, -0.334).lineTo(-0.472, 0.668).lineTo(-0.152, 0.554).lineTo(0.182, 0.436).lineTo(0.472, 0.334).lineTo(0.472, 0.027).lineTo(0.426, 0.... | 3 | 25 | 0.844124 |
train_860da1d09a2f1326 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.401, 0.115, -0.341), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.894, 0.861).extrude(0.683)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.208, 0.223, -0.208), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.534, 0.422).extrude(0.356))
result = res... | 8 | 52 | 0.868199 |
train_708a73a75fef89e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.706, -0.032, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.641).sweep(cq.Workplane('XY').spline([(0.768, -0.084), (0.557, 0.4), (0.274, 0.725), (-0.234, 0.664), (-0.669, 0.392), (-0.726, -0.252), (-0.36, -0.696), (0.123, -0.774), (0.539, -0.... | 1 | 3 | 0.321877 |
train_13767c7a0358ed75 | 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.714, 0.851).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.072, -0.115, 0.418), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.427, 0.45).extrude(0.597))
result = result.cut(cq.Workp... | 20 | 61 | 0.984679 |
train_1b7d4bee5d3d4957 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.129, -0.182, -0.846), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.742, 1.552).extrude(0.894)
result = result.union(cq.Workplane(cq.Plane(origin=(0.24, 0.77, -0.304), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.188).extrude(0.238))
result = result... | 17 | 130 | 3.734587 |
train_6ce2bb34515753f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.033, 0.119), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.439, 0.309).threePointArc((0.445, 0.393), (0.361, 0.398)).lineTo(0.316, 0.359).threePointArc((-0.318, 0.359), (-0.395, -0.27)).lineTo(-0.439, -0.309).threePointArc((-0.445, -0.393),... | 4 | 28 | 0.267266 |
train_95fd1846ff249e16 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.2, 0.056, -0.222), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.576, 0.549).extrude(0.382)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.27, 0.056, -0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.218).extrude(0.192))
result = result.u... | 10 | 107 | 0.217276 |
train_122f43e49bf0ea9f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.598, 0, 0.836), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.082, -0.029).lineTo(0.082, 0.029).lineTo(0.062, 0.029).lineTo(0.062, 0.013).lineTo(-0.062, 0.013).lineTo(-0.062, -0.021).lineTo(-0.082, -0.021).lineTo(-0.082, -0.029).lineTo(0.082, -0.0... | 3 | 23 | 0.008205 |
train_5f6c76df31c3937b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.018, 0.517, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.048, 0.552).lineTo(-0.145, 0.455).lineTo(-0.145, 0.359).lineTo(-0.048, 0.262).lineTo(-0.048, 0.359).lineTo(0, 0.407).lineTo(0.048, 0.359).lineTo(0.145, 0.359).lineTo(0.145, 0.455).lin... | 6 | 59 | 0.21397 |
train_b528a9751733f21e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.073, 0.091, -0.008), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.024, 0.035).lineTo(0.024, 0.051).lineTo(-0.024, 0.051).lineTo(-0.024, 0.003).lineTo(-0.008, 0.003).lineTo(0.024, 0.035).close().extrude(0.044)
result = result.edges().chamfer(0.004... | 8 | 149 | 0.117266 |
train_8cf41dff4ce92df1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.16, 0.136, -0.782), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.218, 0.26).lineTo(-0.218, 0.013).lineTo(0.218, 0.013).lineTo(0.218, 0.26).lineTo(-0.218, 0.26).close().extrude(0.32)
result = result.edges().fillet(0.034)
result = result.union(cq... | 5 | 35 | 0.035044 |
train_413db4254afc6a4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.418, -0.011, 0.042), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.582).workplane(offset=0.305).circle(0.53).workplane(offset=0.331).circle(0.479).workplane(offset=0.321).circle(0.427).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(-... | 3 | 23 | 1.237987 |
train_208ce3370c1a9729 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.465, 0.001, -0.098), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.508, -0.01).lineTo(0.387, 0.367).lineTo(0.02, 0.532).lineTo(-0.382, 0.381).lineTo(-0.535, 0.008).lineTo(-0.354, -0.373).lineTo(-0.019, -0.534).lineTo(0.382, -0.375).close().moveTo... | 18 | 249 | 0.218866 |
train_744ad567eaa2823c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.124, 0.018, 0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.027, 0.021).lineTo(-0.033, 0.021).lineTo(-0.029, 0.027).lineTo(-0.029, 0.057).lineTo(-0.069, 0.057).lineTo(-0.069, -0.021).lineTo(-0.033, -0.021).lineTo(-0.029, -0.027).lineTo(-0.0... | 14 | 117 | 0.013764 |
train_c7b4ef7ad3c80d52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.147, -0.161, -0.404), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.257, 1.679).extrude(1.002)
result = result.faces('>Z').shell(-0.092)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.199, -0.02, -0.598), normal=(0, 0, 1), xDir=(1, 0, 0))).r... | 26 | 29 | 0.728886 |
train_85e18b933338a220 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.022, 0.099, -0.284), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.28, 0.901).lineTo(-0.686, -0.568).lineTo(-0.099, -1.099).lineTo(0.316, -0.713).lineTo(0.435, -0.535).lineTo(0.731, -0.112).close().moveTo(-0.087, 0.365).lineTo(-0.125, 0.326).line... | 12 | 120 | 0.484487 |
train_b32fdfad3b0c32bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.367, 0, -0.086), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.214, -0.273).lineTo(-0.317, -0.273).lineTo(-0.317, -0.214).lineTo(-0.214, -0.214).lineTo(-0.214, 0.273).lineTo(0.214, 0.273).lineTo(0.214, 0.022).lineTo(0.317, 0.022).lineTo(0.317, -... | 4 | 45 | 0.082295 |
train_41601987d1f2f753 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.121, -0.073, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.013, -0.425).lineTo(0.1, 0.191).lineTo(0.137, 0.456).lineTo(-0.137, 0.456).lineTo(-0.137, -0.425).lineTo(0.013, -0.425).close().extrude(0.296)
result = result.edges().chamfer(0.0... | 7 | 140 | 0.38014 |
train_fc8d3634ab94906e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.332, 0, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 2.332).threePointArc((-0.499, 2.199), (-0.866, 1.832)).threePointArc((-1, 1.333), (-0.866, 0.834)).threePointArc((-0.499, 0.467), (0, 0.333)).threePointArc((0.499, 0.467), (0.866, 0.834))... | 1 | 9 | 0.086182 |
train_bade01a07f15e542 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.143, 0.5, 0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.038).lineTo(-0.5, 0.012).lineTo(0.445, 0.012).threePointArc((0.435, 0.026), (0.423, 0.038)).lineTo(0.48, 0.038).threePointArc((0.491, 0.025), (0.5, 0.012)).lineTo(0.5, 0.038).lin... | 25 | 83 | 0.39304 |
train_c1f1546ad111da94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.57, -0.33, 0.271), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.575, 0.031).lineTo(-0.575, 0.057).lineTo(-0.704, 0.057).lineTo(-0.704, 0.151).lineTo(0.704, 0.151).lineTo(0.704, 0.057).lineTo(0.729, 0.057).lineTo(0.729, 0.632).lineTo(-0.729, 0.6... | 13 | 98 | 0.456663 |
train_9583a6270c44d8cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.064, -0.175, -0.01), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.066, 0.936).lineTo(-0.014, 0.936).threePointArc((0.043, 0.913), (0.066, 0.856)).lineTo(0.066, 0.697).lineTo(0.066, -0.686).threePointArc((0.043, -0.743), (-0.014, -0.766)).lineTo(... | 6 | 93 | 0.078124 |
train_d226016b218423c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.585), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.289, 1).lineTo(0.289, -0.017).lineTo(-0.26, -0.017).lineTo(-0.289, 0).lineTo(-0.866, -1).lineTo(0.014, -0.492).lineTo(0.289, -0.967).lineTo(0.289, -0.333).lineTo(0.837, -0.017).lineTo(0.86... | 3 | 23 | 0.879371 |
train_688dee936af66281 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.241, -0.17, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.856, 0.72).extrude(0.186)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.179, 0.238, -0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.052).extrude(0.15))
result = result.... | 21 | 99 | 0.278149 |
train_397dd797e8485b25 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.647, 0.131, -0.282), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.019, 0.3).threePointArc((-0.144, 0.262), (-0.274, 0.157)).lineTo(-0.353, 0.157).lineTo(-0.353, -0.071).threePointArc((-0.333, -0.192), (-0.274, -0.3)).threePointArc((0.353, -0.23... | 7 | 42 | 0.288229 |
train_997d52bb29797728 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.02, -1, -0.12), normal=(0, -1, 0), xDir=(0, 0, 1))).lineTo(0.1, -0.055).threePointArc((-0.142, -0.17), (-0.181, -0.154)).lineTo(-0.111, -0.079).threePointArc((-0.304, -0.2), (-0.323, -0.239)).lineTo(-0.323, -0.305).threePointArc((-0.252, -0.383... | 2 | 64 | 0.375758 |
train_17cb9459f99d28a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.511, 0.723, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.351, 0.6).lineTo(-0.237, 0.786).lineTo(-0.579, 0.586).lineTo(-0.682, 0.393).lineTo(-0.501, 0.415).lineTo(-0.382, 0.213).lineTo(-0.073, 0.254).lineTo(0.137, 0.281).lineTo(0.537, 0.335)... | 2 | 26 | 0.899705 |
train_3b63e6918eb07c6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.788, -0.193, 0.865), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.865, -0.043).lineTo(-0.877, -0.043).lineTo(-0.877, 0.212).lineTo(-0.888, 0.212).lineTo(-0.888, -0.212).lineTo(-0.865, -0.212).lineTo(-0.865, -0.21).lineTo(-0.514, -0.043).lineTo... | 9 | 53 | 0.068338 |
train_c29f49af3df33d15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.403, 0.619, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.834, 0.597).threePointArc((0.208, 0.291), (0.834, -0.597)).lineTo(-0.834, 0.597).close().sweep(cq.Workplane('XY').spline([(0.403, 1.494), (0.872, 1.594), (1.342, 1.608), (1.81, 1.504)... | 2 | 8 | 0.194247 |
train_2d276a450d10ae68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.426, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.079, 0.276).lineTo(0.15, 0.276).lineTo(0.15, 0.45).lineTo(0.023, 0.45).lineTo(0.023, 0.576).lineTo(-0.15, 0.576).lineTo(-0.15, 0.276).lineTo(-0.079, 0.276).close().workplane(offset=0.357... | 3 | 64 | 0.665725 |
train_1cb869a9cedf0a27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.953, -1, -0.065), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.182, -0.315).lineTo(0.182, 1.315).lineTo(-0.182, 1.315).lineTo(0.182, -0.315).close().extrude(2)
result = result.edges().fillet(0.058)
result = result.union(cq.Workplane(cq.Plane(ori... | 5 | 29 | 0.526847 |
train_a28143fa5c26c3a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.803), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.457).extrude(1.606)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.271 * math.cos(2.217 + 2 * math.pi * 0 / 5), 0.803 + 0.271 * math.sin(2.217 + 2 * math.pi * 0 / 5), -2.103), no... | 22 | 84 | 4.466537 |
train_d431d8a4f55744cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.337, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.536, 0.874).lineTo(0.536, -0.199).lineTo(-0.536, -0.199).lineTo(-0.536, 0.719).lineTo(-0.443, 0.719).threePointArc((-0.399, 0.737), (-0.382, 0.781)).lineTo(-0.382, 0.874).lineTo(0.536, 0.8... | 6 | 49 | 1.162132 |
train_a5f816b5562eac64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.238, -0.067, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.524, 0.941).extrude(0.162)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.114, 0.005, 0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.231, 0.143).extrude(0.011))
result = ... | 17 | 66 | 0.238915 |
train_2d23664ba8c82ecc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.145, 0.015), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.241).sweep(cq.Workplane('XY').spline([(-1.184, -0.145), (-0.71, -0.457), (-0.237, -0.613), (0.237, -0.613), (0.71, -0.457), (1.184, -0.145)]))
result = result.edges().fillet(0.059)
res... | 3 | 9 | 0.350108 |
train_e25d4638f102f716 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, -0.143, -0.046), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.123).lineTo(-0.049, -0.123).lineTo(-0.049, 0.139).lineTo(0, 0.139).lineTo(0, 0.205).lineTo(0.016, 0.205).lineTo(0.049, 0.139).lineTo(0.049, -0.123).lineTo(0, -0.205).lineTo(0,... | 23 | 181 | 0.062031 |
train_cc990d683ce08c6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, -0.191, -0.015), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.571, -0.004).lineTo(0.401, 0.403).lineTo(0.001, 0.553).lineTo(-0.401, 0.395).lineTo(-0.544, 0.009).lineTo(-0.403, -0.377).lineTo(0.015, -0.549).lineTo(0.404, -0.379).close().moveT... | 19 | 118 | 0.595969 |
train_2b1c20f11e0a5c1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.05, 0.381, -0.309), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.506, 0.876).extrude(0.619)
result = result.union(cq.Workplane(cq.Plane(origin=(0.251, 0.537, 0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.051).extrude(0.178))
result = result.... | 4 | 22 | 0.533387 |
train_8b6e5612f2ac1ae0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.098, -0.522, -0.395), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.282, 0.616).lineTo(0.056, 0.225).lineTo(0.282, 0.225).lineTo(-0.056, 0.03).lineTo(-0.282, 0.421).lineTo(-0.169, 0.616).lineTo(0.056, 0.616).lineTo(-0.056, 0.811).lineTo(0.282, 0.... | 4 | 45 | 0.206493 |
train_c8c58ce938a21905 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.156, 0.119, -0.53), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.729, 0.835).extrude(1.184)
result = result.union(cq.Workplane(cq.Plane(origin=(0.005, -0.421, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, -0.16).lineTo(1, -0.08).threePointArc((... | 9 | 85 | 1.305508 |
train_5c67db59346f3535 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.123, -0.304, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.444, -0.877).lineTo(-0.444, 1.123).lineTo(0.444, 1.123).lineTo(0.444, -0.877).lineTo(-0.444, -0.877).close().extrude(0.607)
result = result.edges().fillet(0.108)
result = result.cut(... | 4 | 29 | 1.033532 |
train_cb1a8eb2f0603d25 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.295, -1, -0.127), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.15, 0.428).lineTo(-0.15, 0.428).lineTo(-0.15, -0.1).lineTo(0.15, -0.1).lineTo(0.15, 0.428).close().extrude(2)
result = result.edges().chamfer(0.077)
result = result.union(cq.Workplan... | 5 | 41 | 0.325582 |
train_6f66358bacd0c480 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.148, -0.141, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.051, 0.021).lineTo(1, 0.021).lineTo(1, 0.359).lineTo(-1, 0.359).lineTo(-1, 0.021).lineTo(-0.051, 0.021).close().extrude(0.264)
result = result.edges().chamfer(0.069)
result = result.... | 14 | 100 | 0.152724 |
train_5b0aca708e19cf9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.539, 0, -0.078), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.573, 0.213).extrude(0.135)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.502, 0.018, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.187, 0.127).extrude(0.046))
result = resul... | 29 | 236 | 0.116099 |
train_dcbccf40e4117e4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.599, 0.825, 0.195), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.127, 0.175).lineTo(-0.17, 0.041).lineTo(-0.241, -0.175).lineTo(-0.057, -0.041).lineTo(0.057, 0.041).lineTo(0.241, 0.175).lineTo(-0.127, 0.175).close().transformed(offset=(0.237, -... | 1 | 8 | 0.055966 |
train_2044f8088e01c9c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.286), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.494, 2).extrude(0.572)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.011), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.212, -0.218).lineTo(0.212, -0.241).lineTo(-0.212, -0.241).... | 15 | 81 | 1.17468 |
train_0731a948cbc919c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, -0.002, 0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.021, 0.008).lineTo(0.691, 0.696).lineTo(-0.004, 0.999).lineTo(-0.683, 0.732).lineTo(-0.987, -0.024).lineTo(-0.688, -0.685).lineTo(-0.023, -0.994).lineTo(0.685, -0.725).close().move... | 9 | 204 | 0.590114 |
train_370a60cd40b313bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.663, -0.07, -0.538), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.673, 1.043).extrude(0.773)
result = result.union(cq.Workplane(cq.Plane(origin=(0.533, 0.127, 0.222), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.13, 0.298).lineTo(-0.143, 0.298).li... | 19 | 124 | 0.630775 |
train_2578d3d007907811 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.373, 0.563), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.121, 0.207).lineTo(-0.143, 0.207).lineTo(-0.149, 0.186).lineTo(-0.224, -0.044).lineTo(-0.231, -0.064).lineTo(-0.213, -0.077).lineTo(-0.207, -0.057).lineTo(0, -0.207).lineTo(0.207, -0... | 3 | 25 | 0.411905 |
train_2fb8777514d48294 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.109, -0.304, -0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.538, -0.696).lineTo(0.545, -0.682).lineTo(0.527, 0.719).lineTo(-0.532, 0.681).close().moveTo(-0.093, -0.158).lineTo(0.093, -0.157).lineTo(0.092, 0.159).lineTo(-0.092, 0.158).clos... | 11 | 79 | 0.236034 |
train_578ba7a8be512cf0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.005, -0.358), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.217, 0.303).lineTo(0.06, 0.146).lineTo(0.06, 0.04).lineTo(-0.303, 0.04).lineTo(-0.303, -0.303).lineTo(0.303, -0.303).lineTo(0.303, 0.303).lineTo(0.217, 0.303).close().sweep(cq.Workpla... | 13 | 75 | 0.24409 |
train_1ded1c97e1e947fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.342, 0.101, -0.374), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.317, 1.289).extrude(0.544)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.342, 0.134, 0.164), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.405).extrude(0.088))
result = resul... | 20 | 182 | 0.935775 |
train_38e9872149055b16 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.17, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.121).sweep(cq.Workplane('XY').spline([(0, -0.608), (0.285, -0.598), (0.571, -0.547), (0.857, -0.348), (1.142, 0.008), (1.428, 0.208), (1.714, 0.258), (2, 0.268)]))
result = result.edges()... | 4 | 10 | 0.084348 |
train_ef95a04d7aaf04b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.287, -0.528), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.271).extrude(0.913)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.441, -0.117, 0.199), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.405, 0.609).extrude(0.191))
result = result.uni... | 40 | 250 | 1.454774 |
train_b725b103efbbe911 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.611, 0.361, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.183, 0.096).lineTo(1.428, 0.096).lineTo(0, 1.167).lineTo(-1.428, 0.096).lineTo(1.183, 0.096).close().workplane(offset=0.28).moveTo(1.053, 0.155).lineTo(1.272, 0.155).lineTo(0, 1.109).l... | 14 | 104 | 0.856034 |
train_c4b468eeffb906cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, 0.002, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.003, -0.643).lineTo(0.989, -0.618).lineTo(0.997, 0.619).lineTo(-0.995, 0.639).close().moveTo(-0.076, 0.107).lineTo(-0.076, 0.249).lineTo(-0.036, 0.249).lineTo(-0.01, 0.224).lineTo... | 12 | 104 | 0.479092 |
train_52212e00ba9b7667 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.086, 0.021, -0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.027, -0.003).lineTo(0.324, 0.979).lineTo(-0.855, 0.645).lineTo(-0.843, -0.627).lineTo(0.354, -1.021).close().moveTo(-0.194, 0.087).lineTo(0.198, 0.085).lineTo(0.197, 0.157).lineTo(... | 10 | 70 | 0.699653 |
train_f764e8fe8a9a8480 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.756, 0.309, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.489, 0).lineTo(0.244, 0).lineTo(0.489, 0.244).lineTo(0.489, -0.244).lineTo(-0.489, -0.244).lineTo(-0.489, 0).close().sweep(cq.Workplane('XY').spline([(-0.756, -0.137), (-0.338, -0.112... | 1 | 7 | 0.109824 |
train_201d9c4d3b370d47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.496, -0.081, -0.114), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.146, 0.268).lineTo(-0.234, 0.566).lineTo(0, 0.741).lineTo(0.234, 0.566).lineTo(0.146, 0.268).lineTo(-0.146, 0.268).close().workplane(offset=0.202).moveTo(-0.212, 0.161).lineTo(-... | 13 | 83 | 0.524695 |
train_e4bd254f703a145d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.026, 0.242, -0.27), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.346, 0.035).lineTo(-0.73, 0.035).lineTo(-0.73, 0.449).lineTo(0.453, 0.449).threePointArc((0.649, 0.368), (0.73, 0.173)).lineTo(0.73, 0.035).lineTo(-0.346, 0.035).close().extrude(0... | 5 | 58 | 0.452307 |
train_b6455de77fda5f92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.762, -0.121, -0.548), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.238, 0.119).threePointArc((0, -0.119), (0.238, 0.119)).lineTo(0.235, 0.119).threePointArc((0, -0.116), (-0.235, 0.119)).lineTo(-0.238, 0.119).close().transformed(offset=(0.294, ... | 1 | 6 | 0.001836 |
train_82e5c555f62bdd8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.789).extrude(0.472)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.089, 0.182), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.805).extrude(0.03))
result = result.union(cq.Workpl... | 15 | 64 | 1.561435 |
train_fd949fb975cafc4e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.236, 0.32, 0.204), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.796, 0.188).lineTo(0.796, 0.019).lineTo(-0.796, 0.019).lineTo(-0.796, 0.188).lineTo(-0.532, 0.188).lineTo(-0.532, 0.452).lineTo(-0.363, 0.452).lineTo(-0.363, 0.188).lineTo(0.796, 0.... | 5 | 29 | 0.175414 |
train_e645d6734c12ddc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.618), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.904, 1.427).extrude(1.333)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.571 + 0.1905, 0.714), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.069, -0.075).lineTo(0.069, -0.075).lin... | 14 | 89 | 4.161829 |
train_1e607634213367e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.994, 0.016, -0.237), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.763, 0.759).lineTo(0.763, 0.759).lineTo(0.763, -0.759).lineTo(-0.763, -0.759).lineTo(-0.763, -0.244).lineTo(0.362, -0.244).lineTo(0.362, 0.555).lineTo(0.058, 0.732).lineTo(-0.76... | 5 | 35 | 2.277046 |
train_53d246086ea6b738 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.165, 0.027, -0.797), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.577, 0.722).lineTo(0.577, -0.6).lineTo(-0.577, -0.612).lineTo(-0.577, 0.722).close().extrude(1.593)
result = result.edges().chamfer(0.093)
result = result.union(cq.Workplane(cq.Pl... | 9 | 48 | 0.902033 |
train_6d779fd208709012 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.406, 0.075, -0.098), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.667, 0.22).extrude(0.064)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.339, 0.164, -0.023), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.078, 0.027).lineTo(0.056, 0.123).li... | 15 | 139 | 0.0348 |
train_ca11e2aadc40dbf6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.589, 0.481), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.411).lineTo(0.223, -0.411).lineTo(0.223, 0.411).lineTo(-0.223, 0.411).lineTo(-0.223, -0.411).lineTo(0, -0.411).close().sweep(cq.Workplane('YZ').spline([(0.589, -0.088), (0.437, 0.18... | 12 | 37 | 0.560556 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.