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_4f06e0e746c02870 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.096, 0.055, 0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.365, -0.055).lineTo(-0.365, -0.055).lineTo(-0.365, 0.216).lineTo(0.23, 0.216).lineTo(0.23, 0.945).lineTo(0.365, 0.945).lineTo(0.365, -0.055).close().revolve(angleDegrees=180, axisSta... | 5 | 23 | 0.214099 |
train_07a8a1729c994678 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.392, -0.502, -0.502), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.502, 0.86).lineTo(0.502, 1.195).lineTo(-0.502, 1.195).lineTo(-0.502, 0.659).lineTo(-0.067, 0.659).lineTo(-0.067, 0.124).lineTo(-0.502, 0.124).lineTo(-0.502, -0.412).lineTo(0.1, -... | 25 | 311 | 1.076102 |
train_83e50da2bbc6e6b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.453, 0.459, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.667, 1.453).lineTo(0.667, 0.12).lineTo(0, 0.12).lineTo(0, -0.547).lineTo(-0.667, 0.12).lineTo(-0.667, 1.453).lineTo(0.667, 1.453).close().extrude(0.701)
result = result.cut(cq.Workplan... | 14 | 78 | 1.188131 |
train_cc5f4799a7cd6544 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.391, -0.383, -0.56), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.977, 0.032).threePointArc((-0.063, 0.559), (0.977, 0.742)).lineTo(0.977, 0.032).lineTo(-0.977, 0.032).close().extrude(0.781)
result = result.edges().fillet(0.222)
result = result... | 5 | 34 | 0.568344 |
train_52d285c80664a2f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.754, -0.102, 0.578), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.246, -0.229).lineTo(-0.246, 0.229).lineTo(-0.082, 0.229).lineTo(-0.082, 0.138).lineTo(0.246, 0.138).lineTo(0.246, -0.067).lineTo(-0.082, -0.067).lineTo(-0.082, -0.229).lineTo(-0.2... | 4 | 24 | 0.119288 |
train_0eecba0f1b835d60 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.352, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.313, 0.157).lineTo(0.313, 0.157).lineTo(0.313, -0.157).lineTo(-0.313, -0.157).lineTo(-0.313, 0.157).close().sweep(cq.Workplane('XY').spline([(-0.37, -0.352), (0.049, -0.129), (0.469, -0... | 2 | 26 | 0.19131 |
train_bb4524bf895b3150 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.113, 0.012, -0.132), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.071, 0.032).threePointArc((-0.002, 0.003), (0.069, -0.02)).lineTo(0.087, -0.024).threePointArc((0.071, -0.033), (0.053, -0.039)).lineTo(0.024, -0.029).threePointArc((-0.013, -0.... | 36 | 143 | 0.034549 |
train_34d03bbd97579e7e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.096, -0.085, -0.413), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.307, 1.107).extrude(1.413)
result = result.union(cq.Workplane(cq.Plane(origin=(0.092, 0.646, 0.454), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.211).extrude(0.321))
result = result... | 21 | 65 | 1.551811 |
train_1c2456f52f263b6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.403, 0.139, -0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.195, 0.939).extrude(0.231)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.403, 0.139, 0.056), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.686, 0.502).extrude(0.046))
result = ... | 16 | 82 | 0.344613 |
train_167c23ad3d7cc997 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.553), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.622).extrude(1.106)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.827, 0.175, -0.442), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.365, 0.689).extrude(0.694))
result = result.cut(cq.W... | 9 | 54 | 3.101352 |
train_47733f489c7b427e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.581, 0.002, -0.007), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.019, -0.016).threePointArc((-0.019, 0.019), (0.016, 0.019)).lineTo(0.019, 0.015).threePointArc((0.016, -0.016), (-0.015, -0.019)).lineTo(-0.019, -0.016).close().sweep(cq.Workplan... | 7 | 46 | 0.000269 |
train_3457fd01fb8d12c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.142, 0.878, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1, -0.492).lineTo(1, -0.492).lineTo(1, -0.405).lineTo(-0.842, -0.405).lineTo(-0.808, 0.401).lineTo(-0.154, 0.141).lineTo(-0.131, 0.198).lineTo(-0.869, 0.492).lineTo(-1, -0.492).close().... | 1 | 10 | 0.238414 |
train_9cf43c43a7609a92 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.531, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.405, 1.481).lineTo(0.499, 1.481).lineTo(0.499, -0.419).lineTo(0.405, -0.419).lineTo(0.405, 0.485).lineTo(-0.499, 0.485).lineTo(-0.499, 0.578).lineTo(0.405, 0.578).lineTo(0.405, 1.481).clo... | 5 | 167 | 0.456844 |
train_282befcf638e2627 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.021, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.604, 0.802).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.302, 0.23, -0.372), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.021).extrude(0.324))
result = result.cut(cq.Work... | 9 | 27 | 0.759852 |
train_41a3b64ccf0a39a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, -1, -0.006), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.578, -0.247).lineTo(0.492, -0.356).lineTo(-0.578, 0.385).lineTo(-0.463, 0.486).lineTo(0.578, -0.247).close().extrude(2)
result = result.edges().fillet(0.06)
result = result.cut(cq.Wo... | 4 | 50 | 0.346575 |
train_423989801e7edaec | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.231, -0.677, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.163, -0.163).lineTo(0.17, -0.156).lineTo(0.012, 0.001).lineTo(0.171, 0.16).lineTo(0.164, 0.167).lineTo(0.005, 0.008).lineTo(-0.002, 0.016).lineTo(-0.009, 0.008).lineTo(-0.164, 0.164).... | 2 | 27 | 0.003218 |
train_32cf556f6f0e7f1d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.178, -0.195, -0.61), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.155, 1.61).extrude(0.952)
result = result.faces('<Z').shell(-0.049)
result = result.union(cq.Workplane(cq.Plane(origin=(0.087, 0.79, -0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).rect... | 8 | 35 | 0.343814 |
train_cfb853e5f1ddccd1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.974, 0.204, -0.179), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.152, 0.796).threePointArc((-0.327, 0.068), (-0.692, -0.587)).lineTo(0.692, -0.587).lineTo(0.692, 0.796).lineTo(-0.152, 0.796).close().extrude(1.471)
result = result.edges().fille... | 14 | 78 | 1.892323 |
train_96af63b6b56268e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.072, -0.037, 0.239), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.045, 0.437).lineTo(0.045, 0.437).lineTo(0.045, -0.017).lineTo(-0.045, -0.167).lineTo(-0.045, 0.437).close().extrude(0.092)
result = result.edges().chamfer(0.019)
result = result.u... | 7 | 121 | 0.012151 |
train_58403a18c889b921 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.296, 0.326, 0.696), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.304, 0.6).lineTo(-0.304, -0.008).lineTo(0.304, -0.008).lineTo(0.304, 0.6).lineTo(-0.304, 0.6).close().extrude(0.65)
result = result.edges().fillet(0.095)
result = result.union(cq.... | 4 | 33 | 0.240107 |
train_8d6d104be896ea4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.855), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.964, 2).extrude(1.711)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.62, 0.474, -0.077), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.18).extrude(0.615))
result = result.cut(cq.Workpla... | 11 | 87 | 4.637026 |
train_2223800647b068f4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.125, -0.206, -0.763), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.424, 0.258).extrude(0.129)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.008, -0.262, -0.639), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.027).extrude(0.212))
result = re... | 8 | 54 | 0.473028 |
train_ea32d63b66b6b543 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.767, -0.097, -0.068), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.543, -0.903).lineTo(0.543, 1.097).lineTo(-0.543, 1.097).lineTo(-0.543, -0.903).lineTo(0.543, -0.903).close().extrude(0.658)
result = result.union(cq.Workplane(cq.Plane(origin=(0.... | 7 | 36 | 1.472162 |
train_7448dc8567b6abdd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.131, -0.485, -0.252), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.252, 1.131).lineTo(0.252, -0.869).lineTo(-0.252, -0.869).lineTo(-0.252, 1.131).lineTo(0.252, 1.131).close().revolve(angleDegrees=360, axisStart=(0.252, 1.131), axisEnd=(0.252, -0... | 15 | 109 | 2.215156 |
train_a2db4db5bb5c043f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.353, -0.298, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.192, 0.288).lineTo(-0.192, 0).lineTo(1, 0).lineTo(1, -0.288).lineTo(-1, -0.288).lineTo(-1, 0).lineTo(-0.615, 0).lineTo(-0.615, 0.288).lineTo(-0.192, 0.288).close().sweep(cq.Workplan... | 21 | 56 | 0.354551 |
train_c4d82ebb968a6445 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.44, 0.6, 0.178), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.148, -0.161).lineTo(-0.148, -0.161).lineTo(-0.148, 0.371).threePointArc((-0.062, 0.306), (-0.03, 0.203)).lineTo(-0.03, -0.161).lineTo(0.148, -0.161).close().revolve(angleDegrees=90, ax... | 28 | 283 | 1.000464 |
train_5f2d3e1671b86213 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.04, 0.552, 0.016), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.463, 0.399).threePointArc((-0.554, 0.362), (-0.591, 0.272)).lineTo(-0.591, -0.192).threePointArc((-0.554, -0.282), (-0.463, -0.319)).lineTo(0.591, -0.319).lineTo(0.591, 0.399).line... | 24 | 350 | 0.600053 |
train_d6eaf2ee24cbbf76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.853, 2).extrude(0.64)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.274 * math.cos(4.254 + 2 * math.pi * 0 / 5), 0 + 0.274 * math.sin(4.254 + 2 * math.pi * 0 / 5), -0.416), normal=(... | 34 | 18 | 2.071058 |
train_9989fb5a7581604a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.167, 0.332, 0.002), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.152, -0.667).lineTo(-0.152, -0.667).lineTo(-0.152, 1).lineTo(0.006, 1).lineTo(0.15, -0.651).lineTo(0.152, -0.667).close().extrude(0.383)
result = result.edges().fillet(0.051)
resul... | 5 | 44 | 0.14431 |
train_7d8b47a035fdb501 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.566, 0.348, -0.149), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.002, 0.035).threePointArc((0.465, 0.247), (-0.002, 0.449)).threePointArc((-0.465, 0.237), (0.002, 0.035)).close().extrude(1.131)
result = result.edges().fillet(0.082)
result = res... | 21 | 112 | 0.543335 |
train_67015b9e3233aaac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.446, 0.07, -0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.51, 0.418).extrude(0.119)
result = result.union(cq.Workplane(cq.Plane(origin=(0.65, 0.083, -0.229), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.086, 0.007).threePointArc((0.013, -0.1... | 13 | 105 | 0.080408 |
train_9ddb578519a03a0a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.542, 0.011, -0.603), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.397, 0.387).lineTo(-0.397, 0.387).lineTo(-0.397, -0.365).lineTo(0.397, -0.365).lineTo(0.397, 0.387).close().extrude(1.084)
result = result.edges().chamfer(0.027)
result = result.u... | 11 | 106 | 0.600366 |
train_20f8894a9013a705 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.291).extrude(0.224)
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.116 + 0.0195, 0.088), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.008, -0.005).lineTo(-0.008, 0.005).lineTo(... | 10 | 38 | 0.003054 |
train_4cb8b357b96bdf3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.768, -0.345, -5.844), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.203, -2.571).lineTo(-1.203, 3.037).lineTo(1.203, 3.037).lineTo(1.203, -2.571).lineTo(-1.203, -2.571).close().extrude(2.991)
result = result.edges().chamfer(0.117)
result = result... | 18 | 6 | 0.021507 |
train_06a497b1f561458a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.186, -0.286, 0.139), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.104, -0.611).lineTo(0.104, -0.611).lineTo(-0.324, -0.611).lineTo(-0.324, 0.585).lineTo(-0.164, 0.585).threePointArc((-0.174, 0.707), (-0.104, 0.806)).lineTo(-0.104, 0.984).lineTo... | 11 | 69 | 1.018192 |
train_afe0f93e0d907291 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, 0, 0.104), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1.01, -0.093).lineTo(1.01, 0.111).lineTo(0.786, 0.098).lineTo(-1.01, -0.009).lineTo(0.694, -0.111).lineTo(1.01, -0.093).close().extrude(0.208)
result = result.edges().chamfer(0.02)
resul... | 3 | 31 | 0.047438 |
train_0ccfdb02bad473a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.023, -0.007, -0.422), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.977, -0.005).lineTo(0.485, 0.905).lineTo(-0.485, 0.886).lineTo(-1.023, -0.032).lineTo(-0.503, -0.882).lineTo(0.507, -0.891).close().center(-0.321, 0).rect(0.339, 0.688).center(0.6... | 17 | 91 | 1.45924 |
train_27bb9ad0f0f85b72 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.146, -0.036), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.288).sweep(cq.Workplane('XY').spline([(0, -0.51), (0.286, -0.501), (0.571, -0.459), (0.857, -0.294), (1.143, 0.001), (1.428, 0.167), (1.714, 0.209), (2, 0.218)]))
result = result.ed... | 7 | 46 | 0.575747 |
train_e9a0d915c8a11aae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, 0.123, 0), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.5, 0.36).lineTo(0.5, 0.28).lineTo(0, 0.28).lineTo(0, -0.36).lineTo(-0.5, -0.36).lineTo(-0.5, 0.36).lineTo(0.5, 0.36).close().revolve(angleDegrees=360, axisStart=(0.5, 0.36), axisEnd=(0.... | 13 | 80 | 1.555649 |
train_07b883a7d031092e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.331, 0.212, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.457, 1.284).lineTo(-1.132, 0.49).lineTo(0.457, -0.86).lineTo(1.132, -0.065).lineTo(-0.457, 1.284).close().extrude(0.662)
result = result.edges().chamfer(0.204)
result = result.cut(cq.... | 5 | 62 | 1.153919 |
train_2d641801b0c18dd7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.905, 0.808, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.66).lineTo(0.926, 1.66).lineTo(0.926, 1.155).threePointArc((1, 0.808), (0.926, 0.461)).threePointArc((0.612, 0.093), (0.148, -0.044)).lineTo(-1, -0.044).lineTo(-1, 1.66).close().ex... | 5 | 116 | 5.565657 |
train_f088a631b8d6b48d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.096, 0.003, -0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.026, 0.002).lineTo(0.339, 0.997).lineTo(-0.793, 0.61).lineTo(-0.833, -0.608).lineTo(0.302, -1.003).close().moveTo(-0.551, 0.198).lineTo(-0.556, 0.115).lineTo(-0.577, 0.026).lineTo... | 16 | 242 | 0.52309 |
train_01b621e389227708 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.029, 0.834, -0.273), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.76).workplane(offset=0.579).circle(0.683).workplane(offset=0.597).circle(0.719).workplane(offset=0.491).circle(0.731).loft()
result = result.edges().chamfer(0.384)
result = result... | 10 | 34 | 1.158948 |
train_2025713d860ebb78 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.365, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.324).workplane(offset=0.288).circle(0.326).workplane(offset=0.299).circle(0.343).workplane(offset=0.393).circle(0.333).workplane(offset=0.385).circle(0.33).loft()
result = result.edges().c... | 9 | 23 | 0.36048 |
train_4eec4d8f3fced893 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.209, -0.263, -0.463), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.186, 1.474).extrude(0.927)
result = result.faces('>Z').shell(-0.089)
result = result.union(cq.Workplane(cq.Plane(origin=(0.892, -0.131, 0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).ci... | 6 | 27 | 0.635028 |
train_446fad0d256d2daa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.046, -0.73, 0.049), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.751, 0.255).threePointArc((-0.65, -0.121), (-0.376, -0.396)).lineTo(0.376, -0.396).lineTo(0.751, 0.255).lineTo(0.376, 0.905).lineTo(-0.376, 0.905).lineTo(-0.751, 0.255).close().ex... | 26 | 195 | 1.077211 |
train_b7e81f2cd4a27cf2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.54, -0.524), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.053).lineTo(1, 0.053).lineTo(1, 0.795).lineTo(-1, 0.795).lineTo(-1, 0.053).close().extrude(1.051)
result = result.edges().fillet(0.058)
result = result.union(cq.Workplane(cq.Plane(... | 8 | 43 | 1.617775 |
train_e2a23736ebf1a77d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.218, 0, -0.689), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.178).lineTo(0.236, -0.178).lineTo(0.282, -0.132).lineTo(0.329, -0.084).lineTo(0.094, 0.151).lineTo(0, 0.151).lineTo(-0.047, 0.198).lineTo(-0.094, 0.151).lineTo(-0.329, -0.084).lin... | 10 | 87 | 0.144613 |
train_8767e37284180d91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.576, 0.168, -0.565), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.303, 0.111).lineTo(0.326, -0.424).lineTo(-0.326, 0.424).lineTo(0.303, 0.111).close().sweep(cq.Workplane('XY').spline([(-0.576, -0.483), (-0.294, -0.447), (-0.013, -0.474), (0.268,... | 6 | 22 | 0.087949 |
train_83424d0065c8b677 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.779, -0.249, 0.191), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.91, 1.353).threePointArc((-0.81, -0.367), (0.91, -0.477)).lineTo(-0.91, 1.353).close().extrude(1.557)
result = result.edges().chamfer(0.146)
result = result.cut(cq.Workplane(cq.P... | 6 | 39 | 2.45496 |
train_ba73da6951660e46 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.043, 0.434, 0.583), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0).lineTo(0.182, 0).lineTo(0, -0.182).lineTo(-0.182, -0.182).lineTo(-0.182, 0.182).lineTo(0, 0.182).lineTo(0, 0).close().sweep(cq.Workplane('YZ').spline([(0.007, 0.339), (-0.24, 0... | 12 | 29 | 0.150255 |
train_8965db9b9a978de8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.919, -0.349, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.188, -0.282).lineTo(0.125, -0.219).lineTo(0.11, -0.204).lineTo(0.105, -0.217).lineTo(0.052, -0.21).lineTo(0, -0.204).lineTo(0.022, -0.116).lineTo(0.062, -0.156).lineTo(0.071, -0.111).l... | 1 | 18 | 0.070934 |
train_e8a6d2e81128f0ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.129, -0.319, -0.323), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.419, 0.489).lineTo(0.419, 0.489).lineTo(0.419, 0.027).lineTo(0.293, 0.027).lineTo(0.293, 0.315).lineTo(0.168, 0.315).lineTo(0.168, 0.395).lineTo(-0.168, 0.395).lineTo(-0.168, 0.... | 15 | 134 | 0.263605 |
train_c4e5226865883a68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.006, -0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.194, 0.775).lineTo(0.161, 0.776).lineTo(0.178, 0.156).lineTo(1.001, 0.179).lineTo(0.981, -0.172).lineTo(0.141, -0.166).lineTo(0.183, -0.763).lineTo(-0.15, -0.764).lineTo(-0.158,... | 15 | 79 | 0.328315 |
train_0375751363830631 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.228, -0.065, -0.014), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.165, -0.284).lineTo(0.329, 0).lineTo(0.164, 0.285).lineTo(-0.165, 0.284).lineTo(-0.329, 0).threePointArc((-0.284, -0.165), (-0.164, -0.285)).lineTo(0.165, -0.284).close().revolv... | 21 | 153 | 0.354312 |
train_5e739f2451b8ca31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.36, 0.293, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.036, -0.64).lineTo(-0.349, -0.64).lineTo(-0.371, -0.165).lineTo(-0.036, -0.165).lineTo(-0.036, 1.36).lineTo(0.371, 1.36).lineTo(0.332, 0.529).lineTo(0.3, -0.165).lineTo(0.278, -0.64).l... | 14 | 94 | 0.319923 |
train_b4c5873eb7b22b8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.177, -0.869, -0.047), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.59, 1.196).threePointArc((0, 0.607), (-0.59, 1.196)).lineTo(-0.59, -0.072).lineTo(-0.59, -0.131).lineTo(0.59, -0.131).lineTo(0.59, -0.072).lineTo(0.59, 1.196).close().extrude(0.4... | 5 | 70 | 0.773021 |
train_7240f9d3b9fa4018 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.177, -0.114, 0.099), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.823, 0.015).lineTo(-0.823, 0.213).lineTo(0.823, 0.213).lineTo(0.823, 0.015).lineTo(-0.823, 0.015).close().extrude(0.616)
result = result.edges().chamfer(0.077)
result = result.fac... | 6 | 129 | 0.037773 |
train_1606db0efef3d68a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.836, 0.343), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.154).sweep(cq.Workplane('YZ').spline([(-0.591, -0.226), (-0.215, -0.647), (0.191, -0.647), (0.567, -0.226), (0.567, 0.228), (0.191, 0.65), (-0.215, 0.65), (-0.591, 0.228)]))
result = ... | 2 | 5 | 0.100998 |
train_2f8f98a44fee32e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.594, -0.142, -0.104), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.406, -0.141).lineTo(-0.406, -0.246).lineTo(-0.039, -0.246).lineTo(-0.039, -0.409).lineTo(0.274, -0.409).lineTo(0.406, -0.246).lineTo(0.406, -0.141).lineTo(0.156, 0.123).lineTo(... | 5 | 35 | 0.455216 |
train_a8421366f8331cb0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.084, -0.072, 0.038), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.647, 0.647).extrude(0.869)
result = result.faces('>Z').shell(-0.043)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.018, -0.003, 0.902), normal=(0, 0, 1), xDir=(1, 0, 0))).r... | 11 | 248 | 0.276477 |
train_2eeff6baf45b1179 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.101, 0.009, -0.809), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.008, 0.112).lineTo(-0.008, 0).lineTo(-0.026, -0.09).lineTo(-0.036, -0.101).lineTo(-0.071, -0.112).lineTo(-0.008, -0.112).lineTo(0.003, -0.101).lineTo(-0.004, -0.093).lineTo(-0.00... | 22 | 71 | 0.046639 |
train_fdf5105bcdce58ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.316, -0.114, 0.097), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.154, 0.105).lineTo(-0.157, 0.105).lineTo(-0.157, 0.121).lineTo(-0.154, 0.121).lineTo(-0.154, 0.138).lineTo(-0.157, 0.138).lineTo(-0.157, 0.155).lineTo(-0.154, 0.155).lineTo(-0.15... | 12 | 133 | 0.128859 |
train_83acc2c408d41014 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.489, 0.522), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.202, -0.387).lineTo(-0.447, -0.387).lineTo(0, 0.387).lineTo(0.447, -0.387).lineTo(0.202, -0.387).close().sweep(cq.Workplane('YZ').spline([(0.489, 0.522), (0.109, 0.684), (-0.285, 0.566... | 11 | 51 | 0.756923 |
train_25a194d119d9d799 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.175, -0.162, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.107, 0.834).extrude(0.618)
result = result.union(cq.Workplane(cq.Plane(origin=(0.189, -0.37, -0.531), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.122).extrude(1.531))
result = result.un... | 8 | 27 | 0.597191 |
train_8aaa24226dbac5cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.46), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.893, 1.203).extrude(1.46)
result = result.union(cq.Workplane(cq.Plane(origin=(0.158, -0.194, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.179, 0.509).extrude(0.59))
result = result.cut(cq.W... | 6 | 28 | 1.12139 |
train_5752ae9835c5cb0c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.069, -0.131), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.323, 0.249).extrude(0.272)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.184, -0.04, -0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.028).extrude(0.064))
result = result.un... | 20 | 108 | 0.043901 |
train_64a765b28a1ccc22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.596), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.852).extrude(1.192)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.167, 0.06, -0.1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.521, 1.022).extrude(0.223))
result = result.cut(cq.Work... | 14 | 61 | 1.591818 |
train_944d97336a8b6e15 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.603, 2).extrude(0.102)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.641 + 0.16, -0.8 + 0.267, -0.066), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.019, 0.058).lineTo(0.001, 0.076).li... | 13 | 366 | 0.315182 |
train_a04c96cbd273dfb2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.712, -0.026, -0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.577, 0.61).extrude(0.07)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.462, -0.026, 0.044), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.015, -0.258).threePointArc((-0.126... | 14 | 118 | 0.232669 |
train_b1d2c82dbe51bd6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.691, 0, 0.192), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.266, 0.221).extrude(0.065)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.691, 0.123, 0.204), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.164, 0.029).extrude(0.04))
result = result... | 42 | 312 | 0.201304 |
train_e3a92ccb8ee0a9e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.735, -0.012, 0.145), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.115, 0.405).threePointArc((0.257, 0.41), (0.262, 0.269)).threePointArc((0.058, -0.013), (-0.067, -0.337)).threePointArc((-0.188, -0.41), (-0.262, -0.289)).threePointArc((-0.117, 0... | 2 | 6 | 0.118028 |
train_277fb863dac2e3cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, 0.026, -0.005), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.013, 0.028).threePointArc((0.008, 0.019), (0.003, 0.011)).threePointArc((-0.002, -0.009), (-0.002, -0.029)).threePointArc((-0.03, 0.002), (-0.036, 0.044)).threePointArc((0, 0.054),... | 18 | 78 | 0.010505 |
train_150817f026791562 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.588, -0.901, 0.436), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.111, 0.033).lineTo(-0.244, 0.033).lineTo(-0.244, 0.099).lineTo(0.206, 0.099).lineTo(0.206, 0.057).lineTo(0.244, -0.046).lineTo(0.097, -0.099).lineTo(-0.135, -0.099).lineTo(-0.111,... | 17 | 132 | 0.353675 |
train_10f6c20417974d8c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.603), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.057).workplane(offset=0.065).circle(0.056).workplane(offset=0.053).circle(0.074).workplane(offset=0.077).circle(0.077).workplane(offset=0.067).circle(0.071).workplane(offset=0.066).circle... | 8 | 38 | 0.01264 |
train_84ce874835e12fd1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.408, 0, -0.003), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1.003, 0.771).lineTo(-1.003, 0.254).lineTo(-1.003, 1.288).lineTo(1.003, 0.771).close().revolve(angleDegrees=360, axisStart=(1.003, 0.771), axisEnd=(-1.003, 0.254))
result = result.edges... | 8 | 30 | 0.781314 |
train_057e73ec9bb795b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.027, 0.027, 0.805), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.027, 1.027).threePointArc((-0.425, -0.425), (1.027, -1.027)).lineTo(1.027, 0.131).threePointArc((0.393, 0.393), (0.131, 1.027)).lineTo(-1.027, 1.027).close().extrude(1.611)
resul... | 8 | 61 | 2.734148 |
train_8b5f3f7b46c322e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.314, -1, -0.114), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.673, 0.478).lineTo(-0.375, -0.57).lineTo(-0.673, -0.273).lineTo(-0.673, -0.035).lineTo(0.673, 1.31).lineTo(0.673, 0.478).close().extrude(2)
result = result.edges().fillet(0.111)
resu... | 4 | 43 | 2.17632 |
train_5dd4a885c4c1088a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.365, -0.478, -0.308), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.063, 1.043).extrude(0.215)
result = result.union(cq.Workplane(cq.Plane(origin=(0.418, 0.043, -0.081), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.494, 0.574).lineTo(0.494, -0.087).l... | 13 | 146 | 1.433271 |
train_f1c0675fc61eb114 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.072, 0.057, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.022, 1.051).lineTo(-0.043, 1.051).lineTo(-0.043, 1.072).lineTo(0.043, 1.072).lineTo(0.043, -0.928).lineTo(0.022, -0.928).lineTo(0.022, 1.051).close().workplane(offset=0.019).moveTo(0.0... | 1 | 8 | 0.00202 |
train_6136e61e4e373585 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.006, -0.175, -0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.226, 0.842).lineTo(0.197, 0.818).lineTo(0.189, 0.197).lineTo(0.815, 0.209).lineTo(0.819, -0.204).lineTo(0.226, -0.194).lineTo(0.22, -0.825).lineTo(-0.194, -0.81).lineTo(-0.194, -... | 16 | 117 | 0.31118 |
train_d445b8edfcf05f06 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, -0.363, -0.366), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.341, 1.363).lineTo(-0.341, -0.637).lineTo(0.341, -0.637).threePointArc((0.307, -0.554), (0.224, -0.519)).lineTo(0.224, -0.449).lineTo(0.224, 1.245).threePointArc((0.307, 1.28), (... | 3 | 174 | 0.838534 |
train_7edcbbe3f8454db5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.068, -0.137, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.01, 0.787).lineTo(-0.577, 0.048).lineTo(0.578, 0.048).lineTo(1.01, 0.787).lineTo(-1.01, 0.787).close().extrude(0.789)
result = result.faces('>Z').shell(-0.057)
result = result.union(... | 25 | 200 | 0.531688 |
train_2026ef7be7fcb0e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.448, 0.017, -0.55), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.105, 0.501).extrude(0.577)
result = result.union(cq.Workplane(cq.Plane(origin=(0.425, -0.107, 0.079), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.22, 0.628).threePointArc((-0.023, 0... | 10 | 114 | 0.294984 |
train_f4c88ce558a71db5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.198, 0.16, 0.454), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.105, 0.043).lineTo(-0.056, -0.043).threePointArc((0.014, 0.02), (0.105, 0.043)).lineTo(-0.105, 0.043).close().sweep(cq.Workplane('XZ').spline([(-0.198, 0.351), (-0.092, 0.435), (0.... | 9 | 53 | 0.269148 |
train_5086bd55a5ba324e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.645, -0.108, -0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.71, 0.588).extrude(0.072)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.638, -0.108, -0.154), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.203).extrude(0.016))
result = res... | 16 | 92 | 0.234933 |
train_6e810ce55b21e6cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.292, 0.212, -0.268), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.667, 0.298).extrude(0.251)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.309, 0.287, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.138, 0.088).extrude(0.317))
result =... | 18 | 162 | 0.71074 |
train_3a7a9cf0630ebb0a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.069, 0.637, -0.309), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.262, 0.003).threePointArc((-0.251, -0.045), (-0.234, -0.091)).lineTo(-0.234, -0.124).lineTo(0.069, -0.124).lineTo(0.069, -0.283).lineTo(-0.234, -0.283).lineTo(-0.234, -0.363).li... | 17 | 104 | 0.680754 |
train_a440d32c02d5764e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.126, 0.066, -0.627), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.128, 0.146).threePointArc((-0.274, 0), (-0.128, -0.146)).lineTo(0.128, -0.146).threePointArc((0.274, 0), (0.128, 0.146)).lineTo(-0.128, 0.146).close().extrude(0.342)
result = re... | 10 | 59 | 0.607472 |
train_52c52cd1d21140e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.018, 0.923, -0.014), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.8, 2.018).lineTo(1, 2.018).lineTo(1, 0.018).lineTo(-0.8, 0.018).lineTo(-1, 1.018).lineTo(-0.8, 2.018).close().extrude(1.846)
result = result.edges().chamfer(0.142)
result = resul... | 18 | 80 | 3.57935 |
train_01d425d95086b4c8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.124, -0.277, 0.262), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.338, 0.022).lineTo(-0.286, 0.022).lineTo(-0.286, 0.295).lineTo(0.338, 0.295).lineTo(0.338, 0.022).lineTo(-0.338, 0.022).close().extrude(0.38)
result = result.edges().chamfer(0.04... | 17 | 216 | 0.185651 |
train_aa6c5ebdc8cb18e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.19, 0.204, -0.31), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.191, 1.592).extrude(0.811)
result = result.union(cq.Workplane(cq.Plane(origin=(0.007, 0.522, -0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.558, 0.348).extrude(0.203))
result = resu... | 5 | 27 | 1.722625 |
train_495c7cba8d36e54a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.366, -0.613, -0.584), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.071, 0.15).lineTo(0.103, 0.15).lineTo(0.103, 0.114).lineTo(-0.055, 0.114).lineTo(-0.064, 0.105).lineTo(-0.064, 0.078).lineTo(-0.071, 0.078).lineTo(-0.071, -0.123).lineTo(0.031, -... | 21 | 135 | 0.617 |
train_92bf4cb344fad720 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, -0.136, -0.484), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.497, 0.714).extrude(0.967)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.428, -0.226, 0.007), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.686, 0.391).extrude(0.288))
result = re... | 17 | 207 | 0.793266 |
train_a80a85f53a85f965 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, 0, 0.403), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.537, 0.39).lineTo(0.537, 0.39).lineTo(0.537, -0.196).lineTo(0.341, -0.196).lineTo(0.341, -0.39).lineTo(-0.341, -0.39).lineTo(-0.341, -0.196).lineTo(-0.537, -0.196).lineTo(-0.537, 0.39... | 9 | 22 | 1.281071 |
train_114a1d325c10e82e | 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.464).workplane(offset=0.722).circle(0.422).workplane(offset=0.619).circle(0.381).workplane(offset=0.659).circle(0.338).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(0.207, 0.244, 0.... | 6 | 31 | 0.822993 |
train_72182727ea1033f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.066, -0.92, 0.042), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.45, -0.169).lineTo(-0.397, -0.271).lineTo(0.45, 0.169).lineTo(0.397, 0.271).lineTo(-0.45, -0.169).close().sweep(cq.Workplane('YZ').spline([(-0.415, -0.324), (0.315, -0.055), (1.0... | 5 | 58 | 0.26882 |
train_d40bcf45275461b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.117, -0.527), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.822, 1.766).extrude(1.253)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.018, -0.259, 0.449), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.491, 0.313).extrude(0.285))
result = result... | 3 | 23 | 1.848139 |
train_edfbbc0bb001da6f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.253, -0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.138, 1.494).extrude(1.132)
result = result.union(cq.Workplane(cq.Plane(origin=(0.092, -0.729, -0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.271).extrude(0.386))
result = result.uni... | 4 | 15 | 1.875888 |
train_041239e4157acfe1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.12, -0.165, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.352, 0.538).extrude(0.538)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.169, -0.147, -0.855), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.252, 0.467).extrude(0.249))
result = res... | 6 | 26 | 0.117181 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.