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_efbc74bd668bd95f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.279, -0.189, -0.242), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.023, 0.171).lineTo(-0.247, 0.171).lineTo(-0.247, 0.102).threePointArc((-0.258, 0.076), (-0.284, 0.065)).lineTo(-0.334, 0.065).lineTo(-0.334, -0.067).lineTo(0.023, -0.067).lineTo(... | 27 | 318 | 0.151764 |
train_d342d53d7f7d1fa8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.48, -1.218, -0.04), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.48, 0.738).lineTo(-0.48, 1.697).lineTo(0.48, 1.697).lineTo(0.48, 0.738).lineTo(-0.48, 0.738).close().revolve(angleDegrees=360, axisStart=(-0.48, 0.738), axisEnd=(-0.48, 1.697))
res... | 27 | 158 | 2.413274 |
train_e55a40d8adb19f47 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.589, 0.127, -0.11), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.049, 0.053).lineTo(0.049, 0.053).lineTo(0.049, 0.199).lineTo(-0.049, 0.199).lineTo(-0.049, 0.053).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.067, 0))
result = ... | 20 | 151 | 0.149785 |
train_8abfdc0ef1832bf3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.094, 0.105, -0.377), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.24, 0.105).lineTo(0.24, 0.015).lineTo(-0.17, 0.015).lineTo(-0.17, 0.105).lineTo(-0.24, 0.105).lineTo(-0.17, 0.176).lineTo(-0.17, 0.195).lineTo(-0.125, 0.195).lineTo(-0.125, 0.105)... | 13 | 164 | 0.021216 |
train_97f7597b8038c154 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.214, 0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.254, 0).threePointArc((0.235, 0.097), (0.18, 0.18)).threePointArc((0, 0.254), (-0.18, 0.18)).threePointArc((-0.254, 0), (-0.18, -0.18)).threePointArc((0, -0.254), (0.18, -0.18)).lineTo(... | 6 | 30 | 0.314677 |
train_31894fa0e24746ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.188, 0.339, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.195, 0.648).threePointArc((-0.259, 0.597), (-0.309, 0.534)).threePointArc((-0.366, 0.339), (-0.309, 0.144)).threePointArc((-0.281, 0.126), (-0.25, 0.137)).threePointArc((-0.202, 0.137... | 16 | 91 | 0.300561 |
train_32af1ed8c60eb077 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.273, -0.304, -0.397), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.173, 1.062).lineTo(0.604, 1.062).lineTo(0.604, 0.056).lineTo(-0.604, 0.056).lineTo(-0.604, 1.062).lineTo(0.173, 1.062).close().extrude(0.779)
result = result.union(cq.Workplane(cq... | 16 | 142 | 1.011842 |
train_a8849ee66b5dcf1a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.12, -0.021, 0.309), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.653, 0.332).lineTo(-0.621, 0.332).lineTo(-0.621, 0.071).lineTo(0.653, 0.071).lineTo(0.653, 0.038).lineTo(-0.653, 0.038).lineTo(-0.653, 0.332).close().workplane(offset=0.053).moveT... | 11 | 51 | 0.096037 |
train_95617b161d9e5cda | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.145, -0.025, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.109).lineTo(-1, 0.007).lineTo(1, 0.007).lineTo(1, 0.109).lineTo(-1, 0.109).close().extrude(0.368)
result = result.edges().fillet(0.02)
result = result.cut(cq.Workplane(cq.Plane(or... | 9 | 71 | 0.104476 |
train_1e61d4d19ca6e5f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.205, 0, -0.605), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.59, 1.916).extrude(1.266)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.124, 0.113, -0.913), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.323).extrude(0.326))
result = result.cu... | 12 | 94 | 1.199297 |
train_157d9cea8d5df4c0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, -1.035, -0.368), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.42, 1.036).lineTo(0.277, 1.036).lineTo(0.42, -0.227).lineTo(0.42, 1.036).close().revolve(angleDegrees=360, axisStart=(0.42, 1.036), axisEnd=(0.277, 1.036))
result = result.edges... | 20 | 131 | 0.155214 |
train_4cf5e917510fe131 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.495, 0.272, -0.06), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.113, 0.182).lineTo(-0.22, 0.321).lineTo(-0.052, 0.272).lineTo(0.046, 0.417).lineTo(0.052, 0.242).lineTo(0.22, 0.194).lineTo(0.056, 0.134).lineTo(-0.046, 0.097).lineTo(-0.211, 0.037... | 9 | 52 | 0.132165 |
train_8ca7540cd198746f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.057, -0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.457, 0.068).lineTo(-0.457, 0.015).lineTo(0.457, 0.015).threePointArc((0.437, 0.041), (0.457, 0.068)).lineTo(-0.457, 0.068).close().revolve(angleDegrees=90, axisStart=(-0.457, 0.068),... | 9 | 79 | 0.055461 |
train_886f7784f9281ba9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.267, 0.005, -0.042), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.713, -0.678).lineTo(0.732, -0.646).lineTo(0.722, 0.656).lineTo(-0.733, 0.668).close().moveTo(0.152, -0.002).lineTo(0.076, 0.131).lineTo(-0.073, 0.131).lineTo(-0.151, 0.001).lineT... | 9 | 132 | 0.332682 |
train_5abb9165aefe9eb2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.302, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.311, 0.698).lineTo(-0.314, 0.698).threePointArc((-0.332, 0.69), (-0.34, 0.671)).lineTo(-0.34, 0.669).lineTo(-0.34, 0.269).lineTo(-0.34, 0.257).threePointArc((-0.336, 0.246), (-0.325, 0.24... | 2 | 19 | 1.044142 |
train_0ac989735b52cbf2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.054, 0.358, 0.29), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.135, -0.284).lineTo(0.135, 0.284).lineTo(-0.135, 0.284).lineTo(-0.135, -0.284).lineTo(0.135, -0.284).close().sweep(cq.Workplane('YZ').spline([(-0.006, 0.099), (0.107, 0.155), (0.219... | 16 | 208 | 0.301754 |
train_f4c46177b6ec2a5b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.432, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.742, 0.061).threePointArc((-0.345, 0.719), (0.421, 0.673)).threePointArc((0.657, 0.407), (0.742, 0.061)).lineTo(0.454, 0.061).lineTo(-0.454, 0.061).lineTo(-0.742, 0.061).close().extrude(... | 17 | 27 | 1.571172 |
train_0651dee400a6923b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.126, -0.433), normal=(-1, 0, 0), xDir=(0, 0, 1))).lineTo(0.044, 0.205).lineTo(0.051, 0.143).lineTo(0.056, 0.137).lineTo(0.064, 0.133).lineTo(0.081, 0.13).lineTo(0.261, 0.13).lineTo(0.278, 0.13).lineTo(0.261, 0.067).lineTo(0.081, 0.067).lineT... | 5 | 112 | 0.202097 |
train_d67827b24f54ae25 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.024, -0.14, -0.392), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.298, 0.965).extrude(0.483)
result = result.union(cq.Workplane(cq.Plane(origin=(0.543, -0.726, -0.207), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.003, -0.176).lineTo(0.052, -0.176)... | 12 | 150 | 0.82333 |
train_920a3665d85798b8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.304, 0.464, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.533, 0.592).lineTo(-0.533, -0.104).lineTo(0.533, -0.104).lineTo(0.533, 0.592).lineTo(-0.533, 0.592).close().extrude(1.464)
result = result.edges().chamfer(0.208)
result = result.union... | 10 | 59 | 0.682974 |
train_0f283805d2dd7233 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.086, 0.001, 0.189), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.141, 0.708).extrude(0.078)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.56, 0.134, 0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.205, 0.215).extrude(0.039))
result = result... | 19 | 192 | 0.373582 |
train_a85c94f65b4b533b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.285, -0.23, -0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.196, 0.629).threePointArc((0, -0.737), (-0.196, 0.629)).lineTo(-0.219, 0.705).threePointArc((0, 0.737), (0.219, 0.705)).lineTo(0.196, 0.629).close().sweep(cq.Workplane('YZ').splin... | 3 | 13 | 1.346042 |
train_0c751235da0e8553 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.622, 1).lineTo(-0.622, 0.327).lineTo(-0.386, 0.327).lineTo(-0.386, 0.102).lineTo(0.622, 0.102).lineTo(0.622, 1).lineTo(-0.622, 1).close().revolve(angleDegrees=360, axisStart=(0, 0), axisEnd=(... | 1 | 6 | 3.795916 |
train_9eadb31313cf03a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.628, 0.873, 0.316), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.624, 0.068).threePointArc((0.366, -0.004), (0.107, 0.068)).lineTo(0.074, 0.651).lineTo(0.049, 1.733).lineTo(0.049, 1.783).lineTo(0.016, 1.783).lineTo(-0.017, 1.783).lineTo(-0.017, ... | 4 | 27 | 1.046029 |
train_5c821707b2c6be51 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.535, 1.256, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.068, 0.245).lineTo(0.272, 1.197).lineTo(0.292, 1.29).lineTo(0.447, 2.014).lineTo(0.476, 2.15).lineTo(-0.068, 2.266).lineTo(-0.297, 1.197).lineTo(-0.476, 0.361).lineTo(-0.101, 0.281).li... | 10 | 86 | 1.208508 |
train_638497277106c317 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.486, -0.067, -0.308), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.881, 0.813).extrude(0.491)
result = result.union(cq.Workplane(cq.Plane(origin=(0.05, -0.022, -0.205), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.213, 0.74).extrude(0.286))
result = ... | 26 | 133 | 0.888012 |
train_53d08c24c01382f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, -0.309, 0.5), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.145).lineTo(-0.5, -0.042).lineTo(0.312, -0.042).lineTo(0.312, 0.317).threePointArc((0.358, 0.428), (0.469, 0.473)).lineTo(0.5, 0.473).lineTo(0.5, 0.661).lineTo(0.469, 0.661).thr... | 10 | 42 | 0.440242 |
train_b21919b8d36070f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.083, -0.729), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.463, 1.834).extrude(1.459)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.197, 0.67), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.171, 0.14).extrude(0.06))
result = result.union(cq... | 11 | 160 | 3.875524 |
train_6677d424d5f00ac6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.157, -0.304, -0.488), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.659, 1.393).extrude(0.853)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.507 + 0.332, -0.219 + 0.1135, -1.393), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(-0.058, -0.022).line... | 18 | 51 | 1.975422 |
train_87b65458967377d7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.414, 0.401), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.732, -0.586).lineTo(-0.687, 0).lineTo(-0.642, 0.586).lineTo(0.642, 0.586).lineTo(0.687, 0).lineTo(0.732, -0.586).lineTo(-0.732, -0.586).close().extrude(0.803)
result = result.edges().... | 18 | 90 | 1.173365 |
train_e4634e6cfb2633ed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.409, 0.433, -0.049), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.488, 0.488).lineTo(-0.488, 0.851).lineTo(-0.488, -0.125).lineTo(0.488, -0.125).lineTo(0.488, 0.488).close().extrude(0.872)
result = result.edges().fillet(0.126)
result = result.fa... | 21 | 107 | 0.71598 |
train_91a22bce100e442b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.304, 0.219, 0.208), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.108, 0.007).threePointArc((0.102, 0.196), (0.331, 0.362)).lineTo(0.159, 0.627).threePointArc((-0.096, 0.441), (-0.331, 0.23)).lineTo(-0.108, 0.007).close().revolve(angleDegrees=36... | 21 | 173 | 0.833923 |
train_2a63026e30d493df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.201, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.193, 0.916).extrude(0.962)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.201, 0, -0.571), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.058).extrude(0.546))
result = result.union(cq.Wo... | 26 | 75 | 0.795321 |
train_960b4d2ed33a3416 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.32, -0.167, -0.406), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.785).lineTo(0.173, -0.3).lineTo(0.68, -0.393).lineTo(0.346, 0).lineTo(0.68, 0.393).lineTo(0.173, 0.3).lineTo(0, 0.785).lineTo(-0.173, 0.3).lineTo(-0.68, 0.393).lineTo(-0.346, 0... | 16 | 140 | 1.201504 |
train_8cc252ac2e3fc9a2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.105, -0.034, 0.009), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.596, 0.469).extrude(0.519)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.063, -0.034, 0.071), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.273, 0.064).extrude(0.395))
result = re... | 34 | 125 | 1.148006 |
train_60a6d8c461a8e417 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.114, -0.468), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.276, 1.187).extrude(0.936)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.124, 0.843, 0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.157).extrude(0.322))
result = result.uni... | 12 | 38 | 1.200621 |
train_fb60381bd45a4cc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.706, -0.775, -0.208), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.712, 1.058).lineTo(0.712, 0.702).threePointArc((0.609, 0.45), (0.356, 0.346)).lineTo(-0.356, 0.346).threePointArc((-0.609, 0.45), (-0.712, 0.702)).lineTo(-0.712, 1.058).lineTo(0.... | 12 | 71 | 0.84887 |
train_b3ece28e3d3bd1df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.08, -0.07), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.162, -0.182).lineTo(0.109, -0.182).threePointArc((0.124, -0.143), (0.162, -0.127)).lineTo(0.162, 0.089).threePointArc((0.2, 0.182), (0.109, 0.143)).lineTo(-0.109, 0.143).threePointAr... | 4 | 27 | 0.216093 |
train_f59ad1579e9074db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.182, 0.204, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.818, -0.01).lineTo(0.425, 0.715).lineTo(-0.425, 0.712).lineTo(-0.798, -0.022).lineTo(-0.406, -0.68).lineTo(0.384, -0.692).close().moveTo(-0.054, 0.001).lineTo(-0.198, 0.193).lineTo... | 10 | 117 | 0.679118 |
train_99d6f69abf17b4bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.57), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.333).extrude(1.14)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.015, -0.093, -0.303), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.349, 1.6).extrude(0.256))
result = result.faces('<X'... | 5 | 29 | 1.066883 |
train_d553d3a930b4bdbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.189, 0.162, 0.807), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.811, 0.518).lineTo(-0.811, -0.518).lineTo(0.811, -0.518).lineTo(0.811, 0.518).lineTo(-0.811, 0.518).close().revolve(angleDegrees=90, axisStart=(-0.811, 0.518), axisEnd=(-0.811, -... | 11 | 337 | 2.144661 |
train_634ceee6202e0cf9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.529, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.653, -0.104).lineTo(-0.653, 0.039).lineTo(-0.8, 0.039).lineTo(-0.8, 1.163).lineTo(0.8, 1.163).lineTo(0.8, -0.104).lineTo(-0.653, -0.104).close().extrude(1.798)
result = result.cut(cq.Wor... | 12 | 10 | 3.6104 |
train_df5640ae601afe76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.029, 0.01), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.058, 0.026).lineTo(-0.058, -0.026).lineTo(0.058, -0.026).lineTo(0.058, 0.026).lineTo(-0.058, 0.026).close().workplane(offset=0.008).moveTo(-0.148, 0.066).lineTo(-0.148, -0.066).lineTo(... | 5 | 40 | 0.00826 |
train_64e3d55204fa6640 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.673, 1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.19, -0.287).lineTo(-0.095, -0.097).lineTo(-0.19, -0.097).lineTo(-0.095, 0.094).lineTo(-0.19, 0.094).lineTo(-0.095, 0.287).lineTo(0.095, 0.287).lineTo(0.19, 0.094).lineTo(0, 0.094).lineTo(0... | 2 | 22 | 0.022469 |
train_7519f6f8061dfb67 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.55), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 1).lineTo(0, 0).lineTo(0.149, 0).lineTo(0.149, 0.627).lineTo(0.556, 0.627).lineTo(0.556, 0).lineTo(0.855, 0).lineTo(0.855, -1).lineTo(-0.855, -1).lineTo(-0.855, 1).lineTo(0, 1).close().ext... | 11 | 65 | 2.65352 |
train_22fd8884a1927eaa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.881), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1, -1).lineTo(0.667, -1).threePointArc((0.764, -0.764), (1, -0.667)).lineTo(1, 0.667).threePointArc((0.764, 0.764), (0.667, 1)).lineTo(-0.667, 1).lineTo(-1, 1).lineTo(-1, 0.667).lineTo(-1, ... | 9 | 34 | 4.690497 |
train_d442deb1ce10d9ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.022, 0.73, 0.076), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.051, -0.073).lineTo(0.051, -0.073).lineTo(0.051, -0.059).lineTo(0.064, -0.059).lineTo(0.064, 0.073).lineTo(-0.064, 0.073).lineTo(-0.064, -0.073).lineTo(-0.051, -0.073).close().swe... | 17 | 204 | 0.029336 |
train_5e24041d20a54b12 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.537), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.665, 2).extrude(1.232)
result = result.union(cq.Workplane(cq.Plane(origin=(0.083, 0.1, 0.689), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.498, 1.8).extrude(0.101))
result = result.union(cq.Wo... | 12 | 71 | 3.30257 |
train_d60a302f4e00bc90 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.06, -0.005, -0.267), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.231, 0.034).lineTo(0.234, 0.034).lineTo(0.234, -0.034).lineTo(-0.234, -0.034).lineTo(-0.234, -0.011).lineTo(-0.231, -0.011).lineTo(-0.231, 0.034).close().sweep(cq.Workplane('XZ')... | 38 | 586 | 0.056908 |
train_83ced97eaacb83cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.445, 0.206, 0.247), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.394, 0.462).threePointArc((0.367, 0.235), (0.313, 0.013)).lineTo(-0.394, 0.013).lineTo(-0.394, 0.462).lineTo(0.394, 0.462).close().extrude(0.632)
result = result.edges().chamfer(0.... | 11 | 68 | 0.439582 |
train_0d25b0ca7e777dc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.128, -0.214, -0.45), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1.003).transformed(offset=(-0.111, 0.265, 0.38), rotate=(0, 20, 0)).circle(0.841).transformed(offset=(-0.32, 0.172, 0.242), rotate=(0, 0, 0)).circle(1.15).loft()
result = result.edge... | 9 | 33 | 1.127029 |
train_65753ef40ac502fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.739), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.484, 1.695).extrude(1.4)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.018, 0.235, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.191).extrude(0.275))
result = result.union(cq.Wor... | 14 | 64 | 2.336237 |
train_6f6e4ebbee217d0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.17, -0.255, 0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.782, -0.745).lineTo(0.738, -0.711).lineTo(0.737, 0.729).lineTo(-0.778, 0.709).close().moveTo(-0.125, 0.203).lineTo(-0.187, 0.284).lineTo(-0.283, 0.255).lineTo(-0.283, 0.152).lineT... | 21 | 291 | 0.245016 |
train_58c42ce2f8e49951 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.498, -0.925), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.899, 1.104).lineTo(0.899, 1.104).lineTo(0.899, -0.108).lineTo(-0.899, -0.108).lineTo(-0.899, 1.104).close().extrude(1.857)
result = result.edges().chamfer(0.199)
result = result.cut(... | 22 | 213 | 3.475804 |
train_c04523f2fec78352 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.043, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.119, 1.433).extrude(1.381)
result = result.faces('>Z').shell(-0.104)
result = result.union(cq.Workplane(cq.Plane(origin=(0.754, 0.226, -0.862), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.359,... | 14 | 169 | 1.152315 |
train_ffdb2885ea25b703 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.734, 0.158, -0.031), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.228).sweep(cq.Workplane('XZ').spline([(0.297, -0.141), (0.16, -0.233), (0.209, -0.423), (0.419, -0.474), (0.581, -0.334), (0.499, -0.139)]))
result = result.union(cq.Workplane(cq.P... | 19 | 112 | 0.381982 |
train_227df8c76e7a964d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.547).extrude(0.525)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.077, 0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.8, 1.392).extrude(0.058))
result = result.union(cq.Wo... | 18 | 81 | 1.387877 |
train_96377bdd1d367610 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.367, 0, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.053, -0.474).threePointArc((0.382, 0), (0.053, 0.474)).lineTo(0.053, 0.186).threePointArc((-0.382, 0), (0.053, -0.186)).lineTo(0.053, -0.474).close().sweep(cq.Workplane('XZ').spline([(0.367... | 2 | 23 | 0.082247 |
train_8145af84e9d225e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.216, -0.241, 0.345), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-1.187, -1.241).lineTo(1.187, 1.241).lineTo(1.187, -1.241).lineTo(-1.187, -1.241).close().extrude(0.69)
result = result.edges().fillet(0.322)
result = result.cut(cq.Workplane(cq.Pl... | 17 | 32 | 1.533966 |
train_fd3ffb6cf902a18b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.247, -0.065), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.698, 1.505).extrude(0.508)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0.247, 0.443), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.422, 0.004).lineTo(0.195, 0.351).lineTo(-0.20... | 14 | 289 | 2.16766 |
train_be84a01b793bfded | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.705, -0.153), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.728, 0.968).threePointArc((-0.385, 1.454), (0.18, 1.636)).threePointArc((0.728, -0.064), (-0.728, 0.968)).close().workplane(offset=0.91).moveTo(-0.578, 0.931).threePointArc((-0.306,... | 10 | 36 | 2.664054 |
train_afdfadaa5d6a602c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.784, 0.582).extrude(0.921)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, -0.153), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.193, 0.146).extrude(1.153))
result = result.cut(cq.Workpla... | 9 | 84 | 0.343455 |
train_71508e608641f028 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.196, -0.451, 0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.38, 2.073).threePointArc((-0.797, 1.64), (-0.889, 1.045)).lineTo(-0.689, 1.082).threePointArc((-0.535, 0.715), (-0.223, 0.467)).lineTo(-0.318, 0.287).threePointArc((0.1, 0.196), ... | 14 | 112 | 1.714164 |
train_b76a8a09c6f9baf0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.122, -0.634, -0.631), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.781, 1.155).lineTo(0.781, 0.211).threePointArc((0.85, 0.044), (0.683, 0.114)).lineTo(-0.683, 0.114).threePointArc((-0.85, 0.044), (-0.781, 0.211)).lineTo(-0.781, 1.057).threePoint... | 3 | 50 | 2.261126 |
train_178c493ba69fc0d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.849, 0, 0.07), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.236).sweep(cq.Workplane('XZ').spline([(-0.849, 0.07), (-0.249, 0.07), (-0.105, -0.06), (0.039, -0.19)]))
result = result.edges().chamfer(0.114)
result = result.faces('<Y').shell(-0.028... | 21 | 83 | 0.10091 |
train_c2d44caa48e1683a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.537), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.736).extrude(1.331)
result = result.faces('>Z').shell(-0.119)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.441, 0.466, -0.794), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.097).... | 21 | 52 | 1.359622 |
train_a44480f80983250b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.107), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.537, 0.002).lineTo(-0.824, 0.002).lineTo(-0.824, -0.082).lineTo(-0.681, -0.225).lineTo(-0.537, -0.082).lineTo(0.824, -0.082).lineTo(0.824, 0.225).threePointArc((0.708, 0.144), (0.706, 0.0... | 2 | 12 | 0.048223 |
train_83e4ca34a5179958 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.996, 0.98, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.521, 1.881).lineTo(-1.04, 0.98).lineTo(-0.521, 0.079).lineTo(0, 0.079).threePointArc((0.451, 0.2), (0.78, 0.529)).lineTo(1.04, 0.98).lineTo(0.78, 1.431).threePointArc((0.451, 1.76), (0... | 4 | 43 | 5.004387 |
train_df2393e0a84870f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.104, -0.005, -0.234), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.766, 0.011).lineTo(-0.766, 0.245).lineTo(0.766, 0.245).lineTo(0.766, 0.011).lineTo(-0.766, 0.011).close().extrude(0.278)
result = result.edges().fillet(0.031)
result = result.cu... | 19 | 137 | 0.130685 |
train_895ccb0081a9f497 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.047, -0.203, -0.57), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.905, 1.044).extrude(1.08)
result = result.union(cq.Workplane(cq.Plane(origin=(0.392, 0.51, -0.253), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.324, 0.431).extrude(0.526))
result = res... | 17 | 31 | 2.02263 |
train_7a1b10fe9b35f123 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.682, 0, 0.215), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.318, 0.553).lineTo(0.318, 0.553).lineTo(0.318, 0.464).lineTo(0.021, 0.464).lineTo(0.021, -0.376).lineTo(0.113, -0.376).lineTo(0.113, -0.553).lineTo(-0.318, -0.553).lineTo(-0.318, 0.5... | 2 | 12 | 0.111722 |
train_8e0409376a859947 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.004, -0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.795, 1.04).lineTo(-0.904, 0.387).lineTo(-0.795, 0.104).lineTo(0.904, 0.758).lineTo(0.795, 1.04).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.267, 0))
result = result.... | 5 | 40 | 1.354583 |
train_753033b4ea29f580 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.338, -0.536), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.171).lineTo(-1, 0.021).lineTo(1, 0.021).lineTo(1, 0.171).lineTo(0.606, 0.171).threePointArc((-0.065, 0.231), (-0.736, 0.171)).lineTo(-1, 0.171).close().extrude(0.644)
result = res... | 10 | 149 | 0.298136 |
train_898d571a07423c0a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.799, -0.551, 0.425), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.142, 0.892).threePointArc((0.4, 0.486), (0.69, 0.102)).threePointArc((-0.69, 0.411), (-0.267, 1.762)).threePointArc((-0.081, 1.318), (0.142, 0.892)).close().extrude(1.28)
result =... | 4 | 29 | 1.938268 |
train_0685b4b9585766ff | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.093, -0.035, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.814, 0.922).extrude(0.371)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.742, 0.269, -0.197), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.045).extrude(0.445))
result = result.... | 14 | 59 | 0.561959 |
train_78e1f6637086f0ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.056, 0.023, -0.332), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.888, 1.427).extrude(0.67)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.388, -0.645, -0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.191, 0.097).extrude(0.088))
result = r... | 12 | 82 | 1.859388 |
train_45d40520ae9fd756 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.012, -0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.849, -0.988).lineTo(0.887, -0.956).lineTo(0.879, 1.012).lineTo(-0.885, 0.966).close().center(-0.244, 0.275).rect(0.276, 0.294).center(0.488, 0).circle(0.107).center(-0.488, -0.5... | 11 | 58 | 0.852534 |
train_0fd516c97951544a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.386, 1, 0.004), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.482, 0.967).threePointArc((-0.422, 1.037), (-0.33, 1.055)).lineTo(0.799, 0.911).threePointArc((0.923, 0.796), (0.852, 0.641)).lineTo(-0.716, -0.264).threePointArc((-0.885, -0.247), (-... | 4 | 27 | 2.390949 |
train_a28af59af9ca68b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.432, 0.574, -0.001), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.747, -0.259).lineTo(0.747, -0.259).threePointArc((0.216, 0.755), (-0.747, 1.376)).lineTo(-0.747, -0.259).close().extrude(1.147)
result = result.edges().fillet(0.402)
result = res... | 4 | 28 | 1.478014 |
train_db6f9acd09750bb9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.165, -0.444, 0.054), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.916, 0.916).extrude(0.946)
result = result.faces('>Z').shell(-0.103)
result = result.union(cq.Workplane(cq.Plane(origin=(0.196, -0.342, -0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).ci... | 8 | 79 | 0.961202 |
train_59bfb96dc0e5a919 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.051, 0.013, 1.077), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.421, 0.243).lineTo(-0.421, -0.243).lineTo(0, -0.487).lineTo(0.167, -0.39).lineTo(0.22, -0.36).lineTo(0.421, -0.243).lineTo(0.421, 0.243).lineTo(0.254, 0.34).lineTo(0.167, 0.39).l... | 26 | 69 | 0.245729 |
train_8cd9f63f7d15786b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.122, -0.366, -0.142), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.623, 1.269).extrude(0.307)
result = result.union(cq.Workplane(cq.Plane(origin=(0.122, 0.376, -0.089), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.356, 0.237).extrude(0.201))
result = ... | 24 | 128 | 0.8194 |
train_da3b86db31cff53c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.078, 0.07, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.035, 1.174).extrude(1.387)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.27, 0.152, -0.275), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.082).extrude(0.523))
result = result.cut(cq.... | 16 | 93 | 1.48018 |
train_d341b981350d3171 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.349, -0.151, 0.641), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.206, 0.215).lineTo(0.206, 0.018).lineTo(0.045, 0.018).lineTo(0.045, -0.19).lineTo(0.071, -0.215).lineTo(-0.017, -0.215).lineTo(0.009, -0.19).lineTo(0.009, 0.018).lineTo(-0.206, 0.0... | 12 | 188 | 0.612885 |
train_64830ed7d09bbdc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.503, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.949, 1.232).lineTo(-0.949, -0.226).lineTo(-0.373, -0.226).lineTo(-0.373, 1.096).lineTo(0.949, 1.096).lineTo(0.949, 1.232).lineTo(-0.949, 1.232).close().extrude(2)
result = result.edges().... | 9 | 123 | 1.98629 |
train_b7fccd20bd04587a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.247, 0.135, -0.391), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.018, 1.73).extrude(0.921)
result = result.union(cq.Workplane(cq.Plane(origin=(0.157, 0.479, -0.8), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.099).extrude(0.436))
result = result.un... | 15 | 113 | 1.263447 |
train_7dea1afa84d33d79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.486, -0.07, 0.013), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.6, 0.788).lineTo(0.6, -1.065).lineTo(0.085, 1.082).lineTo(-0.6, 0.788).close().extrude(0.972)
result = result.edges().fillet(0.03)
result = result.cut(cq.Workplane(cq.Plane(origin... | 7 | 57 | 0.41222 |
train_b90c618d0ea72097 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.012, -0.247), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.742).extrude(0.652)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.615, -0.342, 0.209), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.018).extrude(0.131))
result = result.cut(cq.Wo... | 12 | 48 | 1.050757 |
train_40de7aa66b630bc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.003, -0.002, -0.086), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.997, 0.026).lineTo(0.526, 0.869).lineTo(-0.499, 0.896).lineTo(-1.003, -0.021).lineTo(-0.486, -0.873).lineTo(0.484, -0.893).close().moveTo(0.231, 0).lineTo(0.114, 0.196).lineTo(-0.... | 12 | 97 | 0.35943 |
train_b812568ca0701676 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.028, -1, 0.302), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.018, -0.634).lineTo(-0.018, -0.365).lineTo(-0.385, -0.365).lineTo(-0.385, -0.211).lineTo(-0.018, -0.211).lineTo(-0.018, 0.481).lineTo(-0.385, 0.481).lineTo(-0.385, 0.634).lineTo(0.3... | 2 | 22 | 0.34263 |
train_67d2def9eb5f822f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.444, -0.711, -0.164), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.374, 1.343).lineTo(-0.374, 1.343).lineTo(-0.749, 0.694).lineTo(0, 0.694).lineTo(0.374, 0.045).lineTo(0.749, 0.694).lineTo(0.374, 1.343).close().extrude(1.444)
result = result.edg... | 9 | 71 | 1.363789 |
train_6188b5f2596bcb98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.408, 0.135, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.567, -0.429).lineTo(0.572, -0.432).lineTo(0.578, 0.42).lineTo(-0.592, 0.443).close().moveTo(-0.104, 0).lineTo(-0.161, 0.077).lineTo(-0.253, 0.048).lineTo(-0.253, -0.048).lineTo(-... | 16 | 132 | 0.272003 |
train_0bd6da14ee5c85d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.048, 0.128).lineTo(0.002, 0.414).lineTo(-0.082, 0.499).lineTo(-0.2, 0.475).lineTo(-0.233, 0.564).lineTo(-0.327, 0.564).lineTo(-0.28, 0.634).lineTo(-0.379, 0.701).lineTo(-0.258, 0.701).threePo... | 1 | 25 | 0.776284 |
train_9d02148ad6ed9687 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.749, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.827, 1.511).lineTo(0.827, -0.014).lineTo(0.314, -0.014).threePointArc((0, 0.222), (-0.314, -0.014)).lineTo(-0.445, -0.014).lineTo(-0.827, -0.014).lineTo(-0.827, 1.511).lineTo(0.827, 1.511... | 4 | 44 | 4.360397 |
train_9a2220251e4e35b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.158, -0.015, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.136, -0.993).threePointArc((0, -0.981), (-0.136, -0.993)).lineTo(-0.136, 0.148).threePointArc((0, 1.015), (0.136, 0.148)).lineTo(0.136, -0.993).close().extrude(0.232)
result = result.... | 3 | 30 | 0.210635 |
train_6a3fd81abe25f6a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.252, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.087, 0).lineTo(0.082, -0.008).lineTo(0.078, 0).lineTo(0.029, 0.081).lineTo(-0.02, 0).lineTo(-0.024, -0.008).lineTo(-0.073, -0.088).lineTo(0.024, -0.088).lineTo(0.029, -0.096).lineTo(-0.0... | 6 | 52 | 0.013906 |
train_63d9760c51e1d9ea | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.595, -0.366, 0.009), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.302, 1.366).lineTo(-0.669, 1.366).lineTo(-0.669, -0.164).lineTo(0.669, -0.164).lineTo(0.554, 0.318).lineTo(0.486, 0.601).lineTo(0.417, 0.886).lineTo(0.302, 1.366).close().extrude(... | 13 | 159 | 1.591907 |
train_1e2bbf8d56bbc0af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.049, -0.23, -0.581), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.894, 1.539).extrude(1.161)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.051, -0.674, -0.368), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.258).extrude(0.579))
result = result... | 15 | 123 | 1.323418 |
train_042c1b06bdc199ae | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.03), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.514, 2).extrude(0.081)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.606 + 0.0755, 0, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.009, 0.022).lineTo(0.009, -0.002).lineTo(0.0... | 21 | 145 | 0.187862 |
train_9448421a84000fa6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.584, -0.321), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.631).lineTo(-0.787, 0.631).lineTo(-0.787, 0.333).lineTo(1, 0.333).lineTo(1, 0.035).lineTo(-0.468, 0.035).threePointArc((-0.574, 0.142), (-0.681, 0.035)).lineTo(-1, 0.035).lineTo(-... | 12 | 126 | 0.697007 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.