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_1b634a308dfa2390 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.53, 0.017, -0.224), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.227, -0.849).threePointArc((0.224, -0.378), (0.783, -0.044)).lineTo(-0.783, 0.884).lineTo(-0.227, -0.849).close().extrude(1.037)
result = result.union(cq.Workplane(cq.Plane(origin... | 9 | 144 | 0.914631 |
train_03d7dbfa15e5037d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.553, 0.021, 0.346), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.545, 0.061).lineTo(-0.654, 0.061).lineTo(-0.654, 0.007).lineTo(0.654, 0.007).lineTo(0.654, 0.061).lineTo(-0.545, 0.061).close().extrude(0.213)
result = result.union(cq.Workplane(c... | 6 | 21 | 0.028484 |
train_ce1e178b0bd6447d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.137, 0.122, -0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.36, 0.512).extrude(0.223)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.217, 0.011, 0.108), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.211, 0.189).extrude(0.044))
result = res... | 23 | 140 | 0.388453 |
train_505673c1132b7aa0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.17, -0.319, 0.143), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.154, 0.413).lineTo(-0.221, 0.431).lineTo(-0.221, 0.293).lineTo(-0.154, 0.311).lineTo(-0.154, 0.142).lineTo(-0.052, 0.142).lineTo(-0.07, 0.208).lineTo(0.07, 0.208).lineTo(0.052, 0.... | 11 | 79 | 0.567788 |
train_2ce29f717486fbe9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.366, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.666, -0.255).lineTo(0.666, 0.878).lineTo(0.666, 0.986).lineTo(-0.666, -0.145).lineTo(-0.666, -0.255).close().extrude(2)
| 1 | 6 | 0.290376 |
train_4111310701e60221 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.103, 0, -0.609), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.769, 2).extrude(1.219)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.02, 0.018, 0.23), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.09).extrude(0.046))
result = result.cut(cq.Workp... | 10 | 70 | 4.087564 |
train_104b392d3ea94ff2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.129, -0.105, 0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.864, 0.808).extrude(0.93)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.027, -0.222, -0.072), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.189).extrude(0.147))
result = result... | 14 | 284 | 0.482053 |
train_b91be09134d5cd32 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.168, -0.171, -0.042), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.833, 0.019).lineTo(-0.833, 0.322).lineTo(0.833, 0.322).lineTo(0.833, 0.019).lineTo(-0.833, 0.019).close().extrude(0.676)
result = result.edges().fillet(0.053)
result = result.c... | 13 | 119 | 0.30862 |
train_c9fc755579d2e394 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.326, -0.13), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.899, 1.348).extrude(0.422)
result = result.union(cq.Workplane(cq.Plane(origin=(0.045, 0.393, 0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.809, 1.213).extrude(0.059))
result = result.u... | 14 | 94 | 0.440186 |
train_ead479c0a500b8d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.267, 0.15, -0.234), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.094, -0.061).lineTo(-0.041, -0.008).lineTo(0.026, 0.059).lineTo(0.094, 0.127).lineTo(0.088, 0.155).lineTo(-0.041, 0.127).lineTo(-0.069, 0.121).lineTo(-0.094, 0.138).lineTo(-0.094,... | 19 | 195 | 0.068598 |
train_77dc87b90fa37e20 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.447, 1, -0.286), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 1.13).threePointArc((0.464, 0.938), (0.657, 0.473)).threePointArc((0.464, 0.009), (0, -0.184)).threePointArc((-0.464, 0.009), (-0.657, 0.473)).lineTo(0, 0.473).lineTo(0, 1.13).close(... | 15 | 90 | 0.804173 |
train_e75b65a0df94e241 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.922, -0.249, 0.488), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.078).lineTo(-0.039, 0.078).threePointArc((-0.066, 0.066), (-0.078, 0.039)).lineTo(-0.078, 0).lineTo(-0.078, -0.039).threePointArc((-0.066, -0.066), (-0.039, -0.078)).lineTo(0,... | 5 | 56 | 0.109793 |
train_f501935f5d3bb2a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.293), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.353).extrude(1.037)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.121, -0.241, -0.745), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.192).extrude(0.472))
result = result.cut(cq.Wo... | 8 | 89 | 1.892315 |
train_42d584e6cec1077b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.285, 0, 0.001), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.276, -0.285).lineTo(-0.276, -0.285).lineTo(-0.276, 0.715).lineTo(0.025, 0.715).lineTo(0.276, -0.285).close().revolve(angleDegrees=270, axisStart=(0.276, -0.285), axisEnd=(-0.276, -0.285... | 13 | 68 | 0.676216 |
train_7654e6e2f6459175 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.683).extrude(0.137)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.691, 0, -0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.218, 0.644).extrude(0.488))
result = result.cut(cq.Wo... | 4 | 80 | 0.487045 |
train_8307d924af2b9c2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.128, 0.308, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.13, -0.084).lineTo(-0.13, -0.032).threePointArc((-0.096, 0.05), (-0.014, 0.084)).lineTo(0.014, 0.084).threePointArc((0.096, 0.05), (0.13, -0.032)).lineTo(0.13, -0.084).lineTo(-0.13,... | 29 | 328 | 0.10004 |
train_9749c9654db01372 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.087, -0.54), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.753, 1.826).extrude(1.208)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.702 + 0.234, -0.817 + 0.183, -0.721), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.126, 0.083).lineTo(-0.1... | 15 | 209 | 3.453531 |
train_8542b4798ad0770d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.605), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.923, 0.267).lineTo(0.615, -0.267).lineTo(0.308, 0.267).lineTo(0, 0.799).lineTo(-0.923, 0.267).lineTo(-0.615, -0.267).lineTo(-0.923, -0.799).lineTo(0.923, -0.799).lineTo(0.923, 0.267).close... | 21 | 169 | 2.606755 |
train_8ce33f195cd5f8ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.154, -0.011, -0.014), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.852, -0.79).lineTo(0.846, -0.793).lineTo(0.836, 0.8).lineTo(-0.851, 0.815).close().moveTo(-0.141, -0.161).lineTo(-0.182, -0.092).lineTo(-0.261, -0.092).lineTo(-0.302, -0.161).lin... | 11 | 103 | 0.191808 |
train_b488c265f74eae52 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.058, 0.009, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.11, -0.811).threePointArc((0, 1.009), (0.11, -0.811)).threePointArc((0, -0.818), (-0.11, -0.811)).close().extrude(0.204)
result = result.edges().fillet(0.021)
result = result.cut(cq.W... | 11 | 84 | 0.528774 |
train_c6d91537e513d9ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.579, -0.262, -0.117), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.451, -0.308).lineTo(-0.654, 0.319).lineTo(-0.557, 0.454).lineTo(0.557, 0.454).lineTo(0.654, 0.319).lineTo(0.451, -0.308).lineTo(-0.451, -0.308).close().extrude(0.903)
result = r... | 19 | 234 | 1.036491 |
train_615445b61d31d8e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.103, -0.148, -0.196), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.99, 1.705).extrude(0.109)
result = result.union(cq.Workplane(cq.Plane(origin=(0.059, -0.376, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.468, 0.524).extrude(0.038))
result = ... | 27 | 385 | 0.273213 |
train_95939ce27516dde8 | 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.473, 1.694).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.129, 0.067, 0.632), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.261).extrude(0.377))
result = result.cut(cq.Workplane(... | 8 | 45 | 4.587819 |
train_03e788c3779ac9c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.618, 0.098, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.087, -0.063).threePointArc((-0.179, 0.094), (-0.087, 0.251)).lineTo(-0.448, 0.902).lineTo(0.448, 0.902).lineTo(0.087, 0.251).threePointArc((0.179, 0.094), (0.087, -0.063)).lineTo(0, 0... | 9 | 102 | 0.499363 |
train_3b3878daf5871f6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.054, 0, -0.46), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.892, 1.56).extrude(1.238)
result = result.union(cq.Workplane(cq.Plane(origin=(0.386, -0.299, 0.77), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.264, 0.054).lineTo(0.264, -0.652).lineTo(... | 15 | 76 | 2.155851 |
train_2cf69a41e2d3d80e | 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.401, 1.62).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.105, 0.525, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.299).extrude(1.037))
result = result.cut(cq.Workplane(... | 13 | 74 | 2.626338 |
train_a2b5130c5ccee41b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.41, -0.097, -0.133), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.59, -0.114).lineTo(-0.59, 0.001).lineTo(-0.143, 0.001).threePointArc((-0.087, 0.114), (-0.03, 0.001)).lineTo(0, 0.001).lineTo(0.59, 0.001).lineTo(0.59, -0.114).lineTo(0, -0.114).... | 9 | 79 | 0.090721 |
train_4eeb1cfecd963585 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.891, 0, -0.719), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.04, 0.061).threePointArc((-0.101, 0), (-0.04, -0.061)).lineTo(-0.04, -0.03).lineTo(0.101, -0.03).lineTo(0.101, 0.03).lineTo(0.101, 0.061).lineTo(-0.04, 0.061).close().sweep(cq.Workpla... | 1 | 8 | 0.062409 |
train_0d5bfd024e93d43c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.136, -0.325, -0.127), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.349, 0.24).lineTo(-0.349, -0.24).lineTo(0.109, -0.24).threePointArc((0.349, 0), (0.109, 0.24)).lineTo(-0.349, 0.24).close().extrude(0.219)
result = result.edges().fillet(0.058)
... | 18 | 186 | 0.454999 |
train_939583c8b439fc81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.516, 0, 0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.967, 0.081).extrude(0.089)
result = result.union(cq.Workplane(cq.Plane(origin=(0.442, -0.012, 0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.116, 0.027).extrude(0.033))
result = resul... | 9 | 75 | 0.015805 |
train_27571eae5ced599f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.114, -0.203), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.377, 1.771).extrude(0.406)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.024, 0.238, -0.134), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.08, 2.125).extrude(0.021))
result = result.... | 10 | 43 | 0.957815 |
train_312f3fe153657e7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, -0.01, -0.049), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.011, -0.504).lineTo(-0.011, 0.52).lineTo(0.011, 0.541).lineTo(0.011, -0.526).lineTo(-0.011, -0.504).close().extrude(0.156)
result = result.edges().fillet(0.006)
result = result.un... | 10 | 105 | 0.033053 |
train_30d31ac30212b8fb | 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.601).workplane(offset=0.64).circle(0.462).workplane(offset=0.741).circle(0.264).workplane(offset=0.619).circle(0.093).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(0.001, -0.481 + 0... | 6 | 24 | 0.600968 |
train_c513c185d23d9307 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.12, -0.085), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.432, 0.88).threePointArc((-0.101, 0.05), (-0.431, -0.88)).lineTo(-0.432, 0.693).lineTo(0.432, 0.88).close().sweep(cq.Workplane('YZ').spline([(-0.12, -0.085), (0.174, 0.106), (0.468, 0... | 7 | 26 | 0.556267 |
train_dd3eddeb98b921cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.296, -0.076, 0.353), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.434, 0.745).threePointArc((-0.031, 0.745), (-0.434, 0.512)).lineTo(0.201, -0.123).lineTo(0.434, 0.279).lineTo(0.434, 0.745).close().workplane(offset=0.256).moveTo(0.362, 0.673).th... | 14 | 148 | 0.49743 |
train_0860e86e76284917 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, 0.003, 0.086), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.852, -0.08).lineTo(0.852, 0.08).lineTo(-0.852, 0.08).lineTo(-0.852, -0.08).lineTo(0.852, -0.08).close().extrude(0.181)
result = result.edges().fillet(0.015)
result = result.union(c... | 7 | 48 | 0.049009 |
train_f08ccb498f0857a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.224, 1, 0.015), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.045, 0.052).threePointArc((-0.04, 0.024), (-0.018, 0.004)).lineTo(-0.108, -0.041).threePointArc((0, -0.092), (0.108, -0.041)).lineTo(0.018, 0.004).threePointArc((0.04, 0.024), (0.045, ... | 9 | 85 | 0.005803 |
train_32ccfb1982d6113c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, -0.161, 0.073), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.877, -0.271).lineTo(-0.604, -0.271).lineTo(-0.604, -0.343).threePointArc((-0.59, -0.375), (-0.56, -0.387)).lineTo(0.23, -0.387).threePointArc((0.261, -0.375), (0.274, -0.343)).li... | 12 | 75 | 0.366248 |
train_0a8dd756d31d3bf1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.111), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.863).workplane(offset=0.031).circle(0.622).workplane(offset=0.041).circle(0.987).workplane(offset=0.041).circle(0.972).workplane(offset=0.038).circle(0.979).workplane(offset=0.038).circle(... | 14 | 53 | 0.506238 |
train_2241e0f98c5e1bf9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.296, 0, 0.399), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.34, -0.264).lineTo(0.34, -0.256).lineTo(0.34, 0.264).lineTo(-0.34, 0.264).lineTo(-0.34, -0.264).close().workplane(offset=0.235).moveTo(-0.703, -0.546).lineTo(0.703, -0.528).lineTo(0.7... | 14 | 104 | 0.506821 |
train_c9b1edf1fb9cf9fb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.825, 0.329, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.548, 0.661).threePointArc((0.206, 0.702), (0, 0.977)).lineTo(-0.548, 0.661).threePointArc((-0.413, 0.345), (-0.548, 0.029)).lineTo(0, -0.288).lineTo(0.548, 0.029).threePointArc((0.413,... | 9 | 66 | 1.491995 |
train_a96ef34e2ffec35c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.011), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.594).workplane(offset=0.185).circle(0.607).workplane(offset=0.153).circle(0.624).workplane(offset=0.212).circle(0.612).workplane(offset=0.214).circle(0.605).workplane(offset=0.225).circle... | 13 | 71 | 0.716131 |
train_05354f35a594f591 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.569), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.787, 2).extrude(1.138)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.108, -0.863, -0.228), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.098, 0.288).extrude(0.125))
result = result.cut(cq... | 9 | 147 | 3.945605 |
train_32b254d9dacc8b5c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.221, 0.105, -0.42), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.228, 0.418).extrude(0.167)
result = result.union(cq.Workplane(cq.Plane(origin=(0.221, 0.247, -0.236), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.116, 0.415).lineTo(0.116, -0.047).thr... | 18 | 84 | 0.149005 |
train_93c9056f4b006b8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.376, -0.693, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.416, -0.102).lineTo(0.416, 1.488).lineTo(-0.416, 1.488).lineTo(-0.416, -0.102).lineTo(0.416, -0.102).close().revolve(angleDegrees=360, axisStart=(0.416, -0.102), axisEnd=(0.416, 0.795... | 9 | 38 | 2.495792 |
train_1b1baf94e7724bc9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.091, 0.093, -0.003), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.003, 0.189).lineTo(1.003, 0.016).lineTo(-0.717, 0.016).lineTo(-1.003, 0.189).lineTo(1.003, 0.189).close().extrude(0.185)
result = result.edges().chamfer(0.005)
result = result.cut... | 9 | 52 | 0.05803 |
train_435c2db5841054e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.448), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.989, 2).extrude(1.035)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.069, -0.065, -0.283), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.119).extrude(0.064))
result = result.cut(cq.Work... | 9 | 35 | 1.967048 |
train_346ca412a66179be | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.065), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.001, 0.764).lineTo(0.224, 0.764).lineTo(0.224, -0.764).lineTo(-0.224, -0.764).lineTo(-0.224, 0.397).lineTo(0.001, 0.397).lineTo(0.001, 0.764).close().sweep(cq.Workplane('XZ').spline([(-0... | 1 | 8 | 0.624931 |
train_d272f7a4866b1432 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.164, 0.019, 0.235), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.227, 0.981).lineTo(-0.227, -0.981).lineTo(0.227, -0.981).lineTo(0.227, 0.981).lineTo(-0.227, 0.981).close().extrude(0.375)
result = result.edges().fillet(0.019)
result = result.u... | 9 | 85 | 0.227194 |
train_6210b219f5e74195 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.024, 0.297, 0.457), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.024, 0.693).lineTo(1.024, -0.693).lineTo(-1.024, -0.693).lineTo(-0.388, 0.693).lineTo(1.024, 0.693).close().extrude(0.914)
result = result.edges().fillet(0.085)
result = result.un... | 12 | 73 | 1.357759 |
train_476da87cd721d725 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.615, 0.325, 0.664), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.083, 0.127).lineTo(0.083, -0.021).lineTo(0.06, -0.043).lineTo(0.06, -0.076).lineTo(0.019, -0.172).lineTo(0, -0.172).lineTo(0, -0.173).lineTo(-0.019, -0.173).lineTo(-0.019, -0.172).l... | 17 | 149 | 0.750944 |
train_c4376ed16a899ea2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.874), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -1).lineTo(0, 0).lineTo(-1, -1).lineTo(-1, 1).lineTo(1, 1).lineTo(1, -1).lineTo(0, -1).close().extrude(1.749)
result = result.edges().fillet(0.113)
result = result.faces('>Z').shell(-0.16... | 5 | 64 | 5.699255 |
train_43b0e334178a7da4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.15), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.694, 2).extrude(0.301)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.15, -1.45), normal=(0, 1, 0), xDir=(1, 0, 0))).circle(0.083).moveTo(-0.05, -0.026).lineTo(-0.048, -0.015).lineTo(... | 10 | 160 | 0.912982 |
train_75ae8f6ba56f635f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.572, 0.029, -0.369), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.616, 1.347).extrude(0.377)
result = result.union(cq.Workplane(cq.Plane(origin=(0.513, 0.088, 0.126), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.313, 0.188).lineTo(0.431, 0.432).lin... | 13 | 27 | 0.014914 |
train_d359521e8031575a | 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.708, 1.678).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.064, 0.511, -0.387), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.345).extrude(1.187))
result = result.edges().fillet(0... | 5 | 49 | 5.093067 |
train_77883b37cea76899 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.127, -0.092), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.238).lineTo(-1, 0.238).lineTo(-1, 0.016).lineTo(1, 0.016).lineTo(1, 0.238).close().extrude(0.184)
result = result.edges().chamfer(0.058)
result = result.cut(cq.Workplane(cq.Plane(o... | 9 | 57 | 0.059632 |
train_1419605593de2b20 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.949, 0, -0.084), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.547, 0.34).lineTo(0.667, 0.34).lineTo(0.667, 0.17).lineTo(0.547, 0.17).lineTo(0.547, -0.17).lineTo(0.667, -0.17).lineTo(0.667, -0.34).lineTo(0.547, -0.34).lineTo(0.547, -0.255).lineTo(... | 8 | 50 | 0.522637 |
train_31e7886e5cc66b26 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.5, -0.03), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.172, 0.684).threePointArc((0.282, 0.604), (0.297, 0.469)).threePointArc((0.282, 0.436), (0.261, 0.407)).threePointArc((0.136, 0.352), (0.012, 0.407)).lineTo(-0.261, 0.249).threePointArc(... | 7 | 117 | 0.201782 |
train_07c9df9cede877a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.445, 0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.334, 1.11).extrude(0.094)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.055, -0.606, 0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.639, 0.368).extrude(0.026))
result = resul... | 18 | 101 | 0.232571 |
train_2ec0b26f6ca55e42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, -0.001, -0.31), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.016, -0.017).lineTo(0.512, 0.86).lineTo(-0.486, 0.835).lineTo(-0.984, 0.026).lineTo(-0.516, -0.824).lineTo(0.483, -0.858).close().moveTo(-0.041, 0.217).lineTo(0.045, 0.22).lineTo(... | 6 | 40 | 1.086606 |
train_04db41d49472aa3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.193, -0.481, -0.201), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.157, 0.447).lineTo(-0.157, -0.39).lineTo(0.157, -0.39).lineTo(0.157, -0.198).threePointArc((-0.015, 0.029), (0.157, 0.255)).lineTo(0.157, 0.447).lineTo(-0.157, 0.447).close().ex... | 22 | 122 | 0.272413 |
train_275e2b52148c706e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.19, -0.408), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.48, 1.621).circle(0.147).extrude(0.287)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.028, -0.468, -0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.161).extrude(0.123))
result ... | 6 | 40 | 0.685815 |
train_a6c946778c5836bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.193, 0, -0.296), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.615, 1.664).extrude(0.029)
result = result.union(cq.Workplane(cq.Plane(origin=(0.278, 0.097, -0.269), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.542).extrude(0.027))
result = result.uni... | 6 | 78 | 0.326208 |
train_bf01848f0e2ce485 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.032, 0.051), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, 0.25).lineTo(-1, 0).lineTo(-0.896, 0).threePointArc((-0.813, 0.083), (-0.729, 0)).lineTo(-0.625, 0).lineTo(-0.625, -0.25).lineTo(0.625, -0.25).lineTo(0.625, 0).lineTo(0.729, 0).lineT... | 10 | 102 | 0.065494 |
train_702b222d9076e070 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.133, 0.052), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.331).extrude(0.037)
result = result.union(cq.Workplane(cq.Plane(origin=(0.026, -0.028, 0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.257).extrude(0.013))
result = result.union(c... | 5 | 49 | 0.297541 |
train_873e62acd5f338c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.358, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.958, -0.121).threePointArc((0, 0.837), (0.958, -0.121)).lineTo(0.135, -0.121).threePointArc((0, -0.025), (-0.135, -0.121)).lineTo(-0.958, -0.121).close().extrude(2)
result = result.cut(c... | 12 | 83 | 2.717283 |
train_0c5b88510e8dace1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.276, -0.29, 0.292), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.708, 0.441).lineTo(0.708, 0.237).lineTo(-0.136, 0.237).lineTo(-0.136, 0.033).lineTo(-0.435, 0.033).lineTo(-0.435, 0.237).lineTo(-0.708, 0.237).lineTo(-0.708, 0.441).lineTo(0.708, 0... | 21 | 98 | 0.170766 |
train_d2aedb5ffa2d2745 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.328), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.706, 2).extrude(0.549)
result = result.union(cq.Workplane(cq.Plane(origin=(0.085, 0.1, 0.22), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.768).extrude(0.069))
result = result.union(cq.Workpl... | 13 | 156 | 1.617345 |
train_6f2ae9a44137abaa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.014, 0.138, -0.204), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.089, -0.03).lineTo(0.089, 0.03).lineTo(0.015, 0.03).lineTo(0.015, -0.024).lineTo(0.006, -0.024).lineTo(0.006, 0.03).lineTo(-0.089, 0.03).lineTo(-0.089, -0.03).lineTo(0.089, -0.03... | 19 | 234 | 0.021568 |
train_7ec8af2ef3b32869 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.91, 0, 0.5), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.5, 1.014).lineTo(-0.5, 0.372).threePointArc((-0.206, 0.307), (0.088, 0.372)).threePointArc((0.5, 1.014), (0.088, 1.656)).lineTo(0.088, 1.014).lineTo(-0.5, 1.014).close().revolve(angleDeg... | 9 | 67 | 2.314719 |
train_867ed0befdccdb1c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.391, -0.473), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.827).extrude(0.763)
result = result.faces('<Y').shell(-0.075)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.249, -0.082, -0.307), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.859... | 6 | 152 | 0.711467 |
train_012d2936b86e72a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.393), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.521).lineTo(1, -0.521).lineTo(-1, -0.521).lineTo(-1, 0.521).lineTo(1, 0.521).close().extrude(0.786)
result = result.edges().fillet(0.181)
| 2 | 26 | 1.538313 |
train_a3f2369b68c58fec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.204, 0, 0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.207, 0.266).extrude(0.176)
result = result.union(cq.Workplane(cq.Plane(origin=(0.069, -0.027, 0.275), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.102, 0.126).threePointArc((-0.442, 0.104... | 7 | 136 | 0.052863 |
train_41317f4a2e92dd36 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.033, 0, 0.219), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.343, 1.069).threePointArc((0.063, 0), (0.343, -1.069)).threePointArc((-0.343, 0), (0.343, 1.069)).close().extrude(0.719)
result = result.edges().fillet(0.048)
result = result.union(cq.... | 7 | 37 | 0.319519 |
train_a0fde10150dda249 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.145, -0.098, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.145, -0.271).lineTo(-0.145, -0.384).lineTo(-0.138, -0.411).lineTo(0, -0.964).lineTo(0.138, -0.411).threePointArc((0.133, -0.375), (0.127, -0.34)).lineTo(0.145, -0.271).lineTo(0.145, ... | 15 | 68 | 0.092936 |
train_5593b80f0d096ad7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0.656, 0.053), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.132).sweep(cq.Workplane('YZ').spline([(0.33, -0.227), (0.287, -0.02), (0.103, 0.133), (-0.144, 0.092), (-0.306, -0.101), (-0.306, -0.353), (-0.144, -0.545), (0.103, -0.587), (0.287,... | 5 | 48 | 0.102334 |
train_87b6ae7a2babe302 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.089, -0.121, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.778, 0.581).extrude(1.102)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.075, -0.201, 0.078), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.243, 0.133).extrude(0.279))
result = re... | 16 | 57 | 0.474275 |
train_d2cde3cfbe26de1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.603, 0.536, 0.062), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.541, -0.209).lineTo(-0.541, 0.333).lineTo(0, 0.333).lineTo(0, 0.874).lineTo(-0.541, 0.874).lineTo(-0.541, 1.415).lineTo(0.541, 1.415).lineTo(0.541, -0.209).lineTo(-0.541, -0.209).... | 22 | 61 | 2.31068 |
train_aebfa08faff3fe8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.468, 0, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.278).sweep(cq.Workplane('XZ').spline([(0.468, 0.131), (0.69, 0.271), (0.911, 0.342), (1.134, 0.342), (1.355, 0.271), (1.577, 0.131)]))
| 1 | 3 | 0.179018 |
train_ab7e9963012eedea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.674, -0.471, -0.07), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.153, 0.201).extrude(0.14)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.581, -0.429, 0.011), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.022, 0.581).lineTo(-0.056, 0.581).l... | 2 | 26 | 0.094224 |
train_245fefc5f405db1e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.098, -0.491), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.076).extrude(0.982)
result = result.faces('>Z').shell(-0.042)
result = result.union(cq.Workplane(cq.Plane(origin=(0.395, -0.795, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.... | 4 | 20 | 0.480495 |
train_7f5179452449cc1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.329, -0.704, 0.246), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.4).sweep(cq.Workplane('YZ').spline([(0.379, 0.023), (0.183, 0.308), (-0.154, 0.255), (-0.333, -0.057), (-0.318, -0.45), (-0.044, -0.581), (0.25, -0.547), (0.448, -0.238)]))
resul... | 4 | 24 | 1.521683 |
train_05e61e302fd383f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.285), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.746).extrude(0.569)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.285, -1.419), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.023, -0.11).lineTo(-0.059, -0.11).lineTo(-0.082, -0.0... | 18 | 71 | 1.547776 |
train_c2b1f43c617f6d50 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.627, -0.774, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.994, 0.107).lineTo(-0.994, 1.442).lineTo(0.994, 1.442).lineTo(0.994, 0.107).lineTo(-0.994, 0.107).close().workplane(offset=0.553).moveTo(-0.984, 0.115).lineTo(-0.984, 1.434).lineTo(0... | 7 | 27 | 2.65019 |
train_d6a972bcbf34a901 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.651, -0.119, -0.316), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.353, 0.436).extrude(0.517)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.599, -0.208, -0.015), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.052).extrude(0.222))
result = resu... | 12 | 227 | 0.116279 |
train_400ae65960594fe9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.33, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.548).workplane(offset=0.222).circle(0.506).workplane(offset=0.219).circle(0.554).workplane(offset=0.214).circle(0.524).workplane(offset=0.246).circle(0.528).workplane(offset=0.23).circle(0.... | 13 | 26 | 0.980455 |
train_25e469d11d70be57 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.685), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.696, 2).extrude(1.37)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.168, 0.05, -0.129), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.234).extrude(0.835))
result = result.edges().fillet(... | 7 | 66 | 3.194292 |
train_8864435c74c0da53 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.064, 0, -0.522), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.238).workplane(offset=0.012).circle(0.16).workplane(offset=0.014).circle(0.281).workplane(offset=0.013).circle(0.269).workplane(offset=0.014).circle(0.355).workplane(offset=0.012).ci... | 7 | 39 | 0.282614 |
train_442be0c5f216755a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.365, 0.025, -0.281), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.99, 1.28).extrude(0.667)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.492, -0.2, -0.027), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.235, 0.574).extrude(0.424))
result = resu... | 23 | 188 | 0.634375 |
train_4270eebf0d3b08fc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.655, 0.923, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.412, 0.061).lineTo(0.412, 0.061).lineTo(0.248, -0.061).lineTo(-0.248, -0.061).lineTo(-0.412, 0.061).close().sweep(cq.Workplane('XY').spline([(0.655, 0.018), (0.589, 0.471), (0.227, 0.7... | 2 | 26 | 0.182386 |
train_561ab641b87461fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.112, 0.332, -0.915), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.626, 0.902).extrude(0.947)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.099, -0.08, -0.632), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.041).extrude(0.094))
result = result.c... | 13 | 141 | 1.711815 |
train_3ed35956018c4bd1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.212, -0.607), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.503).workplane(offset=0.139).circle(0.448).workplane(offset=0.154).circle(0.313).workplane(offset=0.139).circle(0.442).workplane(offset=0.123).circle(0.358).loft()
result = result.edg... | 18 | 123 | 0.158108 |
train_437597e99e595158 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.061, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.359, 0.81).extrude(0.52)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.061, 0, -0.515), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.213, 0.622).extrude(0.381))
result = result.union(... | 9 | 42 | 0.171766 |
train_8d847978b545f58d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.169, -1, -0.189), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.477, -0.62).lineTo(0.096, 0.442).lineTo(0.192, 0.62).lineTo(0.334, 0.477).lineTo(0.477, 0.334).lineTo(-0.477, -0.62).close().sweep(cq.Workplane('YZ').spline([(-0.582, -0.793), (-0.0... | 3 | 15 | 0.453726 |
train_24f5de67b4f4677f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.065, -0.453, 0.227), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.38, -0.55).lineTo(0.38, 1.065).lineTo(-0.38, 1.065).lineTo(-0.38, -0.55).lineTo(0.38, -0.55).close().extrude(0.85)
result = result.edges().chamfer(0.066)
result = result.union(cq.... | 10 | 110 | 1.336133 |
train_f69ec43eca9b8823 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.911, -0.035, 1.474), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.263, -0.021).threePointArc((-0.05, 0.096), (0.183, 0.164)).threePointArc((0.284, 0.093), (0.213, -0.008)).threePointArc((0.017, -0.065), (-0.163, -0.164)).threePointArc((-0.284,... | 5 | 5 | 0.000077 |
train_81bc9a4e0ab96ba9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.19, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.708, 1.62).extrude(0.096)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.115, 0.094, -0.003), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.364).extrude(0.031))
result = result.uni... | 18 | 125 | 0.246429 |
train_2cdebf3afbca5770 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.029, 0.299, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.405, -0.076).threePointArc((-0.356, -0.026), (-0.405, 0.026)).threePointArc((-0.289, 0.261), (-0.053, 0.377)).threePointArc((-0.002, 0.432), (0.05, 0.377)).threePointArc((0.285, 0.261)... | 8 | 32 | 0.853263 |
train_d1d34b3ed489cf75 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.111, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.554, 0.554).lineTo(0.554, 0.355).lineTo(0, 0.355).lineTo(0, 0).lineTo(-0.355, 0).lineTo(-0.355, -0.554).lineTo(-0.554, -0.554).lineTo(-0.554, 0.554).lineTo(0.554, 0.554).close().sweep(cq.... | 12 | 230 | 0.479047 |
train_0e515d5d01f01ff4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.198), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.682, 1.009).lineTo(-0.682, -0.49).threePointArc((0, -1.009), (0.682, -0.49)).lineTo(0.682, -0.114).lineTo(0.682, 1.009).lineTo(-0.682, 1.009).close().workplane(offset=0.198).moveTo(-0.659... | 23 | 68 | 0.333741 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.