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_7fa2ea279b753c1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.05, 0, -0.248), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.001, 0.896).extrude(0.4)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.761, 0.015, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.239).extrude(0.126))
result = result.unio... | 13 | 56 | 0.323721 |
train_5aacb7be5c53d65c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.765, -0.061), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.194).sweep(cq.Workplane('YZ').spline([(-0.989, -0.3), (-0.664, -0.3), (-0.338, -0.3), (0.114, -0.253), (0.566, -0.205), (1.018, -0.158)]))
result = result.edges().fillet(0.123)
result... | 7 | 28 | 0.169582 |
train_bc3c8440c72520e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.105, -0.425, 0.529), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.259, 0.895).lineTo(-0.156, 0.719).lineTo(0.259, 0).lineTo(-0.156, -0.719).lineTo(-0.056, -0.778).lineTo(-0.259, -0.895).lineTo(-0.259, 0.895).close().sweep(cq.Workplane('YZ').spl... | 8 | 68 | 1.084843 |
train_d4494c7430307478 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.176, -0.041, 0.456), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.041, 0.417).lineTo(-0.341, 0.243).lineTo(-0.381, -0.173).lineTo(-0.041, -0.417).lineTo(0.341, -0.243).lineTo(0.381, 0.173).lineTo(0.041, 0.417).close().workplane(offset=0.282).mo... | 27 | 139 | 0.7814 |
train_ad698a2ae4fb2807 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, 0.046, 0.233), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.008, 0.068).threePointArc((0.021, 0.05), (0.03, 0.029)).lineTo(-0.008, 0.007).threePointArc((-0.027, 0.022), (-0.03, 0.046)).lineTo(0.008, 0.068).close().revolve(angleDegrees=90, a... | 9 | 59 | 0.002552 |
train_b72185ef636c9dae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.692), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.522, 2).extrude(1.384)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.024, 0.276, 0.235), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.436).extrude(0.469))
result = result.cut(cq.Workpl... | 5 | 17 | 3.644972 |
train_4ead887e271e665c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.567), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.124, 2).extrude(0.958)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.449 + 0.2245, -0.8 + 0.16, 0.391), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.012, -0.103).lineTo(0.012, 0.103)... | 24 | 106 | 1.965665 |
train_ef4c30aabecf27ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.582, 0, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.835, 0.768).extrude(0.103)
result = result.union(cq.Workplane(cq.Plane(origin=(0.014, 0.125, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.183).extrude(0.034))
result = result.uni... | 9 | 68 | 0.117254 |
train_098739fe2d5b2744 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.71, -0.142, 0.109), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.131, -0.21).lineTo(0.209, -0.154).lineTo(-0.131, 0.314).lineTo(-0.209, 0.258).lineTo(0.131, -0.21).close().workplane(offset=0.077).moveTo(0.116, -0.18).lineTo(0.185, -0.13).lineTo(... | 16 | 234 | 0.321339 |
train_dd85acaa554a63b9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.19, -0.002, -0.093), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.81, -0.025).lineTo(0.435, 0.694).lineTo(-0.412, 0.717).lineTo(-0.844, -0.008).lineTo(-0.422, -0.714).lineTo(0.436, -0.71).close().moveTo(0.138, 0.001).lineTo(0.071, 0.123).lineTo(-... | 17 | 54 | 0.219911 |
train_28125daf738083ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.548).workplane(offset=0.364).circle(0.824).workplane(offset=0.399).circle(0.604).workplane(offset=0.289).circle(0.913).workplane(offset=0.292).circle(0.846).workplane(offset=0.325).circle(0.86... | 3 | 10 | 3.460203 |
train_192582002170dea9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.159, 0, 0.265), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.126).sweep(cq.Workplane('XZ').spline([(0.159, 0.265), (0.047, 0.356), (-0.078, 0.32), (-0.157, 0.175), (-0.15, -0.009)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-0.024, -0... | 5 | 26 | 0.030549 |
train_8d921506edd10435 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.428, 0.096), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.034, -0.017).lineTo(-0.034, 0.013).lineTo(0.038, 0.013).lineTo(0.038, 0.017).lineTo(-0.038, 0.017).lineTo(-0.038, -0.017).lineTo(-0.034, -0.017).close().sweep(cq.Workplane('YZ').splin... | 1 | 8 | 0.00084 |
train_c73f821f960c4d05 | 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.412, 1.293).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.289, 0.51, -0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.14).extrude(0.365))
result = result.cut(cq.Workplane(cq... | 3 | 14 | 3.528609 |
train_23540d4302f21de6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.289).extrude(0.58)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.445, 0.006, -0.307), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.151).extrude(0.696))
result = result.cut(cq.Workpla... | 12 | 50 | 1.29562 |
train_b6f66fa63af46e49 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.359, 0.266, 0.156), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.322, 0.58).lineTo(0.322, -0.048).lineTo(-0.07, -0.048).threePointArc((-0.251, 0.065), (-0.322, 0.266)).threePointArc((-0.251, 0.467), (-0.07, 0.58)).lineTo(0.07, 0.58).lineTo(0.322... | 8 | 56 | 0.201961 |
train_01dfba0350e29a99 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.068, -0.323), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.676, 1.865).extrude(0.646)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.67 + 0.1675, -0.814 + 0.249, -0.42), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.018, 0.039).lineTo(0.102... | 29 | 59 | 1.973837 |
train_98585cb7d56ea0d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.131, -0.468, -0.215), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.812, -0.445).lineTo(-0.812, 1.381).lineTo(0.812, 1.381).lineTo(0.812, -0.445).lineTo(-0.812, -0.445).close().workplane(offset=0.373).moveTo(-0.751, -0.376).lineTo(-0.751, 1.312)... | 12 | 67 | 2.110023 |
train_1dab82768451b2b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.657).workplane(offset=0.342).circle(0.586).workplane(offset=0.327).circle(0.579).workplane(offset=0.283).circle(0.447).workplane(offset=0.398).circle(0.686).workplane(offset=0.284).circle(0.70... | 12 | 16 | 2.00701 |
train_f7a2c9d90d93626e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.282, 0.034, 0.017), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.021, -0.121).lineTo(-0.021, 0.176).lineTo(0.021, 0.176).lineTo(0.021, -0.121).lineTo(-0.021, -0.121).close().extrude(0.052)
result = result.edges().chamfer(0.003)
result = result... | 6 | 57 | 0.001207 |
train_64c9ccaa083d2d5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.093, 0.052, -0.111), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.067, 0.027).threePointArc((0.243, -0.162), (-0.009, -0.105)).lineTo(-0.243, 0.03).threePointArc((-0.188, 0.087), (-0.167, 0.162)).lineTo(0.067, 0.027).close().sweep(cq.Workplane(... | 8 | 39 | 0.144641 |
train_8f5c68a2921c63c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.255, 0, -0.385), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.49, 1.332).extrude(1.061)
result = result.union(cq.Workplane(cq.Plane(origin=(0.725, 0.102, 0.057), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.551, 0.627).extrude(0.512))
result = result... | 13 | 265 | 1.101526 |
train_6d37c9ec35ccb4be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.019, 0.646, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.18, 0.708).extrude(0.472)
result = result.faces('>Z').shell(-0.025)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.685, 0.549, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 6 | 42 | 0.192607 |
train_b53091bd08cbfa35 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.287, 0.013, -0.366), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.713, -0.988).lineTo(0.694, -0.999).lineTo(0.708, 0.95).lineTo(-0.707, 0.972).close().moveTo(-0.408, 0.21).lineTo(-0.042, 0.211).lineTo(-0.043, 0.139).lineTo(-0.192, 0.144).lineTo... | 8 | 60 | 0.598727 |
train_98bca1bbf0968bad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.425, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.571).lineTo(-1, 0.077).lineTo(-0.91, 0.077).lineTo(-0.91, 0.346).lineTo(-0.82, 0.346).lineTo(-0.82, 0.212).lineTo(-0.749, 0.212).lineTo(-0.749, 0.346).lineTo(-0.659, 0.346).lineTo(-0.... | 9 | 144 | 1.13941 |
train_ddfde81a5a4dd4a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.53, -0.286, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.072, 0.179).lineTo(-0.072, 0).lineTo(-0.1, -0.143).lineTo(-0.107, -0.179).lineTo(-0.095, -0.179).lineTo(-0.064, -0.143).lineTo(-0.066, -0.149).lineTo(-0.054, -0.161).lineTo(0.107, 0).l... | 3 | 29 | 0.043793 |
train_4d09457287f95e8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.109, -0.048), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.636, -0.636).lineTo(-0.636, -0.212).lineTo(-0.212, -0.212).lineTo(-0.212, 0.636).lineTo(0.212, 0.636).lineTo(0.212, 0.212).lineTo(0.636, 0.212).lineTo(0.636, -0.212).lineTo(0.212, -... | 19 | 186 | 0.708268 |
train_a52bd9c099c64614 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.404, -0.74, 0.217), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.6, -0.199).threePointArc((-0.6, 1.3), (-0.389, -0.608)).lineTo(0.6, -0.199).close().extrude(1.481)
result = result.edges().chamfer(0.162)
result = result.cut(cq.Workplane(cq.Plane(... | 4 | 27 | 4.158896 |
train_8d113e83e14d1194 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.238, -0.059, 0.426), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.208, -0.072).lineTo(-0.208, 0.25).threePointArc((0, 0.042), (0.208, 0.25)).lineTo(0.208, -0.072).lineTo(-0.208, -0.072).close().revolve(angleDegrees=360, axisStart=(-0.208, -0.07... | 11 | 80 | 0.382357 |
train_5e967027619ef589 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.052, 0.05, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.448, 0.539).extrude(0.512)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.052, 0.251, 0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.239, 0.146).extrude(0.05))
result = result... | 18 | 131 | 0.147554 |
train_3ede4fd3874e3170 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.087, 0, -0.423), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.825, 1.738).extrude(0.745)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.201, 0.53, 0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.096).extrude(0.03))
result = result.cut(cq.... | 14 | 38 | 2.433829 |
train_5e93d8e44b8d26ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.928, 0.401, 0.098), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.072).lineTo(-0.072, -0.072).lineTo(-0.072, 0).lineTo(-0.144, 0.072).lineTo(0.144, 0.072).lineTo(0.144, -0.072).lineTo(0.072, 0).lineTo(0.072, -0.072).lineTo(0, -0.072).close().... | 4 | 31 | 0.095282 |
train_58a9fd5292f55896 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.507, 0.467), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.167).sweep(cq.Workplane('YZ').spline([(-0.374, -0.011), (-0.141, -0.148), (0.109, -0.148), (0.341, -0.011), (0.341, 0.136), (0.109, 0.273), (-0.141, 0.273), (-0.374, 0.136)]))
result = ... | 5 | 9 | 0.235122 |
train_a168d7730829dc9f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.806, 0.77, -0.217), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.665, 1.113).lineTo(-0.665, 1.881).lineTo(-0.221, 1.113).lineTo(0.221, 0.346).lineTo(0.665, -0.422).lineTo(0.665, 1.113).close().extrude(1.613)
result = result.edges().chamfer(0.222... | 33 | 130 | 1.285801 |
train_9c9b1dbb5da2aaca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.049, 0.062, 0.11), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.801, 0.093).lineTo(0.89, 0.093).lineTo(0.89, 0.005).lineTo(-0.89, 0.005).lineTo(-0.89, 0.093).lineTo(0.801, 0.093).close().extrude(0.124)
result = result.edges().chamfer(0.042)
resu... | 12 | 61 | 0.012282 |
train_f7cf5854b4cb8115 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.085, 0.12, -0.247), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.925, 0.906).extrude(0.12)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.284, 0.16, -0.119), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.125, 0.345).lineTo(-0.125, 0.2).line... | 11 | 57 | 0.305459 |
train_a79d76755eace8ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.235, 0.479, -0.364), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.287).transformed(offset=(0.259, -0.158, 0.039), rotate=(0, 90, 0)).circle(0.12).transformed(offset=(0.518, -0.218, 0.133), rotate=(0, 0, 90)).circle(0.128).transformed(offset=(0.... | 3 | 31 | 0.064165 |
train_2fa82acefe92e3a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.142, -0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.6, 1.078).extrude(0.574)
result = result.faces('>Z').shell(-0.066)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.177, 0.829, -0.164), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0... | 7 | 23 | 0.42627 |
train_77bbca3ffac09639 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.208, -0.28, -0.616), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.813, 1.441).extrude(0.469)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.133, -0.446, -0.159), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.125).extrude(0.202))
result = res... | 8 | 57 | 0.659835 |
train_f396324fb9ec5dd8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.192, -0.187, -0.962), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.845, 1.038).extrude(1.924)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.37, 0.164, 0.327), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.064, -0.25).lineTo(0.064, -0.212).li... | 19 | 146 | 1.36479 |
train_57485feed6e27e30 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.238, -0.729), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.263, 1.524).extrude(1.459)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.179, 0.74, -0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.26).extrude(0.594))
result = result.cut... | 4 | 63 | 2.876726 |
train_53ab82dce33cd333 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.478, 0.067, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.054, -0.522).lineTo(0.058, -0.484).lineTo(0.091, -0.174).lineTo(0.162, 0.484).lineTo(0.166, 0.522).lineTo(0.124, 0.474).lineTo(0.12, 0.436).lineTo(-0.018, 0.28).lineTo(-0.059, -0.023).... | 4 | 23 | 0.009766 |
train_bec5a18bba63460d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.254, -0.242, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.523, -0.746).threePointArc((0.466, -0.709), (0.479, -0.642)).lineTo(0.479, 0.746).lineTo(-0.417, 0.746).lineTo(-0.417, -0.642).threePointArc((-0.484, -0.629), (-0.523, -0.685)).three... | 3 | 21 | 0.579594 |
train_0aeb690470287e33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.445, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1.125).workplane(offset=0.477).circle(0.705).workplane(offset=0.413).circle(0.374).loft()
result = result.edges().fillet(0.099)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.002, -0.7... | 14 | 53 | 0.923993 |
train_5b894e9f4a076df8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.152, 0.089, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.161).lineTo(1, 0.017).lineTo(0.856, 0.017).lineTo(0.856, 0.089).lineTo(0.072, 0.089).lineTo(0.072, 0.017).lineTo(-0.072, 0.017).lineTo(-0.072, 0.089).lineTo(-0.856, 0.089).lineTo(-0... | 20 | 205 | 0.044011 |
train_d8b15144b5d0e047 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.926, -0.098, -0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.074, -0.074).lineTo(0.074, 0.074).lineTo(-0.074, 0.074).lineTo(-0.074, 0.048).lineTo(-0.059, 0.038).lineTo(-0.042, -0.042).lineTo(-0.074, -0.074).lineTo(0.074, -0.074).close().tr... | 1 | 9 | 0.01076 |
train_b26fbfce4c9610a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.15, 0, 0.113), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.15, 1).lineTo(-0.15, -1).lineTo(0.15, -1).lineTo(0.15, 1).lineTo(-0.15, 1).close().revolve(angleDegrees=360, axisStart=(-0.15, 1), axisEnd=(-0.15, 0.85))
result = result.edges().fillet... | 6 | 19 | 0.499779 |
train_ec3d6597b790e4e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.045, 0.23), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.14).workplane(offset=0.44).circle(0.214).workplane(offset=0.495).circle(0.207).workplane(offset=0.571).circle(0.137).workplane(offset=0.495).circle(0.14).loft()
result = result.edges()... | 15 | 135 | 0.226404 |
train_67b8f28704992975 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.64, -0.137, 0.007), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.463, -0.863).lineTo(-0.336, -0.61).lineTo(-0.463, -0.552).lineTo(-0.463, 1.251).lineTo(0.074, 0.205).lineTo(0.286, -0.21).lineTo(0.463, -0.554).lineTo(-0.024, -0.75).lineTo(-0.305... | 19 | 164 | 0.865904 |
train_e3112f9e99c6d51f | 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.949, 0.672).extrude(1.406)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.731, 0.494).extrude(0.652))
result = result.cut(cq.Workplan... | 13 | 126 | 0.977366 |
train_c188ad21cdbd0d75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0.001, -0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.998, -0.673).lineTo(1.002, -0.665).lineTo(0.973, 0.671).lineTo(-0.965, 0.669).close().center(-0.275, 0.187).circle(0.085).center(0.551, 0).circle(0.091).center(-0.551, -0.374).re... | 14 | 53 | 0.377716 |
train_c5e57e032a7bd60d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.475), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.277, 1.221).extrude(1.475)
result = result.faces('>Z').shell(-0.113)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.151, 0.175, -0.942), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.0... | 5 | 34 | 0.991371 |
train_eec68af8bcb34c05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, 0.422, 0.13), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.002, 0).lineTo(0.436, -0.036).lineTo(0.87, -0.072).threePointArc((-0.87, 0), (0.87, 0.072)).lineTo(0.436, 0.036).lineTo(0.002, 0).close().sweep(cq.Workplane('XY').spline([(0.021, 0.... | 18 | 63 | 0.727048 |
train_ad82462f0d2f5416 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.502, 0.029, -0.157), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.243, 0.637).lineTo(-0.243, -0.58).lineTo(0.243, -0.58).lineTo(0.243, 0.637).lineTo(-0.243, 0.637).close().extrude(0.786)
result = result.edges().fillet(0.099)
result = result.uni... | 23 | 170 | 0.489497 |
train_371d9da9a54e0bcc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0, 0.084), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.186, 0).lineTo(0.156, 0).lineTo(0.171, -0.025).lineTo(0.327, -0.283).lineTo(0.015, -0.283).lineTo(0, -0.308).lineTo(-0.015, -0.283).lineTo(-0.327, -0.283).lineTo(-0.171, -0.025).lineTo(... | 21 | 28 | 0.342403 |
train_66b50b5c6f25fce4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.156, -0.778), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.201, 0.112).lineTo(-0.201, -0.052).lineTo(-0.04, -0.052).lineTo(-0.04, 0.039).lineTo(0.042, 0.039).lineTo(0.042, -0.026).lineTo(-0.201, -0.316).lineTo(-0.22, -0.402).lineTo(-0.22... | 12 | 190 | 0.167789 |
train_2ada209d3dc5f9a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.275, 0.479, 0.101), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.521).transformed(offset=(-0.09, 0.541, 0.083), rotate=(30, 0, 0)).circle(0.567).transformed(offset=(-0.548, 0.872, 0.131), rotate=(90, 0, 0)).circle(0.486).loft()
result = result.c... | 7 | 25 | 0.668683 |
train_ac0d86dc6a615b13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.653, 0.271, 0.134), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.866, 0.024).lineTo(-0.866, 0.671).lineTo(-0.866, 0.519).lineTo(0.866, 0.519).lineTo(0.866, 0.671).lineTo(0.866, 0.024).lineTo(-0.866, 0.024).close().extrude(1.306)
result = result... | 12 | 60 | 1.063066 |
train_e2c6ba42abd4e40d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.274, -0.216, -0.963), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.288, 1.438).extrude(1.963)
result = result.union(cq.Workplane(cq.Plane(origin=(0.241, 0.117, -1.105), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.105, -0.061).threePointArc((0.129,... | 5 | 37 | 3.411513 |
train_f20e81abd81a07ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.903, -0.215, 0.242), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.115).transformed(offset=(0.283, 0, 0.057), rotate=(0, 45, 0)).circle(0.159).transformed(offset=(0.415, 0.09, 0.052), rotate=(30, 0, 0)).circle(0.248).transformed(offset=(0.547, 0.... | 2 | 7 | 0.043875 |
train_0239ddce8760972d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.385, 0, -0.754), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.231, 0.995).extrude(1.167)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.385 + 0.139 * math.cos(2.868 + 2 * math.pi * 0 / 3), 0 + 0.139 * math.sin(2.868 + 2 * math.pi * 0 / 3), -... | 10 | 74 | 1.454232 |
train_1afadc6518f9e0bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.715), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.937, 0.734).extrude(0.962)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0.212), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.158, -0.123).lineTo(-0.158, -0.132).lineTo(0.158, -... | 11 | 92 | 0.720555 |
train_152e031459594b58 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.182, 0.002, 0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.818, -0.539).lineTo(0.806, -0.532).lineTo(0.802, 0.515).lineTo(-0.812, 0.536).close().moveTo(0.103, -0.001).lineTo(0.073, 0.075).lineTo(0.002, 0.107).lineTo(-0.072, 0.076).lineTo(... | 7 | 65 | 0.466256 |
train_d4c12f4435f98d0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.092, -0.025), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.033, -0.906).lineTo(0.083, 1.091).lineTo(0.033, 1.094).lineTo(-0.083, -0.903).lineTo(-0.033, -0.906).close().revolve(angleDegrees=360, axisStart=(-0.033, -0.906), axisEnd=(0.083, 1.09... | 3 | 9 | 0.003569 |
train_4b5b339809cab15c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0.007, 0.123), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.884, -0.316).threePointArc((0.79, -0.389), (0.671, -0.379)).threePointArc((-0.038, -0.144), (-0.784, -0.122)).threePointArc((-0.899, -0.092), (-0.962, 0.01)).lineTo(-0.995, 0.201)... | 10 | 52 | 0.213369 |
train_195093eb5293228e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.344, 0, 0.209), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.367, -0.122).lineTo(0, -0.122).lineTo(-0.367, 0).lineTo(-0.367, 0.122).lineTo(0.245, -0.081).lineTo(0.367, -0.081).lineTo(0.367, -0.122).close().workplane(offset=0.078).moveTo(0.503, ... | 13 | 55 | 0.056243 |
train_b695f051e1fd8eac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0, -0.002), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.102).workplane(offset=0.406).circle(0.106).workplane(offset=0.373).circle(0.1).workplane(offset=0.34).circle(0.1).workplane(offset=0.393).circle(0.112).loft()
result = result.union(cq.Wor... | 5 | 47 | 0.014793 |
train_253546720156d00b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.548, -0.308, -0.159), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.131, -0.045).lineTo(-0.133, -0.045).lineTo(-0.027, -0.138).lineTo(-0.027, -0.136).lineTo(0.104, -0.091).lineTo(0.106, -0.092).lineTo(0.133, 0.045).lineTo(0.027, 0.138).lineTo(0... | 11 | 121 | 0.496373 |
train_1e65a5b447002662 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.705, 0.774, -0.273), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.63, 1.134).lineTo(0.725, 1.228).lineTo(0.725, 1.585).lineTo(0.536, 1.774).lineTo(-0.725, 1.774).lineTo(-0.725, 0.198).lineTo(-0.599, 0.198).lineTo(-0.599, 0.324).lineTo(-0.221, 0.... | 3 | 17 | 2.348481 |
train_d38cd39355526b84 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.18, 0.826, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.866, 1.68).lineTo(0, 2.18).lineTo(0.866, 1.68).lineTo(0.866, 0.679).lineTo(0, 0.18).lineTo(-0.866, 0.679).lineTo(-0.866, 1.68).close().extrude(1.653)
result = result.cut(cq.Workplane(c... | 12 | 147 | 2.933722 |
train_16b44100a4b994e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, 0.245, 0.146), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.047, 0.092).threePointArc((0.079, 0.079), (0.092, -0.047)).lineTo(0.024, -0.047).lineTo(0.024, -0.092).threePointArc((-0.064, -0.064), (-0.092, 0.024)).lineTo(-0.047, 0.024).lineT... | 1 | 10 | 1.681527 |
train_791b17828e203f0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.258, -0.451, -0.538), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.84, 0.768).extrude(0.321)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.258, -0.41, -0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.624, 0.696).extrude(0.035))
result =... | 30 | 169 | 0.526969 |
train_a6cac60a77d33202 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.004, -0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, -0.718).lineTo(1, -0.716).lineTo(0.983, 0.71).lineTo(-0.983, 0.688).close().moveTo(-0.238, -0.112).lineTo(-0.257, -0.1).lineTo(-0.288, -0.112).lineTo(-0.31, -0.16).lineTo(-0.304, -0.... | 8 | 101 | 0.323694 |
train_4ae559d0798dcaa1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, -1.129, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.5, 1.447).lineTo(-0.5, 0.557).lineTo(0.5, 0.557).lineTo(0.5, 1.447).lineTo(0.3, 1.447).threePointArc((0, 1.747), (-0.3, 1.447)).lineTo(-0.5, 1.447).close().revolve(angleDegrees=360, axi... | 2 | 10 | 3.241648 |
train_3d56f67deaf61ae4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.434), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.976).workplane(offset=0.194).circle(1).workplane(offset=0.168).circle(0.947).workplane(offset=0.154).circle(0.841).workplane(offset=0.159).circle(0.821).workplane(offset=0.193).circle(0.97... | 14 | 5 | 2.202365 |
train_1e86b73dcaab109e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, -0.445, -0.227), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.116).transformed(offset=(0.045, 0.034, 0.017), rotate=(0, 0, 20)).circle(0.17).transformed(offset=(0.09, 0.06, 0.029), rotate=(0, 90, 0)).circle(0.07).transformed(offset=(0.134, ... | 3 | 12 | 0.045785 |
train_40ce7c5f027f5d38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.148, 0, -0.353), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.704, 0.682).extrude(0.59)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.84, -0.086, -0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.32, 0.164).extrude(0.161))
result = result... | 9 | 51 | 0.590951 |
train_a56f130377d50fc0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.281, 0, -0.644), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.194, 1.595).extrude(1.644)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.552, 0.248, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.161).extrude(0.373))
result = result.union... | 3 | 13 | 3.5424 |
train_0a3b7066392cb618 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.244, -0.061, -0.063), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.512, 0.878).extrude(0.084)
result = result.union(cq.Workplane(cq.Plane(origin=(0.319, -0.017, 0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.395).extrude(0.014))
result = result... | 15 | 94 | 0.135675 |
train_7f4fe7698ffe532c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.059, -0.127), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.899, 1.153).extrude(0.254)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.038, -0.171, 0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.809, 0.305).extrude(0.063))
result = resul... | 13 | 52 | 0.364988 |
train_50e21b02b86589f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.013, -0.002, 0.173), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.717, -0.18).lineTo(1.075, 0.18).lineTo(-1.075, -0.067).lineTo(0.717, -0.18).close().extrude(0.347)
result = result.edges().chamfer(0.088)
result = result.cut(cq.Workplane(cq.Plan... | 9 | 49 | 0.082 |
train_0e268b7cdc3e5647 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.322, -0.071, -0.106), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.021).threePointArc((-0.5, 0.031), (-0.501, 0.041)).lineTo(0.501, 0.041).lineTo(0.501, 0.021).lineTo(0.501, 0.002).lineTo(-0.501, 0.002).threePointArc((-0.5, 0.012), (-0.5, ... | 23 | 251 | 0.106516 |
train_3c9aa80b861e86d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.355), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.188, -0.004).lineTo(0.165, -0.004).lineTo(0.165, 0.114).lineTo(0.188, 0.114).lineTo(0.188, -0.093).lineTo(0.165, -0.095).lineTo(0.165, -0.073).lineTo(-0.188, -0.114).lineTo(-0.188, -0.0... | 1 | 10 | 0.037643 |
train_eadf1d20bb386194 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.125, -0.404, 0.091), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.371, -0.371).lineTo(-0.208, -0.208).lineTo(-0.19, -0.293).lineTo(0.19, 0.293).lineTo(0.208, 0.208).lineTo(0.371, 0.371).lineTo(-0.371, 0.371).lineTo(-0.208, 0.208).lineTo(-0.293... | 4 | 31 | 0.208118 |
train_4c88a7df0670d0b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.468, 1, -0.08), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.87, 0.903).lineTo(0.87, 0.033).lineTo(0, 0.033).threePointArc((-0.615, 0.288), (-0.87, 0.903)).lineTo(0.87, 0.903).close().extrude(2)
result = result.edges().chamfer(0.065)
result = re... | 12 | 59 | 2.582003 |
train_086394cb65090100 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.863, 0.058, 0.343), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.137, -0.024).lineTo(0.12, -0.1).lineTo(-0.137, -0.1).lineTo(-0.137, -0.031).lineTo(-0.081, 0.1).lineTo(0.084, 0.1).lineTo(0.137, -0.024).close().sweep(cq.Workplane('XZ').spline([(0.... | 3 | 46 | 0.368934 |
train_ad15ea164d73fce1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.137, 0.019), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.344).sweep(cq.Workplane('YZ').spline([(-0.137, 0.019), (0.196, 0.118), (0.528, 0.095), (0.861, -0.052)]))
result = result.edges().chamfer(0.043)
result = result.cut(cq.Workplane(cq.Pl... | 24 | 67 | 0.121112 |
train_fd70632038346aef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.416, 0.032, 0.089), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.139).sweep(cq.Workplane('YZ').spline([(-0.3, -0.159), (-0.204, -0.244), (-0.101, -0.244), (-0.005, -0.159), (-0.005, -0.067), (-0.101, 0.017), (-0.204, 0.017), (-0.3, -0.067)]))
re... | 14 | 189 | 0.733857 |
train_07629331a8efaa44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.109, 0.063, 0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.674, 0.564).extrude(0.095)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.19, -0.046, 0.23), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.025, 0.044).threePointArc((-0.259, -... | 26 | 241 | 0.189976 |
train_1b3e3fbd749e8445 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.127, 0.304, 0.833), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.167, 0.359).lineTo(0.167, 0.031).lineTo(-0.167, 0.031).lineTo(-0.167, 0.359).lineTo(0.167, 0.359).close().extrude(0.609)
result = result.edges().chamfer(0.023)
result = result.unio... | 8 | 61 | 0.17401 |
train_8325a76c244244ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.136, 0, -0.145), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.727, 0.743).extrude(0.29)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.038, 0.052, 0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.095).extrude(0.031))
result = result.cut(c... | 8 | 48 | 0.358935 |
train_9547c1c58a2f0314 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.493, -0.648, -0.223), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.052, 0.636).lineTo(-0.152, 0.756).lineTo(-0.097, 0.609).lineTo(-0.237, 0.633).lineTo(-0.296, 0.665).threePointArc((-0.298, 0.665), (-0.298, 0.663)).lineTo(-0.239, 0.628).lineTo(... | 11 | 170 | 0.371571 |
train_ac797bfb030eb45d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.2, -0.666, 0.443), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.579, 0.334).lineTo(-0.436, 0.086).lineTo(-0.193, -0.334).lineTo(0.436, -0.334).lineTo(0.436, 0.086).lineTo(0.579, 0.334).lineTo(-0.579, 0.334).close().sweep(cq.Workplane('YZ').spli... | 3 | 22 | 1.301448 |
train_4e18831aa70ed052 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.685, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(1.083).workplane(offset=0.587).circle(0.953).workplane(offset=0.629).circle(1.041).loft()
result = result.edges().fillet(0.221)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.607, 0.... | 10 | 31 | 3.462662 |
train_23e5bfe76f5404b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.084), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.555, 2).extrude(0.139)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.622 + 0.2075, -0.8 + 0.2665, 0.055), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.067, -0.121).lineTo(-0.067, 0.... | 10 | 69 | 0.435098 |
train_40523067a6fbb9ec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.309, -0.141), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.559, 1.382).extrude(0.128)
result = result.union(cq.Workplane(cq.Plane(origin=(0.078, 0.378, -0.013), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.622).extrude(0.017))
result = result.uni... | 11 | 87 | 0.373803 |
train_df8021be9d161b96 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, 0.233, -0.077), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.335, -0.188).lineTo(-0.335, 0.126).lineTo(-0.005, 0.126).lineTo(-0.005, 0.189).lineTo(0.335, 0.189).lineTo(0.335, -0.188).lineTo(-0.335, -0.188).close().sweep(cq.Workplane('XY').s... | 11 | 57 | 0.247337 |
train_eb76fe0c8c03619b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1.132, -0.092), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.588, 1.035).lineTo(-0.408, 1.232).lineTo(-0.588, 0.261).lineTo(0.399, 0.078).lineTo(0.588, 1.035).close().revolve(angleDegrees=360, axisStart=(0.588, 1.035), axisEnd=(-0.408, 1.232))
r... | 25 | 137 | 2.090295 |
train_9b87bee6728e728a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.04, -0.282, -0.331), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.348, -0.717).lineTo(-0.348, -0.717).lineTo(-0.348, 0.717).lineTo(0.348, 0.717).lineTo(0.348, -0.717).close().extrude(0.521)
result = result.edges().fillet(0.029)
result = result.... | 23 | 175 | 1.180226 |
train_60c4adaf7c142b97 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.653), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.791, 2).extrude(1.019)
result = result.union(cq.Workplane(cq.Plane(origin=(0.355, 0.19, 0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.205).extrude(0.305))
result = result.cut(cq.Workpl... | 15 | 88 | 2.692005 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.