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_f3dd17597fb03a6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.603), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.522, -0.998).lineTo(1, -0.998).lineTo(1, 0.157).lineTo(0.157, 0.157).lineTo(0.157, 0.998).lineTo(-1, 0.998).lineTo(-1, -0.998).lineTo(-0.522, -0.998).close().extrude(1.206)
result = resul... | 23 | 161 | 2.147968 |
train_cd1e382f685e28b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.808, 0.253), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.374, 0.808).lineTo(-0.332, 0.808).lineTo(-0.332, 0.345).threePointArc((-0.183, 0.252), (-0.09, 0.103)).lineTo(0.374, 0.103).lineTo(0.374, 0.061).lineTo(-0.121, 0.061).threePointArc((-... | 2 | 12 | 0.137062 |
train_45301755df73fd87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.922, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.545).workplane(offset=0.645).circle(0.603).workplane(offset=0.678).circle(0.992).workplane(offset=0.522).circle(0.441).loft()
result = result.edges().fillet(0.479)
result = result.cut(cq.W... | 6 | 17 | 2.827942 |
train_58233be4f9110c99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.21, 0, -0.241), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.638, 0.96).extrude(1.241)
result = result.union(cq.Workplane(cq.Plane(origin=(0.163, 0.18, -0.681), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.19).extrude(0.486))
result = result.cut(cq.... | 13 | 116 | 0.826496 |
train_57b586bf8a5b894a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.176, 2).extrude(0.624)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.428, 0.375, -0.426), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.084, 0.097).extrude(0.749))
result = result.edges().f... | 17 | 143 | 1.380462 |
train_15a9c7b10a8122ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.394, -0.318), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.68).workplane(offset=0.409).circle(0.67).workplane(offset=0.379).circle(0.692).loft()
result = result.edges().fillet(0.102)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.284,... | 10 | 32 | 0.723159 |
train_fe6799800f588dd0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.665), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.133, 2).extrude(1.329)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.211, -0.21, -0.682), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.233, 1.18).extrude(0.697))
result = result.cut(cq.Wo... | 11 | 80 | 2.65994 |
train_5f6c3fcdf86ab5f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.157, 0.142, -0.178), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.151, 0.024).threePointArc((0.065, 0.221), (-0.028, 0.415)).threePointArc((-0.105, 0.562), (-0.186, 0.707)).lineTo(-0.309, 0.636).threePointArc((-0.231, 0.496), (-0.157, 0.355)).th... | 15 | 140 | 0.080355 |
train_132ca9996a017381 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.646, 0.493, 0.151), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.62).workplane(offset=0.17).circle(0.583).workplane(offset=0.162).circle(0.546).workplane(offset=0.201).circle(0.509).workplane(offset=0.21).circle(0.472).workplane(offset=0.151).ci... | 12 | 72 | 0.437469 |
train_f54a33f936c197d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.172, 0.114, -0.191), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.828, -0.38).threePointArc((-0.023, 0.427), (-0.828, -0.427)).threePointArc((0, -0.402), (0.828, -0.38)).close().extrude(0.235)
result = result.edges().chamfer(0.059)
result = res... | 11 | 75 | 0.206082 |
train_e0d522003cfbed19 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.858, 0.473, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.314, -0.008).lineTo(-0.212, -0.008).lineTo(-0.212, -0.527).lineTo(-0.314, -0.527).lineTo(-0.314, 1.473).lineTo(0.026, 1.473).lineTo(0.026, 1.314).lineTo(-0.1, 0.992).lineTo(0.114, 0.99... | 12 | 151 | 0.837297 |
train_7503afb54b599d07 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.79, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.618, 1.255).lineTo(-0.618, 0.098).lineTo(0.54, 0.098).lineTo(0.54, 1.178).lineTo(0.618, 1.178).lineTo(0.618, 1.255).lineTo(-0.618, 1.255).close().extrude(2)
result = result.cut(cq.Workpla... | 21 | 144 | 1.930297 |
train_4e9a98a5864df6a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.247, -0.177, 0.398), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.479, -0.303).lineTo(-0.602, -0.303).lineTo(-0.602, 0.656).lineTo(0.602, 0.656).lineTo(0.602, 0.533).lineTo(0.479, 0.533).lineTo(0.479, -0.303).close().workplane(offset=0.109).move... | 29 | 86 | 0.194233 |
train_32cb29dc3ba45b5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.367, -0.134, -0.396), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.702, 0.702).extrude(0.702)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.305, -0.155, 0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.038).extrude(0.099))
result = res... | 24 | 136 | 0.529437 |
train_35be5f8512c651c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.535, -0.277, 0.005), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.044, -0.591).threePointArc((-0.016, -0.541), (0, -0.486)).lineTo(0.54, -0.262).lineTo(0.764, 0.277).threePointArc((0.978, 0.682), (0.54, 0.818)).lineTo(0, 1.041).threePointArc((-... | 21 | 133 | 0.902382 |
train_8c4dde4efbcfe3c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.299, 0.131, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.403, 0.779).extrude(0.213)
result = result.union(cq.Workplane(cq.Plane(origin=(0.44, 0.224, -0.185), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.113, -0.175).lineTo(-0.113, 0.137).l... | 13 | 64 | 0.181925 |
train_1b4f39a92d4a43ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.426, 0.322).extrude(0.579)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.438), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.08).extrude(0.304))
result = result.union(cq.Workplane(c... | 12 | 53 | 0.075693 |
train_762fcc4348304a84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.17, -0.135, -0.491), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.406, -0.021).lineTo(0.406, -0.083).lineTo(-0.406, -0.083).lineTo(-0.406, 0.413).lineTo(0.406, 0.413).lineTo(0.406, -0.021).close().extrude(0.674)
result = result.cut(cq.Workplane(... | 16 | 79 | 0.184831 |
train_99642545c03c5fd9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.077, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.226).sweep(cq.Workplane('XY').spline([(0, -0.474), (0.399, -0.454), (0.8, -0.291), (1.199, 0.137), (1.599, 0.3), (1.999, 0.32)]))
result = result.edges().fillet(0.039)
result = result.cu... | 11 | 44 | 0.310462 |
train_43ed32f40c49b42e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.776, -0.616, -0.476), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.579, 0.557).threePointArc((-0.503, 0.639), (-0.579, 0.721)).threePointArc((-0.294, 1.143), (0.214, 1.179)).threePointArc((0.248, 1.073), (0.356, 1.097)).threePointArc((0.579, 0.... | 27 | 87 | 1.239794 |
train_14edea6354900e8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.536, 0.011, -0.173), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.359, 0.347).lineTo(-0.359, 0.347).lineTo(-0.359, -0.083).lineTo(0.359, -0.083).lineTo(0.359, 0.347).close().extrude(0.523)
result = result.edges().fillet(0.014)
result = result.cu... | 16 | 222 | 0.932849 |
train_6ee641bbf334c756 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.572, 0.271, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.466, 0.832).lineTo(-0.466, 0.832).lineTo(-0.466, -0.477).lineTo(0.466, -0.477).lineTo(0.466, 0.832).close().extrude(1.144)
result = result.edges().chamfer(0.138)
result = result.faces(... | 5 | 59 | 0.54331 |
train_6064e58cbb67e3de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.065, -0.563), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.406, 1.28).extrude(1.126)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.273, -0.154, 0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.229).extrude(0.159))
result = result.edge... | 15 | 152 | 1.512577 |
train_e2b6e23ba39bb728 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.49), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.731, -0.041).threePointArc((0.501, -0.508), (0.031, -0.734)).threePointArc((0.027, -0.702), (0.03, -0.67)).threePointArc((-0.253, -0.649), (-0.507, -0.521)).threePointArc((-0.506, -0.475), ... | 1 | 14 | 1.457378 |
train_342990bb45b43699 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.179, 0.4, 0.44), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.171).workplane(offset=0.19).circle(0.185).workplane(offset=0.223).circle(0.238).workplane(offset=0.177).circle(0.209).loft()
result = result.edges().fillet(0.031)
result = result.cut... | 21 | 101 | 0.096047 |
train_08d8662eaa365b07 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.161, -0.081, 0.111), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.855, 0.121).lineTo(-0.889, 0.121).lineTo(-0.889, 0.014).lineTo(0.889, 0.014).lineTo(0.889, 0.121).lineTo(0.603, 0.121).lineTo(0.603, 0.086).lineTo(0.486, 0.086).lineTo(0.486, 0.1... | 8 | 61 | 0.096904 |
train_f9f534904a0f9628 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.049, 0, 0.649), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.33).sweep(cq.Workplane('XZ').spline([(0.694, 0.386), (0.299, 0.563), (-0.144, 0.502), (-0.45, 0.229), (-0.494, -0.144), (-0.257, -0.462), (0.163, -0.594)]))
result = result.edges().fi... | 12 | 53 | 0.775614 |
train_4ee470ccee722a07 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.666, -0.013, -0.2), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.32, -0.291).threePointArc((-0.331, -0.285), (-0.334, -0.273)).lineTo(-0.327, -0.247).threePointArc((-0.32, -0.239), (-0.309, -0.237)).lineTo(-0.23, -0.258).threePointArc((-0.219, ... | 13 | 95 | 0.385618 |
train_693aa57f60dae1bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.532, -0.902, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1, 1.125).lineTo(1, 1.308).threePointArc((0.715, 1.247), (0.776, 1.532)).lineTo(0.593, 1.532).lineTo(-0.593, 1.532).lineTo(-0.593, 1.207).threePointArc((-0.617, 1.149), (-0.675, 1.125))... | 30 | 252 | 2.693504 |
train_55e9708e52a5c431 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.414, -0.628, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.865, 0.029).lineTo(0.885, 0.018).lineTo(0.563, -0.389).lineTo(0.556, -0.409).lineTo(0.01, -0.27).lineTo(-0.015, -0.271).lineTo(-0.458, -0.586).lineTo(-0.885, 0).lineTo(-0.458, 0.586)... | 9 | 68 | 1.124239 |
train_1d5c76ff8cc42f70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.151, 0.512, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.333, 2.151).lineTo(-0.333, 1.484).lineTo(-1, 1.484).lineTo(-1, 0.818).lineTo(-0.333, 0.818).lineTo(-0.333, 0.151).lineTo(0.333, 0.151).lineTo(0.333, 0.818).lineTo(1, 0.818).lineTo(1, ... | 10 | 130 | 2.062822 |
train_7d377223ba8acd79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.064, 0.479, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.353, 0.39).extrude(0.035)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.046, 0.498, -0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.159).extrude(0.005))
result = resul... | 4 | 24 | 0.159327 |
train_ce9fb96cd70df09f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.609, -0.351, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.75, 1.351).lineTo(-0.75, 1.351).lineTo(0, -0.649).lineTo(0.75, 1.351).close().extrude(1.218)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.325, -0.271, -0.384), normal=(0, 0, 1)... | 10 | 40 | 1.532353 |
train_56de21ded661ac08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.013, -0.13, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.084, 0.608).extrude(1.077)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.703, -0.272, -0.743), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.37, 0.145).extrude(0.347))
result = resu... | 4 | 20 | 1.022659 |
train_e75df22f45c18d40 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.491, 0.106, 0.358), normal=(0, 1, 0), xDir=(0, 0, 1))).lineTo(0.009, -0.006).lineTo(-0.008, -0.027).threePointArc((-0.009, -0.03), (-0.011, -0.032)).close().sweep(cq.Workplane('YZ').spline([(-0.135, 0.141), (-0.055, 0.15), (0.025, 0.226), (0.105... | 8 | 80 | 0.059519 |
train_2739407065924e90 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.745, 0, -0.301), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.239, 0.091).threePointArc((-0.254, 0.03), (-0.253, -0.033)).threePointArc((0.033, -0.254), (0.254, 0.032)).threePointArc((0.03, 0.254), (-0.239, 0.091)).close().sweep(cq.Workplane('... | 3 | 13 | 0.15682 |
train_99c8ea45b15e90f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.159, -0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -1.039).lineTo(0.286, -0.394).lineTo(0.988, -0.321).lineTo(0.463, 0.15).lineTo(0.611, 0.841).lineTo(0, 0.487).lineTo(-0.611, 0.841).lineTo(-0.463, 0.15).lineTo(-0.988, -0.321).lineTo(-... | 11 | 151 | 0.788145 |
train_cc11277b33f0effb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.451, 0.502, 0.009), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.707, 1.502).threePointArc((-0.625, 0.48), (-0.381, -0.517)).lineTo(-0.091, -0.421).lineTo(0.054, -0.372).lineTo(0.707, -0.157).threePointArc((0.506, 0.662), (0.439, 1.502)).lineTo... | 17 | 85 | 1.992609 |
train_3513ba596dedf591 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.194, -0.328, -0.706), normal=(0, 1, 0), xDir=(0, 0, 1))).lineTo(0, 0.234).lineTo(-0.101, 0.125).lineTo(-0.165, 0.057).lineTo(-0.294, -0.08).threePointArc((-0.229, -0.151), (-0.133, -0.144)).threePointArc((-0.124, -0.138), (-0.116, -0.131)).clos... | 8 | 37 | 0.048299 |
train_11daf94b2f91cfa2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.046, -0.154, -0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.298, 0.676).extrude(0.09)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.124, -0.243, 0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.698, 0.222).extrude(0.025))
result = re... | 21 | 100 | 0.066665 |
train_e23e3e7a6e0e928e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.083, -0.084, -0.432), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.835, 1.364).extrude(0.864)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.651 + 0.367, -0.63 + 0.273, -0.562), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.108, 0.176).lineTo(... | 27 | 186 | 1.822793 |
train_687a6babe62b24ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.468, -0.764), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.465, 0.468).threePointArc((-0.403, 0.236), (-0.233, 0.066)).lineTo(0, -0.069).lineTo(0.233, 0.066).threePointArc((0.403, 0.236), (0.465, 0.468)).threePointArc((0.403, 0.701), (0.233,... | 5 | 52 | 1.184288 |
train_8c419bc9370c1270 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.319, 0.005, -0.331), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.039, 1.081).extrude(0.769)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.431, -0.747, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.553, 0.506).extrude(0.179))
result ... | 19 | 151 | 0.814455 |
train_dfe673d37d08ed73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, 0, -0.384), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.015, -0.314).lineTo(1.015, 0.314).lineTo(0.615, -0.314).lineTo(1.015, -0.314).close().extrude(0.469)
result = result.edges().chamfer(0.054)
result = result.union(cq.Workplane(cq.Plan... | 7 | 31 | 0.128345 |
train_320b347f7d985ecc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0.282, -0.27), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.865, 1.056).extrude(0.617)
result = result.faces('<Y').shell(-0.047)
result = result.union(cq.Workplane(cq.Plane(origin=(0.025, 0.429, 0.338), normal=(0, 0, 1), xDir=(1, 0, 0))).circl... | 15 | 55 | 0.499098 |
train_286af6e5d9526dfd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.356), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.911, 1).lineTo(-0.911, 0.648).threePointArc((-0.881, 0.636), (-0.849, 0.628)).lineTo(-0.849, -0.628).threePointArc((-0.881, -0.636), (-0.911, -0.648)).lineTo(-0.911, -1).lineTo(0.741, -1)... | 7 | 21 | 1.351205 |
train_ef728aa4979c4625 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.175, -0.018), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.741).sweep(cq.Workplane('YZ').spline([(-1.101, -0.336), (-0.361, -0.856), (0.379, -0.856), (1.12, -0.336)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.592 + 0.148, -1.382 +... | 29 | 3 | 1.472972 |
train_4779f8e167809214 | 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.482, 0.398).lineTo(0.482, -0.398).lineTo(0.301, -0.28).lineTo(0.214, 0.129).lineTo(0.195, 0.216).lineTo(0, -0.084).lineTo(-0.214, -0.299).lineTo(-0.301, 0.111).lineTo(-0.214, 0.129).lineTo(-0.4... | 5 | 35 | 0.380999 |
train_6544dddda44f9651 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.575, -0.883, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.087).lineTo(-1, 1.679).lineTo(1, 1.679).lineTo(1, 0.087).lineTo(-1, 0.087).close().extrude(1.149)
result = result.edges().fillet(0.172)
result = result.cut(cq.Workplane(cq.Plane(o... | 4 | 28 | 3.439358 |
train_11be3e0d834580d9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.366, -0.308, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.619).lineTo(-1, 0.131).lineTo(-0.993, 0.131).threePointArc((-0.745, 0.027), (-0.497, 0.131)).threePointArc((-0.248, 0.027), (0, 0.131)).threePointArc((0.248, 0.027), (0.497, 0.131... | 10 | 39 | 0.788072 |
train_fec57147f4e0e1c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.816), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.946).extrude(1.632)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.539, 0.179, -0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.97, 1.198).extrude(0.951))
result = result.cut(cq.Wo... | 25 | 99 | 2.792846 |
train_6c193fd9c5cc6cdd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.087, 0.538, 0.692), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.003, -0.003).lineTo(0.003, -0.462).lineTo(-0.398, -0.462).threePointArc((-0.439, -0.445), (-0.456, -0.404)).lineTo(-0.456, -0.003).lineTo(-0.462, -0.003).lineTo(-0.462, 0.404).thre... | 10 | 77 | 0.405938 |
train_fd90598c121ec6ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.631, 1.787).extrude(0.987)
result = result.faces('<X').shell(-0.055)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.077, 0.073, -0.407), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.727,... | 6 | 75 | 1.312125 |
train_755686516c28e504 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.033, -0.361, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.708).lineTo(0.388, 0.259).lineTo(0.388, -0.189).lineTo(0, -0.189).lineTo(-0.388, 0.259).lineTo(0, 0.708).close().extrude(1.443)
result = result.edges().chamfer(0.102)
result = res... | 25 | 129 | 0.45599 |
train_84b7e519d2beb606 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.088, -0.004, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.045, -0.012).lineTo(0.343, 1.004).lineTo(-0.823, 0.61).lineTo(-0.869, -0.644).lineTo(0.352, -0.996).close().moveTo(-0.232, 0.434).lineTo(-0.232, 0.159).lineTo(-0.239, 0.166).line... | 15 | 198 | 0.556552 |
train_e2cc0fb787f90689 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -1.5, -0.258), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.612, -1.321).lineTo(-0.038, 1.561).lineTo(-0.024, 1.632).lineTo(0.082, 2.162).lineTo(0.612, 1.632).lineTo(0.552, 1.488).lineTo(-0.612, -1.321).close().extrude(2)
result = result.edges... | 18 | 104 | 0.409197 |
train_94aa8114f4e0a678 | 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.14).threePointArc((0.057, 0.129), (0.104, 0.095)).threePointArc((0.113, 0.083), (0.122, 0.07)).threePointArc((0.14, 0.015), (0.134, -0.043)).lineTo(0.049, 0.048).lineTo(0.029, 0.029).lineTo(... | 1 | 22 | 0.054653 |
train_6fac10ea3a58871b | 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.261).workplane(offset=0.389).circle(0.239).workplane(offset=0.286).circle(0.218).workplane(offset=0.297).circle(0.196).workplane(offset=0.318).circle(0.174).workplane(offset=0.369).circle(0.15... | 27 | 95 | 0.185474 |
train_5fb221973ddd691d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.757), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.883).extrude(1.513)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.672, -0.864, -0.141), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.082).extrude(0.121))
result = result.cut(cq.Work... | 10 | 81 | 5.179572 |
train_e6dc3aebc41722cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.12, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.24).workplane(offset=0.464).circle(0.223).workplane(offset=0.648).circle(0.332).loft()
result = result.edges().chamfer(0.162)
result = result.union(cq.Workplane(cq.Plane(origin=(0.218, -0.2... | 8 | 39 | 0.204183 |
train_eb67b5bc9169b2c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.728, 1.501).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.052, 0.519, -0.345), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.305, 1.164).lineTo(0.305, 1.203).lineTo(0.519, 1.203).... | 8 | 45 | 1.686735 |
train_7a585f9df5c37db4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.281, 0.254, 0.276), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.638, 0.394).extrude(0.724)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.575, 0.265, 0.638), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.138, 0.008).lineTo(0.159, 0.008).li... | 8 | 87 | 0.322816 |
train_c339a8c1e1287fe6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.143, -0.088), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.065, -0.206).threePointArc((-0.056, -0.16), (-0.069, -0.115)).lineTo(0.195, 0.147).lineTo(0.133, 0.206).lineTo(-0.065, -0.006).threePointArc((-0.16, -0.062), (-0.124, -0.068)).line... | 9 | 80 | 0.140675 |
train_a817a9747a9f1dc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.106, -0.133), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.7, -0.676).lineTo(-0.7, 0.889).lineTo(0.7, 0.889).lineTo(0.7, -0.676).lineTo(-0.7, -0.676).close().extrude(2)
result = result.edges().fillet(0.266)
result = result.union(cq.Workplane... | 11 | 41 | 3.489057 |
train_ed3582b562591e95 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.651, -0.079, 0.067), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.349).sweep(cq.Workplane('XZ').spline([(-0.651, 0.067), (0.016, 0.075), (0.683, -0.064)]))
result = result.union(cq.Workplane(cq.Plane(origin=(0.181, 0.343, -0.024), normal=(0, 0,... | 7 | 72 | 0.070387 |
train_02de6725ea077b2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.73, -0.41, -0.22), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.025, -0.461).lineTo(0.025, -0.59).lineTo(0.238, -0.59).lineTo(0.238, 0.59).threePointArc((-0.238, 0.279), (-0.146, -0.282)).lineTo(-0.146, -0.355).threePointArc((-0.137, -0.362), (... | 10 | 52 | 0.381578 |
train_43aa880e35d697b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.279, -0.1, 0.807), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.12, 0.588).lineTo(-0.12, -0.195).lineTo(0.059, -0.195).threePointArc((0.12, 0.197), (0.059, 0.588)).lineTo(-0.036, 0.588).lineTo(-0.12, 0.588).close().revolve(angleDegrees=360, ax... | 19 | 153 | 0.315673 |
train_d76bf74935c9458b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, -1, -0.357), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.297, 0.149).lineTo(-0.297, -0.149).lineTo(0.297, -0.149).lineTo(0.297, 0).lineTo(0, 0).lineTo(0, 0.149).lineTo(-0.297, 0.149).close().sweep(cq.Workplane('YZ').spline([(-0.338, -0.53... | 11 | 102 | 0.252393 |
train_7ce117fba93bec93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.061, 0.252, -0.223), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.271, 1.496).extrude(0.561)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.431, 0.075, -0.113), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.151).extrude(0.122))
result = result.... | 12 | 120 | 1.171974 |
train_6d4dc8c3086cb660 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, -0.058, 0.058), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.286, 0.105).lineTo(-0.286, 0.105).lineTo(-0.286, 0.009).lineTo(0.203, 0.009).threePointArc((0.263, -0.035), (0.286, -0.105)).lineTo(0.286, 0.105).close().sweep(cq.Workplane('YZ').s... | 16 | 110 | 0.191967 |
train_073e8f9634190cfc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.477, -0.31, -0.574), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.552, 0.537).lineTo(0.721, 0.073).lineTo(-0.721, 0.073).lineTo(0.552, 0.537).close().revolve(angleDegrees=180, axisStart=(0.552, 0.537), axisEnd=(0.721, 0.073))
result = result.edg... | 9 | 30 | 0.446087 |
train_9c25dbf5f53a94e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.094, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.906, 1.812).extrude(0.856)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.762 + 0.1905, -0.008 + 0.171, -1.606), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.087, 0.003).lineTo(-0... | 10 | 11 | 2.959126 |
train_14a4787709f2aa1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.385, -0.187, 0.662), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.338, 0.707).lineTo(-0.078, 0.707).lineTo(-0.078, 0.393).lineTo(-0.338, 0.083).lineTo(-0.338, -0.333).lineTo(0.338, -0.333).lineTo(0.338, 0.707).close().extrude(0.77)
result = resu... | 7 | 69 | 0.459844 |
train_b7d0aa7eb6b5d5e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.146, 0.145, 0.445), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.109, 0.326).lineTo(-0.051, -0.036).lineTo(0.109, -0.036).lineTo(0.109, 0.326).lineTo(-0.109, 0.326).close().extrude(0.293)
result = result.edges().chamfer(0.079)
result = result.u... | 5 | 40 | 0.011098 |
train_367a0601e6953419 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.436).extrude(0.082)
result = result.union(cq.Workplane(cq.Plane(origin=(0.251, -0.183, 0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.182, 0.105).extrude(0.019))
result = result.cut(cq.... | 7 | 26 | 0.195989 |
train_f0c7cf523b2bb930 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.369, 0.455, 0.619), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, -0.128).lineTo(0.024, -0.128).lineTo(0.024, -0.054).threePointArc((0.285, 0.161), (0.176, 0.481)).threePointArc((0.093, 0.523), (0, 0.538)).lineTo(0, 0.631).lineTo(-0.176, 0.481)... | 13 | 123 | 0.63184 |
train_2a6ef4dc4c14b68c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.431, 0.261, 0.36), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.302, -0.236).lineTo(-0.302, 0.236).lineTo(0.302, 0.236).lineTo(0.302, -0.236).lineTo(-0.302, -0.236).close().sweep(cq.Workplane('XY').spline([(-0.128, 0.261), (-0.052, 0.396), (-0.0... | 10 | 73 | 0.319195 |
train_37521de522bdd5f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.123), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.049, 2).extrude(0.483)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.241, -0.805), normal=(1, 0, 0), xDir=(0, 1, 0))).rect(0.998, 0.16).center(0.072, 0).circle(0.024).extrude(0.576)... | 14 | 70 | 0.434884 |
train_5f22d513368cc43d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.065, 0.154, -0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.576, -0.787).lineTo(0.587, -0.797).lineTo(0.598, 0.787).lineTo(-0.584, 0.782).close().moveTo(-0.342, -0.177).lineTo(-0.032, -0.179).lineTo(-0.029, 0.175).lineTo(-0.343, 0.178).cl... | 11 | 121 | 0.558535 |
train_90bd1fd510088728 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.475), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.411, -0.257).threePointArc((-0.484, -0.021), (-0.431, 0.221)).threePointArc((-0.352, 0.239), (-0.365, 0.318)).threePointArc((-0.016, 0.484), (0.344, 0.341)).threePointArc((0.383, 0.296)... | 8 | 40 | 0.512676 |
train_eb6076112d1fe32d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.297, 0, -0.263), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.407, 1.513).extrude(0.527)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.684, 0.113, -0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.632, 0.658).extrude(0.264))
result = resu... | 5 | 23 | 1.130255 |
train_465d831afd41f337 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.801, 0, -0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.398, 0.022).extrude(0.042)
result = result.union(cq.Workplane(cq.Plane(origin=(0.376, 0.004, -0.014), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.556, 0.009).extrude(0.026))
result = resul... | 6 | 27 | 0.000556 |
train_f61dd004429ce60a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.489), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.964).workplane(offset=0.218).circle(0.901).workplane(offset=0.226).circle(0.837).workplane(offset=0.196).circle(0.773).workplane(offset=0.223).circle(0.709).workplane(offset=0.188).circle(... | 5 | 28 | 1.583962 |
train_9b7bca40136cc408 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.228, -0.089, -0.738), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.544, 1.245).extrude(1.384)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.203, 0.285, -0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.581, 0.524).extrude(0.782))
result = ... | 14 | 258 | 1.804964 |
train_849ff81520c8c616 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.199, -0.213, 0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.281, 0.213).threePointArc((0.227, 0.346), (0.094, 0.401)).lineTo(-0.094, 0.401).threePointArc((-0.281, 0.213), (-0.094, 0.025)).lineTo(0.094, 0.025).threePointArc((0.045, 0.032), (... | 7 | 31 | 0.051008 |
train_b1c40745e398da56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.716), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.766).workplane(offset=0.248).circle(0.718).workplane(offset=0.317).circle(0.845).workplane(offset=0.312).circle(1).workplane(offset=0.24).circle(0.805).workplane(offset=0.316).circle(0.752... | 10 | 29 | 2.437161 |
train_a70ee9ab1cecddc9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, -0.167, 0.669), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.331, 0.241).lineTo(-0.331, 0.027).lineTo(0.331, 0.027).lineTo(0.331, 0.321).lineTo(-0.331, 0.241).close().extrude(0.355)
result = result.edges().fillet(0.111)
result = result.uni... | 4 | 33 | 0.049314 |
train_25112ed41dadec2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.306, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.055, 0.303).lineTo(0.084, -0.303).lineTo(-0.084, 0.274).lineTo(-0.055, 0.303).close().sweep(cq.Workplane('XY').spline([(-0.458, 0.306), (-0.242, 0.113), (-0.025, 0.017), (0.192, 0.017), ... | 2 | 12 | 0.007182 |
train_7fff9db00ddcdcfd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, 0, -0.356), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.627, 0.153).lineTo(-0.644, 0.153).lineTo(-0.635, 0.03).lineTo(-0.635, -0.153).lineTo(-0.372, -0.031).lineTo(-0.627, -0.031).lineTo(-0.627, 0.153).close().sweep(cq.Workplane('XZ').sp... | 2 | 14 | 0.01525 |
train_48b4b3271686ee37 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.192, -0.154, -0.324), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.808).moveTo(-0.125, 0.006).lineTo(-0.125, -0.015).lineTo(0.081, -0.015).lineTo(0.081, -0.006).lineTo(0.125, -0.006).lineTo(0.125, 0.006).lineTo(-0.072, 0.006).lineTo(-0.072, 0.015... | 8 | 55 | 1.075901 |
train_210bc75d98cdcd14 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.046, -0.374), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.18, -0.322).lineTo(0.18, -0.094).lineTo(-0.38, -0.094).lineTo(-0.38, 0.062).lineTo(0.18, 0.062).lineTo(0.18, 0.322).lineTo(0.38, 0.322).lineTo(0.38, -0.322).lineTo(0.18, -0.322).c... | 9 | 48 | 0.239103 |
train_585b1c2bde57d8f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.222, 0.039), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.224, 0.094).lineTo(-0.224, 0.206).lineTo(-0.14, 0.206).lineTo(-0.14, 0.094).lineTo(0.14, 0.094).lineTo(0.14, 0.206).lineTo(0.224, 0.206).lineTo(0.224, 0.094).lineTo(-0.224, 0.094).clos... | 8 | 117 | 0.160764 |
train_d7e66979f4d94dbb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.656, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1.075).workplane(offset=0.466).circle(0.882).workplane(offset=0.568).circle(0.688).workplane(offset=0.475).circle(0.495).loft()
result = result.edges().chamfer(0.174)
result = result.union(c... | 9 | 24 | 2.630009 |
train_468e16755967cbf8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.858, 1.037).extrude(1.398)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.248, -0.139, -0.86), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.381, 0.551).extrude(0.738))
result = result.cut(cq.... | 32 | 159 | 0.744015 |
train_9557a1be35da6c82 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.121, -0.027, -0.075), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.532, 0.016).lineTo(-0.532, 0.459).lineTo(0.532, 0.459).lineTo(0.532, 0.016).lineTo(-0.532, 0.016).close().extrude(0.286)
result = result.edges().chamfer(0.071)
result = result.c... | 7 | 67 | 0.477791 |
train_e0ddabeca692915d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.01, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.432, 0.226).lineTo(-0.432, -0.205).lineTo(0.432, -0.205).lineTo(0.432, 0.226).lineTo(-0.432, 0.226).close().extrude(1.382)
result = result.union(cq.Workplane(cq.Plane(origin=(0.07, -0.005... | 8 | 39 | 0.445206 |
train_4764313994243c69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.302, 0, -0.455), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.407, 1).lineTo(-0.267, -0.54).lineTo(0.407, -1).lineTo(0.407, 0.247).lineTo(0.046, 0.479).lineTo(0.046, 0.736).lineTo(-0.407, 1).close().sweep(cq.Workplane('XZ').spline([(0.302, -0.4... | 2 | 8 | 0.726811 |
train_20dffd93d37ce3fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.112, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.75, 1.223).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.197, 0.602, -0.444), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.975, 0.244).extrude(0.912))
result = result.cut(cq... | 10 | 119 | 3.570031 |
train_e2d6856f563fd27b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.006, -0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.124, 0.998).lineTo(0.125, 1.006).lineTo(0.106, 0.097).lineTo(0.588, 0.1).lineTo(0.574, -0.099).lineTo(0.135, -0.102).lineTo(0.112, -0.994).lineTo(-0.117, -0.987).lineTo(-0.123, -0... | 12 | 160 | 0.093136 |
train_d1bdf5edfdcdbe3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.009, 0, 0.18), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.077, 0).lineTo(0.077, -0.077).lineTo(-0.056, -0.077).threePointArc((-0.077, 0), (-0.056, 0.077)).lineTo(0.077, 0.077).lineTo(0.077, 0).close().sweep(cq.Workplane('XZ').spline([(-1.086, 0... | 2 | 13 | 0.034302 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.