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_3961f61d86057fca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.31, -0.141, -0.56), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.276, 0.476).extrude(1.55)
result = result.union(cq.Workplane(cq.Plane(origin=(0.003, -0.214, 0.729), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.051).extrude(2.663))
result = result.... | 10 | 80 | 0.846577 |
train_a0615c8eaed3023d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.021, -0.156, -0.753), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.778, 0.655).extrude(1.753)
result = result.union(cq.Workplane(cq.Plane(origin=(0.389, -0.319, -0.21), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.042, 0.088).extrude(0.197))
result =... | 15 | 183 | 0.863771 |
train_669eb7fa01b1bc1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.168, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.218, -0.168).lineTo(-0.031, -0.168).lineTo(-0.031, 0.831).lineTo(-0.218, 0.831).lineTo(-0.218, 0.832).lineTo(0.218, 0.832).lineTo(0.218, -0.168).close().revolve(angleDegrees=270, axisStart... | 6 | 12 | 0.143144 |
train_85ddb97699db5a8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, 0.453, -0.095), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.025, 0.167).lineTo(-0.025, 0.167).lineTo(-0.025, 0.176).lineTo(-0.034, 0.176).lineTo(-0.034, 0.03).lineTo(0, -0.176).lineTo(0.034, 0.03).lineTo(0.025, 0.039).lineTo(0, -0.151).line... | 23 | 170 | 0.174004 |
train_b48fb9b8d5b868c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.774, 0.028, -0.116), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.192, -0.604).threePointArc((-0.192, 0.196), (0.192, 0.996)).lineTo(0.192, 0.068).lineTo(0.192, -0.604).close().extrude(0.582)
result = result.union(cq.Workplane(cq.Plane(origin=(-... | 9 | 65 | 0.536061 |
train_b4850a8eff193f88 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.338), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.517).lineTo(-1, -0.517).lineTo(-1, 0.517).lineTo(1, 0.517).lineTo(1, -0.517).lineTo(0, -0.517).close().extrude(0.676)
result = result.edges().chamfer(0.177)
result = result.cut(cq.Work... | 9 | 47 | 1.170785 |
train_4e2accdf75b9f674 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.063), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.919, -0.377).threePointArc((-0.965, -0.279), (-1, -0.176)).lineTo(-0.884, -0.176).threePointArc((-0.928, 0.101), (-0.884, 0.377)).lineTo(0.846, 0.377).lineTo(0.962, 0.377).threePointArc((... | 18 | 77 | 0.220797 |
train_34bf8905f9685f3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.295, 0.101, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.7, 0.482).extrude(0.654)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.61, 0.101, -0.673), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.443).lineTo(-0.165, 0.288).lineTo(-0.1... | 6 | 29 | 0.253893 |
train_0ed93e3c96f03a21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.614, 0, -0.798), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.772, 1.322).extrude(1.365)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.176, 0.048, -0.463), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.916, 1.155).extrude(0.695))
result = resu... | 8 | 35 | 1.809117 |
train_e59d3e958821f60c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.649, -0.005, -0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.53, 0.093).extrude(0.117)
result = result.union(cq.Workplane(cq.Plane(origin=(0.17, -0.029, -0.083), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.531, 0.018).extrude(0.089))
result = res... | 12 | 49 | 0.0376 |
train_848d3f543d66f7d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.08, 0, 0.173), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.2, 0.721).threePointArc((-0.137, 0.638), (-0.396, 0.407)).threePointArc((-0.92, 0), (-0.396, -0.407)).threePointArc((-0.137, -0.638), (0.2, -0.721)).threePointArc((0.92, 0), (0.2, 0.721... | 3 | 39 | 1.645733 |
train_2839eeb0993c3cf1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.027, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.725, -0.196).lineTo(-0.903, 0.188).lineTo(-0.992, 0.188).lineTo(-0.992, 0.18).lineTo(-0.953, 0.18).lineTo(-0.953, 0.173).lineTo(-1, 0.173).lineTo(-1, 0.196).lineTo(-0.898, 0.196).lineTo(-... | 2 | 30 | 0.009177 |
train_d2c52147e4099d1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.569, -0.572), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.829, 0.89).threePointArc((0, 0.061), (-0.829, 0.89)).lineTo(-0.346, 0.89).lineTo(0.346, 0.89).lineTo(0.829, 0.89).close().extrude(1.572)
result = result.edges().chamfer(0.056)
result ... | 19 | 160 | 1.349015 |
train_3012d348ba43ed9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.164, 0.104, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.109, 0.949).extrude(0.242)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.164, 0.104, -0.048), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.234, 0.149).lineTo(0.223, 0.146).l... | 15 | 124 | 0.56682 |
train_1ea5c74e42f3759f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.067, -0.582, -0.013), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.279, 0.418).lineTo(-0.279, -0.418).lineTo(0.223, -0.418).lineTo(0.223, -0.362).lineTo(-0.223, -0.362).lineTo(-0.223, 0.362).lineTo(0.279, 0.362).lineTo(0.279, 0.418).lineTo(-0.2... | 2 | 16 | 0.058426 |
train_9517f11f8ac745fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.91), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.95).extrude(1.821)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.156, 0.06, -1.22), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.165).extrude(2.185))
result = result.cut(cq.Workplane(... | 8 | 53 | 3.244324 |
train_cde5b10794ed90a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.648, -0.27, -0.02), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.623, -0.483).lineTo(-0.623, 0.765).threePointArc((0, 1.023), (0.623, 0.765)).lineTo(0.623, -0.483).lineTo(-0.623, -0.483).close().extrude(1.296)
result = result.edges().chamfer(0.... | 15 | 109 | 1.915191 |
train_cc7346c8aaf1ede6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.528, -0.285, -0.183), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.803).threePointArc((-0.26, 0.695), (-0.367, 0.436)).lineTo(0, 0.068).threePointArc((0.26, 0.176), (0.367, 0.436)).threePointArc((0.26, 0.695), (0, 0.803)).close().extrude(0.82... | 12 | 55 | 0.392807 |
train_208241a0f886be05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.234, 0.15, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.189, 1.15).threePointArc((-0.189, 0.15), (0.189, -0.85)).lineTo(0.189, 1.15).close().extrude(0.326)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.293, 0.198, -0.065), normal=(0... | 12 | 66 | 0.092361 |
train_9bae8e111ba09ca0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.799, 0.75, 0.073), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.004, -0.16).lineTo(0.169, 0.049).lineTo(0.094, 0.16).lineTo(0.004, 0.098).lineTo(-0.098, 0.16).lineTo(-0.169, 0.049).lineTo(0.004, -0.16).close().transformed(offset=(0.225, 0.252, ... | 8 | 62 | 0.37188 |
train_9f4860744ee03855 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.966, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.843).workplane(offset=0.953).circle(0.999).workplane(offset=0.979).circle(0.894).loft()
result = result.edges().chamfer(0.689)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.054, 0.36... | 3 | 10 | 3.04496 |
train_b51627322fce7798 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.122), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.995, -0.199).lineTo(-0.199, 0.995).lineTo(-0.995, 0.995).lineTo(-0.995, -0.995).lineTo(0.995, -0.995).lineTo(0.995, -0.199).close().workplane(offset=0.188).moveTo(0.999, -0.2).lineTo(-0.2,... | 10 | 117 | 0.910145 |
train_6a3ca9591d72a84c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.059, -0.032), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.38).sweep(cq.Workplane('YZ').spline([(0.477, -0.932), (0.544, -0.928), (0.612, -0.905), (0.679, -0.813), (0.746, -0.649), (0.814, -0.557), (0.881, -0.533), (0.948, -0.529)]))
result =... | 4 | 16 | 0.43504 |
train_1074a8502d581fb4 | 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.722, 1.815).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.513 * math.cos(1.509 + 2 * math.pi * 0 / 6), 1 + 0.513 * math.sin(1.509 + 2 * math.pi * 0 / 6), -2.119), normal=(1,... | 12 | 11 | 6.025897 |
train_6bfb62bad69c6305 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.733, -0.6), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.778, 0.4).lineTo(-0.778, -0.267).lineTo(0.778, -0.267).lineTo(0.778, 0.4).lineTo(0.378, 0.4).lineTo(0.378, 1.733).lineTo(-0.378, 1.733).lineTo(-0.378, 0.4).lineTo(-0.778, 0.4).close().... | 9 | 35 | 1.752075 |
train_2956d01fb3bfd2c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.318), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.441).lineTo(-1, -0.441).lineTo(1, -0.441).lineTo(1, 0.441).lineTo(-1, 0.441).close().extrude(0.636)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.45, 0.28, -0.068), normal=(0, 0... | 10 | 33 | 0.9405 |
train_6e857013faad086a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.131, -0.252, -0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.974, 0.909).extrude(0.242)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.344, -0.134, -0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.081).extrude(0.291))
result = resul... | 22 | 162 | 0.141356 |
train_3468fd66d36a9ef3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.113, 0, -0.448), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.642, 2).extrude(0.994)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.484, 0.226, -0.617), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.032).extrude(1.193))
result = result.cut(cq.Wo... | 11 | 37 | 3.214003 |
train_5b5c42ec2129d8d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.477), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.057, 0.058).extrude(0.142)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.338), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.014).extrude(0.073))
result = result.union(cq.Workpl... | 15 | 173 | 0.001601 |
train_1e0829570373d82c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.001, -0.001), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.999, 0.046).lineTo(0.769, -0.249).threePointArc((0.999, -0.084), (0.834, 0.146)).lineTo(0.218, 0.249).lineTo(-0.999, 0.046).close().sweep(cq.Workplane('XY').spline([(-0.573, -0.001),... | 8 | 18 | 0.23019 |
train_dcf29bacee1a485f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.042, -0.011), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.908, 0.034).threePointArc((-0.989, 0), (-0.908, -0.034)).lineTo(0.956, -0.034).lineTo(0.989, -0.034).lineTo(0.989, 0.034).lineTo(0.956, 0.034).lineTo(-0.908, 0.034).close().sweep(cq.... | 2 | 12 | 0.010555 |
train_0effffcb593bc852 | 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.993, 1.938).extrude(1.581)
result = result.union(cq.Workplane(cq.Plane(origin=(0.115, 0.392, 0.535), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.55, 0.766).extrude(0.465))
result = result.cut(cq.W... | 10 | 102 | 2.836014 |
train_f0c0b673cf0ce9f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.216, 0.154, -0.218), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1.157, 0.008).threePointArc((0, 0.001), (1.157, 0.015)).lineTo(-1.157, 0.008).close().extrude(0.022)
result = result.edges().fillet(0.002)
result = result.union(cq.Workplane(cq.Pla... | 4 | 26 | 0.000521 |
train_fe8bd3c86c27832a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.312, -0.03, 0.015), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.059, 0.403).lineTo(-0.028, 0.403).lineTo(0.059, -0.401).lineTo(0.045, -0.403).lineTo(0.044, -0.398).threePointArc((0.037, -0.393), (0.043, -0.386)).lineTo(0.042, -0.381).lineTo(0.... | 10 | 111 | 0.009848 |
train_9af752ca4db8f4ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, -0.011, -0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.749, -0.989).lineTo(0.744, -0.983).lineTo(0.782, 0.986).lineTo(-0.747, 1.011).close().moveTo(0.199, -0.001).lineTo(0.103, 0.171).lineTo(-0.102, 0.176).lineTo(-0.202, 0.003).line... | 10 | 30 | 0.443794 |
train_53ac1213faac2f58 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.464, 0, -0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.661, 0.991).extrude(0.069)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.535, 0.131, -0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.16).extrude(0.014))
result = result.unio... | 18 | 97 | 0.056304 |
train_289e55936ee028e9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.766, 0.541, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.336, -0.459).lineTo(-0.336, -0.05).lineTo(-0.642, -0.05).lineTo(-0.642, 1.541).lineTo(0.642, 1.541).lineTo(0.642, -0.459).lineTo(-0.336, -0.459).close().extrude(1.533)
result = result... | 14 | 150 | 3.484785 |
train_b289f0d8a5a5a8e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.725, -0.463, 0.417), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.092, -0.153).lineTo(-0.092, 0.031).lineTo(0.092, 0.031).lineTo(0.092, -0.337).lineTo(0.275, -0.337).lineTo(0.275, 0.214).lineTo(0.092, 0.214).lineTo(0.092, 0.52).lineTo(-0.092, 0.... | 12 | 81 | 0.427061 |
train_c8122f9a8f68d81c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.556, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1.012).workplane(offset=0.321).circle(1.054).workplane(offset=0.369).circle(0.922).workplane(offset=0.423).circle(0.956).loft()
result = result.edges().chamfer(0.47)
result = result.cut(cq.W... | 5 | 13 | 2.00527 |
train_1aaf09daf03f6221 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.049, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.889, 0.939).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.444, -0.277, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.05).extrude(0.244))
result = result.cut(cq.Wor... | 11 | 43 | 1.405197 |
train_aaa7a3dbfc6f311c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.11, 0.182), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.194, 0.182).lineTo(-0.395, 0.298).threePointArc((-0.377, -0.103), (-0.038, -0.32)).lineTo(0.038, -0.32).threePointArc((0.377, -0.103), (0.395, 0.298)).lineTo(0.194, 0.182).lineTo(0.... | 10 | 64 | 0.611973 |
train_0cfcac31bc95cf8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.182, 0.13, 0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.483, 0.464).extrude(0.45)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.661, 0.13, 0.232), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.536, 0.369).extrude(0.145))
result = resu... | 10 | 102 | 0.303069 |
train_b8aa74f613f7e516 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.679, -0.323, -0.9), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.643, 0.748).extrude(0.312)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.724, -0.185, -0.837), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.098).extrude(0.088))
result = result... | 13 | 140 | 0.71016 |
train_a14684c386844fc5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.821), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.344, 2).extrude(1.323)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.354 * math.cos(1.066 + 2 * math.pi * 0 / 8), 0 + 0.354 * math.sin(1.066 + 2 * math.pi * 0 / 8), 0.501), norma... | 26 | 129 | 3.227121 |
train_5126870df476bdcd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.356), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.08, 2).extrude(0.9)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.432 + 0.108, -0.8 + 0.2665, -0.544), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.059).lineTo(-0.039, 0.044).line... | 16 | 73 | 1.92276 |
train_1692182ce3215301 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.051), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.138, 0.143).lineTo(-0.138, 0.227).lineTo(-0.068, 0.227).lineTo(-0.068, 0.143).lineTo(0.138, 0.143).lineTo(0.138, -0.151).lineTo(0.075, -0.151).lineTo(0.075, -0.227).lineTo(0.005, -0.227).l... | 2 | 17 | 0.161997 |
train_71247072eb18f030 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.198, -0.76), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.605, 1.605).extrude(1.174)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.198, 0.411), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.446).extrude(0.13))
result = result.union(cq... | 26 | 220 | 2.593171 |
train_1055dafb58937e6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.022, -0.681), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.404, 0.333).extrude(0.677)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.022, -0.04), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.156, 0.08).threePointArc((0.019, 0.038), ... | 14 | 246 | 0.120926 |
train_6b473938da80ecc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.235, -0.211), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.721, 1.529).extrude(0.332)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.225, 0.119), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.578, 1.245).extrude(0.058))
result = res... | 15 | 126 | 0.463981 |
train_41fe1afb0c27be8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.98), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.417).extrude(1.596)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.017, 0.198, 0.588), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.333).extrude(0.392))
result = result.cut(cq.Workp... | 8 | 115 | 4.304063 |
train_ebe11a3df784cb60 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.091, 0.031), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.171).lineTo(-1, 0.079).lineTo(0.947, 0.079).lineTo(0.947, 0.005).lineTo(1, 0.005).lineTo(1, 0.171).lineTo(-1, 0.171).close().extrude(0.48)
result = result.edges().fillet(0.017)
res... | 24 | 149 | 0.092622 |
train_3525e013615a8381 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.513, -0.501, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.25, 0.513).lineTo(-0.25, 0.513).lineTo(-0.25, -0.489).lineTo(-0.084, -0.489).threePointArc((0.098, -0.354), (0.25, -0.187)).lineTo(0.25, 0.513).close().revolve(angleDegrees=180, axisS... | 12 | 69 | 0.61167 |
train_3cebfef8c11a0b90 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.078, -0.184, 0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.84, 1.332).extrude(0.46)
result = result.union(cq.Workplane(cq.Plane(origin=(0.078, 0.468, 0.482), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.191, -0.105).threePointArc((-0.089, 0... | 36 | 134 | 0.298929 |
train_1e41194176bed6f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.181), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.293, 0.766).lineTo(-0.293, -0.766).threePointArc((-0.141, 0.054), (0.293, 0.766)).lineTo(-0.293, 0.766).close().sweep(cq.Workplane('YZ').spline([(-0.107, -0.591), (0.315, -0.591), (0.77... | 6 | 18 | 0.454977 |
train_0e98757c58e4e9ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.87, -0.14), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.13).lineTo(0.026, 0.128).lineTo(0.429, 0.087).threePointArc((0.508, 0), (0.429, -0.087)).lineTo(0.026, -0.128).lineTo(0, -0.13).lineTo(-0.026, -0.128).lineTo(-0.429, -0.087).threePo... | 4 | 30 | 0.065577 |
train_d20929c53ba09d25 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.044, 0, -0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.912, 1.803).extrude(0.261)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.577, -0.522, 0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.172, 0.157).extrude(0.047))
result = resu... | 7 | 42 | 0.771495 |
train_91091b338a51e333 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.548, -0.522, 0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.627, 0.653).extrude(0.654)
result = result.union(cq.Workplane(cq.Plane(origin=(0.548, -0.522, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.285, 0.166).extrude(1.456))
result = resu... | 9 | 159 | 0.791144 |
train_6539257742cafd50 | 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.295, 1.339).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.191, 0.123, -0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.288, 0.826).extrude(1.114))
result = result.cut(cq.Workp... | 4 | 23 | 3.023838 |
train_eeec995a82d2f985 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, -0.049, -0.224), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.111, 1.045).lineTo(-0.111, -0.739).lineTo(0.111, -0.739).lineTo(0.111, 1.045).lineTo(-0.111, 1.045).close().extrude(0.21)
result = result.edges().chamfer(0.028)
result = result.... | 9 | 128 | 0.357626 |
train_8c88a3424c6fda45 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.083, 0.259, 0.292), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.282, 0.719).lineTo(0.282, 0.719).lineTo(0.282, 0.263).lineTo(-0.247, 0.263).lineTo(-0.247, -0.091).lineTo(0.282, -0.091).lineTo(0.282, -0.552).lineTo(-0.282, -0.552).lineTo(-0.282... | 25 | 98 | 0.519231 |
train_49778726ac3ba6b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.306, 0.698, -0.377), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.605, 0.605).extrude(0.753)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.291, 0.698, -0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.634, 0.181).extrude(0.378))
result = ... | 8 | 46 | 0.416607 |
train_f2421e9e856572d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.972), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.271).extrude(1.944)
result = result.edges().fillet(0.129)
| 2 | 26 | 4.870028 |
train_d344c365b5e9b45b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.459), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.238, 2).extrude(0.917)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.086, 0.316, -0.486), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.104, 0.12).extrude(1.101))
result = result.edges().c... | 10 | 73 | 2.215973 |
train_c93db1860dafedec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.387, 0.36), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.473, 0.336).lineTo(-0.355, 0.069).lineTo(0.473, 0.438).lineTo(0.355, 0.705).lineTo(-0.473, 0.336).close().extrude(0.64)
result = result.edges().fillet(0.124)
result = result.union(cq.W... | 47 | 141 | 0.226353 |
train_ef41ce73e722e9ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.043, 0.058, 0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.059, 0.102).extrude(0.024)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.042, 0.058, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.025).extrude(0.003))
result = result... | 32 | 302 | 0.03039 |
train_224ab115ae6fb6a4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.386), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.135).extrude(1.071)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.532, 0, 0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.334).extrude(0.122))
result = result.cut(cq.Workplane(c... | 13 | 50 | 1.573361 |
train_eceb11c70df2c06b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.604, 0.406), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.628, 0.396).lineTo(-0.741, -0.396).lineTo(0.741, 0.201).lineTo(0.628, 0.396).close().sweep(cq.Workplane('YZ').spline([(-0.604, 0.406), (-0.37, -0.029), (-0.136, -0.29), (0.099, -0.377... | 3 | 13 | 0.341164 |
train_c756cc0a9d6badcc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.941, -0.557, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.556).lineTo(-1, 0.445).threePointArc((-0.754, -0.186), (-0.129, -0.443)).lineTo(1, -0.428).lineTo(1, 1.556).lineTo(-1, 1.556).close().extrude(1.883)
result = result.edges().fillet... | 7 | 55 | 5.326423 |
train_1e962c24b1c31fd0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.881, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 1.881).lineTo(1, -0.119).lineTo(-1, -0.119).lineTo(-1, 1.881).lineTo(1, 1.881).close().revolve(angleDegrees=90, axisStart=(1, 1.881), axisEnd=(1, -0.119))
result = result.cut(cq.Workplane... | 23 | 86 | 3.79562 |
train_ca96af2ce22426fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.224, 0.435, -0.454), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.755, 1.13).extrude(0.406)
result = result.union(cq.Workplane(cq.Plane(origin=(0.262, -0.017, -0.035), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.283, 0.296).threePointArc((0.057, ... | 16 | 289 | 0.489313 |
train_1d2f6ed4a8c54215 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.491, 0.033, 0.015), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.509, 0.102).lineTo(0.509, 0.089).lineTo(0.42, 0.089).lineTo(0.42, -0.102).lineTo(-0.509, -0.102).lineTo(-0.509, 0.102).lineTo(0.509, 0.102).close().extrude(0.083)
result = result.u... | 8 | 38 | 0.021826 |
train_19e4cb09036789a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.392, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.528, -0.124).lineTo(-0.732, 0.096).lineTo(-0.701, 0.124).lineTo(-0.509, -0.082).lineTo(0.509, -0.082).lineTo(0.701, 0.124).lineTo(0.732, 0.096).lineTo(0.528, -0.124).lineTo(-0.528, -0.12... | 1 | 10 | 0.073258 |
train_31393028bafca764 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.167, -0.328, -0.775), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.408, -0.113).lineTo(0.408, -0.113).lineTo(0.408, 0.519).threePointArc((0, 0.927), (-0.408, 0.519)).lineTo(-0.408, 0.41).lineTo(-0.408, -0.113).close().extrude(1.46)
result = resu... | 17 | 107 | 0.874068 |
train_1cce152bcaab7952 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.69), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.146, 2).extrude(1.379)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, -0.694, -0.538), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.059).extrude(1.075))
result = result.cut(cq.Workplane(... | 7 | 25 | 3.034631 |
train_45c141105375ca32 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.085, -0.106, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.759).lineTo(0.759, 0).lineTo(0, 0.759).lineTo(-0.759, 0).lineTo(-0.759, -0.759).lineTo(0, -0.759).close().extrude(1.255)
result = result.edges().fillet(0.513)
result = result.cut... | 22 | 212 | 0.707439 |
train_9f4b6fec3805c27e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.131, 0.007, -0.23), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.836, 0.014).lineTo(0.616, 0.627).lineTo(0.01, 0.852).lineTo(-0.627, 0.628).lineTo(-0.869, 0.004).lineTo(-0.611, -0.633).lineTo(0.009, -0.866).lineTo(0.586, -0.62).close().moveTo(0.... | 14 | 105 | 0.518477 |
train_23fee3ad49a4a833 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0.214, -0.208), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.46, 0.786).lineTo(-0.311, 0.668).lineTo(-0.497, -0.349).lineTo(-0.676, -0.583).lineTo(-0.162, -1.214).lineTo(0.112, -1.085).lineTo(0.677, -0.872).close().center(0, 0.39).circle(0.... | 8 | 74 | 0.609426 |
train_5e3485dadba3607d | 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.313, -0.384).lineTo(-0.313, -0.108).lineTo(-0.471, -0.108).lineTo(-0.471, 0).lineTo(-0.313, 0).lineTo(-0.313, 0.384).lineTo(-0.156, 0.384).lineTo(-0.156, 0).lineTo(0.471, 0).lineTo(0.471, -0.1... | 3 | 29 | 0.166976 |
train_4b4b1b504f29c90b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.502), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.277).lineTo(-1, 0.277).lineTo(-1, -0.277).lineTo(1, -0.277).lineTo(1, 0.277).close().extrude(1.004)
result = result.edges().fillet(0.086)
result = result.cut(cq.Workplane(cq.Plane(origi... | 8 | 54 | 0.979396 |
train_adc1ac86aa92c83e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.327, 0.221, -0.214), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.491, 0.352).lineTo(0.491, 0.18).lineTo(0.127, 0.18).lineTo(0.205, -0.015).lineTo(-0.491, -0.295).lineTo(-0.491, 0.352).lineTo(0.491, 0.352).close().extrude(0.697)
result = result.... | 10 | 98 | 0.420942 |
train_1dca4fc89e9ea606 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.326, 0.436, -0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.938, 0.545).extrude(0.088)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.033, 0.436, -0.047), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.025, 0.092).lineTo(-0.025, 0.042)... | 21 | 100 | 0.234923 |
train_4c95b958d344d5b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, -0.031, -0.3), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.002, 0.011).lineTo(0.672, 0.655).lineTo(0.019, 1.007).lineTo(-0.719, 0.672).lineTo(-0.998, -0.039).lineTo(-0.699, -0.722).lineTo(-0.017, -0.945).lineTo(0.669, -0.703).close().moveT... | 6 | 61 | 1.165157 |
train_cda9931d4334a365 | 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.948, 1.824).extrude(1.71)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.203 * math.cos(3.867 + 2 * math.pi * 0 / 5), 0 + 0.203 * math.sin(3.867 + 2 * math.pi * 0 / 5), 0.71), normal=... | 12 | 171 | 0.529209 |
train_7681394e4e801f4b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.147, 0, 0.413), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.75, 0.742).lineTo(0.75, -0.742).lineTo(-0.75, -0.742).lineTo(-0.75, 0.742).lineTo(0.75, 0.742).close().workplane(offset=0.413).moveTo(0.535, 0.529).lineTo(0.535, -0.529).lineTo(-0.535... | 10 | 67 | 0.664043 |
train_528d09ee5ff1e87e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.647, -0.182, 0.052), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.123, 0.475).threePointArc((0.415, 0.182), (0.123, -0.11)).lineTo(-0.182, -0.11).lineTo(-0.415, -0.11).lineTo(-0.415, 0.475).lineTo(-0.182, 0.475).lineTo(0.123, 0.475).close().extr... | 26 | 147 | 0.273019 |
train_d9c7b064b1c61b70 | 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.716).workplane(offset=1.044).circle(0.604).workplane(offset=0.956).circle(0.716).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(0.106, 0.593, 0.169), normal=(0, 0, 1), xDir=(1, 0, 0)... | 12 | 18 | 2.302161 |
train_64315bcc2b406257 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.018, 0, -0.701), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.415, 0.61).extrude(0.705)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.018, 0, -0.012), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.121, 0.213).lineTo(0.114, 0.213).lineTo(0... | 14 | 105 | 0.238193 |
train_480a98495184f259 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.256, -0.911, -0.067), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.02, -0.089).lineTo(0.02, -0.035).threePointArc((0.034, 0), (0.069, 0.015)).lineTo(0.079, 0.015).lineTo(0.079, 0).lineTo(0.237, 0).lineTo(0.237, 0.089).lineTo(0.079, 0.089).lineTo... | 18 | 215 | 0.226039 |
train_cdf4cdf3689b9299 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.054, -0.114, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.943).threePointArc((0.056, 0.941), (0.112, 0.937)).threePointArc((0, -0.946), (-0.112, 0.937)).threePointArc((-0.081, 1.02), (0, 1.055)).lineTo(0, 0.943).close().extrude(0.227)
res... | 24 | 73 | 0.582638 |
train_7f43abdaacea174e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.229), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.252, 1.009).threePointArc((-0.756, 0), (0.252, -1.009)).lineTo(0.252, -0.504).threePointArc((0.756, 0), (0.252, 0.504)).lineTo(0.252, 1.009).close().extrude(1.085)
result = result.edges().... | 20 | 133 | 0.780757 |
train_4d2f67938bda5b83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.011, 0.49, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.575, 0.578).extrude(0.198)
result = result.faces('>Z').shell(-0.013)
result = result.union(cq.Workplane(cq.Plane(origin=(0.103, 0.098, -0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).rec... | 8 | 66 | 0.051786 |
train_95f444cb526f390b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.079, 0.032, -0.515), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.841, 1.028).extrude(1.078)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.16, 0.505, 0.313), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.357, 0.087).extrude(0.142))
result = resu... | 15 | 128 | 2.016548 |
train_fd71a6428aa43695 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.266, 0.033, 0.019), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.005, 0.139).lineTo(0.079, -0.006).lineTo(0.005, -0.048).lineTo(-0.079, 0.096).lineTo(-0.005, 0.139).close().extrude(0.195)
result = result.edges().fillet(0.004)
result = result.cu... | 14 | 216 | 0.103013 |
train_db42686910691f8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.912, 0.114, -0.244), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.701, 0.578).lineTo(0.756, 0.578).lineTo(0.756, -0.35).lineTo(-0.756, -0.35).lineTo(-0.756, 0.578).lineTo(0.701, 0.578).close().extrude(1.824)
result = result.edges().fillet(0.084)... | 8 | 54 | 2.258198 |
train_f14540086bb4007b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.627).workplane(offset=0.671).circle(0.677).workplane(offset=0.663).circle(0.95).workplane(offset=0.666).circle(0.507).loft()
result = result.edges().fillet(0.166)
result = result.cut(cq.Wo... | 8 | 29 | 3.231814 |
train_bd357b96beee3f3e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.516, -0.314, -0.236), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.347, 0.968).threePointArc((-0.69, 0.447), (-0.81, -0.166)).lineTo(0.81, -0.166).lineTo(-0.347, 0.968).close().extrude(1.032)
result = result.edges().fillet(0.342)
result = resul... | 10 | 160 | 1.093694 |
train_36bcdbcd9aaf82ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.505, 0.79).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.752, 0.203, -0.511), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.056).extrude(0.302))
result = result.edges().cha... | 15 | 143 | 2.18824 |
train_825faf8a1d729280 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.222, -1, -0.115), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.552, 0.643).lineTo(-0.552, 0.906).lineTo(0.552, 0.906).lineTo(0.552, -0.461).lineTo(-0.552, -0.461).lineTo(-0.552, 0.643).close().extrude(1.053)
result = result.edges().chamfer(0.12... | 36 | 346 | 1.401784 |
train_a434968d93668eb6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.084, 0, -0.373), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.233, 1.378).extrude(0.975)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.224, 0.017, -0.562), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.704, 0.366).extrude(0.198))
result = res... | 15 | 44 | 1.623484 |
train_4cde089dd1f95a23 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.774, -0.006, -0.443), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.124, -0.808).threePointArc((-0.297, 0), (0.124, 0.808)).threePointArc((0.253, 0.413), (0.297, 0)).threePointArc((0.253, -0.413), (0.124, -0.808)).close().transformed(offset=(0.49... | 4 | 25 | 0.279192 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.