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_0bf1d7de297b5cfe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.036, 0.132, 0.108), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.201, 0.006).lineTo(-0.04, -0.006).lineTo(0.201, 0.006).lineTo(-0.201, 0.006).close().sweep(cq.Workplane('XY').spline([(0.005, 0.132), (0.006, 0.142), (-0.002, 0.152), (-0.017, 0.15... | 16 | 132 | 0.017211 |
train_db8099c8bc6f212a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.071, 0.07, -0.141), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.2, 0.301).extrude(0.282)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.143, 0.158, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.036, 0.177).lineTo(1, 0.177).lineTo(1, 0.1... | 8 | 40 | 0.056691 |
train_0e752eb1c6d1a58c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.195, 0, -0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.122, 1.231).extrude(1.033)
result = result.faces('>Z').shell(-0.047)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.013, -0.117, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(... | 8 | 41 | 0.916437 |
train_8024f27f4f7bcb1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.014), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.012, 0).threePointArc((0, 0.208), (1.012, 0)).threePointArc((0, -0.208), (-1.012, 0)).close().extrude(0.039)
result = result.edges().fillet(0.007)
result = result.union(cq.Workplane(cq.Pl... | 11 | 31 | 0.01751 |
train_3dc8db34d8a5b0e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.21, -0.237, 0.195), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.263, 0.236).lineTo(-0.148, 0.236).threePointArc((-0.229, 0.203), (-0.263, 0.121)).lineTo(-0.263, -0.135).threePointArc((-0.201, -0.236), (-0.082, -0.23)).lineTo(0.263, 0.005).lineTo... | 3 | 21 | 0.682964 |
train_64322c2f45c4ef9d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.111, -0.58, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.267, 0.006).lineTo(0.267, 0.008).threePointArc((0, 0.133), (-0.267, 0.006)).close().extrude(1.58)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.141, 0.005, -0.008), normal=(0... | 8 | 46 | 0.111395 |
train_2046ed4587b4bdb8 | 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.729, 1.532).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.194, 0.704, 0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.03).extrude(0.219))
result = result.cut(cq.Workplane(cq.... | 6 | 20 | 2.180879 |
train_00a96454bbcaae75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.141, -0.019, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.05, 0.713).lineTo(0.141, 0.713).lineTo(0.149, -0.269).lineTo(-0.149, -0.269).lineTo(-0.05, 0.713).close().extrude(0.35)
result = result.edges().fillet(0.09)
result = result.unio... | 17 | 103 | 0.230831 |
train_2dc2d15d9347a18c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.123, 0, -0.671), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.754, 1.912).extrude(1.241)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.311, -0.134, -0.397), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.182, 2.294).extrude(0.153))
result = resu... | 16 | 84 | 3.635305 |
train_6ca59655eb922d28 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.281, -0.812, -0.358), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.642, 0.039).lineTo(-0.642, 0.523).lineTo(0.642, 0.523).lineTo(0.642, 0.039).lineTo(-0.642, 0.039).close().extrude(1.159)
result = result.edges().chamfer(0.074)
result = result.u... | 10 | 118 | 0.141327 |
train_3b6ea25ff40a13ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.25, -0.167), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.563, 1.5).extrude(0.424)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.25, 0.254), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.535).extrude(0.061))
result = result.union(cq.Wor... | 16 | 173 | 0.984445 |
train_1d67deba31cc6547 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.269, -0.231), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.061, -0.729).threePointArc((0, 0.805), (-0.061, -0.729)).threePointArc((0, -0.732), (0.061, -0.729)).close().extrude(0.208)
result = result.edges().fillet(0.012)
result = result.union... | 8 | 102 | 0.441961 |
train_f269e135d55d18b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.128, -0.101, -0.305), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.744, 1.305).extrude(0.904)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.868, -0.17, -0.215), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.132).extrude(0.487))
result = resu... | 5 | 19 | 2.081793 |
train_28991617bc68f743 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0, 0.026), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.92, 0.172).lineTo(-0.92, -0.502).lineTo(-0.355, -0.846).lineTo(-0.156, -0.846).threePointArc((0, -0.689), (0.156, -0.846)).lineTo(0.355, -0.846).lineTo(0.92, -0.502).lineTo(0.92, 0.172... | 8 | 109 | 4.658507 |
train_a581afe5e7b34acb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.529, -0.188, 0.213), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.58).workplane(offset=0.25).circle(0.543).workplane(offset=0.245).circle(0.571).workplane(offset=0.27).circle(0.572).workplane(offset=0.255).circle(0.534).workplane(offset=0.222).c... | 13 | 58 | 1.082561 |
train_e138454792d6031b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.462, -0.19), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.051, 1.077).extrude(0.381)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.193, -0.267, -0.255), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.18).extrude(0.457))
result = result.cut(... | 17 | 138 | 0.262287 |
train_0799d3bc79372cba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.468, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, -0.19).lineTo(-1, 0.19).lineTo(-0.952, 0.19).lineTo(-0.952, -0.143).lineTo(0.952, -0.143).lineTo(0.952, 0.19).lineTo(1, 0.19).lineTo(1, -0.19).lineTo(-1, -0.19).close().sweep(cq.Workpla... | 7 | 50 | 0.230279 |
train_5390cc26b5081eff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.025, -0.015), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.18, 0.282).lineTo(0.394, 0.856).lineTo(-0.18, 1.07).lineTo(-0.394, 0.496).lineTo(0.18, 0.282).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.256, 0))
result = result.ed... | 13 | 90 | 0.493797 |
train_db9153e9c7cdb5c7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.079, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.628).sweep(cq.Workplane('XY').spline([(-0.079, 1.985), (0.4, 2.341), (0.879, 2.52), (1.359, 2.52), (1.838, 2.341), (2.317, 1.985)]))
result = result.edges().fillet(0.087)
result = result.... | 12 | 38 | 1.817521 |
train_5b884980d1039901 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0, -0.062), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.992, -0.06).threePointArc((0.001, -0.016), (0.992, 0.06)).lineTo(-0.992, -0.06).close().sweep(cq.Workplane('XZ').spline([(-0.004, -0.062), (0.129, 0.032), (0.262, 0.032), (0.395, -0... | 1 | 4 | 0.008298 |
train_177e8c7fd4b8d8cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.057, -0.249), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.679, 1.887).extrude(0.535)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.755 + 0.1885, -0.003 + 0.0715, -1.34), normal=(1, 0, 0), xDir=(0, 1, 0))).circle(0.033).extrude(2.182))
r... | 43 | 109 | 1.538062 |
train_b88ba1e966881658 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.695, 0.572), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.442, -0.305).lineTo(0.442, 0.291).lineTo(0.428, 0.291).lineTo(0.428, 0.305).lineTo(-0.442, 0.305).lineTo(-0.442, 0.291).lineTo(-0.428, 0.291).lineTo(-0.428, -0.305).lineTo(0.442, -0.305... | 9 | 47 | 0.210918 |
train_ee3828e0d4345b38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.021, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.021).lineTo(0.12, -0.188).lineTo(0, -0.396).lineTo(-0.12, -0.188).lineTo(-0.361, -0.188).lineTo(-0.24, 0.021).lineTo(-0.361, 0.229).lineTo(-0.12, 0.229).lineTo(0, 0.437).lineTo(0.12, 0... | 5 | 86 | 0.148992 |
train_2a1fbc49096e9f00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.224, 0.283, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.222).workplane(offset=0.165).circle(0.249).workplane(offset=0.145).circle(0.21).workplane(offset=0.137).circle(0.238).loft()
result = result.edges().chamfer(0.058)
result = result.unio... | 15 | 93 | 0.160938 |
train_51b0b5ab90fb150b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.506, -0.103, -0.472), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.365, 0.607).lineTo(-0.365, -0.36).lineTo(0.265, -0.36).threePointArc((0.277, -0.272), (0.365, -0.26)).lineTo(0.365, 0.508).threePointArc((0.277, 0.519), (0.265, 0.607)).lineTo(-0... | 21 | 231 | 0.525149 |
train_1ca1c4fee42c03dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.793, -0.537, 0.051), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.049, 1.313).threePointArc((-0.659, 0.935), (-0.682, 0.216)).threePointArc((-0.659, 0.174), (-0.633, 0.132)).threePointArc((0, -0.207), (0.633, 0.132)).threePointArc((0.659, 0.174... | 7 | 73 | 1.282057 |
train_f765ce6b63c1e273 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.105, 0, 0.898), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.072).sweep(cq.Workplane('XZ').spline([(0.264, 0.579), (0.06, 0.697), (-0.15, 0.604), (-0.275, 0.339), (-0.261, 0.017), (-0.113, -0.221), (0.104, -0.273), (0.295, -0.117)]))
result = r... | 5 | 14 | 0.044437 |
train_449316a3441baf21 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.032, -0.137, 0.015), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.042, -0.005).lineTo(0.042, -0.005).lineTo(0.042, 0.122).lineTo(0.042, 0.114).lineTo(0.034, 0.114).lineTo(0.034, 0.004).lineTo(-0.042, 0.004).lineTo(-0.042, -0.005).close().revolv... | 6 | 130 | 0.007498 |
train_a3da69ca486e341c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.082, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.874, 0.014).lineTo(0.874, 0.094).lineTo(-1, 0.094).lineTo(-1, 0.164).lineTo(1, 0.164).lineTo(1, 0.094).lineTo(0.944, 0.094).lineTo(0.944, 0.014).lineTo(0.874, 0.014).close().revolve(angleD... | 10 | 121 | 0.034862 |
train_cb2790cb11b6a185 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.577, 0, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.271, 0.271).extrude(0.309)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.844, 0, -0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.311, 0.131).extrude(0.065))
result = result.... | 8 | 40 | 0.02838 |
train_ee38d5a9720514a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.302, -0.441, -0.115), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.698, 0.057).threePointArc((0.426, -0.059), (0.137, -0.122)).threePointArc((-0.113, -0.132), (-0.362, -0.102)).lineTo(-0.362, -0.037).threePointArc((-0.532, 0.002), (-0.698, 0.05... | 4 | 28 | 0.208059 |
train_6c661e2c66dd5329 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.632, 0, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0).lineTo(-0.097, 0).lineTo(-0.193, -0.097).lineTo(-0.193, 0.097).lineTo(0.193, 0.097).lineTo(0.097, 0).lineTo(0, 0).close().sweep(cq.Workplane('XZ').spline([(0.632, -1), (0.41, 0.193), ... | 2 | 13 | 0.073631 |
train_ff594a7d557f7e0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.849, 0.989, 0.003), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.992, 1.849).lineTo(-0.992, 0.731).lineTo(-0.11, 0.731).lineTo(-0.11, -0.151).lineTo(0.992, -0.151).lineTo(0.992, 0.967).lineTo(0.121, 0.967).lineTo(0.121, 1.849).lineTo(-0.992, 1.... | 11 | 128 | 2.541856 |
train_1b827612e1f1965f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.249, -1, -0.14), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.157, -0.731).lineTo(-0.157, 0.314).lineTo(-0.262, 0.314).lineTo(-0.262, 0.731).lineTo(0.262, 0.731).lineTo(0.262, -0.731).lineTo(-0.157, -0.731).close().sweep(cq.Workplane('YZ').spl... | 7 | 35 | 0.752265 |
train_850757589af92979 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.437), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.294, 2).extrude(0.873)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.297, 0.146, 0.116), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.221).extrude(0.328))
result = result.cut(cq.Workpl... | 12 | 74 | 1.843105 |
train_bc86171915dd2c13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.327, -1, 0.089), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.622, 0.426).lineTo(0.088, 0.634).lineTo(0.622, 0.634).lineTo(0.622, 0.019).lineTo(0.088, 0.019).lineTo(-0.622, 0.226).lineTo(-0.622, 0.426).close().extrude(2)
result = result.edges()... | 22 | 79 | 1.330773 |
train_eb74ea73090cb462 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.396, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.245, -0.163).lineTo(0.245, -0.155).lineTo(0.224, -0.155).lineTo(0.224, 0.163).lineTo(-0.231, 0.163).lineTo(-0.231, -0.155).lineTo(-0.245, -0.155).lineTo(-0.245, -0.163).lineTo(0.245, -0.1... | 2 | 15 | 0.077044 |
train_90750f03fec0fdc5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.853, -0.747, 0.063), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.091).lineTo(0, 0.414).threePointArc((0.086, 0.623), (0.294, 0.709)).lineTo(0.353, 0.709).lineTo(0.353, 1.062).lineTo(0.294, 1.062).threePointArc((-0.01, 0.986), (-0.243, 0.776)... | 12 | 85 | 0.64667 |
train_a470ed1cd5924cc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.087, -0.317, 0.517), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.498).transformed(offset=(0.297, -0.187, 0.183), rotate=(0, 90, 0)).circle(0.25).transformed(offset=(0.593, -0.195, 0.181), rotate=(0, 45, 0)).circle(0.19).transformed(offset=(0.89,... | 7 | 46 | 0.512666 |
train_5a0c4d3fd67bcc9f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.42, -0.1, -0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.133, 1.1).lineTo(-0.133, 0.924).lineTo(-0.25, 0.924).threePointArc((-0.229, 0.797), (-0.16, 0.69)).lineTo(0.073, 0.924).lineTo(0.073, 0.718).lineTo(0.073, 0.6).lineTo(0.073, -0.9).... | 5 | 59 | 0.262424 |
train_6ed9fb1991f50226 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.791, -0.779, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, -0.221).lineTo(-1, 1.779).lineTo(0.098, 1.779).lineTo(0.098, 1.645).lineTo(0.455, 1.645).lineTo(0.455, 1.779).lineTo(1, 1.779).lineTo(1, -0.221).lineTo(-1, -0.221).close().extrude(1... | 18 | 123 | 3.135225 |
train_ae5eba4d69b68062 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.065, 0.214), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.098, 0.022).lineTo(0.045, -0.056).lineTo(0.045, -0.11).lineTo(0.053, -0.11).lineTo(0.053, -0.052).lineTo(-0.09, 0.026).lineTo(0.05, 0.102).lineTo(0.105, 0.102).lineTo(0.105, 0.11).line... | 1 | 14 | 0.007073 |
train_31eb8f17becc01ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.286, -0.092, 0.011), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.127, 0.171).lineTo(-0.111, 0.187).lineTo(-0.127, -0.052).lineTo(0.111, -0.068).lineTo(0.127, 0.171).close().extrude(0.485)
result = result.edges().chamfer(0.042)
result = result.c... | 18 | 104 | 0.021073 |
train_ea8705f874e92db0 | 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.035, 1.217).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.146, 0.555, -0.627), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.072, 0.114).extrude(0.184))
result = result.edges().fill... | 11 | 248 | 2.34678 |
train_e148d58e3e3ef49b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.441, 0, 0.343), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.674).workplane(offset=0.335).circle(0.623).workplane(offset=0.308).circle(0.572).workplane(offset=0.291).circle(0.521).workplane(offset=0.256).circle(0.47).loft()
result = result.edges... | 4 | 25 | 1.300372 |
train_cdd4cb140cbb3449 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.776, 0, -0.152), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.365).sweep(cq.Workplane('XZ').spline([(-0.776, -0.152), (-0.49, 0.007), (-0.205, 0.102), (0.08, 0.134), (0.365, 0.102), (0.65, 0.007), (0.936, -0.152)]))
result = result.edges().cham... | 4 | 28 | 0.342952 |
train_88cf322d2dcd6fdf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.14, 0.402, 0.081), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.476, 0.277).threePointArc((-0.382, -0.007), (-0.136, -0.179)).lineTo(0.137, -0.179).threePointArc((0.476, 0.25), (0.189, 0.715)).threePointArc((0.001, 0.676), (-0.187, 0.715)).thre... | 14 | 111 | 0.156404 |
train_e746b45237fa1c98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.804, 2).extrude(0.058)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.322 + 0.0805, -0.8 + 0.16, 0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.038, 0.001).lineTo(-0.04, -0.012... | 21 | 226 | 0.09417 |
train_7f595f1edd7aa8c3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.802), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.925, 1.925).extrude(1.802)
result = result.faces('>Z').shell(-0.177)
result = result.union(cq.Workplane(cq.Plane(origin=(0.067, 0.066, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.836).e... | 4 | 55 | 3.099735 |
train_84a650dd4c16b060 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.035, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.455, 0.48).lineTo(0.458, 0.025).threePointArc((0, -0.435), (-0.458, 0.025)).lineTo(-0.455, 0.48).lineTo(0, 0.48).lineTo(0.455, 0.48).close().extrude(0.953)
result = result.edges().chamfer... | 9 | 66 | 0.693609 |
train_c58e34284cb22628 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0.136, -0.084), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.698).workplane(offset=0.602).circle(0.809).workplane(offset=0.667).circle(0.703).workplane(offset=0.587).circle(0.699).loft()
result = result.edges().chamfer(0.385)
result = result.un... | 17 | 42 | 1.938561 |
train_a8fdafde18c9b878 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.392, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.019, -0.363).lineTo(-0.019, -0.307).lineTo(-0.849, 1.124).lineTo(-0.308, 0.851).lineTo(-0.265, 0.83).lineTo(-0.019, 0.363).lineTo(0.24, 0.83).lineTo(0.287, 0.854).lineTo(0.804, 1.123).lin... | 2 | 18 | 1.749211 |
train_afd0c9fb6a8912b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.183, -0.928, -0.838), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.897).lineTo(0, 0.8).threePointArc((0.595, 0.554), (0.841, -0.041)).lineTo(0, -0.041).lineTo(-0.841, -0.041).lineTo(-0.841, 1.897).lineTo(0, 1.897).close().extrude(1.645)
result... | 6 | 55 | 3.258875 |
train_f19b90b20014f7bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.771, -0.644, -0.109), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.501, 1.773).lineTo(0.501, -0.231).threePointArc((-0.501, 0.771), (0.501, 1.773)).close().extrude(1.289)
result = result.edges().chamfer(0.048)
result = result.union(cq.Workplane(... | 11 | 161 | 1.465179 |
train_7ee97d7da721cf70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.139, 0.472, -0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.608, 0.006).lineTo(0.294, 0.506).lineTo(-0.285, 0.528).lineTo(-0.582, 0.003).lineTo(-0.283, -0.53).lineTo(0.287, -0.532).close().moveTo(-0.229, 0.107).lineTo(-0.193, 0.107).lineTo... | 20 | 305 | 0.097247 |
train_851142016cad3321 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.133, -0.519, -0.407), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.332, 0.347).lineTo(-0.332, 0.347).lineTo(-0.332, -0.347).lineTo(0.332, -0.347).lineTo(0.332, 0.347).close().sweep(cq.Workplane('YZ').spline([(-1.109, -1.134), (-0.854, -1.128), (... | 7 | 57 | 1.280464 |
train_45a994826f0f4d9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.386, -0.187), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.014, 0.02).threePointArc((-0.024, 0), (0.014, -0.02)).threePointArc((0.024, 0), (0.014, 0.02)).close().sweep(cq.Workplane('YZ').spline([(-1.247, -0.209), (-0.78, -0.602), (-0.314, -0.... | 2 | 5 | 0.003647 |
train_0ae3284e15575a8f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.513), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.279, 0.221).extrude(0.515)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.083).extrude(0.307))
result = result.union(cq.Workpl... | 12 | 107 | 0.053568 |
train_052836ae96095980 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.159, -0.201, -0.758), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.242).sweep(cq.Workplane('XY').spline([(0.159, -0.382), (0.493, -0.382), (0.558, -0.345), (0.623, -0.308), (0.688, -0.271)]))
result = result.edges().fillet(0.023)
result = result.... | 4 | 11 | 0.063016 |
train_95a71a2308bc14da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.417, -0.08, -0.315), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.179, 0.319).lineTo(-0.179, -0.319).lineTo(0.179, -0.005).lineTo(-0.179, 0.319).close().sweep(cq.Workplane('XZ').spline([(-0.077, -0.543), (0.15, -0.422), (0.376, -0.422), (0.603... | 11 | 76 | 0.103943 |
train_ec0e1fe43a10c447 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.203, 0.162, -0.55), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.595, 0.956).extrude(1.1)
result = result.faces('>Z').shell(-0.069)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.788, 0.37, -0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0... | 4 | 19 | 0.495506 |
train_37e1388ec2620f6a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.801, 0.121), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.212).sweep(cq.Workplane('YZ').spline([(-0.801, -0.062), (-0.409, -0.062), (-0.337, -0.102), (-0.266, -0.142), (-0.195, -0.181)]))
result = result.edges().chamfer(0.016)
result = result... | 18 | 34 | 0.087795 |
train_072a9398e26e2608 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.078, 0.111, -0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.109, 0.093).lineTo(0.107, 0.091).lineTo(0.111, 0.052).lineTo(0.021, 0.053).lineTo(0.018, -0.091).lineTo(-0.022, -0.093).lineTo(-0.023, 0.05).lineTo(-0.109, 0.054).close().moveTo(... | 10 | 196 | 0.163036 |
train_51ea9380bb8bbec7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.25, -0.077, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.244, 0.249).lineTo(0.225, 0.344).lineTo(0.172, 0.422).lineTo(0.095, 0.474).lineTo(0, 0.493).lineTo(-0.095, 0.474).lineTo(-0.172, 0.422).lineTo(-0.225, 0.344).lineTo(-0.244, 0.249).lin... | 4 | 109 | 0.180102 |
train_8c5973fe4573e86d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.213, 0.052, -0.631), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.378, 0.438).extrude(1.631)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.16, 0.109, -0.468), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.408, 0.235).extrude(1.028))
result = r... | 13 | 150 | 0.371134 |
train_71d38796090cd330 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.217, -0.457, -0.314), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.481, 1.085).extrude(0.628)
result = result.union(cq.Workplane(cq.Plane(origin=(0.512, -0.409, -0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.058).extrude(0.198))
result = result... | 11 | 120 | 1.113458 |
train_17351276ad33e722 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.201), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.833, 2).extrude(0.403)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.243).extrude(0.202))
result = result.cut(cq.Workplane(cq.Pla... | 21 | 77 | 0.728439 |
train_473a1be97e4fc6fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.102, 0.657, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.648).sweep(cq.Workplane('XY').spline([(0.452, -0.018), (0.407, 0.326), (0.064, 0.566), (-0.348, 0.395), (-0.518, -0.018), (-0.348, -0.429), (0.064, -0.6), (0.407, -0.361)]))
result = re... | 2 | 6 | 0.979501 |
train_5dfda75e48c72b08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.321, 0.158, -0.068), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.371, 0.651).extrude(0.921)
result = result.union(cq.Workplane(cq.Plane(origin=(0.281, 0.181, 0.837), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.079).extrude(0.163))
result = result.... | 6 | 45 | 0.357634 |
train_46a04008929feec2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.951, 0, 0.005), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.99).workplane(offset=0.676).circle(0.937).workplane(offset=0.517).circle(0.644).workplane(offset=0.709).circle(0.777).loft()
result = result.edges().chamfer(0.53)
result = result.cut(c... | 4 | 13 | 2.637808 |
train_d89ef95e28f7d1ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.206, -0.388, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.359, -0.144).lineTo(-0.198, -0.103).lineTo(-0.227, -0.144).lineTo(-0.393, -0.144).threePointArc((-0.383, -0.13), (-0.378, -0.113)).threePointArc((-0.377, -0.087), (-0.387, -0.062)).li... | 2 | 22 | 0.261347 |
train_307990f0183db759 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.049, -0.045, -0.62), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.902, 1.203).extrude(1.346)
result = result.union(cq.Workplane(cq.Plane(origin=(0.949, -0.158, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.051).extrude(0.09))
result = resul... | 5 | 47 | 3.067817 |
train_24fc1ca2669f9c2a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.667, -0.021), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.665, 1.28).threePointArc((-0.048, 1.28), (-0.665, 0.923)).lineTo(0.309, -0.051).lineTo(0.665, 0.566).lineTo(0.665, 1.28).close().extrude(2)
result = result.edges().fillet(0.093)
resul... | 14 | 101 | 1.684972 |
train_fd28f623bf06422d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.99, -0.094, 0.351), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.35, -0.351).lineTo(0.365, -0.336).lineTo(0.026, 0.003).lineTo(0.368, 0.345).lineTo(0.353, 0.36).lineTo(0.011, 0.018).lineTo(-0.004, 0.033).lineTo(-0.019, 0.018).lineTo(-0.353, 0.3... | 4 | 41 | 0.156528 |
train_f36e86c585143747 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.106, -0.381, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.386, 1.106).lineTo(0.386, 1.106).lineTo(0.386, -0.486).lineTo(-0.006, -0.486).lineTo(-0.006, -0.894).lineTo(-0.386, -0.894).lineTo(-0.386, 1.106).close().extrude(0.664)
result = resu... | 4 | 84 | 0.316428 |
train_68b4e92c9ee01a0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.126, 0.585, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.529, 1.114).threePointArc((0, 0.716), (0.529, 1.114)).threePointArc((0, -0.735), (-0.529, 1.114)).close().extrude(1.171)
result = result.edges().chamfer(0.201)
result = result.cut(cq.... | 7 | 89 | 2.313351 |
train_234d6de54192cfbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.533, 0, 0.497), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.467, -0.239).lineTo(0.467, 0.035).lineTo(-0.058, 0.035).lineTo(-0.263, 0.239).lineTo(-0.467, 0.035).lineTo(0.467, -0.239).close().sweep(cq.Workplane('XZ').spline([(0.533, -0.042), (0.90... | 19 | 367 | 0.070627 |
train_a99221903713fd1b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.58, 0.294, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.707, -0.794).lineTo(0.471, -0.114).threePointArc((0.707, 0.294), (0.471, 0.702)).lineTo(-0.707, 1.382).lineTo(-0.707, -0.794).close().extrude(1.161)
result = result.edges().chamfer(0.1... | 14 | 84 | 1.551005 |
train_9e9de9ef9e083a15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.535, -0.099, -0.725), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.93, 0.93).extrude(1.249)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.56, 0.462, -0.248), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.216, 0.205).extrude(0.278))
result = r... | 11 | 212 | 1.346891 |
train_3c016b6fcfd372f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.039, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.216, 1.463).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.607, -0.105, 0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.039).extrude(0.311))
result = result.cut(cq.Wor... | 12 | 87 | 2.703795 |
train_25ebd45eb3466a90 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.256, 0.474, -0.593), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.131, 0.489).threePointArc((0.277, 0.307), (-0.131, 0.124)).threePointArc((-0.172, 0.106), (-0.213, 0.124)).threePointArc((-0.193, 0.186), (-0.255, 0.206)).lineTo(-0.273, 0.206).... | 4 | 34 | 0.298101 |
train_ead5194186850bd5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.508, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.442, 0.981).threePointArc((0, 0.934), (0.442, 0.981)).lineTo(0.624, 0.114).threePointArc((0, 0.05), (-0.624, 0.114)).lineTo(-0.442, 0.981).close().extrude(1.046)
result = result.edges().f... | 4 | 58 | 1.867483 |
train_e7b17c8c7596bddf | 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.869, 1.857).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.444 * math.cos(3.404 + 2 * math.pi * 0 / 7), 0 + 0.444 * math.sin(3.404 + 2 * math.pi * 0 / 7), -1.3), normal=(0, 0... | 8 | 50 | 5.764892 |
train_03a5b44026f5787b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.329, 0.013, -0.663), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.337, -0.203).threePointArc((0.305, -0.193), (0.284, -0.167)).lineTo(0.227, -0.029).threePointArc((0.218, 0.013), (0.227, 0.056)).lineTo(0.284, 0.194).threePointArc((0.305, 0.22), ... | 11 | 67 | 0.117486 |
train_8d8761beb1b6df08 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.23), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.612, -0.028).lineTo(0.612, 0.165).lineTo(0.477, 0.155).lineTo(0.464, 0.117).lineTo(0.336, 0.108).lineTo(-0.124, 0.077).lineTo(-0.161, -0.028).lineTo(-0.586, -0.028).lineTo(-0.612, -0.1).l... | 1 | 14 | 0.247032 |
train_f984d9638bedd9a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.036), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.177, 2).extrude(0.063)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.471 + 0.2355, -0.8 + 0.2665, 0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.031, 0.06).lineTo(0.039, 0.06).... | 7 | 204 | 0.149573 |
train_5c8b6f5e21a80368 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.554, -0.566, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.446).sweep(cq.Workplane('XY').spline([(-0.554, -1.067), (-0.045, -1.474), (0.463, -1.474), (0.972, -1.067)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.054, -0.348, -0.357)... | 6 | 28 | 0.814104 |
train_2fa6867b20c72643 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.121, -0.452), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.416).extrude(0.692)
result = result.faces('>Z').shell(-0.05)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.135, -0.697, -0.291), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.1... | 4 | 26 | 0.404695 |
train_2ad6f00e0ce8adc4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.117, 0, 0.107), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.009, 0.004).lineTo(0, -0.013).threePointArc((0.009, -0.001), (0.007, 0.013)).lineTo(-0.009, 0.004).close().sweep(cq.Workplane('XZ').spline([(-0.25, 0.095), (-0.312, 0.097), (-0.368, 0... | 4 | 27 | 0.001782 |
train_e4b0a80dbfb8bb9a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.304, -0.288, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.154).lineTo(1, 0.006).lineTo(-1, 0.006).lineTo(-1, 0.154).lineTo(1, 0.154).close().extrude(0.282)
result = result.edges().fillet(0.036)
result = result.cut(cq.Workplane(cq.Plane(or... | 18 | 113 | 0.132953 |
train_1ec03592c0be11cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.051, -0.546, -0.452), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.941, 0.72).extrude(0.601)
result = result.union(cq.Workplane(cq.Plane(origin=(0.098, -0.51, 0.146), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.847, 0.648).extrude(0.049))
result = re... | 17 | 62 | 0.433803 |
train_078d43ef3e06edd7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.548, 0, 0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.904, 0.832).extrude(0.527)
result = result.union(cq.Workplane(cq.Plane(origin=(0.43, 0, 0.281), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.14, 0.559).extrude(0.162))
result = result.union... | 10 | 54 | 0.371923 |
train_ee3d72760208f150 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, 0.251, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.237, -0.288).lineTo(-0.237, 0.288).lineTo(-0.043, 0).lineTo(0, 0.063).lineTo(0.043, 0).lineTo(0.237, -0.288).lineTo(-0.237, -0.288).close().sweep(cq.Workplane('YZ').spline([(0.251, 0.... | 6 | 35 | 0.148611 |
train_2d2c82a508f17947 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.037, -0.166, -0.416), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.515, 0.608).extrude(0.502)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.073, -0.112, -0.287), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.323, -0.129).lineTo(-0.323, 0.23... | 17 | 215 | 0.204461 |
train_af4a3efc1c3fe771 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.258, -0.057, 0.038), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.376).sweep(cq.Workplane('XZ').spline([(-0.904, -0.228), (-0.258, -0.216), (0.388, -0.32)]))
result = result.edges().fillet(0.082)
result = result.union(cq.Workplane(cq.Plane(origi... | 5 | 21 | 0.664391 |
train_4c1651e1730e4b4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.223, -0.217, -0.355), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.809, 1.566).extrude(0.726)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.084, 0.418, -0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.156).extrude(0.231))
result = resul... | 21 | 127 | 0.754182 |
train_8b147c5bb88dc33d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.366, 0, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.634, -0.009).lineTo(0.323, 0.553).lineTo(-0.304, 0.558).lineTo(-0.637, -0.004).lineTo(-0.308, -0.541).lineTo(0.317, -0.558).close().moveTo(0, -0.123).lineTo(0.032, -0.044).lineTo(0.117,... | 8 | 64 | 0.232892 |
train_ff0c8fc2e978b0be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.005, -0.01, 0.837), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.854, -0.931).lineTo(-0.811, -1.01).lineTo(0.811, -1.01).lineTo(0.854, -0.931).lineTo(0.046, 0.323).lineTo(0.438, 0.931).lineTo(0.395, 1.01).lineTo(0.344, 0.931).lineTo(-0.344, 0.... | 3 | 100 | 0.852926 |
train_10fda0085ca383fe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.249), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.922, 2).extrude(0.377)
result = result.union(cq.Workplane(cq.Plane(origin=(0.096, 0.1, 0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.73, 1.8).extrude(0.028))
result = result.union(cq.Wor... | 5 | 20 | 1.453179 |
train_4745bb620582f712 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.029, 0.053, -0.362), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.796, 1.1).extrude(0.724)
result = result.faces('>Z').shell(-0.063)
result = result.union(cq.Workplane(cq.Plane(origin=(0.511, 0.047, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).circle... | 7 | 36 | 0.292513 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.