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_2f718309b9006c83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.65, 0, -0.462), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.35, -0.134).lineTo(-0.082, 0.134).lineTo(0.35, -0.134).lineTo(-0.35, -0.134).close().sweep(cq.Workplane('XZ').spline([(-0.65, -0.462), (0.035, 0.039), (0.721, 0.251)]))
result = resu... | 9 | 101 | 0.096309 |
train_db517cbe45f0630a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.036, -0.515, -0.223), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.417, 0.102).lineTo(-0.422, 0.102).lineTo(-0.422, 0.101).lineTo(-0.428, -0.102).lineTo(0.428, -0.102).lineTo(0.428, 0.021).lineTo(-0.417, 0.021).lineTo(-0.417, 0.102).close().swe... | 7 | 66 | 0.130771 |
train_c06548514f95d4a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.281, -0.311, -0.416), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.719, 0.351).threePointArc((0.705, 0.266), (0.665, 0.191)).threePointArc((0.698, 0.108), (0.615, 0.141)).threePointArc((0.54, 0.101), (0.457, 0.087)).lineTo(-0.457, 0.087).threePoi... | 22 | 222 | 0.509305 |
train_f4273aa892611911 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.61, 0.028, 0.062), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 1.156).lineTo(0.158, 0.883).lineTo(0.473, 0.883).lineTo(0.315, 0.609).lineTo(0.473, 0.336).lineTo(0.158, 0.336).lineTo(0, 0.063).lineTo(-0.158, 0.336).lineTo(-0.473, 0.336).lineTo(... | 9 | 138 | 0.18279 |
train_18c7ba45a4acf63e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.509, 0.396, 0.071), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.417, 1.382).threePointArc((-0.15, -0.488), (-0.417, 1.447)).threePointArc((0.007, 1.506), (0.417, 1.382)).close().extrude(0.791)
result = result.edges().fillet(0.151)
result = resu... | 9 | 82 | 1.876698 |
train_de7f28634ad109e6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.072, -0.002, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.268, -0.07).lineTo(0.268, -0.07).lineTo(0.268, 0.932).lineTo(-0.268, 0.932).lineTo(-0.268, -0.07).close().revolve(angleDegrees=270, axisStart=(-0.268, -0.07), axisEnd=(0.268, -0.07))
... | 9 | 162 | 0.906108 |
train_b246838e01dc3d64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.415, 0.023, 0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.803, 0.394).extrude(0.123)
result = result.union(cq.Workplane(cq.Plane(origin=(0.435, 0.283, 0.066), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.17).workplane(offset=0.009).circle(0.... | 17 | 220 | 0.453737 |
train_1a88e9376c802b81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.036, -0.59, -0.465), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, -0.41).lineTo(-1, 0.923).lineTo(-0.333, 1.59).lineTo(0.333, 1.59).lineTo(0.333, 0.257).lineTo(1, 0.257).lineTo(0.333, -0.41).lineTo(-1, -0.41).close().extrude(1.021)
result = res... | 10 | 83 | 2.504552 |
train_57782a992ea5ffdd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.715), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.9, 2).extrude(1.43)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.133, -0.266, -0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.291).extrude(0.264))
result = result.edges().chamfer(... | 10 | 88 | 4.685965 |
train_10e9817c2685f56b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.223), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.997, 0.781).extrude(0.777)
result = result.faces('>Z').shell(-0.062)
result = result.union(cq.Workplane(cq.Plane(origin=(0.077, 0.542, 0.368), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.284... | 8 | 96 | 0.814161 |
train_1b2c7eae439d072f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.158, 0.033), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.354, 0.981).threePointArc((0.503, 0.05), (0.894, -0.808)).lineTo(-0.894, 0.981).lineTo(0.354, 0.981).close().extrude(2)
result = result.edges().fillet(0.026)
result = result.cut(cq.Wo... | 9 | 37 | 1.475466 |
train_b0afd72b50b83981 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.243), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.482).sweep(cq.Workplane('XZ').spline([(-0.191, -0.473), (0.358, -0.473), (0.892, -0.705), (1.427, -0.936)]))
result = result.edges().chamfer(0.222)
result = result.cut(cq.Workplane(cq.Pl... | 8 | 5 | 1.180869 |
train_621d578ea45dee81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.947, 0, -0.076), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.109, -0.016).lineTo(-0.109, -0.011).lineTo(-0.174, 0.024).lineTo(-0.004, 0.024).lineTo(0.174, 0.121).lineTo(0.077, 0.024).lineTo(0.036, -0.016).lineTo(-0.069, -0.121).lineTo(-0.069,... | 2 | 21 | 0.034485 |
train_b67fbd27724105cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.127, -0.013, -0.497), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.023, -0.122).lineTo(0.023, -0.122).lineTo(0.023, -0.216).threePointArc((0, 0.319), (-0.023, -0.216)).lineTo(-0.023, -0.122).close().extrude(0.06)
result = result.edges().fillet(... | 7 | 79 | 0.023661 |
train_54ce5363f04605cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.148, -0.334, -0.423), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.437, 1.334).threePointArc((-0.049, 1.208), (-0.413, 0.861)).threePointArc((-0.437, -0.152), (0.437, -0.667)).lineTo(0.437, 0.861).lineTo(0.437, 1.334).close().extrude(0.846)
resu... | 17 | 129 | 0.945054 |
train_297993aa0cb78300 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.358, -0.941, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.792, 1.694).lineTo(-0.792, 1.01).lineTo(0.871, 1.01).lineTo(0.871, 1.008).lineTo(-0.911, 1.008).lineTo(-0.911, 0.137).lineTo(0.911, 0.137).lineTo(0.911, 1.744).lineTo(0.871, 1.744).l... | 9 | 43 | 1.865049 |
train_a4cfe2f9d59f4f52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.394).extrude(0.503)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.261 * math.cos(1.206 + 2 * math.pi * 0 / 3), 0 + 0.261 * math.sin(1.206 + 2 * math.pi * 0 / 3), -0.291), norm... | 21 | 106 | 1.259624 |
train_d6647eae1c113049 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.849, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.873, 0.95).lineTo(-0.873, 0.621).threePointArc((-0.493, 0.055), (0.174, 0.191)).lineTo(0.873, 0.191).lineTo(0.873, 1.688).lineTo(-0.873, 1.688).lineTo(-0.873, 0.95).close().extrude(2)
re... | 30 | 92 | 3.284901 |
train_a3f9f1104f17e752 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.189, -0.617, -0.003), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.34, 1.105).threePointArc((0, 1.189), (0.34, 1.105)).lineTo(0.34, -0.181).threePointArc((0, -0.265), (-0.34, -0.181)).lineTo(-0.34, 1.105).close().revolve(angleDegrees=180, axis... | 11 | 101 | 0.97925 |
train_a61afb9f922148ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.485, 0.006, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.478, 0.434).extrude(0.641)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.179, 0.094, 0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.158, 0.172).extrude(0.096))
result = r... | 14 | 70 | 0.598108 |
train_aa4df884132513d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.414, -0.063, -0.759), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.079, 1.131).extrude(1.255)
result = result.faces('<Y').shell(-0.056)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.144, 0.728, -0.271), normal=(1, 0, 0), xDir=(0, 0, 1))).... | 8 | 39 | 0.833267 |
train_89829c58e5c78cc7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.205, 0, 0.38), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.717).workplane(offset=0.626).circle(0.453).workplane(offset=0.754).circle(0.709).loft()
result = result.edges().fillet(0.339)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.496,... | 10 | 37 | 0.79227 |
train_e3b7dfd36d3c281f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.096, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.627, 0.398).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.118, -0.129, -0.342), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.031).extrude(0.335))
result = result.union(cq.W... | 20 | 156 | 0.486618 |
train_8a03d94cc04702f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.108, 0.326, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.447, 1.199).lineTo(-0.447, 0.108).lineTo(0.447, 0.108).lineTo(0.447, 1.199).lineTo(-0.447, 1.199).close().extrude(0.653)
result = result.edges().fillet(0.255)
result = result.union(re... | 3 | 50 | 0.976021 |
train_57f454a12393ea42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.023, -0.831), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.105).threePointArc((0.757, -0.051), (0.474, -0.105)).lineTo(-1, -0.105).lineTo(-1, 0.105).lineTo(1, 0.105).close().sweep(cq.Workplane('YZ').spline([(-0.023, -0.831), (0.016, -0.87... | 2 | 18 | 0.158379 |
train_7f22a264175133e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, -0.715, 0.33), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.16, 0.187).threePointArc((0, -0.09), (0.16, 0.187)).lineTo(0.329, 0.285).threePointArc((0, -0.285), (-0.329, 0.285)).lineTo(-0.16, 0.187).close().sweep(cq.Workplane('YZ').spline(... | 9 | 46 | 0.460756 |
train_7d894483c50e5a36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.306, -0.135, 0.442), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.327, 0.233).lineTo(-0.358, 0.16).lineTo(0.358, -0.017).lineTo(0.327, 0.233).close().extrude(0.447)
result = result.edges().chamfer(0.04)
result = result.union(cq.Workplane(cq.Plan... | 17 | 105 | 0.072019 |
train_1462078e52c85c45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.876), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.539, 1.394).extrude(1.876)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.127, 0.126, 0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.976, 0.864).extrude(0.882))
result = result.cut(cq... | 16 | 96 | 3.064291 |
train_db94dea28912294d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.938, 0.106), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.015, 0.062).lineTo(-0.031, 0.013).lineTo(-0.042, 0).lineTo(-0.007, 0).lineTo(-0.007, -0.062).lineTo(0.042, -0.062).lineTo(0.042, 0.062).lineTo(0.015, 0.062).close().sweep(cq.Workplane... | 8 | 53 | 0.018348 |
train_a79d5c42de7d528e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 0.799), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.642).workplane(offset=0.531).circle(0.622).workplane(offset=0.514).circle(0.979).workplane(offset=0.553).circle(0.63).loft()
result = result.edges().fillet(0.43)
result = result.cut(c... | 9 | 77 | 1.748587 |
train_e471773e120860a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.536, -0.087, 0.023), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.786).threePointArc((0.626, -0.615), (1.075, -0.147)).lineTo(0, -0.147).lineTo(0, 0.961).lineTo(-1.075, 0.961).lineTo(-1.075, -0.147).threePointArc((-0.626, -0.615), (0, -0.786... | 9 | 52 | 1.434041 |
train_c68ed7a69e889596 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.088, -0.59, -0.151), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.816).lineTo(0.636, 0.816).lineTo(0.636, 0.736).lineTo(0.079, 0.736).lineTo(0.079, 0.1).lineTo(0, 0.1).lineTo(0, 0.657).lineTo(-0.636, 0.657).lineTo(-0.636, 0.816).lineTo(-0.07... | 10 | 146 | 0.475162 |
train_669393c8d39c7832 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.529, 0.231, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.212, -0.248).lineTo(-0.212, -0.193).lineTo(-0.267, -0.193).lineTo(-0.267, 0.248).lineTo(0.267, 0.248).lineTo(0.267, -0.193).lineTo(0.212, -0.193).lineTo(0.212, -0.248).lineTo(-0.212,... | 8 | 50 | 0.138406 |
train_d54d71ddda568bf2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -1.643, 0.04), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.04, 0.716).lineTo(-1.04, 2.637).threePointArc((0.332, 2.036), (1.04, 0.716)).lineTo(-1.04, 0.716).close().revolve(angleDegrees=90, axisStart=(-1.04, 0.716), axisEnd=(-1.04, 2.637))
r... | 9 | 49 | 3.126287 |
train_761de4285e73db83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.095, -0.862), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.785, 0.785).extrude(1.273)
result = result.faces('>Z').shell(-0.065)
result = result.union(cq.Workplane(cq.Plane(origin=(0.031, -0.011, 0.404), normal=(0, 0, 1), xDir=(1, 0, 0))).circle... | 19 | 44 | 0.403063 |
train_b6340dde7b84c25d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.697, 0.162, 0.332), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.139, 0.079).lineTo(-0.192, 0.083).lineTo(-0.222, 0.04).lineTo(-0.211, 0.016).lineTo(-0.192, 0.044).lineTo(-0.139, 0.039).lineTo(-0.128, 0.015).lineTo(-0.147, -0.012).lineTo(-0.12... | 3 | 45 | 0.039792 |
train_c8d81f20feb43007 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.532), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.863, 2).extrude(1.235)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.54, -0.513, -0.703), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.044, 0.14).extrude(0.175))
result = result.cut(cq... | 12 | 185 | 4.406116 |
train_300af90320ad8e7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.158, 0, -0.544), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.679, 2).extrude(1.087)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.336, 0.543, -0.728), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.079).extrude(1.304))
result = result.cut(cq.W... | 12 | 44 | 3.547191 |
train_183a44bbce7164ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.12, -0.968), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.12, 0.366).extrude(0.822)
result = result.union(cq.Workplane(cq.Plane(origin=(0.17, -0.096, -0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.02).extrude(1.218))
result = result.union... | 11 | 79 | 0.357314 |
train_cdd21680ac9fb0ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, 0.552, -0.38), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.094, -0.47).threePointArc((-0.437, -0.287), (-0.534, 0.267)).threePointArc((-0.009, 0.622), (0.504, 0.25)).threePointArc((0.534, 0.094), (0.518, -0.063)).threePointArc((0.365, -0.... | 16 | 127 | 0.965862 |
train_4336c46eb4ef8574 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.334, -0.284), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.674, -0.32).threePointArc((-0.905, -0.224), (-1, 0.006)).threePointArc((-0.905, 0.236), (-0.674, 0.332)).lineTo(-0.165, 0.332).threePointArc((-0.127, 0.337), (-0.093, 0.352)).threeP... | 4 | 33 | 1.013781 |
train_5f642111869b66ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.079), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.375).lineTo(-1, 0.025).lineTo(-0.699, 0.326).threePointArc((-0.574, 0.025), (-0.699, -0.276)).lineTo(-0.6, -0.375).lineTo(0.769, -0.375).lineTo(1, -0.375).lineTo(1, 0.025).lineTo(1, 0.... | 12 | 61 | 0.067835 |
train_4b94cc7283fddca9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, -0.013, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.007, -0.996).lineTo(-0.007, -0.996).lineTo(-0.007, 1.004).lineTo(0.007, 1.004).lineTo(0.007, -0.996).close().extrude(0.026)
result = result.edges().chamfer(0.005)
result = result.cut(... | 7 | 49 | 0.000577 |
train_a30f2bad8efcbf9c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.258, 0, 0.149), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.347, -1).lineTo(-0.347, 1).lineTo(-0.181, 1).lineTo(-0.347, -1).close().workplane(offset=0.157).moveTo(-0.323, -0.932).lineTo(-0.323, 0.932).lineTo(-0.169, 0.932).lineTo(-0.323, -0.93... | 4 | 19 | 0.035324 |
train_9da2063023a60b39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.494, -0.105, -0.415), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.276, 0.202).extrude(0.231)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.525, -0.098, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.073, 0.06).extrude(0.533))
result ... | 8 | 96 | 0.296202 |
train_725b88e3ce02d74a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.516, 0.5, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.516).lineTo(-0.062, 1.516).lineTo(-0.062, 1.015).lineTo(-0.5, 1.015).lineTo(-0.5, 0.953).lineTo(-0.062, 0.953).lineTo(-0.062, 0.516).lineTo(0.062, 0.516).lineTo(0.062, 0.953).lineTo(0... | 5 | 14 | 0.255758 |
train_8791db15439f824a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.11, 0.268, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.406, 0.234).lineTo(-0.406, 0.18).threePointArc((-0.362, -0.036), (-0.261, -0.234)).lineTo(0.406, 0.234).close().sweep(cq.Workplane('XY').spline([(-0.11, 0.705), (-0.007, 0.863), (0.096... | 3 | 14 | 0.207831 |
train_6e4a817b72ef23b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0.043, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.18, 0.103).threePointArc((0.162, 0.028), (0.18, -0.047)).lineTo(-0.18, -0.047).lineTo(-0.18, 0.103).lineTo(0.18, 0.103).close().extrude(0.448)
result = result.edges().chamfer(0.011... | 30 | 297 | 0.12865 |
train_2b6b7c694d900b84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.46, 0.061, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.224).sweep(cq.Workplane('XZ').spline([(0.46, -0.589), (0.549, -0.581), (0.639, -0.526), (0.729, -0.321), (0.818, -0.115), (0.908, -0.061), (0.998, -0.053)]))
result = result.union(cq.Wor... | 6 | 18 | 0.020418 |
train_4016dbde871b0048 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.244, -0.866), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.263, 0.421).lineTo(0.599, 0.02).lineTo(0.37, 0.02).lineTo(0.286, 0.12).lineTo(-0.286, 0.12).lineTo(-0.37, 0.02).lineTo(-0.599, 0.02).lineTo(-0.263, 0.421).lineTo(0.263, 0.421).close()... | 5 | 65 | 0.458206 |
train_fade5ec77dc2d6e3 | 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.91, 1.332).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.173, 0.449, -0.448), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.18, 0.455).extrude(0.956))
result = result.cut(cq.Workpl... | 7 | 36 | 4.181661 |
train_a9f47caf8234660e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.372, -0.617, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.283, 1.338).lineTo(0.565, 1.338).lineTo(0.565, 0.583).lineTo(-0.565, 0.583).lineTo(-0.565, 1.338).lineTo(0.283, 1.338).close().revolve(angleDegrees=90, axisStart=(0.283, 1.338), axis... | 5 | 58 | 0.771809 |
train_ff792f4743cb35dc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.185, 0.692, -0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.616, 0.616).extrude(0.527)
result = result.union(cq.Workplane(cq.Plane(origin=(0.117, 0.335, 0.077), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.052).extrude(0.053))
result = result.... | 13 | 62 | 0.33608 |
train_a717e7fcd5c13a4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.31, -0.004, -0.416), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.72, -0.006).lineTo(0.487, 0.476).lineTo(0.011, 0.708).lineTo(-0.528, 0.494).lineTo(-0.69, 0.013).lineTo(-0.505, -0.497).lineTo(0.032, -0.699).lineTo(0.489, -0.5).close().moveTo(-0... | 12 | 90 | 0.50996 |
train_bf337246a54b921b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.588, 0.986, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.022, 0.135).lineTo(-0.009, 0.159).lineTo(0.032, 0.159).lineTo(0.956, 1.759).lineTo(1, 1.836).lineTo(0.91, 1.836).lineTo(0.91, 1.8).lineTo(-0.955, 1.8).lineTo(-0.955, 1.759).lineTo(-1,... | 5 | 27 | 0.929313 |
train_5861cea9ad47f057 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.423, 0.496, -0.177), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.421, -0.06).lineTo(-0.421, 0.367).lineTo(-0.168, 0.367).lineTo(-0.168, 0.4).lineTo(-0.089, 0.4).lineTo(-0.089, 0.367).lineTo(0.421, 0.367).lineTo(0.421, -0.06).lineTo(0.407, -0.0... | 22 | 63 | 0.879439 |
train_51eddfc016dba35b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.653, -0.002, -0.947), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.182, 0.099).lineTo(0.182, -0.099).lineTo(-0.182, -0.099).lineTo(-0.182, 0.099).lineTo(-0.106, 0.099).lineTo(-0.106, 0.037).lineTo(0.106, 0.037).lineTo(0.106, 0.099).lineTo(0.182... | 1 | 10 | 0.010968 |
train_8371a344bf72cfb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.04, 0.341, -0.437), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.027, 0.092).lineTo(-0.115, 0.092).lineTo(-0.115, 0.233).lineTo(0.061, 0.233).threePointArc((0.115, 0.215), (0.082, 0.169)).lineTo(0.061, 0.169).lineTo(-0.027, 0.169).lineTo(-0.027... | 10 | 180 | 0.094318 |
train_fd4d326631bf7bdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.415, 0, 0.635), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.279, -0.743).lineTo(0.279, 0.743).lineTo(-0.279, -0.267).lineTo(-0.279, -0.743).lineTo(0.279, -0.743).close().sweep(cq.Workplane('XZ').spline([(-0.415, -0.009), (-0.433, 0.107), (-0.58... | 3 | 16 | 0.72845 |
train_31e252ea7c4e3254 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.47), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.091).extrude(0.94)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, -0.216, -0.133), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.156).extrude(0.159))
result = result.cut(cq.Workplan... | 16 | 169 | 1.423299 |
train_3e3c88ea219607bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.022, 0.013, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.022, 0.011).lineTo(0.506, 0.865).lineTo(-0.512, 0.859).lineTo(-0.978, 0.002).lineTo(-0.522, -0.846).lineTo(0.485, -0.89).close().moveTo(-0.343, -0.087).lineTo(-0.3, -0.087).lineTo... | 21 | 252 | 0.295012 |
train_81c04dc13e35b47f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.17, 0, 0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.081, -1).lineTo(-0.077, -1).lineTo(-0.062, -0.696).lineTo(-0.066, -0.695).lineTo(-0.048, -0.316).lineTo(-0.048, -0.302).lineTo(-0.017, 0.342).lineTo(0.081, 0.342).lineTo(0.081, 0.355).l... | 2 | 14 | 0.009058 |
train_2f7c6325fd9a2843 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, 0, -0.177), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.599, -0.011).lineTo(0.282, 0.504).lineTo(-0.298, 0.487).lineTo(-0.587, 0.015).lineTo(-0.302, -0.504).lineTo(0.292, -0.482).close().moveTo(-0.151, 0.162).lineTo(-0.181, 0.212).lineTo(-... | 21 | 172 | 0.102001 |
train_c800b1e05c2a27a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.541, 0, 0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.463).sweep(cq.Workplane('XZ').spline([(0.541, -1.063), (1.125, -1.063), (1.708, -1.063), (1.973, -0.698), (2.239, -0.333)]))
result = result.edges().chamfer(0.443)
| 2 | 5 | 0.177622 |
train_b02acd233470991e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.84, -0.098, 0.066), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.053, -0.107).lineTo(-0.16, -0.107).lineTo(-0.16, 0.107).lineTo(-0.053, 0).lineTo(0.053, 0.107).lineTo(0.053, 0).lineTo(0.16, 0).lineTo(0.16, -0.107).lineTo(0.053, -0.107).close().... | 8 | 62 | 0.052133 |
train_62fb850194d66100 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.567, 2).extrude(0.476)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.238, -1.538), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.005, 0.061).lineTo(0.035, 0.067).lineTo(-0.01, -0.067)... | 15 | 48 | 1.036444 |
train_db3c0b368d74e6dd | 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, -0.35).lineTo(0.699, 0.35).lineTo(0.226, 0.092).lineTo(0.055, -0.003).lineTo(0.028, -0.018).lineTo(0, -0.032).lineTo(-0.028, -0.018).lineTo(-0.055, -0.018).lineTo(-0.055, -0.003).lineTo(-0.226... | 2 | 23 | 0.156359 |
train_00f69ec27148beeb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.4, -0.135, -0.039), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.117, 0.328).lineTo(-0.117, -0.54).lineTo(0.117, -0.54).lineTo(0.117, 0.54).lineTo(-0.117, 0.54).lineTo(-0.117, 0.328).close().sweep(cq.Workplane('XY').spline([(0.196, -0.135), (0... | 10 | 54 | 0.406564 |
train_cc32ca2a614a7191 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.397), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.587).extrude(0.038)
result = result.union(cq.Workplane(cq.Plane(origin=(0.038, -0.082, -0.361), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.676, 0.503).extrude(0.034))
result = result.union... | 11 | 72 | 0.472581 |
train_5ff14320af1d1fad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.216, 0, -0.468), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.546, 1.489).extrude(1.468)
result = result.union(cq.Workplane(cq.Plane(origin=(0.763, -0.068, -0.096), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.226).extrude(0.441))
result = result.u... | 5 | 88 | 3.426213 |
train_ae526397bd896e8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.713, 0, 0.075), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.254, 0.074).threePointArc((-0.324, 0), (-0.254, -0.074)).lineTo(0.324, -0.107).threePointArc((0.223, 0), (0.324, 0.107)).lineTo(-0.254, 0.074).close().sweep(cq.Workplane('XZ').moveTo... | 6 | 72 | 0.141606 |
train_f317fe601f1bfd6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.37, -0.503, 0.017), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.142, -0.37).lineTo(-0.142, -0.37).lineTo(-0.142, 0.636).lineTo(0.142, 0.636).lineTo(0.142, -0.37).close().revolve(angleDegrees=180, axisStart=(0.142, -0.37), axisEnd=(-0.139, -0.3... | 8 | 72 | 0.367918 |
train_c970d5afc423ba54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.034, 0.23, 0.688), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.312, 0.063).threePointArc((0.31, 0.034), (0.312, 0.005)).lineTo(-0.308, -0.043).threePointArc((-0.312, 0.034), (-0.308, 0.111)).lineTo(0.312, 0.063).close().extrude(0.46)
result = r... | 33 | 247 | 0.044459 |
train_1c88d1b868ed91f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.496, -0.486, 0.085), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.055, -0.063).threePointArc((-0.055, 0), (0.055, 0.063)).lineTo(0.055, -0.063).close().sweep(cq.Workplane('XZ').spline([(0.252, -0.327), (0.551, -0.31), (0.851, -0.168), (1.15, 0.... | 14 | 104 | 0.649825 |
train_c2432af808faa8b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.871, 0.366, -0.522), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.446, 0.917).lineTo(0.446, 0.596).lineTo(0.478, 0.375).lineTo(0.478, 0.088).lineTo(-0.478, 0.088).lineTo(-0.478, 0.917).lineTo(0.446, 0.917).close().extrude(1.742)
result = result.... | 12 | 78 | 1.212091 |
train_12ee720a94a4f80d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.59, -0.05), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.25, -0.149).lineTo(-0.182, -0.081).lineTo(-0.209, -0.081).lineTo(-0.209, 1).lineTo(0.196, 1).threePointArc((0.25, 0.946), (0.196, 0.892)).lineTo(0.196, -0.081).lineTo(0.155, -0.081).l... | 3 | 25 | 0.637981 |
train_740a09c341fb21ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.198, 0.097, -0.477), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.605, 0.659).extrude(0.681)
result = result.union(cq.Workplane(cq.Plane(origin=(0.371, -0.319, -0.145), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.68, 0.216).extrude(0.129))
result = r... | 7 | 21 | 0.784085 |
train_97e6525a8fc62491 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.102, -0.122, 0.118), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.882, 0.023).lineTo(0.882, 0.24).lineTo(-0.882, 0.24).lineTo(-0.882, 0.023).lineTo(0.882, 0.023).close().extrude(0.217)
result = result.union(cq.Workplane(cq.Plane(origin=(0.108, -... | 4 | 21 | 0.083152 |
train_4016ddff91285b28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.765, -0.111, -0.549), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.095, -0.024).lineTo(-0.095, 0.024).lineTo(0.095, 0.024).lineTo(0.095, -0.024).lineTo(-0.095, -0.024).close().transformed(offset=(0.137, 0.059, 0.039), rotate=(45, 0, 0)).moveTo(... | 2 | 6 | 0.005052 |
train_3d179a8a8d867d37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.355, -0.325), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.03).lineTo(-1, -0.13).lineTo(1, -0.13).lineTo(1, 0.03).lineTo(0.9, 0.13).lineTo(0.8, 0.03).lineTo(0.7, 0.13).lineTo(0.6, 0.03).lineTo(0, 0.03).lineTo(-0.1, 0.13).lineTo(-0.2, 0.03... | 5 | 26 | 0.36113 |
train_f6be402719625f44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.107, -0.255, -0.058), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.13, 0.015).lineTo(-0.13, 0.038).lineTo(-0.172, 0.038).lineTo(-0.172, 0.198).lineTo(0.172, 0.198).lineTo(0.172, 0.038).lineTo(0.139, 0.038).lineTo(0.139, 0.015).lineTo(0.114, 0.0... | 4 | 44 | 0.042856 |
train_2bdc0bfe7c7b79f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.593), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.356, 2).extrude(1.186)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.33 * math.cos(0.509 + 2 * math.pi * 0 / 5), 0 + 0.33 * math.sin(0.509 + 2 * math.pi * 0 / 5), -0.771), normal=(... | 6 | 46 | 2.895773 |
train_94a2959860475d73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.467, 0.387), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.534, 0.995).extrude(0.613)
result = result.faces('>Z').shell(-0.053)
result = result.union(cq.Workplane(cq.Plane(origin=(0.135, 1.185, 0.632), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0... | 6 | 95 | 0.777382 |
train_11515ca953032869 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.182), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.592).extrude(0.294)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.079, 0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.433).extrude(0.03))
result = result.union(cq.Wor... | 3 | 12 | 1.032657 |
train_7a95e6a5e853b0b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.829, -0.182, -0.313), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.687, 0.092).lineTo(0.687, 1.566).lineTo(0.287, 1.566).lineTo(0.287, 0.517).lineTo(-0.687, 0.517).lineTo(-0.687, 0.217).lineTo(0.312, 0.217).lineTo(0.312, 0.092).lineTo(0.687, 0.0... | 14 | 32 | 0.342639 |
train_416761d6c6bfdb63 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.738), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.495, 0.339).extrude(0.536)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.208), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.356, 0.184).extrude(0.168))
result = result.union(cq.W... | 14 | 111 | 0.110095 |
train_6278bfa1d69672da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.005, 0, -0.34), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.731, 1.374).extrude(1.34)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.161, -0.43, 0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.271).extrude(0.311))
result = result.cut(cq.... | 13 | 62 | 2.310763 |
train_bb39e60285eeebe6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.419, -0.68, -0.087), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.237, 0.191).lineTo(0.237, 0.191).lineTo(0.237, 0.056).lineTo(-0.093, 0.056).threePointArc((0.009, -0.191), (-0.237, -0.089)).lineTo(-0.237, 0.191).close().transformed(offset=(0.... | 3 | 24 | 0.275059 |
train_66cb7ac9ee697484 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.433).workplane(offset=0.528).circle(0.485).workplane(offset=0.527).circle(0.588).workplane(offset=0.49).circle(0.523).workplane(offset=0.455).circle(0.573).loft()
result = result.edges().fille... | 13 | 45 | 1.581053 |
train_f2ce425e178d0a3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.08, 0.136, 0.11), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.123).lineTo(0, 0.064).lineTo(0.098, 0.064).lineTo(0.098, 0.005).lineTo(-0.098, 0.005).lineTo(-0.098, 0.123).lineTo(0, 0.123).close().extrude(0.234)
result = result.union(cq.Workpl... | 8 | 90 | 0.246251 |
train_02c6bffeb45ea8d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.506), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.923, 2).extrude(1.012)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.134, -0.14, -0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.068, 2.4).extrude(0.09))
result = result.cut(cq.Work... | 7 | 87 | 1.8281 |
train_c937650ae4e87695 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(1.097).workplane(offset=1.018).circle(0.616).workplane(offset=0.982).circle(1.182).loft()
result = result.edges().chamfer(0.624)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.25, 0.61, -0... | 11 | 13 | 2.603701 |
train_a82157b6baf84992 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.049, -1, -0.149), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.063, -0.829).lineTo(0.026, -0.829).lineTo(0.026, 0.152).threePointArc((0.037, 0.172), (0.045, 0.196)).lineTo(-0.18, 0.288).lineTo(-0.273, 0.512).threePointArc((-0.361, 0.681), (-0.18,... | 6 | 39 | 0.212619 |
train_758eae2fb025af73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.529, 0, -0.099), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.298, -0.087).lineTo(-0.298, 0.087).lineTo(0.161, 0.087).lineTo(0.161, 1).lineTo(0.298, 1).lineTo(0.298, 0.087).lineTo(0.231, 0.087).lineTo(0.231, -0.087).lineTo(0.298, -0.087).lineT... | 5 | 50 | 0.142172 |
train_5ebc3db9c20ec986 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.489, -0.283, 0.012), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.256, 0.081).threePointArc((-0.032, -0.069), (-0.357, -0.065)).threePointArc((-0.252, 0.512), (0.265, 0.788)).threePointArc((0.357, 0.433), (0.256, 0.081)).close().extrude(1.283)
r... | 8 | 59 | 0.275424 |
train_c92300bd741076f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.296, 2).extrude(0.584)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.184, 0.218).lineTo(-0.184, 0.212).lineTo(-0.178, 0.198).li... | 13 | 91 | 0.945756 |
train_a05a76756fb3c193 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.691, 0.17, -0.087), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.011, 0.019).threePointArc((-0.015, 0.018), (-0.018, 0.015)).threePointArc((-0.021, 0.009), (-0.021, 0.003)).threePointArc((-0.021, -0.001), (-0.019, -0.004)).threePointArc((-0.015,... | 15 | 138 | 0.031671 |
train_98dfaabae98126c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.512, -0.045, -0.217), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.516, -0.601).lineTo(0.516, -0.601).lineTo(0.516, 0.913).lineTo(0.31, 0.913).lineTo(0.103, 0.706).lineTo(-0.103, 0.706).lineTo(-0.31, 0.913).lineTo(-0.516, 0.913).lineTo(-0.516, ... | 4 | 58 | 2.208976 |
train_5fff3c7853c719d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, -0.302, -0.448), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.552, -0.008).lineTo(-0.552, -0.008).lineTo(-0.552, 0.076).lineTo(0.486, 0.076).lineTo(0.486, 0.177).lineTo(0.552, 0.177).lineTo(0.552, -0.008).close().extrude(1.104)
result = res... | 26 | 142 | 0.192199 |
train_30737f49678feaa0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.032, -0.481, -0.509), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.491, 0.179).lineTo(0.491, 0.179).lineTo(-0.491, -0.148).lineTo(-0.491, 0.179).close().extrude(0.963)
result = result.edges().fillet(0.084)
result = result.union(cq.Workplane(cq.... | 5 | 27 | 0.103777 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.