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_77ff7e336b3d3551 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.715, -0.571, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.698, 0.748).lineTo(0.698, 0.799).lineTo(0.01, 0.922).lineTo(0.01, 0.748).lineTo(-0.01, 0.748).lineTo(-0.01, 0.395).lineTo(-0.698, 0.395).lineTo(-0.698, 0.342).lineTo(-0.01, 0.219).lin... | 2 | 21 | 0.976679 |
train_7125fa048db67848 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.227, 0.049, -0.776), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.78, -0.553).lineTo(-0.78, 0.553).lineTo(0.78, 0.553).lineTo(0.78, -0.553).lineTo(-0.78, -0.553).close().revolve(angleDegrees=90, axisStart=(-0.78, -0.553), axisEnd=(-0.78, -0.437... | 19 | 218 | 1.816858 |
train_1348da03c827dd9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.355, -0.042, 0.085), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.324, 0.324).threePointArc((-0.134, 0.134), (-0.324, -0.324)).lineTo(-0.324, 0.166).lineTo(-0.166, 0.324).lineTo(0.324, 0.324).close().extrude(0.163)
result = result.cut(cq.Workpl... | 16 | 97 | 0.12368 |
train_c24fa4a2d55a86ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.544, 0.163, 0.75), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.135, 0.032).threePointArc((0, 0.003), (-0.135, 0.032)).threePointArc((-0.158, 0.091), (-0.098, 0.113)).threePointArc((0, 0.092), (0.098, 0.113)).threePointArc((0.158, 0.091), (0.135... | 11 | 243 | 0.247113 |
train_48f658e5f50ef52a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.48, 0, -0.359), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.142, 0).threePointArc((0, 0.154), (0.142, 0)).threePointArc((0, -0.154), (-0.142, 0)).close().sweep(cq.Workplane('XZ').spline([(-0.48, -0.726), (-0.39, -0.76), (-0.3, -0.899), (-0.21,... | 6 | 19 | 0.036775 |
train_eeaa4275293b131c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.005, -0.69), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.183, 0.096).extrude(0.263)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.005, -0.442), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.031).extrude(0.181))
result = result.union(... | 14 | 88 | 0.010742 |
train_6fa041bb95788eb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.302), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.904).extrude(0.603)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, 0.031, 0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2.4, 0.158).extrude(0.041))
result = result.cut(cq.Workpl... | 9 | 67 | 2.146459 |
train_f1f1c6f007c44035 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.469, 0, 0.125), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.531, 0.363).threePointArc((-0.354, 0.476), (-0.186, 0.605)).lineTo(0.531, -0.251).threePointArc((0.287, -0.439), (0.027, -0.605)).lineTo(-0.531, 0.363).close().extrude(0.249)
result ... | 3 | 30 | 0.069413 |
train_6802c6f9ca3ca908 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.444, 2).extrude(0.117)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.12, -0.05, 0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.06).extrude(0.026))
result = result.cut(cq.Workpl... | 5 | 15 | 0.301236 |
train_5ef558a1c4e35308 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.012, -0.479), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 1.164).lineTo(0.571, 1.164).lineTo(0.571, 0.925).lineTo(0.286, 0.925).lineTo(0.286, 1.164).lineTo(-1, 1.164).lineTo(-1, 0.783).lineTo(-0.69, 0.783).lineTo(-0.69, 0.403).lineTo(-1, 0.... | 12 | 194 | 1.234728 |
train_8fb296c7a6065407 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.465, 0.289, 0.156), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.086, -0.08).lineTo(0.086, -0.056).lineTo(0.123, -0.056).lineTo(0.123, 0.056).lineTo(0.086, 0.056).lineTo(0.086, 0.062).threePointArc((0.085, 0.071), (0.083, 0.08)).threePointArc((... | 4 | 51 | 0.025105 |
train_f0732419a4a024c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.268, 0.694, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.228, -0.327).lineTo(-0.228, 0.356).threePointArc((0, 0.583), (0.228, 0.356)).lineTo(0.228, -0.327).lineTo(-0.228, -0.327).close().extrude(1.136)
result = result.edges().chamfer(0.157... | 22 | 129 | 0.265779 |
train_daa5dfe2e23838ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.244, -0.179, 0.554), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.072, 0.821).threePointArc((0.461, 0.114), (0.687, -0.661)).lineTo(-0.226, -0.821).threePointArc((-0.395, -0.241), (-0.687, 0.29)).lineTo(0.072, 0.821).close().extrude(0.931)
resul... | 13 | 57 | 0.610771 |
train_aa753f03b732ad12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.242, 0, -0.223), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.656, -0.495).lineTo(-0.408, 0.706).lineTo(-0.656, 0.655).lineTo(-0.378, -0.706).lineTo(0.656, -0.495).close().sweep(cq.Workplane('XZ').spline([(-0.713, -1.095), (-0.179, -1.095), (0.0... | 4 | 8 | 0.058484 |
train_21b4ffc4ed8f7551 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.145), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.054, 0.046).lineTo(-0.057, 0.048).lineTo(-0.063, 0.045).lineTo(-0.063, 0.039).lineTo(-0.061, 0.038).lineTo(-0.061, -0.046).lineTo(0.054, -0.046).lineTo(0.057, -0.048).lineTo(0.063, -0.0... | 13 | 66 | 0.019621 |
train_96a2ebcb4d975ccc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.41, 0, -0.28), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.486, 0.486).extrude(0.663)
result = result.union(cq.Workplane(cq.Plane(origin=(0.41, 0.193, 0.052), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.088, 0.169).lineTo(-0.088, 0.494).lineTo(0... | 13 | 200 | 0.499425 |
train_2a3f3690b9f844ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.374, -0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.593, 1.061).lineTo(-0.593, 1.066).lineTo(-0.004, 0.037).lineTo(0.593, 1.061).close().extrude(1.102)
result = result.edges().fillet(0.055)
result = result.faces('>Z').shell(-0.074)
res... | 39 | 47 | 0.544697 |
train_baf3ab8071306200 | 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.607).workplane(offset=0.457).circle(0.619).workplane(offset=0.512).circle(0.537).workplane(offset=0.537).circle(0.562).workplane(offset=0.495).circle(0.587).loft()
result = result.edges().fill... | 2 | 5 | 2.064206 |
train_43fc879af3b790d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.772), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.04, -0.886).lineTo(-0.047, -0.886).lineTo(-0.054, -0.885).lineTo(-0.053, -0.87).lineTo(-0.046, -0.871).lineTo(-0.045, -0.856).lineTo(-0.044, -0.841).lineTo(0.045, 0.841).lineTo(0.045, 0.... | 2 | 19 | 0.017843 |
train_d95211fac6c75bdb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.129, 1, -0.156), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.234, -0.439).lineTo(-0.234, 0.212).lineTo(-0.175, 0.212).lineTo(-0.175, 0.439).lineTo(0.234, 0.439).lineTo(0.234, -0.439).lineTo(-0.175, -0.439).lineTo(-0.175, -0.409).lineTo(-0.234, ... | 4 | 34 | 0.978074 |
train_18598001d9ad6c2d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.886).extrude(0.098)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.754 + 0.126, 0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.069, 0.044).lineTo(-0.069, 0.04).lineTo(0.0... | 18 | 131 | 0.292098 |
train_b0666943d7e50d04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.719, -0.552), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.551, 1.719).lineTo(-0.49, 1.719).lineTo(-0.49, 1.252).lineTo(0.551, 0.211).lineTo(0.551, -0.281).lineTo(0.49, -0.281).lineTo(0.49, 0.186).lineTo(-0.551, 1.227).lineTo(-0.551, 1.719).... | 4 | 22 | 0.149298 |
train_914946e916c85cf3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.579), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.485, -1).lineTo(0.485, 1).lineTo(-0.485, 1).lineTo(-0.485, -1).lineTo(-0.485, -0.899).lineTo(-0.384, -0.899).lineTo(-0.384, -1).lineTo(0.485, -1).close().extrude(1.157)
result = result.cut... | 15 | 124 | 1.820366 |
train_1454cffb26246fb3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.903, 0.48, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.07, 0.076).threePointArc((1, 0.48), (-0.07, 0.884)).threePointArc((-1, 0.48), (-0.07, 0.076)).close().extrude(1.806)
result = result.edges().fillet(0.392)
result = result.cut(cq.Workpl... | 20 | 93 | 3.192291 |
train_84ae4c21bf2e3060 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.457, 0.317, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.09, 0.743).lineTo(-0.484, 0.065).lineTo(0.484, 0.065).lineTo(1.09, 0.743).lineTo(-1.09, 0.743).close().extrude(1.031)
result = result.edges().chamfer(0.135)
result = result.union(cq.W... | 5 | 41 | 0.99827 |
train_ff06f8266924aa38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.15, 0.17, 0.027), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.138, 0.437).threePointArc((-0.166, 0.426), (-0.178, 0.398)).lineTo(-0.178, -0.077).lineTo(0.178, -0.077).lineTo(0.178, 0.437).lineTo(-0.138, 0.437).close().extrude(0.471)
result = r... | 13 | 106 | 0.059958 |
train_2c393723364d1778 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.597).extrude(0.084)
result = result.union(cq.Workplane(cq.Plane(origin=(0.457, -0.286, 0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.084, 0.094).extrude(0.027))
result = result.cut(cq... | 12 | 31 | 0.227746 |
train_d01e182e17aba04e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.497, -0.235), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.503).lineTo(0.258, -0.503).lineTo(0.258, 1.497).lineTo(0, 1.497).lineTo(0, -0.246).lineTo(-0.258, -0.246).lineTo(-0.258, -0.503).lineTo(0, -0.503).close().extrude(0.471)
result = ... | 5 | 50 | 0.209049 |
train_e6ab96ca3ee2ce0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.776), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.448).extrude(1.553)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.262, -0.076, -0.794), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.439, 0.662).extrude(0.715))
result = result.cut(cq.... | 11 | 132 | 3.724441 |
train_570a4cf004fb3d8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.384, 0.321, 0.188), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.306, -0.443).lineTo(0.414, -0.443).lineTo(0.414, 1.211).lineTo(0.306, 1.211).lineTo(0.306, 0.708).lineTo(-0.414, 0.708).lineTo(-0.414, 0.6).lineTo(0.306, 0.6).lineTo(0.306, -0.443)... | 10 | 100 | 0.31344 |
train_1fce6df6a851e940 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, 0.041, -0.326), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.103, 1.771).extrude(0.715)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.574, -0.609, 0.278), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.042).extrude(0.033))
result = resul... | 8 | 35 | 1.399965 |
train_e46d97340378909e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.067, -0.086, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.222, 0.075).threePointArc((0.203, 0.052), (0.223, 0.03)).lineTo(0.404, 0.007).threePointArc((0.429, 0.027), (0.409, 0.052)).lineTo(0.382, 0.056).lineTo(0.429, 0.063).lineTo(0.567,... | 23 | 235 | 0.034063 |
train_b386b90c7ee2a29d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.407, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.452, -0.045).lineTo(0.452, 0.114).lineTo(0.357, 0.176).lineTo(0.254, 0.661).lineTo(0.232, 0.765).lineTo(-0.254, 0.661).lineTo(-0.452, 0.859).lineTo(-0.452, 0.701).lineTo(-0.357, 0.639).lin... | 2 | 16 | 0.702035 |
train_f518e2ea7b1f8b0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.27, -0.43), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.13, 0.096).lineTo(-0.112, 0.065).threePointArc((-0.135, 0.061), (-0.155, 0.07)).lineTo(-0.065, -0.017).lineTo(-0.018, -0.099).lineTo(0, -0.13).lineTo(0.018, -0.099).lineTo(0.065, -0.0... | 12 | 194 | 0.080219 |
train_783984d7dca81981 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.131, -0.048, -0.429), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.277, 1.376).extrude(0.627)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.22, 0.161, -0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.247).extrude(0.118))
result = result... | 31 | 109 | 0.489643 |
train_8b843bdb5fc4f995 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.041, 0.382, -0.407), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.02, -0.052).lineTo(-0.02, 0.036).lineTo(0.174, 0.036).lineTo(0.174, -0.052).lineTo(0.201, -0.052).lineTo(0.201, 0.061).lineTo(-0.201, 0.061).lineTo(-0.201, -0.01).lineTo(-0.151,... | 10 | 118 | 0.061565 |
train_25ba1737340e4859 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.08, -1.089, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.279, 2.019).threePointArc((0.651, 1.089), (-0.279, 0.16)).lineTo(-0.279, 0.718).threePointArc((-0.651, 1.089), (-0.279, 1.461)).lineTo(-0.279, 2.019).close().extrude(1.777)
result = ... | 11 | 103 | 2.833897 |
train_3dccfe506873a3db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.637, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.89, -0.253).lineTo(0.89, 0.735).threePointArc((0.672, 1.297), (0.115, 1.527)).lineTo(-0.89, 1.513).lineTo(-0.89, -0.253).lineTo(0.89, -0.253).close().extrude(2)
result = result.edges().fi... | 4 | 37 | 4.53618 |
train_a56ff68337b4db37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.497, -0.058), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.034, -0.096).threePointArc((-0.011, -0.107), (-1.034, 0.107)).threePointArc((0.009, 0.104), (1.034, -0.096)).close().extrude(0.179)
result = result.edges().fillet(0.008)
result = res... | 15 | 115 | 0.133529 |
train_cad7c68e77161d85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.633, 0.459, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.019, 0.028).threePointArc((0, 0.89), (1.019, 0.028)).lineTo(0.559, 0.028).lineTo(-0.559, 0.028).lineTo(-1.019, 0.028).close().extrude(1.223)
result = result.edges().chamfer(0.084)
res... | 10 | 131 | 1.568803 |
train_0fc3b02d8ba80446 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.024, -0.875, 0.099), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.134, 0.125).lineTo(-0.134, -0.125).lineTo(0.134, -0.125).lineTo(0.134, 0.125).lineTo(-0.134, 0.125).close().sweep(cq.Workplane('YZ').spline([(-0.875, 0.099), (-0.727, 0.021), (-... | 6 | 66 | 0.027488 |
train_e57e338b5395a4a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.39, 0.968, 0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.915, 0.806).lineTo(-1.016, 1.771).lineTo(0.915, 1.975).lineTo(1.016, 1.009).lineTo(-0.915, 0.806).close().revolve(angleDegrees=90, axisStart=(-0.915, 0.806), axisEnd=(-1.016, 1.771... | 9 | 55 | 1.166359 |
train_d7ec4cfe1f5c77b9 | 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.27, 1.12).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.325 * math.cos(0.988 + 2 * math.pi * 0 / 3), 0 + 0.325 * math.sin(0.988 + 2 * math.pi * 0 / 3), -1.3), normal=(0, 0, ... | 4 | 33 | 2.694326 |
train_07f63b39568f1744 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.932, -0.001, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1.006).workplane(offset=0.584).circle(1.011).workplane(offset=0.643).circle(0.982).workplane(offset=0.637).circle(1.109).loft()
result = result.edges().chamfer(0.74)
result = result.cut... | 17 | 39 | 2.418249 |
train_e8d44dbd96fd4ae2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.114, -0.11, -0.713), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.051, 0.956).extrude(1.093)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.684, -0.11, -0.456), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.631, 0.639).extrude(0.578))
result = ... | 12 | 53 | 0.865797 |
train_77f6cdef0fd9e0f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.229, -0.786), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.96, 1.542).extrude(1.571)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.076, 0.75, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.442, 0.5).extrude(0.534))
result = result.... | 3 | 51 | 2.414772 |
train_52a5cd00c51f1918 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.133, 0.004, -0.405), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.867, 0.004).lineTo(0.246, 0.822).lineTo(-0.692, 0.501).lineTo(-0.692, -0.527).lineTo(0.287, -0.829).close().moveTo(-0.115, 0.242).lineTo(-0.155, 0.333).lineTo(-0.242, 0.371).lineTo... | 17 | 130 | 0.316628 |
train_bcf4c26cd9e23e0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.032, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.163).sweep(cq.Workplane('YZ').spline([(-0.032, -1), (0.287, -0.531), (0.332, 0.091), (0.087, 0.628), (-0.356, 0.875)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.131 + 0.0435,... | 13 | 152 | 0.105534 |
train_3f95791672d73808 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.276, -0.006, -0.033), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.059, 0.253).lineTo(-0.059, -0.138).threePointArc((-0.076, -0.145), (-0.083, -0.163)).lineTo(-0.059, -0.163).lineTo(0.059, -0.163).lineTo(0.083, -0.163).threePointArc((0.076, -0.... | 37 | 279 | 0.207024 |
train_d29fbfbdf8f4a5ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.339, -0.212, -0.007), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.772, 0.023).threePointArc((0, 0.245), (0.772, 0.023)).lineTo(-0.772, 0.023).close().extrude(0.868)
result = result.edges().fillet(0.064)
result = result.union(cq.Workplane(cq.Pl... | 21 | 106 | 0.226787 |
train_d2262c0a0c3123cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.555, -0.168, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.272, 0.445).lineTo(-0.083, -0.445).lineTo(0.272, 0.392).lineTo(-0.272, 0.445).close().sweep(cq.Workplane('XY').spline([(0.555, 0.367), (0.26, 0.613), (-0.166, 0.627), (-0.484, 0.4), ... | 5 | 19 | 0.287982 |
train_f56930d485688c22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.628), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.668, 0.631).extrude(0.655)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.429, 0.329).extrude(0.399))
result = result.union(cq.Wo... | 11 | 61 | 0.33366 |
train_abb721e2fe217b39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.768, -0.087, 0.386), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.247).sweep(cq.Workplane('XZ').spline([(-0.768, 0.386), (-0.438, 0.001), (-0.108, 0.001), (0.222, 0.386)]))
result = result.edges().fillet(0.083)
result = result.union(cq.Workplan... | 11 | 67 | 0.23417 |
train_05e59bf0b7900b6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.467, -0.4, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.33).lineTo(0.143, 0.33).lineTo(0.143, 0.369).lineTo(1, 0.399).lineTo(1, 0.019).lineTo(0.143, 0.049).lineTo(0.143, 0.088).lineTo(-1, 0.088).lineTo(-1, 0.33).close().extrude(0.398)
re... | 5 | 48 | 0.197362 |
train_0415ef602366b4e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.776, -0.763, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.913, 1.275).lineTo(0.608, 0.749).lineTo(0.913, 0.221).lineTo(0.305, 0.221).lineTo(0, -0.306).lineTo(-0.305, 0.221).lineTo(-0.913, 0.221).lineTo(-0.608, 0.749).lineTo(-0.305, 1.275).li... | 5 | 80 | 2.187521 |
train_16770b42a421ec38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.072), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.991).workplane(offset=0.043).circle(0.904).workplane(offset=0.042).circle(0.556).workplane(offset=0.041).circle(0.069).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(-0.8 + 0.1... | 15 | 83 | 0.138648 |
train_3009944baa123c7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.484, 0.034, -0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.549, 0.314).lineTo(-0.411, 0.272).lineTo(-0.516, 0.011).lineTo(-0.351, -0.367).lineTo(0.079, -0.703).lineTo(0.263, -0.507).lineTo(0.43, -0.494).lineTo(0.396, -0.399).close().moveT... | 12 | 172 | 0.088526 |
train_433f2c86c6ff9359 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.132), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0).lineTo(0.82, 0).lineTo(0.82, 0.155).lineTo(0.975, 0.155).lineTo(0.975, -0.155).lineTo(-0.975, -0.155).lineTo(-0.975, 0).lineTo(-0.82, 0).lineTo(-0.82, 0.155).lineTo(-0.201, 0.155).line... | 8 | 36 | 0.064772 |
train_29e433edc93365ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.249), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.751, 0.579).lineTo(-0.751, 0.028).lineTo(0.751, 0.028).lineTo(0.751, 0.579).lineTo(-0.751, 0.579).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.256, 0))
result = result.e... | 13 | 64 | 0.916263 |
train_4c568aec9f44e265 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.264, 0.143), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.014, 0.054).lineTo(0.007, 0.024).lineTo(-0.007, 0.024).lineTo(-0.017, 0.017).lineTo(-0.024, 0.007).lineTo(-0.024, -0.007).lineTo(-0.054, -0.014).lineTo(-0.04, -0.04).lineTo(-0.014, -0.... | 1 | 18 | 0.012777 |
train_8a0d029eb93aeb38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.143, -0.044, 0.113), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.233, 0.256).threePointArc((0.233, 0.211), (0.228, -0.256)).lineTo(-0.233, 0.256).close().sweep(cq.Workplane('YZ').spline([(-0.93, -0.525), (-0.55, -0.493), (-0.169, -0.17), (0.21... | 6 | 19 | 0.196655 |
train_6b46d81260086a49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.533, 0.63, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.087, 1.378).lineTo(0.087, 0.116).lineTo(-1, 0.116).lineTo(-1, -0.312).lineTo(0.981, -0.312).lineTo(0.981, 1.358).lineTo(1, 1.358).lineTo(1, 1.378).lineTo(0.087, 1.378).close().extrude(0... | 12 | 85 | 2.011397 |
train_fa55d0838270c743 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.028, 0.031, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.577, 0.87).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.01, -0.434, 0.061), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.052, 0.064).extrude(0.157))
result = result.uni... | 10 | 52 | 0.961237 |
train_a1a97d38bc8a9644 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, 0.549, -0.103), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.803, 0.368).lineTo(-0.803, 0.071).lineTo(0.323, 0.071).lineTo(0.323, -0.368).lineTo(0.803, -0.368).lineTo(0.803, 0.124).lineTo(0.323, 0.124).lineTo(0.323, 0.368).lineTo(-0.803, 0.... | 28 | 479 | 1.174446 |
train_22e10b59dc23bb82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.336, -0.546, -0.268), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.336, 1.514).lineTo(-0.336, -0.454).lineTo(0.336, -0.454).threePointArc((0.302, -0.372), (0.22, -0.338)).lineTo(0.197, -0.338).lineTo(0.197, -0.269).lineTo(0.22, -0.269).lineTo(0.... | 9 | 54 | 0.591694 |
train_b1e8fb8a9e963f0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.678, -0.525), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.264, 0.322).lineTo(-0.321, 0.264).lineTo(-0.321, -0.264).lineTo(-0.264, -0.322).lineTo(0, -0.322).lineTo(0, 0).lineTo(0.321, 0).lineTo(0.321, 0.219).lineTo(0.269, 0.271).lineTo(0.22,... | 17 | 219 | 0.401118 |
train_bf5135726dd31512 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.218, 0, -0.261), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.565, 1.997).extrude(0.04)
result = result.union(cq.Workplane(cq.Plane(origin=(0.139, 0.05, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.543).extrude(0.052))
result = result.union... | 10 | 82 | 0.48878 |
train_d55007a5aa7a72a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.249, 0, -0.061), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.751, 0.215).lineTo(-0.751, -0.215).lineTo(0.751, -0.215).lineTo(0.751, 0.215).lineTo(-0.751, 0.215).close().extrude(0.452)
result = result.edges().fillet(0.023)
result = result.unio... | 14 | 254 | 0.516031 |
train_9cda520903b7388a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.548, 0.016, 0.387), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.104, 0.156).lineTo(-0.084, 0.156).lineTo(-0.084, 0.136).lineTo(0.084, 0.136).lineTo(0.084, 0.156).lineTo(0.104, 0.156).lineTo(0.104, -0.156).lineTo(0.104, -0.136).lineTo(-0.084, -... | 16 | 192 | 0.265495 |
train_daf9b855fc3c42ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.283, 0.523, -0.114), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.228, 0.228).extrude(0.179)
result = result.union(cq.Workplane(cq.Plane(origin=(0.024, 0.523, -0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.408, 0.072).extrude(0.079))
result = ... | 12 | 77 | 0.093499 |
train_e971133fe00ccad8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.099, -0.019, 0.144), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.358, 0.382).lineTo(0.358, 0.382).lineTo(0.358, -0.382).lineTo(-0.358, -0.382).lineTo(-0.358, 0.382).close().extrude(0.251)
result = result.edges().chamfer(0.04)
result = result.u... | 20 | 142 | 0.135368 |
train_37048a06c2920f47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.485, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.475).sweep(cq.Workplane('XY').spline([(-0.506, -0.485), (-0.341, -0.282), (-0.177, -0.161), (-0.012, -0.12), (0.153, -0.161), (0.317, -0.282), (0.482, -0.485)]))
result = result.edges().... | 2 | 5 | 0.506588 |
train_7e9fae291d5fd5fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.572, 0.408, -0.252), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.62, 1.906).lineTo(0.62, 0.666).lineTo(0.62, -1.089).lineTo(-0.62, 0.151).lineTo(-0.62, 1.906).close().extrude(1.143)
result = result.edges().fillet(0.351)
result = result.cut(cq.... | 4 | 37 | 1.861556 |
train_80838d85be3bd43a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.391, -0.038, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.316, 0.361).extrude(0.242)
result = result.union(cq.Workplane(cq.Plane(origin=(0.373, 0.185, -0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.139, 0.095).extrude(0.141))
result = ... | 11 | 113 | 0.066895 |
train_00c08d963d54ec14 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.604, -0.017, -0.71), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.792, 0.252).extrude(0.725)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.615, 0.054, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.022).extrude(0.766))
result = resu... | 9 | 35 | 0.148936 |
train_f26b697bd4be0b1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.629, 0.283, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.276, -0.429).threePointArc((-0.258, -0.308), (-0.191, -0.206)).threePointArc((0, 0.31), (0.191, -0.206)).threePointArc((0.258, -0.308), (0.276, -0.429)).threePointArc((0, 0.541), (-0.... | 16 | 238 | 0.429468 |
train_80567dde2c7fdfbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.567, 0.452, 0.318), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.884, 1.18).lineTo(0.177, 1.18).lineTo(-0.177, 1.791).lineTo(-0.53, 1.18).lineTo(-0.884, 0.567).lineTo(-0.177, -0.658).lineTo(0.177, -0.045).lineTo(0.884, 1.18).close().extrude(0.90... | 48 | 193 | 0.913236 |
train_b723b061da5fe1cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.636, 0.013, 0.28), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.012, 0).threePointArc((-0.123, -0.145), (-0.146, -0.325)).threePointArc((-0.337, 0.135), (0.123, 0.325)).threePointArc((0.267, 0.214), (0.337, 0.046)).threePointArc((0.156, 0.07),... | 2 | 7 | 0.104556 |
train_1030f7829cdd13cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.351, -0.365, -0.082), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.249, 0.012).lineTo(-0.249, 0.635).lineTo(0.249, 0.635).lineTo(0.249, 0.012).lineTo(-0.249, 0.012).close().extrude(0.529)
result = result.edges().chamfer(0.094)
result = result.u... | 4 | 83 | 0.175154 |
train_88aef3de09007bca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.25, -0.746, -0.03), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.624, 0.089).threePointArc((0.118, 0.64), (-0.624, 0.734)).threePointArc((-0.444, 0.589), (-0.371, 0.37)).threePointArc((-0.057, 0.29), (0.187, 0.076)).threePointArc((0.406, 0.095),... | 17 | 160 | 0.667889 |
train_8283dae775589afd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.352, 0.341, 0.155), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.455, 0.217).lineTo(-0.455, 0.022).lineTo(0.455, 0.022).threePointArc((0.793, 0.217), (0.793, 0.607)).lineTo(0.455, 0.607).lineTo(0.455, 0.802).lineTo(-0.455, 0.802).threePointArc(... | 8 | 73 | 0.719966 |
train_0c96263dc12dfe13 | 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.092, 1.128).extrude(1.767)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.288, -0.054, -1.004), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.025).extrude(0.164))
result = result.cut(cq.Work... | 5 | 18 | 2.166787 |
train_2fb8d7dc2baed62c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.263, 0.981, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.263, -0.994).lineTo(-0.263, 0.622).threePointArc((0.006, 0.799), (0.263, 0.994)).lineTo(0.263, 0.459).lineTo(-0.263, -0.019).lineTo(-0.263, -0.994).close().revolve(angleDegrees=360, a... | 3 | 9 | 0.956296 |
train_c5aeb99d85110cdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.098, 0.439, -0.141), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.084, 0.654).lineTo(0.084, 0.439).threePointArc((0.168, 0.423), (0.238, 0.373)).lineTo(0.238, 0.077).lineTo(0.238, -0.347).lineTo(-0.238, -0.347).lineTo(-0.238, 0.654).lineTo(0.08... | 19 | 137 | 0.533091 |
train_f7533bc2ff578e87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.09, 0.028, -0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.037, 0.012).lineTo(0.314, 0.972).lineTo(-0.822, 0.621).lineTo(-0.857, -0.599).lineTo(0.342, -1.028).close().moveTo(-0.298, -0.209).lineTo(-0.308, -0.205).lineTo(-0.318, -0.2).lineT... | 14 | 108 | 0.53403 |
train_35d219889d3b12c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.42, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.003, -0.072).lineTo(-1.003, 0.101).threePointArc((0.004, 0.057), (1.003, -0.073)).lineTo(-1.003, -0.072).close().extrude(2)
result = result.edges().fillet(0.06)
result = result.union(cq.Wo... | 8 | 96 | 0.402345 |
train_7b79c9c12c2c9a41 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.169, -0.006), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.077, 0.348).lineTo(-0.077, -0.425).threePointArc((0, -0.503), (0.077, -0.425)).lineTo(0.077, 0.348).lineTo(0.851, 0.348).threePointArc((0.928, 0.425), (0.851, 0.503)).lineTo(0.077, 0... | 3 | 15 | 0.157654 |
train_3a113168dd25536f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.15, -0.338), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.155).extrude(0.802)
result = result.faces('>Z').shell(-0.05)
result = result.union(cq.Workplane(cq.Plane(origin=(0.391, 0.216, -0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.052... | 16 | 18 | 0.379885 |
train_16dfb4f532848e69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.05, -0.295, 0.178), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.07, -0.157).lineTo(-0.014, -0.227).lineTo(-0.043, -0.252).lineTo(-0.119, -0.252).threePointArc((-0.17, 0.099), (0.15, 0.252)).lineTo(0.15, 0.22).lineTo(0.15, 0.165).lineTo(0.15, 0.0... | 10 | 75 | 0.227729 |
train_9eef606aa5d4a62d | 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.767, 1.795).extrude(1.522)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.379, 0.142, -0.546), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.148, 1.014).extrude(0.336))
result = result.un... | 7 | 25 | 1.820144 |
train_32732685206da69d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.123, -0.123, -0.021), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.019, -0.002).lineTo(0.015, -0.017).lineTo(-0.015, -0.017).lineTo(-0.019, -0.002).lineTo(-0.019, 0.017).lineTo(0.019, 0.017).lineTo(0.019, -0.002).close().sweep(cq.Workplane('XY')... | 8 | 60 | 0.025249 |
train_660a4ffef5790788 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.238, -0.22, -0.627), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.115, 0.434).lineTo(0.169, 0.434).lineTo(0.169, -0.135).lineTo(-0.169, -0.135).lineTo(-0.169, 0.434).lineTo(0.115, 0.434).close().revolve(angleDegrees=90, axisStart=(0.115, 0.434)... | 8 | 47 | 0.148975 |
train_305ef536a3a6003a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.841, -0.841, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 0.529).threePointArc((0.389, 1.009), (0, 1.682)).threePointArc((-0.389, 1.009), (-1, 0.529)).lineTo(1, 0.529).close().revolve(angleDegrees=90, axisStart=(0, 0), axisEnd=(0.769, 0))
r... | 3 | 11 | 0.422101 |
train_0e5e31c76af5e552 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.748, 0.576, 0.135), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.914, -0.033).lineTo(0.914, -0.033).lineTo(0.699, 1.185).lineTo(-0.914, 1.185).lineTo(-0.914, -0.033).close().extrude(1.497)
result = result.edges().fillet(0.251)
result = result.u... | 10 | 44 | 2.910012 |
train_18a8e6c43e299422 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.417, -0.011, -0.606), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.394, 0.141).lineTo(-0.339, 0.141).lineTo(-0.339, 0.169).lineTo(-0.394, 0.169).lineTo(-0.394, -0.148).lineTo(0.394, -0.148).lineTo(0.394, 0.141).close().extrude(0.833)
result = re... | 10 | 57 | 0.174237 |
train_218b1e604f6ce325 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.183, 0.261, -0.252), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.748, 0.027).lineTo(-0.748, 0.521).lineTo(0.748, 0.521).lineTo(0.748, 0.081).lineTo(0.695, 0.081).lineTo(0.695, 0.027).lineTo(-0.748, 0.027).close().revolve(angleDegrees=90, axisS... | 3 | 16 | 0.33705 |
train_65d20eac9df464e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0.131, -0.789), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.083, -0.233).threePointArc((0.2, -0.017), (0.083, 0.2)).threePointArc((-0.059, 0.242), (-0.2, 0.2)).lineTo(-0.059, -0.017).lineTo(0.083, -0.233).close().workplane(offset=0.112).mo... | 9 | 49 | 0.083907 |
train_7000aac67caa4ae3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.491, 1.002).threePointArc((0.491, 0), (-0.491, -1.002)).lineTo(-0.491, -0.627).threePointArc((0.116, 0), (-0.491, 0.627)).lineTo(-0.491, 1.002).close().extrude(0.2)
result = result.edges().... | 8 | 51 | 0.168786 |
train_7183ba43f38c3e9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.148, -0.077), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.2, 0.028).lineTo(-1, 0.028).lineTo(-1, 0.428).lineTo(1, 0.428).lineTo(1, 0.028).lineTo(0.2, 0.028).close().extrude(0.395)
result = result.edges().fillet(0.047)
result = result.cut(cq.... | 22 | 124 | 0.240599 |
train_3180c00b2b2c1711 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.514, 0, 0.009), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.505, 0.505).lineTo(-0.505, -0.505).lineTo(0.505, -0.505).lineTo(0.505, 0.505).lineTo(-0.505, 0.505).close().revolve(angleDegrees=270, axisStart=(-0.505, 0.505), axisEnd=(-0.505, 0.308... | 8 | 56 | 1.552018 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.