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_bb62266910f5ae92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.437, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.037, 1.125).extrude(0.089)
result = result.union(cq.Workplane(cq.Plane(origin=(0.052, 0.125, -0.056), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.061, -0.116).lineTo(-0.335, -0.023).line... | 2 | 23 | 0.27814 |
train_d6c3e612fe2380b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.468), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.587).extrude(0.935)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.39, 0.167, -0.477), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.82, 0.936).extrude(0.388))
result = result.edges().c... | 31 | 387 | 1.73228 |
train_1ee6eba1e4833052 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.052, -1, -0.14), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.511, 0.209).threePointArc((0.527, -0.002), (0.574, -0.209)).lineTo(-0.574, -0.209).threePointArc((-0.527, -0.002), (-0.511, 0.209)).lineTo(0.511, 0.209).close().sweep(cq.Workplane('Y... | 25 | 266 | 0.544849 |
train_6cfed6a7374baa04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.019, -0.064, -0.576), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.102, -0.131).threePointArc((-0.196, -0.197), (-0.131, 0.1)).threePointArc((0.196, 0.197), (0.102, -0.131)).close().sweep(cq.Workplane('XY').spline([(0.335, -0.064), (0.512, -0.0... | 26 | 151 | 0.307005 |
train_3a492b654ab7ed54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.097, -0.347, -0.746), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.231, 1.306).extrude(0.76)
result = result.union(cq.Workplane(cq.Plane(origin=(0.421, -0.041, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.07).extrude(0.802))
result = result... | 11 | 49 | 0.885312 |
train_e2746de5e35049b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.872, 0, 0.467), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.452, 0.226).lineTo(0, 0.679).lineTo(0.452, 0.226).lineTo(0, -0.226).lineTo(-0.452, -0.679).lineTo(-0.452, 0.226).close().sweep(cq.Workplane('XZ').spline([(0.557, -0.165), (0.441, -0.05... | 4 | 24 | 0.532913 |
train_a50b43c7bdc192d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.057, 0, 0.088), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.051, 0.681).lineTo(0.127, 0.681).lineTo(0.127, -0.627).lineTo(-0.076, -0.681).lineTo(-0.127, -0.681).lineTo(-0.127, -0.647).lineTo(-0.076, -0.618).lineTo(0.051, -0.583).lineTo(0.051, ... | 16 | 121 | 0.021022 |
train_937ac14f6d4ea752 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.847), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0).lineTo(-1, -0.672).lineTo(1, -0.672).lineTo(1, 0.672).lineTo(-1, 0.672).lineTo(-1, 0).close().extrude(1.693)
result = result.edges().chamfer(0.481)
result = result.cut(cq.Workplane(cq... | 8 | 65 | 2.113729 |
train_8de869478fb42e1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.806, 0.952, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.039, 0).lineTo(-0.019, 0).lineTo(-0.019, -0.016).lineTo(0.044, -0.016).lineTo(0.044, 0).lineTo(0.059, 0).lineTo(0.059, 0.016).lineTo(-0.059, 0.016).lineTo(-0.059, 0).lineTo(-0.039, 0).... | 1 | 11 | 0.002342 |
train_2e3eef8edb132b6b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.154, 0.008, 0.074), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.068, 0.016).lineTo(-0.068, 0.061).lineTo(0.05, 0.061).lineTo(0.05, 0.297).lineTo(0.068, 0.297).lineTo(0.068, -0.22).lineTo(0.05, -0.22).lineTo(0.05, 0.016).lineTo(-0.068, 0.016).c... | 10 | 84 | 0.015556 |
train_6d8849ec53740734 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.475, 0.027, -0.034), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.051, 0.145).extrude(0.175)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.592, 0.043, -0.141), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.033).extrude(0.118))
result = resu... | 7 | 27 | 0.032277 |
train_b3b3d045a58a13ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.021, -0.265), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.171, 1.144).extrude(0.075)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.082, 0.128, -0.225), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.129).extrude(0.019))
result = result.unio... | 10 | 73 | 0.173329 |
train_e86a0e769c73dacd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.465, 0.086, -0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.065, 0.573).lineTo(0.077, 0.585).lineTo(0.08, 0.082).lineTo(0.519, 0.079).lineTo(0.531, -0.071).lineTo(0.07, -0.088).lineTo(0.086, -0.577).lineTo(-0.096, -0.572).lineTo(-0.09, -0... | 17 | 150 | 0.168066 |
train_08d9579dfcd1b197 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.094, 0.371, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.081, 1.205).extrude(0.288)
result = result.union(cq.Workplane(cq.Plane(origin=(0.148, 0.432, 0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.973, 1.085).extrude(0.043))
result = re... | 9 | 100 | 0.610241 |
train_9a5336af07cb6c0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.53, -0.036, 0.358), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.083, 0.106).extrude(0.031)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.519, -0.075, 0.366), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.015).extrude(0.013))
result = result.un... | 14 | 125 | 0.010019 |
train_fedbc1352f377621 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.132, -0.036, 0.061), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.451, -0.404).lineTo(-0.451, 0.404).lineTo(0.451, 0.404).lineTo(0.451, -0.404).lineTo(-0.451, -0.404).close().sweep(cq.Workplane('XZ').spline([(-0.916, -0.417), (-0.524, -0.294), ... | 8 | 40 | 0.881552 |
train_fe68655177518dcb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.77, -0.063, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.298, 0.558).extrude(0.241)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.626, -0.016, 0.019), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.018).lineTo(-0.014, 0.018).lin... | 17 | 110 | 0.108602 |
train_f6846097c58c3439 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.408, 0.467, 0.296), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.815, 0.325).threePointArc((-0.815, -0.038), (0.314, 1.194)).threePointArc((0.428, 0.68), (0.815, 0.325)).close().workplane(offset=0.616).moveTo(0.775, 0.337).threePointArc((-0.775,... | 12 | 72 | 0.892051 |
train_3f20830540cc628d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.466, 0.185, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.368).workplane(offset=0.293).circle(0.381).workplane(offset=0.345).circle(0.322).loft()
result = result.faces('>Z').shell(-0.035)
result = result.union(cq.Workplane(cq.Plane(origin=(-... | 16 | 202 | 0.406521 |
train_fa5778e6f3b51022 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.027, -0.171, 0.622), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.068, 0.131).lineTo(-0.154, 0.131).lineTo(-0.154, -0.131).lineTo(0.154, -0.131).lineTo(0.154, 0.131).lineTo(0.092, 0.131).threePointArc((0.083, 0.126), (0.074, 0.12)).lineTo(0.068, ... | 4 | 45 | 0.158073 |
train_01c98c64571b977b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.513, -0.426, 0.108), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.011, 1.477).lineTo(0.704, 1.219).lineTo(0.011, -0.697).threePointArc((-0.297, -0.43), (-0.704, -0.438)).lineTo(-0.011, 1.477).close().extrude(1.212)
result = result.edges().chamf... | 6 | 84 | 0.574039 |
train_4a2cbc949f13bc82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.605, 0, 0.146), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.01, 0.002).lineTo(-0.01, -0.004).lineTo(0.39, -0.4).lineTo(0.395, 0.002).lineTo(0.395, 0.4).lineTo(-0.01, 0.397).lineTo(-0.395, 0.378).lineTo(-0.393, 0.377).lineTo(-0.017, -0.006).li... | 4 | 21 | 0.087948 |
train_5c2f46ffdf1f7e05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.128, -0.126), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.024, -0.24).threePointArc((0.023, -0.252), (0.02, -0.263)).threePointArc((0.056, -0.324), (0.11, -0.278)).lineTo(0.11, -0.095).lineTo(0.138, 0.303).threePointArc((0.122, 0.324), (0.09... | 15 | 91 | 0.10874 |
train_5404018b653bdfbf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.532).extrude(0.249)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.291, -0.357, -0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.019, 0.352).extrude(0.103))
result = result.cut(cq... | 12 | 45 | 0.495058 |
train_f762f4e314f09488 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.167, 0.205, -0.281), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.097, 0.411).lineTo(-0.037, 0.411).lineTo(-0.037, 0.392).threePointArc((-0.034, 0.359), (-0.028, 0.327)).lineTo(0.051, 0.033).threePointArc((0.058, 0.022), (0.071, 0.018)).threePoi... | 21 | 136 | 0.533532 |
train_3e3743634c251495 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, 0.051, 0.553), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.407, -0.693).threePointArc((0.068, -0.936), (-0.271, -0.693)).lineTo(-0.271, 0.122).lineTo(-0.407, 0.122).lineTo(-0.28, 0.883).lineTo(-0.271, 0.936).lineTo(0.407, 0.936).lineTo(0.4... | 4 | 60 | 1.404983 |
train_c63f37538720866b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.413, 0, 0.088), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.559, 1.451).lineTo(-0.627, 1.451).threePointArc((-0.659, 1.465), (-0.673, 1.496)).lineTo(-0.673, 1.519).threePointArc((-0.659, 1.55), (-0.627, 1.564)).lineTo(0.582, 1.564).threePointAr... | 4 | 27 | 1.511597 |
train_94e26a7771c51f7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.143, -0.339), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.129, 0.65).extrude(1.339)
result = result.union(cq.Workplane(cq.Plane(origin=(0.156, 0.316, 0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.152).extrude(0.245))
result = result.unio... | 17 | 130 | 0.516363 |
train_4e927702c5de9b9f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.688, 2).extrude(0.517)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.463).extrude(0.058))
result = result.union(cq.Workplane(cq... | 16 | 77 | 1.613005 |
train_61b5bbab1584257d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.769, 0.049, -0.484), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.231, -0.161).lineTo(-0.231, 0.161).lineTo(-0.161, 0.161).lineTo(-0.161, 0.141).lineTo(0.201, 0.141).lineTo(0.201, -0.141).lineTo(0.231, -0.141).lineTo(0.231, -0.161).lineTo(-0.2... | 25 | 140 | 0.275085 |
train_f55e7809054ff053 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, 0.003, -0.206), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.455, 0.001).lineTo(0.455, 0.012).lineTo(-0.455, 0.012).lineTo(-0.455, 0).lineTo(0.455, 0.001).close().extrude(0.009)
result = result.edges().fillet(0.002)
result = result.union(cq... | 5 | 44 | 0.000172 |
train_74b80e61eee0a414 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, -0.225, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.964, 1.55).extrude(0.103)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.385, -0.37, -0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.245).extrude(0.048))
result = resu... | 16 | 229 | 0.390041 |
train_7ada7dd7eff42ff7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, -0.005, 0.37), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.623, -0.095).threePointArc((0.623, -0.265), (-0.518, 0.265)).threePointArc((-0.567, 0.083), (-0.623, -0.095)).close().extrude(0.656)
result = result.union(cq.Workplane(cq.Plane(o... | 11 | 39 | 0.617789 |
train_847113332e0cefeb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.07, 0.061, -0.266), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.348, 0.991).extrude(0.532)
result = result.faces('>Z').shell(-0.055)
result = result.union(cq.Workplane(cq.Plane(origin=(0.137, 0.765, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 9 | 42 | 0.242849 |
train_389ad90ef3d08502 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.472, 0.207, 0.506), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.066, 0.678).lineTo(-0.066, 0.014).lineTo(-0.214, -0.545).lineTo(-0.182, -0.6).threePointArc((-0.169, -0.59), (-0.159, -0.577)).lineTo(0.055, -0.056).lineTo(0.176, -0.125).lineTo(-... | 5 | 65 | 1.133195 |
train_54962a37365b577f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.095, 0, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.082, 2).extrude(0.453)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.095, 0, -0.337), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.459, 1.256).extrude(0.589))
result = result.union(... | 13 | 31 | 0.728485 |
train_051394f5fb2f6bcd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.001, 0.001, -0.086), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.666).workplane(offset=0.374).circle(0.608).workplane(offset=0.344).circle(0.647).workplane(offset=0.303).circle(0.623).workplane(offset=0.375).circle(0.657).workplane(offset=0.326... | 14 | 47 | 2.062106 |
train_fc0a4e5fce9e3535 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.324, 0, 0.781), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.808).workplane(offset=0.553).circle(0.613).workplane(offset=0.498).circle(0.418).loft()
result = result.edges().fillet(0.325)
result = result.union(cq.Workplane(cq.Plane(origin=(0.497,... | 11 | 60 | 1.372679 |
train_389ea60c1a26be9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.18, -0.255, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.17, 0.857).extrude(0.015)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.206, -0.266, -0.106), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.123, 0.097).lineTo(-0.123, -0.05)... | 4 | 52 | 0.511801 |
train_94002f1cb769beac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.068, 0.038, -0.689), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.661, 1.328).extrude(1.392)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.068 + 0.145 * math.cos(2.566 + 2 * math.pi * 0 / 3), 0.733 + 0.145 * math.sin(2.566 + 2 * math.pi * 0 /... | 16 | 66 | 0.936333 |
train_fb1ef63f0e7e1fde | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.066, -0.464, -0.033), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.224, 0.194).threePointArc((-0.256, 0.153), (-0.281, 0.108)).threePointArc((-0.233, 0.053), (-0.216, -0.018)).threePointArc((0, -0.234), (0.216, -0.018)).threePointArc((0.233, 0.... | 22 | 163 | 0.095296 |
train_d2c06d82c0bb512e | 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.84).workplane(offset=0.681).circle(0.622).workplane(offset=0.713).circle(0.403).workplane(offset=0.606).circle(0.185).loft()
result = result.edges().fillet(0.116)
result = result.cut(cq.Workpl... | 8 | 21 | 1.818801 |
train_4e09686fba6b9021 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.731, 0, -0.534), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.33).sweep(cq.Workplane('XZ').spline([(-0.731, -0.534), (-0.444, -0.303), (-0.156, -0.165), (0.131, -0.119), (0.418, -0.165), (0.706, -0.303), (0.993, -0.534)]))
result = result.edges... | 24 | 99 | 0.320351 |
train_de5bb7749c04fcb6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.177), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.874, 2).extrude(0.354)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.356).extrude(0.123))
result = result.cut(cq.Workplane(cq.Pl... | 12 | 46 | 0.959925 |
train_457872de3f86e02a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.158, 0.002, -0.248), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.953, -0.025).lineTo(0.342, 0.918).lineTo(-0.772, 0.571).lineTo(-0.842, -0.602).lineTo(0.287, -0.922).close().moveTo(0, 0.089).lineTo(0.042, 0.204).lineTo(0.163, 0.184).lineTo(0.08... | 13 | 116 | 0.696157 |
train_9ec69fffac6168f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.587, 0.001, 0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.827, 0.262).extrude(0.139)
result = result.union(cq.Workplane(cq.Plane(origin=(0.049, -0.011, 0.078), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.289, 0.101).extrude(0.031))
result = re... | 8 | 91 | 0.049569 |
train_afbbcd266b51a97e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.083, -0.058, -0.376), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.173, 0.07).lineTo(-0.03, -0.135).lineTo(0.173, -0.07).lineTo(0.03, 0.135).lineTo(-0.173, 0.07).close().revolve(angleDegrees=180, axisStart=(-0.173, 0.07), axisEnd=(-0.03, -0.135... | 16 | 150 | 0.038959 |
train_13cc28e2ce0bd86c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.169).extrude(0.145)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.8 + 0.4, -0.467 + 0.0935, -0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.023, 0.029).lineTo(0.003, 0).lineTo... | 11 | 66 | 0.335962 |
train_f09c862d978ad2f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.015, -0.259), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.839, -0.985).lineTo(0.875, -0.972).lineTo(0.876, 1).lineTo(-0.862, 1.015).close().center(0, 0.28).rect(0.327, 0.378).moveTo(-0.365, -0.327).lineTo(-0.329, -0.48).lineTo(-0.23, -... | 12 | 94 | 0.678837 |
train_d8a7e39f38c98c3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.253, 0.112), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.554, 1.495).extrude(0.735)
result = result.faces('>Y').shell(-0.035)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.041, 0.51, -0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0... | 8 | 51 | 0.48736 |
train_57293ecb8c09e199 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.54, 2).extrude(0.433)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.216, -1.516), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.039, 0.04).lineTo(0.037, 0.038).lineTo(0.038, 0.038).li... | 15 | 63 | 0.851065 |
train_875d11c8dec0c419 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.005, 0.043, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.119, 0.619).lineTo(0.118, 0.62).lineTo(0.111, 0.118).lineTo(0.497, 0.101).lineTo(0.486, -0.1).lineTo(0.128, -0.097).lineTo(0.125, -0.601).lineTo(-0.11, -0.604).lineTo(-0.114, -0.1... | 12 | 71 | 0.077118 |
train_be38477acf135654 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.312, 0.051, -0.033), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.271).sweep(cq.Workplane('XZ').spline([(-0.598, -0.382), (-0.407, -0.234), (-0.216, -0.234), (-0.025, -0.382)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-0.357, -0.268,... | 5 | 23 | 0.233778 |
train_77f0b801855e7080 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.093, 0, 0.225), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.952, 1.123).extrude(0.274)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.274, -0.247, 0.178), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.277, 0.341).extrude(0.329))
result = result.c... | 9 | 80 | 0.368449 |
train_4eabad88db7181fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.122, 0.001, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.878, -0.9).lineTo(0.858, -0.885).lineTo(0.848, 0.878).lineTo(-0.853, 0.898).close().moveTo(-0.172, -0.193).lineTo(0.173, -0.196).lineTo(0.171, 0.197).lineTo(-0.173, 0.197).close(... | 9 | 87 | 1.305671 |
train_93d541e4497e76df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.108, -0.573, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.361, 0.013).lineTo(-0.361, 0.506).lineTo(0.361, 0.506).lineTo(0.361, 0.013).lineTo(0.164, 0.013).lineTo(0.164, 0.341).lineTo(-0.164, 0.341).lineTo(-0.164, 0.013).lineTo(-0.361, 0.01... | 7 | 80 | 0.27798 |
train_fec8be2470bf79c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.015, -1, 0.139), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.619, -0.379).threePointArc((0.641, -0.339), (0.662, -0.3)).threePointArc((0.17, 0.181), (-0.488, 0.379)).threePointArc((-0.662, 0.265), (-0.457, 0.3)).threePointArc((0.165, 0.093), (0... | 2 | 12 | 0.247084 |
train_722f8fccdb05acd3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.538, 0, -0.202), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.057, -0.057).lineTo(0.032, -0.032).lineTo(-0.029, -0.045).lineTo(-0.032, -0.032).lineTo(0.032, 0.032).lineTo(0.029, 0.045).lineTo(-0.032, 0.032).lineTo(-0.045, 0.029).lineTo(-0.057, 0.... | 4 | 32 | 0.006481 |
train_07c1bc3b79da9273 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.345, 0.107, -0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.637, 0.893).lineTo(-0.999, 0.376).lineTo(-1.061, -0.115).lineTo(-0.185, -0.636).lineTo(0.069, -1.107).lineTo(0.557, -0.62).close().moveTo(-0.26, 0.397).lineTo(-0.281, 0.428).lineTo... | 18 | 175 | 0.278323 |
train_69e16cf55ff59272 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.071), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.22, -0.171).threePointArc((-0.173, -0.173), (-0.171, -0.22)).threePointArc((0, -0.279), (0.171, -0.22)).threePointArc((0.222, -0.222), (0.22, -0.171)).threePointArc((0.279, 0), (0.22, 0... | 23 | 49 | 0.354741 |
train_6b8bf57aa8565943 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.071, -0.334, -0.023), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.055, -0.047).lineTo(-0.047, 0.055).lineTo(-0.055, 0.055).lineTo(-0.055, 0.047).lineTo(0.047, -0.055).lineTo(0.055, -0.055).lineTo(0.055, -0.047).close().sweep(cq.Workplane('XY').... | 14 | 125 | 0.056939 |
train_a14847de85881479 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, -0.114, -0.88), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.006, -0.017).lineTo(0.006, -0.013).lineTo(0.004, -0.013).lineTo(0.004, 0.009).threePointArc((0.002, 0.015), (-0.004, 0.017)).lineTo(-0.006, 0.017).lineTo(-0.006, -0.017).lineTo(0.... | 4 | 50 | 0.005831 |
train_e5d261173134870f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.048, -0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.808, 1.304).extrude(0.315)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.048, 0.108), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.591, 0.912).extrude(0.052))
result = result.u... | 12 | 325 | 0.358301 |
train_49a911cc5b8e4b74 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, -0.021, -0.632), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.564, 0.699).extrude(1.632)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.321, -0.086, -0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.069, 0.086).extrude(0.234))
result... | 11 | 136 | 0.729123 |
train_6aee92aa258844dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.103, -0.546, -0.237), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.046, 0.907).extrude(0.371)
result = result.faces('<Y').shell(-0.026)
result = result.union(cq.Workplane(cq.Plane(origin=(0.249, 0.076, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).ci... | 13 | 97 | 0.248658 |
train_b86275e1a1b67f15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.108, -0.788, 0.109), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 0.341).lineTo(-0.394, -0.341).lineTo(-0.093, -0.168).lineTo(0, -0.114).lineTo(0, -0.006).lineTo(0.187, -0.006).lineTo(0.094, -0.168).lineTo(0, -0.329).lineTo(0, -0.341).lineTo(0... | 4 | 41 | 0.299697 |
train_501fb9bc78d45c9f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.071, -0.256, 0.245), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.341, 0.511).lineTo(0.341, -0.036).lineTo(-0.511, -0.036).lineTo(-0.511, -0.206).lineTo(0.341, -0.206).lineTo(0.341, -0.341).lineTo(-0.511, -0.341).lineTo(-0.511, -0.511).lineTo(0.... | 12 | 98 | 0.644042 |
train_4726e71f24adc265 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.305), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.452).lineTo(-1, 0.452).lineTo(1, 0.452).lineTo(1, -0.452).lineTo(-1, -0.452).close().extrude(0.611)
result = result.edges().fillet(0.101)
result = result.cut(cq.Workplane(cq.Plane(ori... | 4 | 51 | 1.020588 |
train_71b0390be16b25d5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.975, 0, 0.206), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.014, -0.002).lineTo(-0.014, 0.014).lineTo(0.014, 0.014).lineTo(0.014, -0.002).lineTo(0.025, -0.014).lineTo(0.012, -0.014).lineTo(0.01, 0.002).lineTo(0.002, -0.014).lineTo(-0.025, -0.... | 1 | 11 | 0.000305 |
train_f0e2a94ddfe36193 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, 0, 0.233), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.131, -0.25).lineTo(-0.119, -0.26).lineTo(-0.093, -0.25).lineTo(0.131, -0.25).lineTo(0.093, -0.175).lineTo(-0.025, -0.222).lineTo(-0.074, -0.2).lineTo(0.05, -0.092).lineTo(-0.001, 0.00... | 3 | 26 | 0.079083 |
train_c15e5dddbd5db853 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.501, -0.679, -0.101), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.278, 0.293).lineTo(-0.278, -0.232).lineTo(-0.351, -0.232).lineTo(-0.351, -0.293).lineTo(0.351, -0.293).lineTo(0.351, -0.232).lineTo(0.285, -0.232).lineTo(0.285, 0.185).lineTo(0.... | 2 | 15 | 0.813266 |
train_0513a191297db5ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.668, -0.609, -0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.046, -0.023).lineTo(0, -0.023).lineTo(-0.006, 0.249).lineTo(-0.064, 0.249).lineTo(-0.064, -0.192).lineTo(-0.136, -0.192).lineTo(-0.136, -0.249).lineTo(0.136, -0.249).lineTo(0.136,... | 3 | 16 | 0.049711 |
train_b303ab63350daa5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.504, 0, 0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 1.004).lineTo(-0.5, 0.004).lineTo(0.219, 0.004).lineTo(0.5, 0.28).lineTo(0.5, 1.004).lineTo(-0.5, 1.004).close().revolve(angleDegrees=360, axisStart=(-0.5, 1.004), axisEnd=(-0.5, 0.0... | 10 | 29 | 2.226765 |
train_64d754af014de070 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.266, -0.564, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.416, 0.872).extrude(0.167)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.18, -0.207, -0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.276, 0.293).threePointArc((-0.29... | 10 | 235 | 0.320217 |
train_d7ae72db0318995f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.256, 0.086, -0.265), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.045, 0.25).lineTo(0.045, -0.189).lineTo(-0.045, -0.189).lineTo(-0.045, 0.25).lineTo(0.045, 0.25).close().extrude(0.068)
result = result.edges().chamfer(0.023)
result = result.unio... | 11 | 168 | 0.828775 |
train_1454e27d9d835ed2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.265, 0.004, -0.651), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.47, 1.361).extrude(0.747)
result = result.union(cq.Workplane(cq.Plane(origin=(0.343, 0.757, -0.213), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.126, 0.179).extrude(0.061))
result = re... | 12 | 76 | 1.738405 |
train_f14f0038a07ccf09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.224, 0.283), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.754, -0.134).lineTo(1.02, 0.134).lineTo(-1.02, 0.134).lineTo(-0.754, -0.134).lineTo(0.754, -0.134).close().workplane(offset=0.114).moveTo(0.731, -0.13).lineTo(0.989, 0.13).lineTo(-0.9... | 6 | 45 | 0.152671 |
train_4f1423203f79d5cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.009, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.306, -0.266).lineTo(-0.042, -0.266).lineTo(0.25, 0.26).lineTo(0.292, 0.26).lineTo(0.306, 0.284).lineTo(0.061, 0.284).lineTo(-0.306, -0.266).close().extrude(0.437)
result = result.un... | 12 | 94 | 0.120685 |
train_ea5d71cb2ca5e840 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.824, 0.687, -0.225), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.176, 0.176).lineTo(-0.022, 0.176).lineTo(-0.022, 0.156).lineTo(-0.075, 0.045).threePointArc((-0.109, 0.058), (-0.145, 0.065)).lineTo(-0.145, 0.082).lineTo(-0.145, 0.099).threePoin... | 15 | 96 | 0.243017 |
train_99109b59265ab54c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.205, -0.065, -0.845), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.092, 0.106).lineTo(-0.102, 0.089).lineTo(-0.111, 0.089).lineTo(-0.111, -0.098).lineTo(0.073, -0.098).lineTo(0.083, -0.114).lineTo(0.102, -0.114).lineTo(0.111, -0.098).lineTo(0.1... | 9 | 100 | 0.061117 |
train_f2840c4dc3f60e64 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.347), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.812, 2).extrude(0.695)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.127, -0.199, 0.058), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.553, 1.365).threePointArc((-0.751, 1.284), (-0.8... | 8 | 39 | 2.350529 |
train_fe379abd6f4b5101 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.609, 0.348, -0.342), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.365, -0.196).threePointArc((0.026, -0.391), (-0.313, -0.196)).threePointArc((-0.365, 0), (-0.313, 0.196)).threePointArc((0.026, 0.391), (0.365, 0.196)).threePointArc((0.222, 0.052... | 3 | 12 | 0.593314 |
train_03f8be5906fa5551 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.53, -0.168, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.939, 1.106).extrude(0.408)
result = result.faces('<Y').shell(-0.045)
result = result.union(cq.Workplane(cq.Plane(origin=(0.401, 0.544, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 9 | 44 | 0.175963 |
train_1bbaced83584ebcf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.647, 0.455, 0.07), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.235, 0.037).lineTo(0.003, 0.175).lineTo(0.235, 0.041).lineTo(0.276, 0.112).lineTo(0.044, 0.246).lineTo(0.044, 0.468).lineTo(-0.038, 0.468).lineTo(-0.038, 0.246).lineTo(-0.276, 0.10... | 18 | 284 | 0.160059 |
train_ab78c7558a365231 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.099, -0.19, -0.178), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.391, 0.037).lineTo(0.391, 0.037).lineTo(0.391, 0.343).lineTo(-0.391, 0.343).lineTo(-0.391, 0.037).close().extrude(0.2)
result = result.edges().fillet(0.03)
result = result.union(... | 11 | 89 | 0.064902 |
train_b305d5f8fb502349 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.252, -0.718, 0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.276, -0.271).lineTo(0.264, -0.282).lineTo(-0.003, -0.016).lineTo(-0.014, -0.004).lineTo(-0.026, 0.008).lineTo(-0.288, 0.27).lineTo(-0.276, 0.282).lineTo(-0.014, 0.02).lineTo(-0.003... | 2 | 30 | 0.012339 |
train_6ae5e64835afcb9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.165, -0.186, -0.629), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.628, 0.536).extrude(0.153)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.045, -0.235, -0.478), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.131).extrude(0.03))
result = res... | 28 | 157 | 0.219314 |
train_816871ffac2e1375 | 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.931, 1.104).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.714, 0.273, -0.689), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.107).extrude(1.247))
result = result.cut(cq.Workplane(... | 10 | 93 | 3.266433 |
train_d74a6b359f91c81e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.486, 0.061, 0.196), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.029, 0.835).extrude(0.798)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.497, -0.414, 0.451), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.528, 0.129).extrude(0.215))
result = ... | 8 | 42 | 1.156338 |
train_c4d962143387d796 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.971, -0.009, 0.345), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.029, 0.012).threePointArc((-0.006, -0.006), (0.012, -0.029)).lineTo(0.029, -0.019).threePointArc((0.008, 0.008), (-0.019, 0.029)).lineTo(-0.029, 0.012).close().transformed(offset... | 11 | 99 | 0.211119 |
train_0491a392c0e68f3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.245, 0.01, -0.251), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.756, -0.582).lineTo(0.724, -0.556).lineTo(0.755, 0.562).lineTo(-0.761, 0.556).close().moveTo(0.114, 0).lineTo(0.083, 0.081).lineTo(0.002, 0.116).lineTo(-0.083, 0.082).lineTo(-0.117... | 13 | 89 | 0.485303 |
train_3c56f0b582d937cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.194, 0.096, -0.275), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.025, 0.904).threePointArc((-0.153, 0.83), (-0.226, 0.652)).lineTo(-0.226, -0.652).threePointArc((-0.153, -0.83), (0.025, -0.904)).lineTo(0.126, -0.904).lineTo(0.226, -0.904).line... | 27 | 326 | 1.205006 |
train_0f832d90a2c7afab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.133, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.289, -0.387).threePointArc((0.096, 0), (-0.289, 0.387)).lineTo(-0.289, 0.58).threePointArc((0.289, 0), (-0.289, -0.58)).lineTo(-0.289, -0.387).close().revolve(angleDegrees=270, axisStart... | 3 | 15 | 0.551014 |
train_5ff08c9ba6951af1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.164, -0.517, -0.359), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.458, 0.458).extrude(0.806)
result = result.faces('>Z').shell(-0.053)
result = result.union(cq.Workplane(cq.Plane(origin=(0.206, -0.476, 0.436), normal=(0, 0, 1), xDir=(1, 0, 0))).ci... | 11 | 67 | 0.2497 |
train_9fae46528d919d66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.111, -0.16, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.396, 0.007).lineTo(0.207, 0.358).lineTo(-0.207, 0.334).lineTo(-0.409, -0.013).lineTo(-0.2, -0.363).lineTo(0.192, -0.348).close().moveTo(-0.054, 0.188).lineTo(-0.094, 0.243).lineTo(... | 14 | 159 | 0.117247 |
train_c0cf9b3bdffd56ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.047, -0.21), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.661, -0.256).lineTo(0.661, 0.351).lineTo(-0.661, 0.351).lineTo(-0.661, -0.256).lineTo(0.661, -0.256).close().extrude(2)
result = result.edges().chamfer(0.172)
result = result.union(cq... | 14 | 105 | 1.413227 |
train_28d07bfdaf1123e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, 0, -0.413), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.979, -0.849).lineTo(0.978, -0.861).lineTo(1.01, 0.822).lineTo(-0.99, 0.861).close().center(-0.279, 0.237).rect(0.266, 0.259).moveTo(0.558, 0.07).lineTo(0.558, 0).lineTo(0.488, 0).line... | 13 | 140 | 2.116594 |
train_107c1046940884ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.033, -0.124, -0.035), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.345, 0.078).lineTo(0.345, 0.317).lineTo(-0.345, 0.317).lineTo(-0.345, 0.078).lineTo(0.345, 0.078).close().revolve(angleDegrees=360, axisStart=(0.345, 0.078), axisEnd=(0.345, 0.31... | 9 | 54 | 0.26733 |
train_697a3e0adad57853 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.362).extrude(0.418)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.395, 0.103, 0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.374).extrude(0.131))
result = result.cut(cq.Workplan... | 10 | 19 | 1.08058 |
train_6485961f84f4b4e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.013, 0.039), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.976, -0.024).lineTo(-0.506, -0.024).lineTo(-0.506, 0.036).threePointArc((-0.494, 0.048), (-0.482, 0.036)).lineTo(-0.482, -0.024).lineTo(-0.097, -0.024).lineTo(-0.097, -0.036).threePo... | 4 | 47 | 0.002453 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.