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_e48e7e0298751044 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.028, 0, 0.191), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.553, 0.494).threePointArc((-0.672, 0), (0.553, -0.494)).threePointArc((0.62, -0.414), (0.675, -0.325)).lineTo(0.96, -0.393).threePointArc((0.904, -0.504), (0.834, -0.608)).threePointAr... | 25 | 38 | 0.354154 |
train_afd2e73a2bdc75e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.202, 0.184, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.437, 0.202).lineTo(0.437, 1.101).threePointArc((0, 1.202), (-0.438, 1.101)).lineTo(-0.438, -0.697).threePointArc((0, -0.798), (0.438, -0.697)).lineTo(0.437, -0.197).lineTo(0.437, 0.202... | 13 | 99 | 0.587883 |
train_0f28dabb49c8ee27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.352, 0.213, -0.025), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.315, -0.555).lineTo(0.315, -0.555).lineTo(0.315, 0.648).lineTo(-0.315, 0.648).lineTo(-0.315, -0.555).close().extrude(0.308)
result = result.union(cq.Workplane(cq.Plane(origin=(-... | 19 | 77 | 0.277868 |
train_f83fcb2f2d7f719b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.015, -0.298), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.968, 0.718).extrude(0.721)
result = result.faces('>Z').shell(-0.045)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.251, -0.423), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.... | 6 | 35 | 0.219861 |
train_7f88e80bca1a75e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.265, 0.093), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.238, -0.413).lineTo(-0.217, -0.335).lineTo(-0.238, -0.329).lineTo(-0.238, 0.137).lineTo(-0.175, 0.175).lineTo(0.238, 0.413).lineTo(-0.238, -0.413).close().sweep(cq.Workplane('YZ').spl... | 1 | 8 | 0.139857 |
train_c896fd12cab52fe8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.057, 0.367, -0.994), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.309, 0.31).lineTo(-0.309, -0.31).lineTo(-0.172, -0.31).lineTo(-0.172, -0.189).lineTo(0.309, -0.189).lineTo(0.309, 0.31).lineTo(-0.309, 0.31).close().transformed(offset=(0.048, 0.... | 6 | 42 | 0.197827 |
train_b9352a65701ffff2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.528, 0.716, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.664, -0.472).lineTo(0.664, 0.861).lineTo(-0.664, 0.861).lineTo(-0.664, -0.472).lineTo(0.664, -0.472).close().extrude(1.432)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.449, ... | 4 | 20 | 2.558338 |
train_031c3737d6dca6c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.281, 0.657, -0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.552, 0.686).extrude(0.193)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.281, 0.657, 0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.332, 0.375).extrude(0.045))
result = ... | 38 | 727 | 0.158853 |
train_611fe0005157a78f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.436, 0, -0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.128, 1.334).extrude(0.565)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.887 + 0.0905, 0.169, -1.142), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.041, 0.031).lineTo(0.041, -0.00... | 23 | 17 | 0.850099 |
train_a61ee5f9cc34840c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.108, 0.036, -0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.359, 0.255).extrude(0.09)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.083, 0.015, -0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.012).extrude(0.033))
result = result.cu... | 16 | 90 | 0.333876 |
train_92a26cc3afea2ba4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.048, -0.698, 0.091), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.028).threePointArc((-0.057, 0.049), (-0.096, 0.137)).threePointArc((-0.102, 0.115), (-0.107, 0.092)).lineTo(0.001, -0.14).lineTo(0.107, 0.092).threePointArc((0.102, 0.116), (... | 11 | 46 | 0.226979 |
train_bc0ffde1244dcc6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.63, -1.227, 0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.021, 0.163).lineTo(0.949, 1.987).threePointArc((0.003, 2.241), (-0.949, 2.009)).lineTo(-0.021, 0.163).close().workplane(offset=0.745).moveTo(-0.018, 0.309).lineTo(0.816, 1.876).th... | 3 | 26 | 2.133191 |
train_db9e9932f7dbbaeb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.312, 0, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.099, 0.254).lineTo(0.099, 0.284).lineTo(-0.099, 0.284).lineTo(-0.099, -0.284).lineTo(-0.001, -0.284).lineTo(-0.001, 0.026).lineTo(0.099, 0.026).lineTo(0.099, 0.053).lineTo(0, 0.053).li... | 2 | 20 | 0.014216 |
train_a932aa8b889ea81f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.684, 0.135), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.382, 0.141).lineTo(-0.296, 0.141).lineTo(-0.296, 0.282).lineTo(0.296, 0.282).lineTo(0.296, 0.415).lineTo(0.382, 0.415).lineTo(0.382, 0.141).lineTo(0.296, 0.141).lineTo(0.296, 0.009).l... | 29 | 208 | 0.384806 |
train_78428d6cf32863ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.382, 0.237, -0.48), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.135, 0.927).lineTo(-0.539, 0.537).lineTo(-0.403, -0.007).lineTo(0.135, -0.162).lineTo(0.539, 0.228).lineTo(0.403, 0.772).lineTo(-0.135, 0.927).close().extrude(0.833)
result = resu... | 17 | 80 | 0.54377 |
train_24e3fa7abef5476b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.315, 0.514, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.543).lineTo(-1, 0.053).lineTo(1, 0.053).lineTo(1, 0.543).lineTo(-1, 0.543).close().extrude(1.027)
result = result.edges().chamfer(0.234)
result = result.cut(cq.Workplane(cq.Plane(o... | 18 | 152 | 0.493272 |
train_722f172cc882b8c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.674, 0.885, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.085).lineTo(0.707, 0.085).lineTo(0.707, 1.747).lineTo(1, 1.747).lineTo(1, 0.022).lineTo(-1, 0.022).lineTo(-1, 0.085).close().extrude(1.349)
result = result.faces('>Z').shell(-0.136... | 3 | 63 | 0.57815 |
train_98c25428ef6ec529 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.058, 0.028, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.033, 0.075).lineTo(-0.096, 0.146).lineTo(-0.066, 0.056).lineTo(-0.163, 0.073).lineTo(-0.101, -0.002).lineTo(-0.192, -0.02).lineTo(-0.101, -0.039).lineTo(-0.163, -0.114).lineTo(-0.067, ... | 7 | 120 | 0.12184 |
train_4bf5565f5a490fc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.465), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.518).extrude(0.93)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.855, 0.309, -0.315), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.304, 0.107).extrude(0.06))
result = result.cut(cq.Wor... | 12 | 150 | 2.430427 |
train_e555eed0103b5a0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.075, -0.08, -0.518), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.341, 1.841).extrude(1.037)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.075 + 0.268 * math.cos(0.059 + 2 * math.pi * 0 / 4), 0.439 + 0.268 * math.sin(0.059 + 2 * math.pi * 0 /... | 26 | 190 | 2.412674 |
train_e44585e6f05e0d6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.586), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.978).extrude(0.865)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.099, 0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.78).extrude(0.127))
result = result.union(cq.Wor... | 16 | 81 | 2.702279 |
train_0fcb02166638d860 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.339, -0.305, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.451, -0.661).lineTo(-0.451, 1.339).lineTo(0.451, 1.339).lineTo(0.451, -0.661).lineTo(-0.451, -0.661).close().extrude(0.61)
result = result.edges().chamfer(0.1)
result = result.cut(cq... | 9 | 57 | 0.668813 |
train_d403b5d8c939b82a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.35, -0.241), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.955, 0.571).extrude(0.285)
result = result.union(cq.Workplane(cq.Plane(origin=(0.048, 0.379, 0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.257).extrude(0.02))
result = result.union(... | 11 | 48 | 0.607029 |
train_d7e7af296d1e8f31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.07, -0.055, -0.924), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.853, 0.853).extrude(0.904)
result = result.faces('>Z').shell(-0.088)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.001, -0.01, -0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).r... | 12 | 185 | 0.564573 |
train_58a376e857fec795 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.105, -0.102, -0.863), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.137, 0.105).lineTo(-0.089, 0.105).lineTo(-0.089, 0.068).lineTo(0.137, -0.034).lineTo(0.137, -0.099).lineTo(-0.137, -0.099).lineTo(-0.137, 0.105).close().revolve(angleDegrees=180... | 9 | 64 | 0.04664 |
train_bf60b22c05a66a0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.312, 0.128, -0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.722, 0.303).extrude(0.395)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.253, 0.221, 0.122), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.059).extrude(0.143))
result = result.... | 15 | 128 | 0.149594 |
train_53ab394411fd3059 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.073, 0.312, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.884, 0.638).lineTo(0.392, 0.147).lineTo(0.552, -0.605).lineTo(0.392, -0.638).lineTo(0, -0.246).lineTo(-0.392, -0.638).lineTo(-0.552, 0.112).lineTo(-0.392, 0.147).lineTo(-0.884, 0.638).l... | 2 | 14 | 1.898172 |
train_d1ef0f7dd350116d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, -0.413, -0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.102, 0.017).lineTo(0, 0.179).lineTo(0.102, 0.179).lineTo(0.102, 0.017).lineTo(-0.102, 0.017).close().extrude(0.329)
result = result.edges().chamfer(0.04)
result = result.cut(cq.... | 13 | 166 | 0.017783 |
train_5bd9a311a859ab04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.592, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.931, 1.192).lineTo(0.465, 1.461).threePointArc((0, 1.586), (-0.465, 1.461)).lineTo(-0.931, 1.192).lineTo(-0.931, 0.655).lineTo(-0.931, 0.117).lineTo(-0.465, -0.152).lineTo(0, -0.421).line... | 6 | 50 | 5.657969 |
train_fda340c016a746da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.626, -1.13, 0.07), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.702, 2.048).threePointArc((-0.702, 1.468), (-0.122, 0.064)).lineTo(0.702, 2.048).close().extrude(1.252)
result = result.edges().fillet(0.168)
result = result.cut(cq.Workplane(cq.Pla... | 18 | 51 | 1.482096 |
train_5f17ed57cb6d7ebb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, 0.503, 0.428), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.179, 0.152).lineTo(-0.12, 0.219).lineTo(0.179, -0.171).lineTo(0.105, -0.219).lineTo(-0.179, 0.152).close().sweep(cq.Workplane('YZ').spline([(-0.359, -0.503), (-0.192, -0.488), (-0.... | 2 | 18 | 0.099975 |
train_8b958556f2244c31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.191, 0.09, 0.168), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.051, -0.434).lineTo(0.051, -0.547).lineTo(0.207, -0.547).lineTo(0.207, -0.312).lineTo(-0.009, 0.741).lineTo(-0.207, 0.8).lineTo(0.09, -0.312).lineTo(0.09, -0.434).lineTo(0.051, -0.... | 9 | 68 | 0.073466 |
train_fd65546d6c45513b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.325, 0, -0.662), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.752, 0.736).extrude(0.859)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.343, 0.044, 0.183), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.161).extrude(0.177))
result = result.ed... | 22 | 239 | 0.318891 |
train_a5b5ea7c59afbcbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.641, -1.065, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.663).threePointArc((-0.992, 1.608), (-0.97, 1.556)).lineTo(-0.589, 0.216).threePointArc((-0.526, 0.118), (-0.42, 0.074)).lineTo(-0.383, 0.074).lineTo(0.413, 0.074).lineTo(0.45, 0.... | 13 | 49 | 1.890959 |
train_56538a2052a2e419 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.039, -0.848, -0.116), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.884, 0.358).lineTo(-0.884, -0.28).lineTo(0.884, -0.28).lineTo(0.884, 0.358).lineTo(-0.884, 0.358).close().extrude(1.696)
result = result.edges().fillet(0.068)
result = result.un... | 8 | 80 | 1.902297 |
train_7c57076014b9b314 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.312, 0.438, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.799, 0.31).lineTo(-0.722, 0.207).lineTo(-0.667, 0.133).lineTo(-0.466, -0.133).lineTo(-0.333, -0.31).lineTo(-0.333, -0.576).lineTo(0.333, -0.576).lineTo(0.667, -0.133).lineTo(0.667, 0.1... | 6 | 35 | 1.260692 |
train_8f6361339bb65264 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.3, 0, -0.68), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.062, 0.061).lineTo(0.062, 0.057).lineTo(-0.092, 0.057).lineTo(-0.092, -0.061).lineTo(0.087, -0.061).lineTo(0.087, 0.045).lineTo(0.092, 0.045).lineTo(0.092, 0.061).lineTo(0.062, 0.061).c... | 3 | 17 | 0.051226 |
train_3bc8323952907cfe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.049, -0.019, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.014).lineTo(1, 0.014).lineTo(1, 0.028).lineTo(-1, 0.028).lineTo(-1, 0.014).close().revolve(angleDegrees=90, axisStart=(-1, 0.014), axisEnd=(1, 0.014))
result = result.edges().fill... | 5 | 70 | 0.001832 |
train_0d7cd31e57044a2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.091, -0.179), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.163, -0.35).lineTo(-0.033, -0.201).lineTo(-0.033, 0.006).lineTo(-0.101, 0.006).lineTo(-0.101, 0.35).lineTo(0.163, 0.35).lineTo(0.163, -0.144).lineTo(0.042, -0.144).lineTo(0.042, -0... | 3 | 20 | 0.180641 |
train_3ca096057df7c891 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.189, 0, -0.235), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.503, 2).extrude(0.575)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.124, -0.433, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.357, 1.193).extrude(0.174))
result = result.cu... | 18 | 120 | 1.488706 |
train_bce148c770e816bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.243, -0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.143, 0.209).extrude(0.024)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.243, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.076, 0.11).extrude(0.002))
result = result.uni... | 5 | 47 | 0.003762 |
train_371dcc48a116e6f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.146, 0, -0.572), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.274, 1.37).extrude(1.572)
result = result.union(cq.Workplane(cq.Plane(origin=(0.633, -0.139, -0.365), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.15).extrude(0.417))
result = result.uni... | 11 | 78 | 2.339798 |
train_4b98c3b970d64f44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.477, -0.626), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.225, 1.047).extrude(1.253)
result = result.union(result.mirror('XZ', basePointVector=(0, 0, -0.626)))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.198, 0.044, 0.492), normal=(1, 0... | 4 | 50 | 2.926531 |
train_5533e77f5be426a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.053, -0.007, 0.323), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.947, 0.185).lineTo(-0.947, 0.185).lineTo(-0.947, -0.185).lineTo(0.947, -0.185).lineTo(0.947, 0.185).close().extrude(0.646)
result = result.edges().fillet(0.11)
result = result.uni... | 14 | 111 | 0.398519 |
train_9cdcde3b4fdbcb05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.138, -0.12, -0.718), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.723, 1.625).extrude(1.436)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.038, -0.265, 0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.273).extrude(0.446))
result = result.... | 13 | 107 | 1.934173 |
train_d86951dc8363b946 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.027, 0.006, -0.359), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.958, 0.005).lineTo(0.672, 0.692).lineTo(-0.027, 0.994).lineTo(-0.712, 0.684).lineTo(-1.012, 0.02).lineTo(-0.701, -0.675).lineTo(-0.003, -1.006).lineTo(0.678, -0.673).close().moveTo... | 10 | 45 | 1.372611 |
train_9c3c93f76c089799 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.188, -0.167, 0.492), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.272, -0.057).lineTo(-0.272, -0.071).lineTo(0.272, -0.071).lineTo(0.272, 0.071).lineTo(-0.272, 0.071).lineTo(-0.272, -0.057).close().sweep(cq.Workplane('XY').spline([(-0.645, -0.1... | 26 | 184 | 0.533651 |
train_f2aee41293df1b94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, -0.803, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.803).lineTo(-0.333, 0.803).lineTo(-0.333, -0.197).lineTo(0.333, -0.197).lineTo(0.333, 0.803).lineTo(0, 0.803).close().revolve(angleDegrees=360, axisStart=(0, 0.803), axisEnd=(-0.33... | 10 | 44 | 1.499179 |
train_84b0671ff39ebe54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.411, 0, -0.32), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.125, 0.405).threePointArc((-0.015, 0.141), (0.249, 0.031)).lineTo(0.249, -0.094).lineTo(0.062, -0.094).lineTo(0.062, -0.593).lineTo(-0.249, -0.593).lineTo(-0.249, 0.405).lineTo(-0.249... | 3 | 21 | 0.235962 |
train_7e50a040b9f0917f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.186, 0.078, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.124, 0.418).lineTo(0.449, -0.154).lineTo(0.449, -0.664).lineTo(-0.449, -0.664).lineTo(-0.449, 0.744).lineTo(-0.124, 0.418).close().extrude(1.296)
result = result.edges().chamfer(0.172... | 17 | 190 | 1.039219 |
train_b38402c407c4e8a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.235, -0.134, 0.182), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.276, 0.438).lineTo(0.276, -0.144).lineTo(-0.276, -0.144).lineTo(-0.276, 0.438).lineTo(0.276, 0.438).close().extrude(0.415)
result = result.edges().chamfer(0.084)
result = result.f... | 4 | 77 | 0.109535 |
train_26eb2a5deafe9688 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.397, 0.375, -0.105), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.4, 2.397).lineTo(0.4, 0.397).lineTo(-0.4, 0.397).lineTo(-0.4, 2.397).lineTo(0.4, 2.397).close().revolve(angleDegrees=90, axisStart=(0.4, 2.397), axisEnd=(0.4, 1.757))
result = res... | 3 | 22 | 0.851247 |
train_19ebc25213c87dc9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.599), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.447, 2).extrude(1.198)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.49, -0.817, 0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.059).extrude(0.09))
result = result.cut(cq.Workplan... | 8 | 33 | 3.122495 |
train_6d7b5a309a25457f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.267, -0.052, 0.388), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.702, -0.002).lineTo(0.702, 0.141).threePointArc((0.665, 0.231), (0.574, 0.269)).lineTo(-0.24, 0.269).threePointArc((-0.333, 0.251), (-0.413, 0.201)).lineTo(-0.659, -0.027).threeP... | 19 | 86 | 0.760064 |
train_b8259a706f9b824c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.476, -0.691), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.044, 0.82).extrude(0.385)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.201, -0.275, -0.255), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.292, 1.275).lineTo(0.109, 1.275).line... | 12 | 107 | 0.613862 |
train_3cadb5e654a76732 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.581, -0.123, -0.145), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.334, -0.2).lineTo(-0.424, 0.172).lineTo(0.424, 0.2).lineTo(0.413, -0.108).lineTo(-0.334, -0.2).close().revolve(angleDegrees=270, axisStart=(-0.334, -0.2), axisEnd=(-0.424, 0.172... | 17 | 214 | 0.432673 |
train_f354f4d1bd0a45b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.3, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.463, 0.369).extrude(0.41)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.21, 0, -0.905), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.643, 0.249).extrude(0.22))
result = result.union(cq.W... | 10 | 39 | 0.172664 |
train_41cd7aef2078afc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.34, 0.464, -0.201), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.228, 0.192).lineTo(0.228, -0.174).lineTo(0.17, -0.189).lineTo(0.129, -0.2).lineTo(0.07, -0.216).lineTo(0.029, -0.227).lineTo(-0.029, -0.243).lineTo(-0.07, -0.254).lineTo(-0.129, -0... | 5 | 118 | 0.748583 |
train_eb77e57068e709b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.099, 0.16, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.4, 0.521).lineTo(0.4, 0.401).lineTo(-0.311, 0.401).lineTo(-0.311, -0.368).lineTo(0.333, -0.368).lineTo(0.333, -0.248).lineTo(0.4, -0.248).lineTo(0.4, -0.901).lineTo(-0.4, -0.901).lineTo... | 17 | 114 | 0.221922 |
train_4e699aa63d03c4f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.304, -0.433), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.309).extrude(0.866)
result = result.faces('>Z').shell(-0.039)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.039, 0.54, -0.436), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.288)... | 4 | 15 | 0.461113 |
train_549694f648fe56da | 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.616).workplane(offset=0.516).circle(0.565).workplane(offset=0.48).circle(0.319).workplane(offset=0.449).circle(0.214).workplane(offset=0.555).circle(0.4).loft()
result = result.edges().chamfer... | 2 | 5 | 1.011521 |
train_b615fc748a08af2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.613, 0.919, 0.273), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.727, -0.114).lineTo(-0.323, 0.291).lineTo(-0.454, 0.908).lineTo(0, 0.613).lineTo(-0.294, 0.159).lineTo(0.323, 0.291).lineTo(0.454, 0.319).lineTo(0.323, 0.936).lineTo(0.727, 1.341)... | 12 | 66 | 1.962261 |
train_c9d0828891f63afb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.102, 0.102, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.935, 0.153).threePointArc((-0.993, 0.059), (-0.883, 0.051)).lineTo(0.883, 0.051).threePointArc((0.993, 0.059), (0.935, 0.153)).lineTo(0.868, 0.153).lineTo(0.815, 0.206).lineTo(0.682, ... | 7 | 118 | 0.023202 |
train_c8c5a316566dae6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.662, -0.005), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.644, 1.076).lineTo(-0.046, 1.439).lineTo(0.644, 0.297).lineTo(0.089, -0.133).lineTo(-0.644, 1.076).close().extrude(2)
result = result.edges().fillet(0.169)
result = result.cut(cq.Wo... | 20 | 89 | 1.692321 |
train_ce7faf9b9f1e70e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.07, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.975, 1.59).extrude(1.7)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.07 + 0.227 * math.cos(0.818 + 2 * math.pi * 0 / 3), 0.85 + 0.227 * math.sin(0.818 + 2 * math.pi * 0 / 3), -1.634)... | 10 | 22 | 2.528699 |
train_320a2456500ce21e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.046, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.354, -0.101).threePointArc((0, 0.194), (0.354, -0.101)).lineTo(-0.354, -0.101).close().extrude(2)
result = result.edges().fillet(0.086)
| 2 | 14 | 0.292782 |
train_aa661bf358495bec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.511), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.124).extrude(1.022)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.474, 0.222, -0.685), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.049).extrude(1.227))
| 2 | 7 | 2.289747 |
train_455381fe8c878e93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.057, 0.061, 0.26), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.102, 0.011).lineTo(-0.102, 0.051).lineTo(0.102, 0.051).lineTo(0.102, 0.011).lineTo(-0.102, 0.011).close().revolve(angleDegrees=180, axisStart=(-0.102, 0.011), axisEnd=(-0.102, 0.051... | 16 | 125 | 0.024661 |
train_8260bde4e9bd6ae5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.747, -0.017, -0.204), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.336).transformed(offset=(0.116, -0.091, 0.097), rotate=(10, 0, 0)).circle(0.127).transformed(offset=(0.233, -0.045, 0.15), rotate=(0, 60, 0)).circle(0.425).transformed(offset=(0... | 2 | 5 | 0.649975 |
train_c3deceb71feb0d80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.148, -0.308), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.012, 0.268).lineTo(0.774, 0.029).lineTo(-0.774, 0.029).lineTo(-1.012, 0.268).lineTo(1.012, 0.268).close().extrude(0.617)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.017, -0... | 9 | 52 | 0.257529 |
train_104251263a427801 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.618, -0.004, -0.362), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.323, 0.036).lineTo(0.203, 0.928).lineTo(0.078, 0.834).lineTo(0.472, -0.919).lineTo(1.618, -0.192).close().moveTo(0.257, -0.103).lineTo(0.32, -0.082).lineTo(0.382, -0.059).lineTo(... | 7 | 54 | 0.561044 |
train_024f0caedc079ae2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.404, -0.837, -0.054), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.56, 0.135).lineTo(-0.56, -0.596).lineTo(0.56, -0.596).lineTo(0.56, 0.67).lineTo(0.32, 0.67).lineTo(0.32, 1.242).lineTo(-0.32, 1.242).lineTo(-0.32, 0.67).lineTo(-0.56, 0.67).line... | 9 | 100 | 2.965142 |
train_a99dafe215fe5206 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.676, -0.133), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.888, 0.337).lineTo(-0.888, 0.266).lineTo(-0.703, 0.266).threePointArc((0, -0.337), (0.703, 0.266)).lineTo(0.888, 0.266).lineTo(0.888, 0.337).lineTo(0.639, 0.337).threePointArc((0, -... | 1 | 10 | 0.192184 |
train_58b074b1f0afdbfd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.141), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.466, 2).extrude(0.036)
result = result.union(cq.Workplane(cq.Plane(origin=(0.081, -0.17, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.731, 1.259).extrude(0.04))
result = result.union(c... | 10 | 53 | 0.180676 |
train_f0b144449a96a6a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.681, -0.064), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.324, 1.349).lineTo(0.324, 1.349).lineTo(0.324, 0.012).lineTo(-0.324, 0.012).lineTo(-0.324, 1.349).close().extrude(1.132)
result = result.edges().fillet(0.11)
result = result.cut(cq.... | 21 | 156 | 0.765538 |
train_65711b0b33661343 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.268, 0, -0.481), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.465, 1.472).extrude(1.405)
result = result.faces('>Z').shell(-0.124)
result = result.union(cq.Workplane(cq.Plane(origin=(0.774, 0.407, -0.924), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(... | 19 | 36 | 1.314537 |
train_63ca8c71dc4891b7 | 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.827, 1.798).extrude(1.92)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.112, -0.818, -0.306), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.061).extrude(0.163))
result = result.edges().fill... | 24 | 44 | 6.288147 |
train_faf9380498f0ec84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.586, 0.047, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.361, 0.414).lineTo(0.361, -0.414).lineTo(-0.361, 0.414).lineTo(0.361, 0.414).close().sweep(cq.Workplane('XY').spline([(-0.586, -0.232), (-0.314, -0.172), (-0.043, -0.151), (0.229, -0.1... | 3 | 13 | 0.050065 |
train_d3051a464cdf0462 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.057, -0.596, -0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.483, 0.391).extrude(0.098)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.091, -0.669, -0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.051).extrude(0.014))
result = resu... | 19 | 124 | 0.130678 |
train_60e9748f4341ba2c | 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.314).workplane(offset=0.463).circle(0.235).workplane(offset=0.371).circle(0.173).workplane(offset=0.373).circle(0.117).workplane(offset=0.325).circle(0.108).workplane(offset=0.467).circle(0.01... | 1 | 3 | 0.204608 |
train_d76cd29d3727b863 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.122, -0.174, -0.388), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.756, 1.039).extrude(0.777)
result = result.faces('>Z').shell(-0.084)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.241, -0.766, -0.08), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 8 | 47 | 0.535774 |
train_fb352bfb9d28cf6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, -0.142, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.883, 0.012).lineTo(-1, 0.012).lineTo(-1, 0.13).lineTo(1, 0.13).lineTo(1, 0.012).lineTo(-0.883, 0.012).close().revolve(angleDegrees=180, axisStart=(-0.883, 0.012), axisEnd=(-1, 0.012))... | 7 | 138 | 0.051287 |
train_e3d21e9f77342ea9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.716, -0.105).lineTo(-0.716, -0.152).lineTo(0.716, -0.152).lineTo(0.716, -0.105).lineTo(-0.668, -0.105).lineTo(-0.668, 0.152).lineTo(-0.716, 0.152).lineTo(-0.716, -0.105).close().sweep(cq.Workp... | 2 | 38 | 0.124322 |
train_82b9883ad89d5655 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.444, -0.176, 0.242), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.446, 0.009).lineTo(0.308, 0.331).lineTo(0.01, 0.476).lineTo(-0.303, 0.325).lineTo(-0.486, -0.006).lineTo(-0.329, -0.321).lineTo(0.024, -0.475).lineTo(0.344, -0.334).close().moveTo(... | 18 | 383 | 0.717498 |
train_bed649fc40753791 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.562, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.597, 1.372).lineTo(0.597, 1.351).lineTo(0.597, -0.227).lineTo(0.597, -0.247).lineTo(-0.597, -0.247).lineTo(-0.597, 1.372).lineTo(0.597, 1.372).close().extrude(1.821)
result = result.edges... | 40 | 121 | 3.288775 |
train_0b3b0bee09447045 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.064, -0.044, 0.031), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.071, 0.115).lineTo(0.071, 1.044).lineTo(-0.071, 1.044).lineTo(-0.071, -0.956).lineTo(0.071, -0.956).lineTo(0.071, -0.027).lineTo(0, -0.027).lineTo(0, 0.044).lineTo(0.071, 0.044).l... | 12 | 134 | 0.041961 |
train_c25887d3e0828bcf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.482, -1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.192, -0.288).lineTo(0.128, -0.224).lineTo(0.112, -0.208).lineTo(0.073, -0.113).lineTo(0.064, -0.16).lineTo(0.054, -0.208).lineTo(0, -0.208).lineTo(0.022, -0.118).lineTo(0, -0.096).lineTo(... | 2 | 19 | 0.181934 |
train_c6de992069d3cb45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.943, 0, 0.515), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.113, -0.111).lineTo(-0.142, -0.107).threePointArc((-0.153, -0.097), (-0.148, -0.082)).lineTo(-0.132, -0.071).threePointArc((-0.008, 0.111), (0.14, -0.052)).lineTo(0.153, -0.09).three... | 1 | 10 | 0.033178 |
train_e70f99b737f8c0da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.242, 0.003, -0.312), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.519, 0.472).threePointArc((-0.628, 0.148), (-0.519, -0.175)).lineTo(0.628, -0.175).lineTo(0.628, 0.472).lineTo(-0.519, 0.472).close().extrude(0.99)
result = result.union(cq.Workp... | 29 | 133 | 0.728182 |
train_cd4cadf414d3baf4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.026, -0.009, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.58, 0.963).extrude(1.711)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.289, -0.021, -0.58), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.027).extrude(0.107))
result = result.un... | 9 | 109 | 1.091425 |
train_1cc74227ad363d85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.263, 0.199, 0.236), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.433, 0.522).lineTo(-0.433, 0.301).threePointArc((0, -0.801), (0.433, 0.301)).lineTo(0.433, 0.522).lineTo(0.433, 0.801).lineTo(-0.433, 0.801).lineTo(-0.433, 0.522).close().extrude(... | 14 | 135 | 0.636842 |
train_1da0bbd799efd9b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.225, 0.53, -0.047), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.628, 0.588).lineTo(-0.628, -0.138).lineTo(-0.378, -0.282).lineTo(-0.249, -0.356).lineTo(0, -0.5).lineTo(0.249, -0.356).lineTo(0.327, -0.311).lineTo(0.378, -0.282).lineTo(0.628, -0... | 17 | 208 | 1.305932 |
train_68e001689fc3272e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.023, -0.015, -0.045), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.048, 0.032).lineTo(-0.048, -0.03).lineTo(-0.046, -0.03).lineTo(-0.046, 0.03).lineTo(0.046, 0.03).lineTo(0.046, -0.03).lineTo(0.045, -0.03).lineTo(0.045, 0.03).lineTo(-0.045, 0.0... | 10 | 194 | 0.390421 |
train_f8462c78d4242836 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.495, 0.122, -0.466), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.011, 0.701).extrude(1.017)
result = result.union(cq.Workplane(cq.Plane(origin=(0.366, 0.146, 0.538), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.551, 0.366).extrude(0.332))
result = re... | 21 | 69 | 0.804822 |
train_5266d901c52aea0b | 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.503, 0.817).extrude(1.639)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.22, -0.178, 0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.033).extrude(0.118))
result = result.edges().chamfe... | 10 | 97 | 0.7013 |
train_911503a30498b89c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.553, -0.548, -0.025), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.171, 1.598).threePointArc((0.637, 1.032), (0.804, 0.318)).threePointArc((0.749, -0.099), (0.589, -0.486)).lineTo(-0.804, 0.318).lineTo(0.171, 1.598).close().extrude(1.096)
result... | 7 | 46 | 1.495476 |
train_ab2fc5a72ece5de7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.015, -0.642, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.727, 1.201).lineTo(-0.242, 1.201).lineTo(-0.485, 0.781).lineTo(-0.727, 0.361).lineTo(0, -0.059).lineTo(-0.242, 0.361).lineTo(0.242, 0.361).lineTo(0.485, 0.781).lineTo(0.727, 1.201).cl... | 5 | 56 | 1.599379 |
train_1e569f0e312835a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.618, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.595).lineTo(-0.641, 0.954).lineTo(-0.641, 0.315).lineTo(0, -0.326).lineTo(0.641, -0.326).lineTo(0.641, 0.954).lineTo(0, 0.954).lineTo(0, 1.595).close().extrude(2)
result = result.cut(c... | 3 | 69 | 2.781985 |
train_4ec7ec8574a4b01e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.2, -0.73, -0.032), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.837, 0.737).threePointArc((0.305, 1.269), (0.837, 0.128)).lineTo(-0.837, 0.737).close().workplane(offset=0.063).moveTo(-0.78, 0.734).threePointArc((0.284, 1.231), (0.78, 0.166)).li... | 7 | 28 | 0.246494 |
train_c39cc85bff41ea10 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.545, -0.359, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.82, 0.202).lineTo(0.82, 0.038).lineTo(-0.82, 0.038).lineTo(-0.82, 0.495).threePointArc((-0.604, 1.017), (-0.082, 1.233)).lineTo(0.082, 1.233).threePointArc((0.604, 1.017), (0.82, 0.49... | 17 | 114 | 1.611004 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.