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_c5dc7eb2f8f83e92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.013, -0.06, -0.428), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.605, 0.977).extrude(0.855)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.013, -0.445, -0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.114, 0.217).extrude(0.112))
result = re... | 15 | 98 | 1.220445 |
train_4f8f130334c5b5d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.161, 0.032, -0.269), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.731, 0.161).lineTo(0.731, 0.161).lineTo(0.731, 0.029).lineTo(-0.731, 0.029).lineTo(-0.731, 0.161).close().revolve(angleDegrees=270, axisStart=(-0.731, 0.161), axisEnd=(0.731, 0.1... | 12 | 78 | 0.043847 |
train_683c58717b175f56 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.45, 0.096, 0.152), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.091, 0.043).lineTo(-0.041, -0.043).lineTo(-0.004, 0.021).lineTo(0.024, 0.021).lineTo(-0.013, -0.043).lineTo(0.013, -0.043).lineTo(0.05, 0.021).lineTo(0.078, 0.021).lineTo(0.091, 0.... | 21 | 138 | 0.273463 |
train_26a740149db9c6e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.474), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.22).extrude(0.947)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.17, 0.441, -0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.178).extrude(0.443))
result = result.cut(cq.Workplan... | 6 | 32 | 2.093428 |
train_0052dd6f947aeafd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.127, -0.453), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.377, 1.392).extrude(1.453)
result = result.faces('>Z').shell(-0.089)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.188, -0.433, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.1... | 13 | 79 | 0.875555 |
train_6fd279dd1096969f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.488, -0.122, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.024, 0.932).extrude(0.42)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.379, -0.325, 0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.503, 0.552).extrude(0.165))
result = r... | 25 | 174 | 0.553749 |
train_e8206c55c71e75fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.26, -0.21, -0.464), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.241, 0.066).lineTo(0.241, 0.126).lineTo(0.045, 0.126).lineTo(0.045, 0.277).lineTo(-0.045, 0.277).lineTo(-0.045, 0.126).lineTo(-0.206, 0.126).lineTo(-0.241, 0.126).lineTo(-0.241, 0.... | 21 | 234 | 0.117076 |
train_f0c1fc4c4a325cc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.484, -0.073, -0.017), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.544, 0.139).lineTo(0.544, 0.139).lineTo(0.544, 0.077).lineTo(0.354, 0.077).lineTo(0.354, 0.031).lineTo(0.439, 0.031).lineTo(0.439, 0.006).lineTo(0.354, 0.024).lineTo(0.341, 0.03... | 35 | 174 | 0.158754 |
train_2dd72291bd1ec3c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.002, 0.129, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.158, 0.998).threePointArc((0.078, -0.012), (-0.158, -0.998)).lineTo(0.158, 0.998).close().sweep(cq.Workplane('XY').spline([(-0.002, -0.105), (0.045, -0.064), (0.073, -0.009), (0.079, 0... | 3 | 7 | 0.006822 |
train_624626d85af01f38 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.091, -0.259, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.688, 1.064).extrude(0.508)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.076, -0.652, -0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.197, 0.294).extrude(0.169))
result = re... | 27 | 166 | 0.320078 |
train_5e1ce76ed5df1cfa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.013, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.116, -0.051).threePointArc((-0.142, 0.013), (-0.119, 0.077)).lineTo(0.03, 0.077).lineTo(0.142, 0.077).lineTo(0.142, -0.051).lineTo(0.028, -0.051).lineTo(-0.116, -0.051).close().extrude(0... | 4 | 32 | 0.01143 |
train_420cab3406c54fe8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.348, -0.863), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.009, 0.013).lineTo(-0.009, -0.013).lineTo(0.009, -0.013).lineTo(0.009, 0.013).lineTo(-0.009, 0.013).close().sweep(cq.Workplane('YZ').spline([(-0.348, -0.863), (-0.248, -0.775), (-0.... | 8 | 47 | 0.002974 |
train_4804bb94c902014c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.248, 0, -0.545), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.242).sweep(cq.Workplane('XZ').spline([(-0.779, -0.588), (-0.467, -0.73), (-0.131, -0.73), (0.181, -0.588), (0.181, -0.434), (-0.131, -0.291), (-0.467, -0.291), (-0.779, -0.434)]))
re... | 18 | 112 | 0.148984 |
train_86be5908e86fb95b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.448, 0, 0.776), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.465, 0.26).threePointArc((0.015, -0.027), (-0.465, -0.26)).lineTo(0.465, 0.26).close().sweep(cq.Workplane('XZ').spline([(0.448, 0.144), (0.267, 0.212), (0.061, 0.196), (-0.091, 0.102), ... | 1 | 4 | 0.013537 |
train_aa961dc39fa9cb8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.738, 0.343, 0.036), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.904, -0.657).lineTo(-0.761, -0.657).lineTo(-0.832, 0.986).lineTo(-0.832, 1.343).lineTo(-0.071, 1.343).lineTo(-0.071, 0.986).lineTo(0.761, -0.657).lineTo(0.904, -0.657).lineTo(-0.9... | 14 | 35 | 2.800623 |
train_adee90ad76449d7d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.415), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.276, 2).extrude(0.83)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.172, -0.174, -0.087), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.373, 0.52).extrude(0.515))
result = result.edges().... | 3 | 51 | 2.009814 |
train_c0e112fe41590687 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.182, 0.294, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.334, -0.821).lineTo(0.334, 1.185).lineTo(-0.334, 1.185).lineTo(-0.334, -0.27).lineTo(-0.067, -0.27).lineTo(-0.067, -0.477).lineTo(-0.334, -0.477).lineTo(-0.334, -0.821).lineTo(0.334, -... | 15 | 91 | 0.546326 |
train_7ea703a94f1faa69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.288, 0.004, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.718, -0.011).lineTo(0.485, 0.483).lineTo(-0.013, 0.714).lineTo(-0.508, 0.484).lineTo(-0.712, 0.018).lineTo(-0.511, -0.51).lineTo(0.004, -0.721).lineTo(0.483, -0.512).close().moveT... | 10 | 99 | 0.092713 |
train_2f3a2833c4ff4a06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.544), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.848, 0.734).lineTo(-0.805, 0.712).lineTo(-0.278, 0.448).lineTo(-0.237, 0.427).lineTo(0.256, 0.427).lineTo(0.004, -0.029).lineTo(0.004, -0.086).lineTo(0.301, 0.449).lineTo(0.805, 0.712).li... | 2 | 26 | 0.465415 |
train_f48f6984b77bdba8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0.174, 0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.347, 0.343).extrude(0.189)
result = result.union(cq.Workplane(cq.Plane(origin=(0.07, 0.166, 0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.063).extrude(0.054))
result = result.cu... | 28 | 166 | 0.207559 |
train_e8b8b8a3608c599f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.13, -0.564), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.471).extrude(1.128)
result = result.faces('>Z').shell(-0.091)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.973, 0, 0.007), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.203, 0... | 3 | 26 | 0.945514 |
train_6d7c20dba8182dd8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.473, 0, 0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.053, 0.778).extrude(0.052)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.444, -0.144, -0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.037).extrude(0.062))
result = result.cut(c... | 21 | 370 | 0.072987 |
train_4259635ba0b01746 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.061, -0.095, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.11, 1.091).lineTo(0.11, 1.091).lineTo(0.11, 0.649).lineTo(0, 0.649).lineTo(0, 0.427).lineTo(0.11, 0.427).lineTo(0.11, 0.206).lineTo(0, 0.206).lineTo(0, -0.015).lineTo(0.11, -0.015).l... | 11 | 60 | 0.026797 |
train_5ca16bf80ab997a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.549, -0.017, -0.107), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.223, 0.084).threePointArc((0.126, 0.174), (0.223, -0.174)).threePointArc((-0.002, -0.049), (-0.223, 0.084)).close().sweep(cq.Workplane('XZ').spline([(-0.059, -0.332), (0.35, -0... | 4 | 17 | 0.123498 |
train_333760aea2e6e527 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.239, 0.239, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.004, -0.526).lineTo(0.526, 1.004).lineTo(1.004, 0.526).lineTo(-0.526, -1.004).lineTo(-1.004, -0.526).close().revolve(angleDegrees=360, axisStart=(-1.004, -0.526), axisEnd=(0.526, 1.00... | 10 | 48 | 1.738954 |
train_2fc6e1daca30cd2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.017, 0.493, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.091, -0.983).lineTo(0.126, -0.981).lineTo(0.232, -0.945).lineTo(0.312, -0.874).lineTo(0.361, -0.779).lineTo(0.369, -0.668).lineTo(0.187, 0.774).lineTo(0.151, 0.88).lineTo(0.081, 0.96).... | 8 | 71 | 0.923893 |
train_c9907557620511f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.113), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.282, 2).extrude(0.026)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.15, -0.233, -0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.254).extrude(0.017))
result = result.union(cq.W... | 11 | 77 | 0.142978 |
train_b71533c48a55b880 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.749), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.565, 2).extrude(1.498)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.076, 0.245, 0.255), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.263).extrude(0.507))
result = result.cut(cq.Workpla... | 7 | 49 | 3.929908 |
train_ee6f79a26765f85a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.141, 0, -0.423), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.719, 1.458).extrude(0.845)
result = result.union(cq.Workplane(cq.Plane(origin=(0.849, -0.044, -0.315), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.301, 0.662).extrude(0.248))
result = res... | 8 | 24 | 1.85422 |
train_5a08d33e31127471 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.004, 0.188, 0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.046, 1.13).extrude(0.073)
result = result.union(cq.Workplane(cq.Plane(origin=(0.087, 0.056, 0.11), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.583, 0.392).extrude(0.023))
result = resu... | 10 | 45 | 0.069828 |
train_5b67d686c545094c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.278, 0, -0.777), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.443, 1.951).extrude(1.554)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.691, 0.077, -0.363), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.617, 0.487).extrude(0.632))
result = resu... | 3 | 16 | 4.364019 |
train_4bffee0acf700694 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.025, -0.122, -0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.015, 0.115).lineTo(0.015, 0.115).lineTo(0.015, 0.074).lineTo(0.056, 0.074).lineTo(0.056, 0.044).lineTo(0.015, 0.044).lineTo(0.015, 0.003).lineTo(-0.015, 0.003).lineTo(-0.015, 0.... | 12 | 108 | 0.307098 |
train_5aa6999e73dfcc2b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.278, -0.219, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.445, 0.57).extrude(1.009)
result = result.union(cq.Workplane(cq.Plane(origin=(0.56, -0.05, -0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.113, 0.05).lineTo(-0.111, 0.047).lineTo... | 5 | 32 | 0.816062 |
train_e631f1d71346d1c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.056), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.353, 0.221).lineTo(-0.353, -0.132).lineTo(-0.088, -0.132).lineTo(-0.088, -0.221).lineTo(0, -0.132).lineTo(0, 0.132).lineTo(0.353, 0.132).lineTo(0.353, 0.221).lineTo(-0.353, 0.221).close().... | 8 | 72 | 0.11642 |
train_ba45a12ca2e6aacb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.484, 0.216, -0.543), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.032, 1.502).extrude(0.743)
result = result.union(cq.Workplane(cq.Plane(origin=(0.031, 0.291, 0.233), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.477, 0.291).lineTo(0.567, 0.291).lin... | 13 | 175 | 2.82347 |
train_1e5c001f44502585 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.7), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.478, 0.485).extrude(0.589)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.151), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.155).extrude(0.423))
result = result.union(cq.Workplan... | 14 | 42 | 0.195534 |
train_3292f9a8dda18d0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.276, -0.022, -0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.09, 0.036).extrude(0.078)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.261, -0.021, 0.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.021, 0.009).extrude(0.065))
result = ... | 8 | 174 | 0.161064 |
train_aa30bf99c8c35c1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.646, 0, 0.494), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.294).sweep(cq.Workplane('XZ').spline([(0.311, -0.011), (0.234, 0.25), (-0.055, 0.344), (-0.302, 0.147), (-0.302, -0.169), (-0.055, -0.366), (0.234, -0.272)]))
result = result.edges().ch... | 2 | 5 | 0.646977 |
train_a3ddd97916a13335 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.623, -0.395, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.387, -0.513).threePointArc((0, 1.302), (0.387, -0.513)).lineTo(-0.387, -0.513).close().workplane(offset=0.245).moveTo(-0.15, 0.042).threePointArc((0, 0.747), (0.15, 0.042)).lineTo(-0... | 6 | 28 | 1.656534 |
train_ea0d93ba6c3bea93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.435, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.144, 0.295).threePointArc((-0.197, 0.493), (0, 0.545)).threePointArc((0.197, 0.493), (0.144, 0.295)).threePointArc((0.072, 0.276), (0, 0.295)).threePointArc((-0.072, 0.276), (-0.144, 0.29... | 22 | 162 | 0.244352 |
train_3f43e1a8912cc55d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.324, -0.198, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.104, 1.604).extrude(0.182)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.227, -0.409, -0.154), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.314, -0.126).lineTo(0.265, 0.21).l... | 19 | 126 | 0.297913 |
train_d6953a183cd70e39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.275, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.583, 0.125).threePointArc((-0.545, 0.034), (-0.453, -0.004)).lineTo(0.453, -0.004).threePointArc((0.545, 0.034), (0.583, 0.125)).lineTo(0.583, 0.773).threePointArc((0.545, 0.864), (0.453... | 12 | 102 | 1.636846 |
train_7dfd255caf72ecfd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, -0.001, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.49).workplane(offset=0.422).circle(0.454).workplane(offset=0.521).circle(0.545).workplane(offset=0.536).circle(0.434).workplane(offset=0.521).circle(0.504).loft()
result = result.edges... | 12 | 56 | 0.612096 |
train_3729f64ed822f69c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, -0.464, -0.537), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.422, -0.197).lineTo(0.443, -0.219).lineTo(-0.198, -0.219).threePointArc((-0.443, 0.148), (-0.01, 0.234)).lineTo(0.422, -0.197).close().extrude(0.928)
result = result.edges().fille... | 14 | 74 | 0.357663 |
train_a52362f3f8b43174 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.296, 0.016, -0.124), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.704, 0.004).lineTo(0.494, 0.525).lineTo(0.017, 0.705).lineTo(-0.52, 0.484).lineTo(-0.71, 0.021).lineTo(-0.524, -0.508).lineTo(0.015, -0.738).lineTo(0.508, -0.515).close().moveTo(0,... | 18 | 222 | 0.252516 |
train_8bf0a1a26e574450 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.326, -0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.326).lineTo(0.094, -0.326).lineTo(0.094, 0.675).lineTo(0, 0.675).lineTo(0, -0.201).lineTo(-0.094, -0.201).lineTo(-0.094, -0.326).lineTo(0, -0.326).close().revolve(angleDegrees=180, a... | 2 | 26 | 0.144003 |
train_1d51150517b97888 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.38, 0.087, -0.246), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.754, -0.005).lineTo(0.754, 0.196).lineTo(-0.754, 0.196).lineTo(-0.754, -0.005).threePointArc((-0.54, -0.102), (-0.315, -0.166)).threePointArc((-0.063, -0.196), (0.189, -0.186)).lin... | 4 | 35 | 0.054393 |
train_bac9d3da4a302d4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.155, -0.479), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.333).extrude(0.958)
result = result.faces('>Z').shell(-0.066)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.128, 0.655, -0.144), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.... | 4 | 21 | 0.545553 |
train_d8ca1d3c09a70c4a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.012, -0.053, -0.135), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.061, 0.992).threePointArc((0, 1.053), (-0.061, 0.992)).lineTo(-0.061, -0.947).lineTo(0.061, -0.947).lineTo(0.061, 0.992).close().extrude(0.091)
result = result.edges().fillet(0.01... | 5 | 118 | 0.047431 |
train_80667495267726bb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.578, 0, 0.717), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.127, -0.253).lineTo(0.127, -0.011).threePointArc((0.157, 0.064), (0.232, 0.095)).lineTo(0.253, 0.095).lineTo(0.253, 0.063).lineTo(0.422, 0.063).lineTo(0.422, 0.095).lineTo(0.422, 0.222... | 2 | 21 | 0.105916 |
train_5e056657be38d4ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.799, 0.53, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.535, 0.995).threePointArc((-1, 0.53), (-0.535, 0.065)).lineTo(1, 0.065).lineTo(1, 0.53).lineTo(1, 0.995).lineTo(0.535, 0.995).lineTo(-0.535, 0.995).close().extrude(1.597)
result = resu... | 9 | 25 | 2.710847 |
train_7a8317d13a56e73d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.041, -0.31, 0.116), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.422).sweep(cq.Workplane('YZ').spline([(-0.657, -1.34), (-0.418, -1.313), (-0.18, -1.319), (0.059, -1.376), (0.298, -1.466)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-0.... | 9 | 69 | 0.888806 |
train_f33f3446871bc246 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.382, 0.115, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.29, 1.115).lineTo(-0.29, -0.885).lineTo(0.29, -0.885).lineTo(0.29, -0.327).lineTo(-0.238, -0.327).lineTo(-0.238, 0.252).lineTo(0.29, 0.252).lineTo(0.29, 0.934).lineTo(-0.238, 0.934).l... | 16 | 110 | 0.548621 |
train_5260b5f72300a08d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.119, -0.337, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.22, -0.395).lineTo(-0.22, 1.069).lineTo(0.22, 1.069).lineTo(0.22, -0.395).lineTo(-0.22, -0.395).close().workplane(offset=0.13).moveTo(-0.298, -0.657).lineTo(-0.298, 1.331).lineTo(0.2... | 4 | 35 | 0.19426 |
train_b0b3de068bc9ac53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.517, 0.022, -0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.721, 1.198).extrude(0.07)
result = result.union(cq.Workplane(cq.Plane(origin=(0.228, 0.082, -0.13), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.423, 0.182).threePointArc((-0.347, 0... | 7 | 36 | 0.463427 |
train_cb91e4d1de7c2435 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, 0, -0.5), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.153, -0.719).threePointArc((0, -0.747), (0.153, -0.719)).threePointArc((0.2, -0.698), (0.244, -0.671)).threePointArc((0.302, -0.623), (0.351, -0.564)).threePointArc((0.377, -0.52), (0.3... | 13 | 97 | 1.334578 |
train_5980d87f842ffb59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.054, -0.02), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.103).sweep(cq.Workplane('XY').spline([(-0.008, 0.054), (0.398, 0.054), (0.803, 0.054), (1.39, -0.238), (1.977, -0.53)]))
result = result.edges().chamfer(0.074)
result = result.union(c... | 4 | 14 | 0.091011 |
train_0694a46b5dd490ac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.515, 0.158, 0.322), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.132, 0.25).lineTo(-0.132, -0.171).lineTo(0.132, -0.171).lineTo(0.132, -0.12).lineTo(-0.081, -0.12).lineTo(-0.081, 0.199).lineTo(0.081, 0.199).lineTo(0.081, 0.25).lineTo(-0.132, 0.... | 27 | 404 | 0.315558 |
train_04a9c413281573ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.166, -0.108, -0.61), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.182, -0.374).lineTo(0.198, -0.359).lineTo(-0.167, 0.006).lineTo(0.185, 0.359).lineTo(0.169, 0.374).lineTo(-0.183, 0.022).lineTo(-0.198, 0.006).lineTo(-0.183, -0.009).lineTo(-0.19... | 6 | 52 | 0.295224 |
train_f0eeeddb3c9f5c6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.256, -0.902, 0.035), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.117, 0.005).threePointArc((0, 0.098), (-0.117, 0.005)).lineTo(-0.137, -0.083).threePointArc((0, -0.098), (0.137, -0.083)).lineTo(0.117, 0.005).close().sweep(cq.Workplane('YZ').sp... | 6 | 39 | 0.030353 |
train_50e12c1452dc4507 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.111, 0.06, -0.236), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.791, 0.189).lineTo(0.791, 0.189).lineTo(0.791, 0.018).lineTo(-0.637, 0.018).lineTo(-0.791, 0.189).close().extrude(0.119)
result = result.edges().chamfer(0.04)
result = result.unio... | 6 | 45 | 0.032155 |
train_606176f862829cae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.665, -0.854, -0.304), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.696, 0.09).lineTo(-0.696, 0.881).lineTo(0.696, 0.881).lineTo(0.696, 0.09).lineTo(-0.696, 0.09).close().extrude(1.331)
result = result.edges().fillet(0.041)
result = result.cut(c... | 18 | 83 | 1.259025 |
train_bbd20c065a0d425e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.464, 0.155).lineTo(-0.155, 0.155).lineTo(-0.155, 0.773).lineTo(-0.464, 0.773).lineTo(-0.464, 0.155).lineTo(-0.425, 0.155).lineTo(-0.425, -0.116).lineTo(-0.464, -0.116).lineTo(-0.464, -0.773).l... | 6 | 52 | 1.06566 |
train_93dbeabc458a3200 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, -0.047), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.227).workplane(offset=0.283).circle(0.197).workplane(offset=0.378).circle(0.201).workplane(offset=0.292).circle(0.204).workplane(offset=0.362).circle(0.215).workplane(offset=0.319).circle... | 9 | 14 | 0.246662 |
train_575a977ee0f2d613 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.508, -0.289, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.4).sweep(cq.Workplane('XY').spline([(0.508, 0.502), (0.212, 0.768), (-0.17, 0.792), (-0.491, 0.566), (-0.627, 0.176), (-0.523, -0.225), (-0.222, -0.481), (0.161, -0.494)]))
result = r... | 6 | 21 | 1.082911 |
train_defdca2c432cfef4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.009, 0.054, -0.362), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.13, 0.189).lineTo(0.13, -0.189).lineTo(-0.13, -0.189).lineTo(-0.13, 0.189).lineTo(0.13, 0.189).close().extrude(0.343)
result = result.edges().chamfer(0.084)
result = result.union(... | 10 | 74 | 0.052278 |
train_e928f312f31c0a91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.023), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.279).sweep(cq.Workplane('XZ').spline([(-0.398, -0.275), (-0.216, -0.275), (-0.033, -0.275), (0.246, -0.415), (0.526, -0.556), (0.805, -0.696)]))
result = result.edges().fillet(0.029)
resu... | 10 | 50 | 0.273776 |
train_73bad7092c2e0de7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.708, 0, -0.299), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.495).sweep(cq.Workplane('XZ').spline([(-0.708, -0.299), (-0.284, 0.011), (0.139, 0.114), (0.563, 0.011), (0.986, -0.299)]))
result = result.edges().chamfer(0.302)
result = result.edg... | 3 | 9 | 0.904985 |
train_e2db167ce7b34214 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.059, 0.077, 0.294), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.156, -0.021).threePointArc((0, -0.129), (0.156, -0.021)).lineTo(0.196, 0.082).threePointArc((0.19, 0.101), (0.183, 0.12)).lineTo(0.146, 0.12).threePointArc((0.106, 0.167), (0.052,... | 4 | 40 | 0.094681 |
train_e437501fce41a52f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.679, 0.031), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.529).sweep(cq.Workplane('YZ').spline([(0.097, -0.462), (0.479, -0.462), (0.654, -0.622), (0.83, -0.782), (1.005, -0.941)]))
result = result.edges().chamfer(0.097)
result = result.cut(cq... | 9 | 9 | 1.416093 |
train_ef60b1a7762c1d6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.507, 0.257, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.105, 0.462).threePointArc((-0.479, -0.006), (-0.105, -0.474)).lineTo(-0.109, -0.493).threePointArc((-0.499, -0.006), (-0.109, 0.481)).threePointArc((-0.002, 0.493), (0.105, 0.481)).th... | 3 | 11 | 0.032177 |
train_14f141c05cd84053 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.02, 0.132, -0.168), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.963, 0.016).lineTo(0.521, 0.844).lineTo(-0.533, 0.868).lineTo(-1.002, 0.006).lineTo(-0.511, -0.851).lineTo(0.508, -0.855).close().moveTo(-0.286, 0.279).lineTo(-0.315, 0.355).lineTo(... | 14 | 190 | 0.961249 |
train_d8581df3f4de9eff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.663), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.939, 2).extrude(1.156)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.895, -0.544, -0.184), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.157, 0.239).extrude(0.125))
result = result.union(... | 10 | 46 | 4.397598 |
train_ec2a9e4b3ee61056 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.844, -0.802, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.963, 1.866).threePointArc((0, 1.663), (-0.963, 1.866)).lineTo(-0.963, -0.172).threePointArc((0, -0.037), (0.963, -0.172)).lineTo(0.963, 1.866).close().extrude(1.604)
result = result.c... | 3 | 50 | 5.442366 |
train_39e4b83dda8458c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.165, 0, 0.456), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.149, 0.851).threePointArc((0, 1), (-0.149, 0.851)).lineTo(-0.149, -0.851).threePointArc((0, -1), (0.149, -0.851)).lineTo(0.149, 0.851).close().sweep(cq.Workplane('XZ').spline([(0.165, -... | 1 | 6 | 0.015101 |
train_b706df9730f17d5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.418, -0.239, 0.214), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.317, 0.484).lineTo(0.317, 0.484).lineTo(-0.002, 0.165).lineTo(-0.317, -0.15).lineTo(-0.317, 0.484).close().extrude(0.488)
result = result.edges().fillet(0.099)
result = result.uni... | 13 | 442 | 0.191608 |
train_21ab228a7331a202 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.312, 0.155, -0.537), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.59, 0.907).extrude(0.607)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.283, 0.162, -0.372), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.324).extrude(0.277))
result = result... | 7 | 39 | 0.637447 |
train_86bd7da97250d5f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.161, 0.147, -0.333), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.645, 0.008).lineTo(0.449, 0.473).lineTo(-0.015, 0.645).lineTo(-0.473, 0.465).lineTo(-0.644, -0.016).lineTo(-0.462, -0.453).lineTo(-0.002, -0.655).lineTo(0.44, -0.446).close().move... | 10 | 95 | 0.429166 |
train_828bde093cc34273 | 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.924).workplane(offset=0.399).circle(0.861).workplane(offset=0.274).circle(0.799).workplane(offset=0.307).circle(0.736).workplane(offset=0.329).circle(0.674).workplane(offset=0.363).circle(0.61... | 10 | 58 | 2.566079 |
train_400f96ac28d185b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.235, 0.24, -0.168), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.794, 0.437).threePointArc((0.816, 0.46), (0.82, 0.428)).threePointArc((-0.018, 0.202), (-0.82, 0.535)).threePointArc((-0.814, 0.559), (-0.798, 0.541)).lineTo(-0.792, 0.538).threePo... | 3 | 28 | 0.031785 |
train_bafc6949db9331fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, -0.021, 0.001), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.017, -1.283).threePointArc((0.02, 0.021), (-0.02, 1.325)).lineTo(-0.017, -1.283).close().extrude(0.035)
result = result.edges().fillet(0.007)
result = result.union(cq.Workplane(c... | 4 | 39 | 0.002127 |
train_34ed102d377e4905 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.038, 0.016, -0.531), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.052, 0.045).extrude(0.01)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.054, 0.01, -0.525), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.006).extrude(0.003))
result = result.c... | 26 | 380 | 0.016352 |
train_007fa2636b1836ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.587, 0, -0.675), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.825, 0.754).extrude(0.868)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.55, 0.073, 0.382), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.174).lineTo(-0.29, -0.116).lineTo(-0... | 2 | 17 | 0.779334 |
train_9e1d2d28880d00a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.454, -0.043, -0.163), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.25, -0.957).threePointArc((-0.515, -0.847), (-0.625, -0.582)).lineTo(-0.625, 0.668).threePointArc((-0.515, 0.933), (-0.25, 1.043)).lineTo(0.25, 1.043).threePointArc((0.515, 0.93... | 10 | 127 | 1.486024 |
train_e5f90f5f698c058e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.329, -0.076), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.462, -0.376).lineTo(-0.03, -0.376).lineTo(-0.05, -0.343).lineTo(-0.462, -0.343).lineTo(-0.256, 0).lineTo(-0.276, 0.032).lineTo(-0.237, 0.032).lineTo(-0.03, 0.376).lineTo(0.178, 0.03... | 10 | 98 | 1.05576 |
train_9bd75b2c6f9c93fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.022, -0.644, 0.225), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.074, 0.356).threePointArc((-0.168, 0.278), (-0.243, 0.181)).threePointArc((-0.301, 0.042), (-0.317, -0.087)).lineTo(-0.074, -0.087).lineTo(-0.074, -0.228).lineTo(-0.254, -0.338).... | 7 | 52 | 0.457301 |
train_8f51010671505e35 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, -0.101, -0.552), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.083, -0.298).lineTo(-0.083, -0.263).lineTo(-0.076, -0.263).lineTo(-0.076, 0.273).lineTo(-0.083, 0.273).lineTo(-0.083, 0.256).threePointArc((-0.108, 0.266), (-0.118, 0.291)).line... | 9 | 127 | 0.821599 |
train_ccf3167b12732733 | 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.596, 1.398).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.053, -0.226, -1.026), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.693, 0.213).extrude(1.059))
result = result.edges().fil... | 14 | 119 | 2.965952 |
train_5f1a9a8f44f9ca61 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.021, 0.13, -0.018), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.49, 0.444).extrude(0.238)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.017, -0.048, -0.035), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.089, -1.028).lineTo(0.089, 0.32).li... | 8 | 51 | 0.127072 |
train_1ea221606c9876cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.114, -0.057, -0.304), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.651, 0.322).threePointArc((-0.801, 0.174), (-0.658, 0.02)).lineTo(-0.658, 0.065).lineTo(-0.643, 0.065).lineTo(-0.643, 0.02).threePointArc((-0.518, 0.098), (-0.519, 0.245)).lineT... | 6 | 102 | 0.448297 |
train_c98dd281e0fac07a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.31, 0, -0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.381, 1.489).extrude(0.755)
result = result.faces('>Z').shell(-0.088)
result = result.union(cq.Workplane(cq.Plane(origin=(0.222, -0.165, -0.463), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.... | 5 | 101 | 0.646769 |
train_c1e2dc604b4cf8e3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.309, 0.109, 0.344), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.346, 0.428).lineTo(-0.346, 0.038).lineTo(0.346, 0.038).lineTo(0.346, 0.428).lineTo(-0.346, 0.428).close().revolve(angleDegrees=360, axisStart=(-0.346, 0.428), axisEnd=(-0.346, 0.3... | 9 | 88 | 0.366807 |
train_b34eece775469f6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.132, 0.329, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.105, 0.467).lineTo(-0.105, -0.868).lineTo(0.105, -0.868).lineTo(0.105, 1.132).lineTo(-0.105, 1.132).lineTo(-0.105, 0.467).close().extrude(0.219)
result = result.edges().fillet(0.014)
... | 5 | 75 | 0.090336 |
train_747b481bb9a38dab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.042, -0.325), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.53).extrude(0.775)
result = result.union(cq.Workplane(cq.Plane(origin=(0.114, -0.017, -0.45), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.371, 0.474).extrude(0.129))
result = result.un... | 8 | 34 | 0.747571 |
train_b5fa647f3ef05ffd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.354, 0.349, 0.165), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.323, 0.485).threePointArc((0.552, 0.39), (0.646, 0.162)).lineTo(0.646, -0.485).lineTo(-0.646, -0.485).lineTo(-0.646, 0.162).threePointArc((-0.552, 0.39), (-0.323, 0.485)).lineTo(0.... | 23 | 132 | 1.056829 |
train_be8bc8bb23877077 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.335, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.536, -0.09).threePointArc((-0.683, 0.335), (-0.536, 0.759)).threePointArc((-0.59, 0.925), (-0.424, 0.871)).threePointArc((0, 1.019), (0.424, 0.871)).threePointArc((0.483, 0.818), (0.536, ... | 4 | 88 | 2.808621 |
train_21ba6a46dc2ba4a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.455, 0.057, 0.518), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.157, -0.171).lineTo(-0.077, -0.188).threePointArc((-0.061, -0.132), (-0.036, -0.079)).threePointArc((0.06, 0.036), (0.191, 0.108)).lineTo(0.176, 0.108).lineTo(0.176, 0.188).threeP... | 2 | 10 | 0.033319 |
train_6ade062b740fb1dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.041, 0, -0.71), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.071, 2).extrude(1.493)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.22, -0.473, -0.711), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.079, 0.165).extrude(0.071))
result = result.cut(... | 9 | 77 | 3.184671 |
train_47beafce7d71d721 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.583, -0.127), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.05, -1).lineTo(-0.05, 0.8).lineTo(0.1, 0.8).lineTo(0.1, 0.95).lineTo(-0.05, 0.95).lineTo(-0.05, 1).lineTo(-0.1, 1).lineTo(-0.1, -1).lineTo(-0.05, -1).close().sweep(cq.Workplane('YZ'... | 2 | 15 | 0.078198 |
train_3e21e0d7c393ebc9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.678, -0.007, 0.399), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.564, 2.234).lineTo(-0.222, 1.122).lineTo(0.564, 1.994).lineTo(-0.564, 2.234).close().revolve(angleDegrees=270, axisStart=(-0.564, 2.234), axisEnd=(-0.222, 1.122))
result = result... | 8 | 25 | 0.741837 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.