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_1af873bbdc5a70f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.344, -0.272, 0.199), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.401, 0.252).lineTo(-0.401, 0.474).lineTo(0.401, 0.474).lineTo(0.401, 0.252).lineTo(-0.401, 0.252).close().revolve(angleDegrees=180, axisStart=(-0.401, 0.252), axisEnd=(-0.401, 0.... | 16 | 109 | 0.133087 |
train_c9ee780ec733cd43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.064, 0.828, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.234, 0.035).threePointArc((-0.236, 0), (-0.234, -0.035)).threePointArc((0.001, -0.237), (0.236, -0.035)).lineTo(0.194, -0.035).lineTo(-0.191, -0.035).threePointArc((-0.194, 0), (-0.19... | 2 | 21 | 0.295937 |
train_32ef1179e136b9a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.519, 0.066, -0.36), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.962, 0.996).extrude(0.576)
result = result.faces('<X').shell(-0.067)
result = result.union(cq.Workplane(cq.Plane(origin=(0.365, 0, 0.005), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-... | 10 | 152 | 0.286453 |
train_a563ab0fe844a938 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.662, 0.226, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.676, 0.488).extrude(0.092)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.625, 0.121, -0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.185, 0.293).extrude(0.045))
result = res... | 21 | 151 | 0.426139 |
train_8726090533a31521 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.48, 0.004, 0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.521, 0.759).lineTo(0.513, 0.749).lineTo(0.52, 0.528).lineTo(0.115, 0.493).lineTo(0.119, -0.767).lineTo(-0.117, -0.746).lineTo(-0.135, 0.512).lineTo(-0.501, 0.505).close().moveTo(-0.... | 13 | 210 | 0.411845 |
train_bc67564e002d171f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.787), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.672).extrude(1.574)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.633, 0.291, -0.629), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.141).extrude(0.56))
result = result.edges().fillet... | 10 | 65 | 4.520596 |
train_d1ac6036ecc0cd48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.126, 0.27), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 1).lineTo(-0.222, 1).lineTo(-0.222, -0.778).lineTo(0, -0.778).lineTo(0, -1).lineTo(0.222, -1).lineTo(0.222, 1).lineTo(0, 1).close().sweep(cq.Workplane('YZ').spline([(-0.137, -0.024), (0... | 8 | 184 | 0.517541 |
train_18145cb7f55cd526 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.034, -0.034, 0.62), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.162, 0.387).lineTo(-0.286, 0.387).lineTo(-0.286, 0.193).lineTo(-0.456, 0.193).lineTo(-0.456, -0.966).lineTo(-0.611, -0.966).lineTo(-0.611, 0.387).lineTo(-0.441, 0.387).lineTo(-0.4... | 9 | 131 | 1.086722 |
train_98546683604f927b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.986, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.663).workplane(offset=0.349).circle(0.737).workplane(offset=0.369).circle(0.229).workplane(offset=0.436).circle(0.724).workplane(offset=0.463).circle(0.773).workplane(offset=0.357).circle(... | 5 | 23 | 2.162583 |
train_624d644c52be28ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.44, -0.057, 0.357), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.196, 0.294).lineTo(-0.157, 0.294).lineTo(-0.157, 0.255).lineTo(0.157, 0.255).lineTo(0.157, 0.294).lineTo(0.196, 0.294).lineTo(0.196, -0.294).lineTo(-0.196, -0.294).lineTo(-0.196,... | 18 | 69 | 0.56892 |
train_928db6d5bc3937ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.483, 0.148, -0.283), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.283, 0.27).lineTo(0.283, 0.931).lineTo(-0.115, 0.931).threePointArc((-0.241, 0.213), (-0.283, -0.517)).lineTo(0.283, -0.517).lineTo(0.283, 0.27).close().revolve(angleDegrees=360, ... | 4 | 17 | 1.260197 |
train_a974208fcb05d069 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.17, -0.107), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.319, 0.523).lineTo(0.134, 0.323).lineTo(-0.521, -0.389).lineTo(-0.377, -0.523).lineTo(0.279, 0.19).lineTo(0.337, 0.136).lineTo(0.521, 0.337).lineTo(0.463, 0.389).lineTo(0.319, 0.523).c... | 2 | 16 | 0.275852 |
train_f30cec2c240ccbd9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.034, -0.179, -0.741), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.265, 1.265).extrude(1.265)
result = result.union(cq.Workplane(cq.Plane(origin=(0.159, -0.891, -0.589), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.217, 0.173).extrude(0.224))
result ... | 25 | 127 | 1.651185 |
train_3380d37bef64e0ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.099, 0.085, -0.396), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.323, -0.118).lineTo(0.323, 0.109).threePointArc((0.329, 0.125), (0.314, 0.118)).lineTo(-0.314, 0.118).threePointArc((-0.329, 0.125), (-0.323, 0.109)).lineTo(-0.323, -0.109).threeP... | 10 | 188 | 0.095514 |
train_0e91f18c162072b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.308, 0.501, -0.501), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.501, 0.193).lineTo(0.501, 0.394).lineTo(-0.501, 0.394).lineTo(-0.501, 0.193).lineTo(0.501, 0.193).close().revolve(angleDegrees=180, axisStart=(0.501, 0.193), axisEnd=(0.501, 0.394... | 3 | 19 | 0.306264 |
train_acaa77d42561aef1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.156, -0.027, -0.707), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.311, 1.415).extrude(0.975)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.031, 0.198, -0.878), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.094).extrude(0.187))
result = resu... | 12 | 75 | 1.677669 |
train_adb379308978cc92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.084, 0, -0.304), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.121, 2).extrude(0.608)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.162, -0.368, 0.144), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.345, 0.193).extrude(0.067))
result = result.cut(... | 12 | 64 | 1.280055 |
train_51d163715a2545ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.673, -0.051, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.635, -0.332).lineTo(-1.001, -0.542).lineTo(-0.996, -0.613).lineTo(-0.635, -0.404).lineTo(0.483, 0.242).lineTo(1.001, 0.541).lineTo(1.001, 0.613).lineTo(0.483, 0.314).lineTo(-0.... | 2 | 38 | 0.136211 |
train_9b5781bb1379e6cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.128, -0.253, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.324, -0.123).lineTo(-0.345, -0.156).lineTo(0.327, -0.156).lineTo(0.345, -0.123).lineTo(0.01, 0.397).lineTo(0.173, 0.649).lineTo(0.155, 0.681).lineTo(0.134, 0.649).lineTo(-0.152, 0.64... | 5 | 56 | 0.131969 |
train_96e631b05f178dec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.374, 0.405), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.241).sweep(cq.Workplane('XY').spline([(-0.333, 0.374), (-0.11, 0.229), (0.112, 0.142), (0.335, 0.113), (0.557, 0.142), (0.78, 0.229), (1.002, 0.374)]))
result = result.edges().chamfer... | 4 | 18 | 0.449166 |
train_83f38238307a7c01 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.117, 1, -0.156), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.502).workplane(offset=0.296).circle(0.401).workplane(offset=0.273).circle(0.396).workplane(offset=0.34).circle(0.431).workplane(offset=0.305).circle(0.404).workplane(offset=0.245).ci... | 15 | 74 | 0.835636 |
train_ead44b8878d055cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.134, 0.216, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.443, 0.019).lineTo(-0.515, 0.25).lineTo(0.515, 0.25).lineTo(1.443, 0.019).lineTo(-1.443, 0.019).close().extrude(0.432)
result = result.edges().fillet(0.061)
result = result.cut(cq.Wor... | 10 | 117 | 0.158687 |
train_806cc6e31119b353 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.007, -0.264), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.139, 0.986).lineTo(0.125, 0.993).lineTo(0.132, 0.123).lineTo(0.574, 0.132).lineTo(0.565, -0.143).lineTo(0.14, -0.099).lineTo(0.132, -1.007).lineTo(-0.12, -0.977).lineTo(-0.116, -0... | 14 | 92 | 0.263304 |
train_c3b11fc2f9e4d91c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.765, 0.027), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.362, 0.47).lineTo(0.362, 0.443).lineTo(-0.39, 0.443).lineTo(-0.39, -0.47).lineTo(0.39, -0.47).lineTo(0.39, 0.47).lineTo(0.362, 0.47).close().sweep(cq.Workplane('YZ').spline([(0.389, -... | 19 | 71 | 0.983326 |
train_45780a18e7371b8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, 0.456, -0.187), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.471, 0.232).lineTo(0.403, 0.233).lineTo(0.436, 0.292).lineTo(0.034, 0.523).lineTo(0, 0.544).lineTo(-0.034, 0.523).lineTo(-0.436, 0.292).lineTo(-0.403, 0.233).lineTo(-0.471, 0.232)... | 7 | 99 | 0.467875 |
train_57a5b9f584ee9c34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.037, 0.316, -0.427), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.333, 1.037).lineTo(0.333, 1.037).lineTo(0.333, -0.963).lineTo(-0.333, -0.963).lineTo(0, 0.037).lineTo(-0.333, 0.265).lineTo(-0.333, 1.037).close().extrude(0.719)
result = result.... | 12 | 101 | 0.663 |
train_898f2404775bd6de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.247, -0.312, 0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.017, 0.016).lineTo(0.019, 0.013).lineTo(-0.012, -0.009).lineTo(-0.012, -0.019).lineTo(-0.019, -0.019).lineTo(-0.019, -0.005).lineTo(0.015, 0.019).lineTo(0.017, 0.016).close().swee... | 12 | 138 | 0.405744 |
train_b4a488cbc6efaf27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.131, -0.676, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.737, 1.276).lineTo(1.122, 1.276).lineTo(-1.022, 0.037).threePointArc((-1.122, 0.41), (-1.022, 0.781)).lineTo(-0.737, 1.276).close().extrude(2)
result = result.edges().fillet(0.095)
r... | 9 | 79 | 1.217965 |
train_f99159d64a1c2a13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.814, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.765).workplane(offset=0.615).circle(0.806).workplane(offset=0.465).circle(0.995).workplane(offset=0.548).circle(0.758).loft()
result = result.edges().fillet(0.23)
result = result.cut(cq.Wo... | 20 | 5 | 3.721161 |
train_a58efbd13e85b6de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.005, -0.098), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.275, -0.005).lineTo(-0.43, -0.005).lineTo(-0.43, 0.637).lineTo(0.43, 0.637).lineTo(0.43, -0.005).lineTo(-0.275, -0.005).close().revolve(angleDegrees=360, axisStart=(-0.275, -0.005), a... | 19 | 233 | 0.823552 |
train_36ad624c0c76a3eb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.42, -0.233, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.273, 0).lineTo(0.197, 0.189).lineTo(0, 0.271).lineTo(-0.188, 0.188).lineTo(-0.272, -0.001).lineTo(-0.197, -0.19).lineTo(0.005, -0.27).lineTo(0.192, -0.196).close().moveTo(0.036, 0... | 15 | 209 | 0.497964 |
train_c4df4b6f6c4bbac4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.726, -0.197, -0.38), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.579, 0.528).threePointArc((0.599, 0.466), (0.613, 0.403)).threePointArc((0.62, 0.306), (0.613, 0.209)).threePointArc((0.599, 0.146), (0.579, 0.084)).threePointArc((-0.004, -0.318)... | 16 | 230 | 1.11425 |
train_10bda7726b0c8724 | 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.902, 1.311).extrude(0.684)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.273, 0.05, -0.405), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.2, 0.366).extrude(1.229))
result = result.union(cq... | 6 | 67 | 1.796302 |
train_d0a8742d7a98b743 | 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.424, -0.153).lineTo(-0.424, -0.085).lineTo(0.049, -0.085).threePointArc((0.064, 0.075), (-0.002, 0.222)).threePointArc((0.176, 0.12), (0.196, -0.085)).lineTo(0.424, -0.085).lineTo(0.424, -0.15... | 3 | 20 | 0.132638 |
train_ed43a5abeb3370c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.653, 0.696, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.553, 1.569).lineTo(0.553, 1.569).threePointArc((0, -0.264), (-0.553, 1.569)).close().extrude(1.392)
result = result.edges().chamfer(0.244)
result = result.cut(cq.Workplane(cq.Plane(or... | 9 | 43 | 3.603575 |
train_c227ece95a134e80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.33, 0.872, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.603, 0.485).lineTo(-0.603, 0.291).lineTo(-0.448, 0.291).lineTo(-0.448, 0.174).lineTo(-0.385, 0.174).lineTo(-0.385, 0.291).lineTo(0.603, 0.291).lineTo(0.603, 0.485).lineTo(-0.603, 0.485... | 5 | 29 | 0.627237 |
train_61af3b496bac81c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.254, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.646, -0.468).threePointArc((-0.756, 0.86), (0.564, 1.042)).threePointArc((0.756, -0.352), (-0.646, -0.468)).close().extrude(2)
result = result.edges().chamfer(0.042)
result = result.cut(... | 26 | 94 | 4.529601 |
train_6dabe3cf16c32857 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.418, 0.447, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.546).workplane(offset=0.295).circle(0.458).workplane(offset=0.222).circle(0.371).workplane(offset=0.311).circle(0.283).workplane(offset=0.287).circle(0.196).loft()
result = result.edge... | 14 | 108 | 1.127008 |
train_880d969b39f36aa2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1.206, -0.511), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 2.089).threePointArc((-0.277, 2.011), (-0.473, 1.8)).threePointArc((-0.517, 1.682), (-0.532, 1.557)).lineTo(-0.532, 0.738).threePointArc((-0.524, 0.645), (-0.5, 0.554)).threePointArc... | 13 | 103 | 1.526022 |
train_000f011ad7b83517 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -1.16, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.914, 0.216).lineTo(-1.006, 0.458).lineTo(0.378, 0.906).lineTo(0.684, 1.907).lineTo(0.736, 2.078).lineTo(1.006, 2.078).lineTo(0.982, 2.004).lineTo(0.954, 1.907).lineTo(0.587, 0.702).l... | 5 | 61 | 1.004156 |
train_4f026cc371533e27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.729, -0.09, -0.429), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.008, -0.014).lineTo(0.019, -0.003).lineTo(0.271, 0.249).lineTo(0.26, 0.26).lineTo(-0.003, -0.003).lineTo(-0.014, 0.008).lineTo(-0.26, 0.254).lineTo(-0.271, 0.243).lineTo(-0.025, ... | 13 | 148 | 0.728716 |
train_46a3f8dbdaccd0cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.206, 0, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.206, 0.835).lineTo(0.206, -1).lineTo(-0.206, -1).lineTo(-0.206, 1).lineTo(0.206, 1).lineTo(0.206, 0.835).close().revolve(angleDegrees=360, axisStart=(0.206, 0.835), axisEnd=(0.206, -1))
r... | 10 | 51 | 0.977564 |
train_fb468fd28bae0e47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.095, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.991, 0.927).extrude(1.091)
result = result.union(cq.Workplane(cq.Plane(origin=(0.103, -0.457, -0.389), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.101).extrude(0.233))
result = result.cut(cq... | 10 | 42 | 0.993788 |
train_2d69bb40a2111e8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.043, 0.091, 0.077), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.134, 0.078).lineTo(-0.116, 0.078).lineTo(-0.077, 0.096).lineTo(-0.077, 0.114).lineTo(0.134, 0.114).lineTo(0.134, 0.003).lineTo(-0.026, 0.003).lineTo(-0.026, 0.045).lineTo(-0.054, 0... | 19 | 240 | 0.022024 |
train_7f80874fd8e03039 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.256, -0.48), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.893, 0.893).extrude(0.696)
result = result.union(cq.Workplane(cq.Plane(origin=(0.045, -0.211, 0.214), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.402).extrude(0.087))
result = result.uni... | 25 | 129 | 0.501766 |
train_bb55198aeafa1b5f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.431, -0.089), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.602, -0.12).threePointArc((-0.571, -0.311), (-0.482, -0.482)).lineTo(-0.482, -0.12).lineTo(0.482, -0.12).lineTo(0.602, -0.12).threePointArc((0, 0.482), (-0.602, -0.12)).close().sweep... | 7 | 33 | 0.621509 |
train_728a96574dd004e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.6, -0.104, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.288, -0.135).lineTo(-0.288, 0.183).lineTo(0.288, 0.183).lineTo(0.288, -0.135).lineTo(0.256, -0.135).lineTo(0.256, -0.183).lineTo(0.221, -0.183).lineTo(0.221, -0.135).lineTo(-0.221, -0... | 3 | 30 | 0.101633 |
train_0de418e19d83c26b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.045, 0, 0.341), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.341, -0.955).lineTo(-0.341, 1.045).lineTo(0.341, 1.045).threePointArc((0.307, 0.962), (0.224, 0.927)).lineTo(0.201, 0.927).lineTo(0.201, -0.838).lineTo(0.224, -0.838).threePointArc((0... | 1 | 7 | 1.948099 |
train_5738ced5af615276 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.373, 0.376, 0.145), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.633, 0.059).lineTo(-0.633, 0.692).lineTo(0, 0.692).threePointArc((0.447, 0.507), (0.633, 0.059)).lineTo(-0.633, 0.059).close().extrude(1.014)
result = result.edges().chamfer(0.236... | 24 | 91 | 0.184585 |
train_0ec98b772799deaa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.059, -0.026, 0.082), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.293, -0.554).threePointArc((0.402, -0.544), (0.509, -0.517)).threePointArc((0.841, 0.441), (-0.167, 0.554)).lineTo(-0.841, -0.121).lineTo(-0.841, -0.554).lineTo(0.293, -0.554).clo... | 16 | 124 | 0.472697 |
train_741d622af47ab05f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.617, -0.214, -0.167), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.767, 0.319).extrude(0.267)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.667, -0.209, 0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.033).extrude(0.265))
result = res... | 7 | 53 | 0.101051 |
train_bd979a0bc13cdd66 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.036, -0.109, 0.538), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.462).sweep(cq.Workplane('XY').spline([(-0.629, -0.109), (-0.344, -0.109), (-0.059, -0.109), (0.195, 0.03), (0.448, 0.17), (0.701, 0.309)]))
result = result.edges().chamfer(0.274)
r... | 9 | 24 | 0.652942 |
train_e22c40fea2f13dbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.165, -0.068, -0.543), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.97, 1.311).extrude(0.043)
result = result.union(cq.Workplane(cq.Plane(origin=(0.029, -0.214, -0.501), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.051, -0.43).lineTo(-0.234, -0.43)... | 18 | 208 | 0.759847 |
train_07ae169ae9ed8af0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.021, -0.257), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -0.5).threePointArc((0, 0.5), (1, -0.5)).lineTo(0.517, -0.5).lineTo(-0.517, -0.5).lineTo(-1, -0.5).close().sweep(cq.Workplane('YZ').spline([(-0.021, -0.257), (0.212, -0.106), (0.19... | 4 | 20 | 0.303173 |
train_90bcfa8003203275 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, -0.403, -0.331), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.159, 0.392).extrude(0.355)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.019, -0.388, 0.057), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.146, -0.612).lineTo(-0.146, 1.38... | 5 | 35 | 0.030146 |
train_f910bd8be19e8871 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.645, 0.254, -0.195), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.13, 0.548).lineTo(0.231, 0.551).lineTo(0.201, -0.145).lineTo(-0.231, -0.186).lineTo(-0.13, 0.548).close().extrude(0.545)
result = result.edges().chamfer(0.116)
result = result.un... | 9 | 83 | 0.25979 |
train_608ad0c1dbc2cb35 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.65, -0.241, -0.056), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.4).sweep(cq.Workplane('XY').spline([(1.106, -0.241), (1.168, -0.002), (1.072, 0.226), (0.856, 0.353), (0.605, 0.329)]))
result = result.edges().chamfer(0.041)
result = result.unio... | 13 | 229 | 0.465628 |
train_81c9e95e54f01e97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.095), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.977).extrude(0.145)
result = result.union(cq.Workplane(cq.Plane(origin=(0.279, 0.614, 0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.173, 0.168).extrude(0.046))
result = result.cut(cq.... | 5 | 17 | 0.523628 |
train_f5ba1fc0b99a2c2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.043, -1.753, 0.781), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.89, 1.12).lineTo(-0.89, 1.708).lineTo(-0.312, 1.708).lineTo(-0.312, 2.697).lineTo(0.312, 2.697).lineTo(0.312, 1.708).lineTo(0.89, 1.708).lineTo(0.89, 1.12).lineTo(0.312, 1.12).lin... | 3 | 18 | 2.600041 |
train_df063020436e82a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.522, 0, 0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.17, -0.047).lineTo(0.17, -0.283).lineTo(0.118, -0.283).lineTo(0.144, -0.262).lineTo(0.118, -0.242).lineTo(0.118, -0.047).lineTo(-0.129, -0.047).lineTo(-0.129, -0.016).lineTo(-0.149, 0.... | 1 | 20 | 0.218586 |
train_bc39efebfc723c3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.094, 0.831, -0.034), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.094).lineTo(-0.108, -0.094).lineTo(-0.108, 0.094).lineTo(-0.094, 0.094).lineTo(-0.094, 0.035).lineTo(-0.092, 0.01).lineTo(-0.094, 0.01).lineTo(-0.094, -0.015).lineTo(-0.092, -0... | 9 | 92 | 0.286761 |
train_07817dc5a2c2f371 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.495, 0.535, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.4, -0.505).lineTo(-0.4, 1.495).lineTo(0.2, 1.495).threePointArc((0.341, 1.436), (0.4, 1.295)).lineTo(0.4, 0.535).lineTo(0.4, 0.455).lineTo(0.4, -0.505).lineTo(-0.4, -0.505).close().ex... | 8 | 72 | 1.468168 |
train_dc58a263f0225a81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.493, 0, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.387, -0.774).lineTo(0.18, -0.208).lineTo(0.387, 0).lineTo(-0.387, 0.774).lineTo(-0.387, -0.774).close().sweep(cq.Workplane('XZ').spline([(0.493, -0.232), (0.657, -0.223), (0.821, -0.162), ... | 1 | 6 | 0.057929 |
train_14601abbc56ef22c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.088, 0.642), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.555, -0.357).threePointArc((0, -0.912), (-0.555, -0.357)).lineTo(-0.555, 0.912).lineTo(0.555, 0.912).lineTo(0.555, -0.357).close().extrude(1.284)
result = result.cut(cq.Workplane(cq.Pl... | 4 | 34 | 1.846929 |
train_02d48c40642ba9d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.143, -0.18), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.273, 0.072).lineTo(-0.273, 0.021).lineTo(-0.267, 0.021).lineTo(-0.267, 0.015).lineTo(0.267, 0.015).lineTo(0.267, 0.021).lineTo(0.273, 0.021).lineTo(0.273, 0.072).lineTo(-0.273, 0.072)... | 20 | 147 | 0.116881 |
train_9af93d50e244516b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.008, -1, 0.034), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.785, -0.392).lineTo(0.785, -0.392).threePointArc((0.448, 0.026), (0.162, 0.481)).threePointArc((-0.271, 0.116), (-0.785, -0.122)).lineTo(-0.785, -0.392).close().extrude(2)
result = r... | 4 | 29 | 1.357898 |
train_1b4f3925350b61aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.991, 0.032, 0.007), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.447, -1.001).lineTo(-0.399, -1.043).lineTo(-0.295, -1.001).lineTo(0.219, -1.001).lineTo(-0.024, -0.892).lineTo(0.447, -0.703).lineTo(0.276, -0.369).lineTo(-0.221, -0.803).lineTo(... | 12 | 83 | 1.146023 |
train_44caf216e7279c3d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.192, -0.486, 0.112), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.146, -0.428).lineTo(-0.146, 0.378).lineTo(-0.136, 0.378).lineTo(-0.136, 0.403).lineTo(-0.146, 0.403).lineTo(-0.146, 0.428).lineTo(0.146, 0.428).threePointArc((0.131, 0.392), (0.0... | 3 | 20 | 0.403185 |
train_165426afb166400a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.056, -0.011), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.474, -0.164).threePointArc((0.51, 0.029), (0.489, 0.224)).lineTo(0.788, 0.39).threePointArc((0.858, 0.634), (0.614, 0.706)).lineTo(0.31, 0.54).threePointArc((-0.179, 0.741), (-0.665, ... | 2 | 38 | 3.261679 |
train_5e63fa4346df45fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.066, -0.843, -0.199), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.157).sweep(cq.Workplane('YZ').spline([(-0.843, -0.199), (-0.556, -0.014), (-0.269, 0.095), (0.017, 0.096), (0.304, 0.02)]))
result = result.faces('>Y').shell(-0.032)
result = re... | 7 | 29 | 0.058945 |
train_e0ec3b4303f5722b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.058, -0.565, -0.083), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.088, 0.01).lineTo(-0.227, 0.01).lineTo(-0.227, 0.129).lineTo(0.227, 0.129).lineTo(0.227, -0.129).lineTo(-0.088, -0.129).lineTo(-0.088, 0.01).close().sweep(cq.Workplane('YZ').sp... | 4 | 18 | 0.16436 |
train_6c23572ff9909153 | 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.537, 1.173).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.364, 0.132, 0.45), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.364, 0.675).extrude(0.564))
result = result.edges().chamf... | 4 | 50 | 3.175685 |
train_977eec1438186cb1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.139, -0.162, 0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.485, 0.872).extrude(0.785)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.163, 0.082, 0.882), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.052).extrude(0.118))
result = result... | 11 | 85 | 1.466295 |
train_2294cfd6d1d445a5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.228, 0, 0.059), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.536, 0.44).lineTo(0.536, -0.377).lineTo(0.377, -0.536).lineTo(-0.536, -0.536).lineTo(-0.536, 0.377).lineTo(-0.377, 0.536).lineTo(0.536, 0.536).lineTo(0.536, 0.44).close().sweep(cq.Workp... | 2 | 16 | 1.58283 |
train_ec2e03e00f630f2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.388, 0.466).threePointArc((0.854, 0), (0.388, -0.466)).threePointArc((0.156, -0.405), (-0.015, -0.236)).threePointArc((-0.454, 0.084), (-0.854, 0.451)).lineTo(0.12, 0.463).lineTo(0.12, -0.... | 4 | 30 | 0.598912 |
train_d10af4270b73f7b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.3, -0.089, -0.031), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.088, -0.7).lineTo(0.088, 1.3).lineTo(-0.088, 1.3).lineTo(-0.088, -0.7).lineTo(0.088, -0.7).close().revolve(angleDegrees=90, axisStart=(0.088, -0.7), axisEnd=(0.088, 1.054))
result ... | 11 | 138 | 0.062607 |
train_565c1353a64a31f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, -0.326, -0.063), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.772, 0.139).lineTo(0.772, 0.139).lineTo(0.772, 0.54).lineTo(-0.772, 0.139).close().revolve(angleDegrees=270, axisStart=(-0.772, 0.139), axisEnd=(0.772, 0.139))
result = result.e... | 15 | 156 | 0.253465 |
train_9531c4860b4ccc6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.202, 0.214, 0.382), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.798, -1.16).lineTo(0.798, -0.194).lineTo(-0.798, -0.194).lineTo(-0.798, 1.16).lineTo(0.797, 1.16).lineTo(0.798, 0.605).lineTo(0.798, -1.16).close().extrude(0.763)
result = result.... | 13 | 93 | 1.213919 |
train_aa8d61336ca2551a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.596, -0.345, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.73).lineTo(1, 0.801).lineTo(1, 0.035).lineTo(-1, 0.035).lineTo(-1, 0.73).close().extrude(1.192)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.084, -0.085, 0.049), normal=(0... | 23 | 315 | 1.067358 |
train_9c502426f1a09607 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.067, 0.305, 0.332), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.142, 0.677).lineTo(-0.142, -0.677).lineTo(0.142, -0.677).lineTo(0.142, 0.677).lineTo(-0.142, 0.677).close().extrude(0.116)
result = result.edges().chamfer(0.009)
result = result.... | 8 | 99 | 0.711791 |
train_52c1fb3b714e0449 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.345, 0, 0.163), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.776, 0.445).extrude(0.837)
result = result.union(cq.Workplane(cq.Plane(origin=(0.129, -0.036, 0.83), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.419, -0.078).lineTo(0.419, 0.078).lineTo(... | 8 | 66 | 0.3866 |
train_3ee02698c6abdfa1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, 0.071), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.025, -0.105).threePointArc((-0.005, -0.052), (-1.025, 0.105)).lineTo(1.025, -0.105).close().extrude(0.141)
result = result.edges().chamfer(0.024)
result = result.cut(cq.Workplane(cq.P... | 14 | 30 | 0.007723 |
train_c1286bd9b4345a0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.317, 0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.679, 0.687).extrude(0.766)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.04, 0.486, 0.516), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.213, 0.368).extrude(0.407))
result = result.edg... | 9 | 144 | 0.539935 |
train_9e03587009a2e49f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.183, 2).extrude(0.456)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.11, 1.515).extrude(0.151))
result = result.cut(cq.Workplane(c... | 14 | 427 | 0.938194 |
train_f6eb819efd2233a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.607, 2).extrude(0.19)
result = result.union(cq.Workplane(cq.Plane(origin=(0.167, -0.149, 0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.061).extrude(0.044))
result = result.cut(cq.Workp... | 5 | 13 | 0.58028 |
train_a6fde0dc34e0c53c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.161, 0.077, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.867, 0.84).extrude(0.89)
result = result.faces('<X').shell(-0.096)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.047, -0.416, -0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 14 | 60 | 0.375427 |
train_8bb2d0186deb6675 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.14, 0.205, -0.644), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.207, 1.59).extrude(1.287)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.114, 0.467, -0.446), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.734, 0.482).extrude(0.749))
result = resu... | 16 | 122 | 1.923011 |
train_a66de09255058f1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.364, 0.242, 0.128), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.54, 0.746).lineTo(-0.54, -0.039).lineTo(-0.343, -0.039).lineTo(-0.343, 0.353).lineTo(0.54, 0.353).lineTo(0.54, 0.746).lineTo(-0.54, 0.746).close().extrude(0.564)
result = result.e... | 15 | 143 | 0.298385 |
train_1df8f938472a95f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.075, -0.764), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.398, -0.753).lineTo(0.398, -0.038).lineTo(0, 1.154).lineTo(-0.398, -0.038).lineTo(-0.398, -0.753).lineTo(0.398, -0.753).close().extrude(1.529)
result = result.edges().chamfer(0.083)
r... | 29 | 139 | 1.092147 |
train_a7b5582af241d235 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.352, 0.451, 0.151), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.849, 0.585).lineTo(0.849, 0.585).lineTo(0.849, -0.135).lineTo(-0.849, -0.135).lineTo(-0.849, 0.585).close().extrude(0.901)
result = result.edges().fillet(0.266)
result = result.un... | 5 | 39 | 0.99691 |
train_4a6959679f6544b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.763, 0.442, 0.277), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.723, 0.759).threePointArc((0.416, 0.886), (0.289, 1.193)).lineTo(-0.723, 1.193).lineTo(-0.723, -0.253).lineTo(0.723, -0.253).lineTo(0.723, 0.759).close().extrude(1.195)
result = re... | 15 | 108 | 1.189041 |
train_874764e342c01741 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.023, -0.003, -0.258), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.495, -0.304).threePointArc((0.081, 0.132), (-0.495, 0.304)).lineTo(-0.495, -0.304).lineTo(0.495, -0.304).close().extrude(0.742)
result = result.edges().chamfer(0.089)
result = re... | 15 | 179 | 0.346026 |
train_64ba8aec3666323e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.916, 0.207, -0.036), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.052, 0.384).lineTo(1.052, 1.493).threePointArc((-0.358, 1.618), (-1.052, 0.384)).close().revolve(angleDegrees=270, axisStart=(-1.052, 0.384), axisEnd=(1.052, 1.493))
result = res... | 4 | 14 | 1.968167 |
train_06de0cc8783257b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.196, -0.184), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.516).lineTo(-0.124, 0.516).lineTo(-0.124, 0.434).lineTo(-0.62, 0.434).lineTo(-0.62, -0.104).lineTo(-0.414, -0.104).lineTo(-0.414, -0.516).lineTo(0, -0.516).lineTo(0, -0.104).lineT... | 7 | 61 | 1.287657 |
train_031ccf0da15930f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.004, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(1.145, 0.151).lineTo(0, 0.533).lineTo(-1.145, 0.151).lineTo(1.145, 0.151).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(0.188, 0))
result = result.edges().chamfer(0.152)
resul... | 8 | 54 | 0.560623 |
train_dd3a6aa9898b0678 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.076, -0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.684, 1.847).extrude(0.069)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.301, -0.07, -0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.092, 0.149).extrude(0.011))
result = res... | 4 | 24 | 0.208627 |
train_e775cc8b94b04632 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.252), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.113, 0.404).lineTo(-0.113, 0.404).lineTo(-0.113, -0.404).lineTo(0.113, -0.404).lineTo(0.113, 0.404).close().sweep(cq.Workplane('YZ').spline([(-0.504, -0.406), (-0.186, -0.027), (0.133, -... | 1 | 6 | 0.112672 |
train_c07486260e5f72f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.148, -0.148, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.59, 1.703).extrude(0.122)
result = result.union(cq.Workplane(cq.Plane(origin=(0.148, -0.148, -0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.483).extrude(0.018))
result = resul... | 18 | 147 | 0.340865 |
train_8fab362a34152a27 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.143, -0.25, -0.741), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.527, 1.501).extrude(1.083)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.758, -0.193, -0.502), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.298, 0.369).extrude(0.563))
result =... | 5 | 23 | 2.401367 |
train_3551a70c7f9df31b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.902, -0.19, -0.26), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.285).lineTo(0.177, -0.285).lineTo(0.384, 0.04).threePointArc((0.437, 0.158), (0.455, 0.285)).lineTo(0.367, 0.285).threePointArc((0, -0.082), (-0.367, 0.285)).lineTo(-0.455, 0.... | 12 | 107 | 0.842161 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.