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_8e34cf56072a57f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.339, -0.596, -0.155), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.322, 0.371).extrude(0.218)
result = result.union(cq.Workplane(cq.Plane(origin=(0.553, -0.458, -0.082), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.067, 0.447).lineTo(0.003, 0.447).... | 7 | 61 | 0.32066 |
train_55bb755bbd6ff69e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.079, 0.752, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.886, 0.584).threePointArc((-0.956, 0.613), (-0.927, 0.543)).lineTo(-0.927, -0.386).threePointArc((-0.956, -0.456), (-0.886, -0.427)).lineTo(0.886, -0.427).threePointArc((0.956, -0.456... | 8 | 20 | 2.605417 |
train_046c8e486de4d051 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.672, 1, 0.003), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.182).sweep(cq.Workplane('XY').spline([(0.672, 0.065), (0.939, 0.083), (1.207, 0.236), (1.474, 0.638), (1.742, 0.791), (2.01, 0.809)]))
result = result.edges().chamfer(0.177)
result = re... | 8 | 26 | 0.016158 |
train_6aa2acf1ca69d569 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.399, 0.779).threePointArc((-0.385, 0.756), (-0.389, 0.73)).threePointArc((-0.408, 0.388), (-0.161, 0.151)).threePointArc((-0.117, 0.124), (-0.09, 0.081)).threePointArc((0.408, 0.698), (-0... | 6 | 23 | 1.741419 |
train_1127f7b60fd704ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.09), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.109, -0.095).lineTo(-0.109, -0.062).lineTo(0.012, 0.089).threePointArc((0.026, 0.095), (0.038, 0.086)).lineTo(0.109, -0.095).close().sweep(cq.Workplane('XZ').spline([(-0.079, -0.217), (0.... | 3 | 14 | 0.037582 |
train_dd90b4490fbac276 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.104, 1.779).extrude(1.085)
result = result.cut(cq.Workplane(cq.Plane(origin=(0 + 0.238 * math.cos(3.271 + 2 * math.pi * 0 / 4), 0.543 + 0.238 * math.sin(3.271 + 2 * math.pi * 0 / 4), -0.802)... | 6 | 6 | 3.928032 |
train_4b105ff8a3628467 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.848, -0.595, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 1.104).lineTo(-1, 0.087).lineTo(1, 0.087).lineTo(1, 1.104).lineTo(-1, 1.104).close().workplane(offset=0.43).moveTo(-0.899, 1.052).lineTo(-0.899, 0.138).lineTo(0.899, 0.138).lineTo(0... | 2 | 11 | 2.141782 |
train_7a4208eb9e57320e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.287, -0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.399).extrude(1.002)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.456, 0.385, -0.105), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.344).extrude(0.194))
result = result.edges().... | 19 | 181 | 1.915488 |
train_55153492381f73e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.392), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.182, 2).extrude(0.784)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.129, 0.258, 0.047), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.687, 1.085).extrude(0.354))
result = result.edges().... | 4 | 203 | 1.591771 |
train_22c3d196caba3994 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.862, 0.247), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.157, -0.157).lineTo(-0.078, -0.157).lineTo(-0.078, 0.092).lineTo(-0.157, 0.092).lineTo(-0.157, 0.157).lineTo(0.157, 0.157).lineTo(0.157, -0.157).close().sweep(cq.Workplane('YZ').splin... | 1 | 8 | 0.14221 |
train_2a0d9f83f2385797 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.48, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.403, 0.115).lineTo(0.475, 0.115).lineTo(0.475, 0.042).lineTo(-0.329, 0.042).lineTo(-0.329, 0.81).lineTo(-0.475, 0.81).lineTo(-0.475, 0.919).lineTo(0.403, 0.919).lineTo(0.403, 0.115).close()... | 2 | 15 | 0.870058 |
train_0c8606476d8582c4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.337, -0.16, -0.252), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.325, 1.532).extrude(0.063)
result = result.union(cq.Workplane(cq.Plane(origin=(0.09, 0.086, -0.19), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.282).extrude(0.022))
result = result.u... | 11 | 86 | 0.741737 |
train_5fda9db8ff97adf5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.375, 0.529, -0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.827, 0.942).extrude(0.122)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.375, 0.529, -0.137), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.256).extrude(0.026))
result = resu... | 12 | 73 | 0.446826 |
train_88f897b52624d01a | 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(-1.069, 1.139).lineTo(1.069, 1.139).lineTo(0.944, 0.716).lineTo(0.523, -0.716).lineTo(0.399, -1.139).lineTo(-0.399, -1.139).lineTo(-0.523, -0.716).lineTo(-0.944, 0.716).lineTo(-1.069, 1.139)... | 15 | 115 | 1.477777 |
train_8d72d1acd2090800 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.133, 0.612, 0.103), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.26).sweep(cq.Workplane('YZ').spline([(0.147, -0.381), (0.001, -0.316), (-0.159, -0.33), (-0.292, -0.419)]))
result = result.edges().chamfer(0.044)
result = result.cut(cq.Workplane(... | 12 | 56 | 0.279291 |
train_d38d3ad5040893ab | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.118, 0, 0.288), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.536, -0.025).lineTo(-0.247, 0.477).lineTo(0.066, 0.296).lineTo(0.536, 0.025).lineTo(0.247, -0.477).lineTo(-0.223, -0.205).lineTo(-0.536, -0.025).close().extrude(0.569)
result = result... | 3 | 14 | 0.380446 |
train_b7ad03c3210abf55 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.539, 1.087, 0.002), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.05, 2.086).threePointArc((-1, 1.087), (0.05, 0.088)).threePointArc((1, 1.087), (0.05, 2.086)).close().extrude(1.078)
result = result.edges().fillet(0.302)
result = result.cut(cq.Wo... | 5 | 20 | 2.908001 |
train_a5d996633ded641c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.701, -0.499, -0.01), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.864, 1.208).lineTo(-0.007, 1.702).lineTo(-0.87, 1.195).lineTo(-0.864, 0.195).lineTo(0.007, -0.299).lineTo(0.87, 0.207).lineTo(0.864, 1.208).close().extrude(1.499)
result = result.... | 9 | 72 | 1.648334 |
train_7b48538b7b78648a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.202, 0.119, -0.005), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.278).workplane(offset=0.247).circle(0.269).workplane(offset=0.181).circle(0.294).loft()
result = result.edges().chamfer(0.147)
result = result.union(cq.Workplane(cq.Plane(origin=... | 18 | 91 | 0.119886 |
train_3b719fc1307bc3e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.319, 0.212, 0.251), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.092, 0.606).lineTo(0.092, 0.738).lineTo(0.67, 0.738).lineTo(0.67, -0.497).lineTo(0.26, -0.497).lineTo(0.749, -0.497).lineTo(0.749, 0.921).lineTo(-0.749, 0.921).lineTo(-0.749, 0.16)... | 4 | 48 | 0.286113 |
train_b5afeee40073803b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.837, 0.37, 0.13), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.87, 0.612).lineTo(-0.58, 0.227).lineTo(-0.29, -0.158).lineTo(-0.29, 0.073).lineTo(-0.406, 0.227).lineTo(0.406, 0.227).lineTo(0.58, 0.458).lineTo(-0.58, 0.458).lineTo(-0.628, 0.523).... | 3 | 19 | 1.214972 |
train_d9dabe1bb3de20b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.371, -0.32, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.43, 1.336).lineTo(0.062, 0.632).lineTo(0.305, 0.685).lineTo(-0.092, 0.09).lineTo(-0.231, -0.001).lineTo(0.04, 0.042).lineTo(0.206, 0.158).lineTo(-0.43, -0.697).lineTo(-0.118, -0.07).li... | 3 | 79 | 0.252694 |
train_0391ffc76dd85056 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.281, -0.297), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.841, 1.438).extrude(0.594)
result = result.union(cq.Workplane(cq.Plane(origin=(0.004, 0.71, -0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.29).extrude(0.295))
result = result.cut(... | 11 | 53 | 1.223705 |
train_8a4595c0c1509706 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.303, -0.02, 0.987), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.358, 0.316).threePointArc((-0.343, 0.343), (-0.316, 0.358)).threePointArc((0, 0.401), (0.316, 0.358)).threePointArc((0.343, 0.343), (0.358, 0.316)).threePointArc((0.401, 0), (0.35... | 3 | 75 | 0.429632 |
train_8179f5a299fb49a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.78, -0.03), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.199, 0.866).lineTo(0.057, 0.866).lineTo(-0.199, -0.048).lineTo(0.199, -0.048).lineTo(0.199, 0.866).close().revolve(angleDegrees=360, axisStart=(0.199, 0.866), axisEnd=(0.057, 0.866))
res... | 5 | 32 | 0.746939 |
train_6a883fae0e6cc358 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.701, 0.645, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.814, 0.473).lineTo(-0.765, 0.473).threePointArc((-0.743, 0.463), (-0.733, 0.44)).lineTo(-0.733, 0.392).lineTo(-0.521, 0.392).lineTo(-0.521, 0.782).lineTo(-0.254, 0.782).lineTo(0.084, ... | 5 | 59 | 0.97232 |
train_b73722b89c21dd9f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.255, 0.081), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.009, 0.647).extrude(0.474)
result = result.faces('>X').shell(-0.052)
result = result.union(cq.Workplane(cq.Plane(origin=(0.14, 0.68, 0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.359,... | 16 | 158 | 0.376049 |
train_e256a2a5adc2ac86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.303, 0.254, -0.184), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.322, -0.01).lineTo(0.327, 0.365).lineTo(0.005, 0.557).lineTo(-0.322, 0.373).lineTo(-0.327, -0.002).lineTo(-0.005, -0.193).lineTo(0.322, -0.01).close().workplane(offset=0.158).mov... | 3 | 19 | 0.150555 |
train_b4c03fe4633de4b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.467, -0.004, -0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.533, -0.346).lineTo(0.537, -0.353).lineTo(0.53, 0.34).lineTo(-0.525, 0.358).close().moveTo(-0.148, 0.047).lineTo(-0.135, 0.075).lineTo(-0.104, 0.072).lineTo(-0.122, 0.098).lineT... | 26 | 267 | 0.186842 |
train_072c0c21399251cb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, 0.024, -0.321), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.975, 0.025).lineTo(0.68, 0.712).lineTo(0.041, 0.975).lineTo(-0.664, 0.715).lineTo(-1.025, 0.012).lineTo(-0.749, -0.692).lineTo(-0.011, -1.024).lineTo(0.696, -0.712).close().moveTo(... | 16 | 158 | 1.204665 |
train_e5617bf82f58db6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.364, -0.062).lineTo(-0.364, 0.086).lineTo(-0.146, 0.086).threePointArc((-0.019, 0.02), (0.108, 0.086)).lineTo(0.364, 0.086).lineTo(0.364, -0.062).lineTo(-0.364, -0.062).close().extrude(0.978)... | 11 | 93 | 0.310562 |
train_2be5a0f4583ac29e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, 0.16, -0.037), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.27, 1.304).extrude(0.066)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.214, 0.549, 0.028), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.081, 0.127).extrude(0.01))
result = resu... | 15 | 33 | 0.113195 |
train_4292d061253582bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.84, -0.294), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.118, 0.092).threePointArc((-0.146, 0), (-0.118, -0.092)).threePointArc((0.014, -0.16), (0.146, -0.092)).lineTo(0.146, 0.092).threePointArc((0.014, 0.16), (-0.118, 0.092)).close().swe... | 13 | 89 | 0.110025 |
train_98bd618540021ce8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.605, -0.308, -0.234), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.79, 0.54).extrude(0.498)
result = result.union(cq.Workplane(cq.Plane(origin=(0.455, -0.013, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.029).extrude(0.028))
result = result... | 9 | 42 | 0.167426 |
train_3c0c4f638445c859 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.084, -0.443), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.885, 0.885).extrude(0.885)
result = result.union(cq.Workplane(cq.Plane(origin=(0.603, 0.024, 0.123), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.367, 0.188).extrude(0.185))
result = result... | 22 | 42 | 0.538736 |
train_aa26f606cd4253a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, 0.001, 0.754), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.152).workplane(offset=0.693).circle(0.178).workplane(offset=0.523).circle(0.156).workplane(offset=0.538).circle(0.139).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(0.00... | 26 | 230 | 0.110509 |
train_373a438f80031e13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.589, -0.086, -0.125), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.569, 0.706).extrude(0.067)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.589, -0.086, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.203).extrude(0.014))
result = re... | 21 | 137 | 0.086439 |
train_fd42dc607dfc0859 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.522, -0.912), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.988, 0.168).lineTo(-0.988, 0.467).lineTo(0.142, 0.467).lineTo(0.706, 1.443).lineTo(0.742, 1.506).lineTo(0.81, 1.519).lineTo(0.808, 1.522).threePointArc((0.811, 1.521), (0.813, 1.519)... | 7 | 36 | 1.045322 |
train_ceaae3e9e4781de3 | 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.24, 1.158).extrude(1.423)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.028, -0.13, 0.389), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.304, 0.666).extrude(0.611))
result = result.cut(cq.... | 3 | 15 | 1.984746 |
train_62a0c7322edafadc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.043, 0, 0.556), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.625, 0.872).lineTo(-0.227, 0.278).lineTo(-0.625, 0).lineTo(-0.227, -0.278).lineTo(0.625, -0.872).lineTo(0.625, -0.317).lineTo(0.171, 0).lineTo(0.625, 0.317).lineTo(0.625, 0.872).close... | 7 | 63 | 1.102957 |
train_105d0e0105f3ca22 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.5, 0.086, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.5, 0.79).threePointArc((-0.048, 0.462), (-0.376, -0.086)).lineTo(-0.5, -0.086).lineTo(-0.5, 0.915).lineTo(0.5, 0.915).lineTo(0.5, 0.79).close().revolve(angleDegrees=180, axisStart=(-0.3... | 22 | 51 | 0.782009 |
train_59b700e876b5f5fd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.133, -0.169), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 0.617).extrude(0.519)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.341, -0.064, -0.35), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.094).extrude(0.197))
result = result.union... | 5 | 19 | 0.673872 |
train_6bef6afc72a34eef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.047, -0.043, -0.087), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.122, 0.005).lineTo(-0.122, 0.002).lineTo(0.101, 0.002).threePointArc((0.122, 0.023), (0.101, 0.044)).threePointArc((0.101, 0.044), (0.1, 0.044)).lineTo(-0.083, 0.044).lineTo(-0.... | 39 | 250 | 0.087432 |
train_f5b5af2fe3d05f33 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.296, -0.132, -0.606), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.075, 0.989).extrude(1.212)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.165, -0.796, -0.485), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.268, 0.408).extrude(0.532))
result... | 18 | 78 | 1.431915 |
train_bff73729255e743a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.491, -0.007, -0.238), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.737, 0.693).extrude(0.558)
result = result.faces('>Z').shell(-0.03)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.708, -0.043, -0.32), normal=(0, 0, 1), xDir=(1, 0, 0))).r... | 7 | 356 | 0.256223 |
train_19827f4e3d6e25d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.104, 0.086, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1.228, 0.189).threePointArc((-0.62, 0.062), (0, 0.019)).threePointArc((0.62, 0.062), (1.228, 0.189)).lineTo(0, 0.189).lineTo(-1.228, 0.189).close().extrude(0.171)
result = result.edges(... | 13 | 28 | 0.039199 |
train_a92d78199cf7ff81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.052, 0, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.465).workplane(offset=1.123).circle(0.441).workplane(offset=0.877).circle(0.526).loft()
result = result.edges().chamfer(0.443)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.116, -0.3... | 12 | 40 | 0.850761 |
train_787cc40462523387 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.089, -0.007, -0.37), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.054, -0.026).lineTo(0.293, 1.007).lineTo(-0.834, 0.614).lineTo(-0.876, -0.637).lineTo(0.315, -0.993).close().center(0, 0.297).rect(0.509, 0.283).center(-0.361, -0.509).rect(0.381,... | 13 | 81 | 1.296711 |
train_26547ebf061a258a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.34, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.344, -0.352).lineTo(0.344, 0.352).lineTo(-0.344, 0.352).lineTo(-0.344, 0.282).lineTo(-0.308, 0.282).lineTo(-0.308, 0.317).lineTo(0.035, 0.317).lineTo(0.035, -0.352).lineTo(0.344, -0.352).... | 2 | 14 | 0.296721 |
train_0b925e313a2d61d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.353, -0.185, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.65, 0.746).extrude(0.122)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.353, -0.185, 0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.407, 0.496).extrude(0.02))
result = r... | 33 | 216 | 0.151528 |
train_532ada41ea668ffc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.664, -0.08, -0.374), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.672, 0.672).extrude(0.747)
result = result.union(cq.Workplane(cq.Plane(origin=(0.305, -0.08, -0.095), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.355, 0.324).extrude(0.19))
result = r... | 15 | 118 | 0.637076 |
train_cc17e551d0bce805 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.021, -0.41, -0.843), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.481, 0.021).lineTo(-0.251, 0.043).lineTo(0.1, 0.075).lineTo(0.481, 0.11).lineTo(0.481, -0.068).lineTo(0.1, -0.032).lineTo(0, -0.023).lineTo(-0.481, 0.021).close().extrude(0.821)
... | 4 | 39 | 0.064408 |
train_519f37716bf82bee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.459, -0.806), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.38, 1.081).extrude(1.612)
result = result.union(result.mirror('XZ', basePointVector=(0, 0, -0.806)))
result = result.edges().chamfer(0.12)
| 3 | 26 | 4.312371 |
train_e29940864a6d796b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.042, -0.249, 0.253), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.228, 0.237).lineTo(0.228, 0.237).lineTo(0.228, -0.017).lineTo(-0.228, -0.017).lineTo(-0.228, 0.237).close().extrude(0.545)
result = result.edges().chamfer(0.038)
result = result.u... | 27 | 153 | 0.096202 |
train_6d41b7d419eacb2f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.344, 0, -0.545), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.016, -0.053).lineTo(0.016, -0.053).lineTo(0.016, -0.039).lineTo(0.006, -0.039).lineTo(0.006, 0.049).lineTo(0.016, 0.049).lineTo(0.016, 0.053).lineTo(-0.006, 0.053).lineTo(-0.006, -0.... | 3 | 28 | 0.008678 |
train_cb3e32b84ff6f4f2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.819), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.92).extrude(1.247)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.377, 0.228, 0.407), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.424, 0.674).extrude(0.412))
result = result.cut(cq.... | 8 | 336 | 4.471529 |
train_3f9aefa6b6f151a6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.435, -0.073), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.108, -0.243).lineTo(0.379, -0.243).lineTo(0.271, -0.135).lineTo(0, 0.135).lineTo(-0.054, 0.189).lineTo(-0.108, 0.243).lineTo(-0.162, 0.189).lineTo(-0.036, 0.063).threePointArc((-0.06... | 1 | 12 | 0.193304 |
train_d5d9946eb15fbe6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.058, 0.442, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0, 2.058).threePointArc((-0.354, 1.912), (-0.5, 1.558)).lineTo(-0.5, 0.559).threePointArc((-0.354, 0.204), (0, 0.058)).threePointArc((0.354, 0.204), (0.5, 0.559)).lineTo(0.5, 1.558).thre... | 4 | 45 | 1.394621 |
train_930e1be59bb2ff32 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, -0.472, -0.647), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1.125, 1.108).threePointArc((-0.008, 1.377), (1.125, 1.185)).lineTo(0.377, -0.334).threePointArc((0.312, -0.407), (0.217, -0.434)).lineTo(-0.036, -0.434).threePointArc((-0.122, -0... | 14 | 88 | 1.422993 |
train_4e4d77b3704ca767 | 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.775, 1.313).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.047, -0.142, -0.207), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.36, 0.766).extrude(1.238))
result = result.cut(cq.Workp... | 3 | 17 | 1.667436 |
train_4e4e1901e4caaae6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.162, 1.153, -0.05), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.634, 1.441).lineTo(-0.441, 0.861).lineTo(-0.634, 1.22).lineTo(0.441, 1.799).lineTo(0.634, 1.441).close().revolve(angleDegrees=360, axisStart=(0.634, 1.441), axisEnd=(-0.441, 0.861)... | 15 | 152 | 0.723758 |
train_9bfd122b81e5120d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.133, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.416).lineTo(-1, -0.15).lineTo(0.937, -0.15).lineTo(0.937, -0.103).lineTo(1, -0.103).lineTo(1, 0.369).lineTo(-0.889, 0.369).lineTo(-0.889, 0.416).lineTo(-1, 0.416).close().revolve(angle... | 1 | 9 | 1.621786 |
train_8d146d58070a1d6e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.004, 0.001, -0.526), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.995, -0.974).lineTo(0.984, -1.001).lineTo(0.986, 0.999).lineTo(-0.985, 0.978).close().moveTo(-0.37, 0.192).lineTo(-0.274, 0.193).lineTo(-0.274, 0.049).lineTo(-0.053, 0.046).lineTo... | 3 | 41 | 0.420662 |
train_b4a43cb7623fc3ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.253, 0.703, -0.084), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.692, -0.067).lineTo(0.692, -0.279).lineTo(-0.692, -0.279).lineTo(-0.692, 0.785).lineTo(0.692, 0.785).lineTo(0.692, -0.067).close().extrude(1.406)
result = result.edges().chamfer(0... | 18 | 183 | 1.204804 |
train_83eac8798a9178de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.169, 0, 0.079), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.129, 1).threePointArc((0.064, 0.008), (0.129, -1)).lineTo(-0.129, 1).close().sweep(cq.Workplane('XZ').spline([(-0.859, -0.605), (-0.583, -0.58), (-0.306, -0.369), (-0.031, 0.186), (0.... | 1 | 4 | 0.059499 |
train_63ba59aca368611b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.247), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.5, 1).threePointArc((-0.5, 0), (0.5, -1)).lineTo(0.5, -0.725).threePointArc((-0.225, 0), (0.5, 0.725)).lineTo(0.5, 1).close().extrude(0.495)
result = result.cut(cq.Workplane(cq.Plane(origi... | 16 | 184 | 0.267617 |
train_7ab1e25b85954d7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.044, -0.563, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.067, 0.179).threePointArc((-0.085, 0.126), (-0.067, 0.074)).lineTo(-0.048, -0.228).threePointArc((0, -0.273), (0.048, -0.228)).lineTo(0.067, 0.074).threePointArc((0.085, 0.126), (0.06... | 4 | 57 | 0.0157 |
train_5f2faa603eca45a7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.007), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.052, 1).threePointArc((0.182, 0.914), (0.306, 0.698)).threePointArc((0.216, 0.645), (0.134, 0.581)).threePointArc((0.073, 0.522), (0.019, 0.456)).threePointArc((-0.037, 0.368), (-0.081, 0... | 4 | 23 | 1.13018 |
train_1b7ee3beab6e9091 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.496, 0.162, 0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.344, 0.623).extrude(0.207)
result = result.union(cq.Workplane(cq.Plane(origin=(0.535, 0.056, -0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.191, 0.286).extrude(0.069))
result = res... | 27 | 174 | 0.546606 |
train_0d6d5b8517b03bce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, -0.002, -0.22), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.006, 0.015).lineTo(0.678, 0.723).lineTo(-0.012, 0.974).lineTo(-0.718, 0.69).lineTo(-0.994, -0.007).lineTo(-0.693, -0.713).lineTo(-0.027, -0.97).lineTo(0.687, -0.681).close().moveT... | 15 | 127 | 0.929322 |
train_a34196cce8da4086 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.63), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.657, 0.569).lineTo(0, 0.569).lineTo(-0.657, -0.569).lineTo(0, -0.569).lineTo(0.657, 0.569).close().extrude(1.63)
result = result.edges().chamfer(0.237)
result = result.union(cq.Workplane(cq... | 3 | 34 | 0.944868 |
train_32699dff9d28b649 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.048, -0.775, -0.358), normal=(0, 1, 0), xDir=(0, 0, 1))).lineTo(0.26, -0.097).lineTo(0.248, -0.03).threePointArc((0.242, -0.012), (0.227, -0.002)).lineTo(0.201, 0).close().sweep(cq.Workplane('YZ').spline([(-1.318, -0.878), (-0.866, -0.842), (-0.... | 1 | 7 | 0.020617 |
train_23ae9faba2db5bf3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.32, -0.206, -0.254), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.162, 0.253).lineTo(0.162, 0.024).lineTo(-0.029, 0.024).lineTo(0.039, 0.095).lineTo(-0.131, 0.253).lineTo(-0.162, 0.253).lineTo(0.162, 0.253).close().revolve(angleDegrees=360, axisS... | 27 | 179 | 0.339791 |
train_b4561d03dbf3bf94 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.575, -0.11), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.059).lineTo(0, -0.001).lineTo(0.032, -0.001).lineTo(0, -0.02).lineTo(0, -0.057).lineTo(-0.016, -0.029).lineTo(-0.068, -0.059).lineTo(0.068, -0.059).lineTo(0, 0.059).close().sweep(c... | 22 | 163 | 0.140485 |
train_1671b650e0144009 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.486, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.46, 0.946).lineTo(0.46, 0.793).lineTo(0.57, 0.464).lineTo(0.46, 0.464).lineTo(0.46, 0.025).lineTo(-0.504, 0.025).lineTo(-0.504, 0.464).lineTo(-0.57, 0.464).lineTo(-0.46, 0.793).lineTo(-0.4... | 6 | 33 | 0.476549 |
train_cec0e09fc9f07b86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0.113, 0.187), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.323).workplane(offset=0.686).circle(0.366).workplane(offset=0.709).circle(0.401).workplane(offset=0.605).circle(0.366).loft()
result = result.faces('>Z').shell(-0.064)
result = result.... | 4 | 17 | 0.945497 |
train_5c4a0a9da82b2913 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.276, 0.311, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.271, 0.955).threePointArc((-0.354, 0.854), (-0.4, 0.732)).threePointArc((-0.354, 0.446), (-0.128, 0.263)).lineTo(-0.128, -0.595).threePointArc((0, -0.724), (0.128, -0.595)).lineTo(0.1... | 4 | 41 | 0.479825 |
train_23cb6c0bc9aa8119 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, -0.132, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.254).sweep(cq.Workplane('XY').spline([(0.317, -0.132), (0.491, -0.065), (0.665, -0.043), (0.839, -0.065), (1.013, -0.132)]))
result = result.edges().chamfer(0.031)
result = result.uni... | 3 | 18 | 0.247107 |
train_99c7c543c7a19a7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.226, 0.239, 0.053), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.291, 0.8).threePointArc((0.198, 0.311), (-0.291, 0.218)).lineTo(-0.291, 0.8).lineTo(0.291, 0.8).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.266, 0))
result = re... | 15 | 98 | 0.332639 |
train_27e5ee72bdd61e13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.037, -0.454, -0.171), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.121, 1.092).extrude(0.478)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.231, -0.285, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.275, 0.397).extrude(0.165))
result = ... | 26 | 146 | 0.367217 |
train_2818380c348fe8f9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.281, 0.152, -0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.794, 0.533).extrude(0.193)
result = result.union(cq.Workplane(cq.Plane(origin=(0.249, -0.21, -0.002), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.286, 0.2).extrude(0.112))
result = res... | 36 | 332 | 0.235216 |
train_611954223058ec43 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.335, -0.731, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.399, 0.04).lineTo(-0.399, 0.04).lineTo(-0.399, 0.363).lineTo(0.152, 0.363).lineTo(0.152, 0.667).lineTo(-0.399, 0.667).lineTo(-0.399, 0.989).lineTo(0.399, 0.989).lineTo(0.399, 0.04).cl... | 9 | 111 | 0.325451 |
train_d5f989383ccdaa86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.171, 0.219, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.175, 1.156).threePointArc((0, 1.171), (-0.175, 1.156)).threePointArc((-0.458, 0.964), (-0.765, 0.815)).threePointArc((-0.866, 0.671), (-0.94, 0.512)).threePointArc((-1, 0.171), (-0.94,... | 5 | 68 | 1.310944 |
train_71e212bfb73e1e5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.352), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.895).extrude(0.608)
result = result.union(cq.Workplane(cq.Plane(origin=(0.1, 0.095, 0.254), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.853).extrude(0.072))
result = result.union(cq.Workp... | 9 | 47 | 2.180424 |
train_9942143e7ca23119 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.492, -0.234), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.508).lineTo(0, 0).lineTo(-0.208, 0).lineTo(-0.208, 0.508).lineTo(0.208, 0.508).lineTo(0.208, -0.508).lineTo(0, -0.508).close().sweep(cq.Workplane('YZ').spline([(-0.492, -0.234), ... | 2 | 16 | 0.06642 |
train_f69549b0bae8fc0a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.036, 0.2), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.232).sweep(cq.Workplane('YZ').spline([(-0.479, -0.493), (-0.154, -0.179), (0.172, -0.179), (0.497, -0.493)]))
result = result.edges().fillet(0.146)
result = result.cut(cq.Workplane(cq.Pla... | 3 | 8 | 0.344644 |
train_7b636b979f6881d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.018, -0.212, 0.248), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.752, 0.115).lineTo(-0.752, 0.657).lineTo(0.752, 0.657).lineTo(0.752, 0.115).lineTo(-0.752, 0.115).close().revolve(angleDegrees=270, axisStart=(0, 0), axisEnd=(0.064, 0))
result =... | 10 | 151 | 1.414115 |
train_d570a4b70044add6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.571, -0.72, -0.1), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.288, -0.429).lineTo(0.288, -0.429).lineTo(0.288, 0.938).lineTo(-0.288, 0.938).lineTo(-0.288, -0.429).close().extrude(0.937)
result = result.edges().chamfer(0.093)
result = result.u... | 41 | 120 | 0.731032 |
train_00c605f5ef86c336 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.04, 0.17, -0.348), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.122, 0.83).lineTo(0.122, -0.759).lineTo(-0.044, -0.759).lineTo(-0.122, 0.83).lineTo(0.122, 0.83).close().extrude(0.299)
result = result.edges().fillet(0.066)
result = result.union(c... | 8 | 106 | 0.125957 |
train_0fbcc1ce7c6884af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.396, -0.442, 0.114), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.033, 0.804).lineTo(0.886, 0.804).lineTo(0.886, 0.494).lineTo(-0.033, 0.494).lineTo(-0.033, 0.079).lineTo(-0.886, 0.079).lineTo(-0.886, 0.804).lineTo(-0.033, 0.804).close().extrud... | 10 | 92 | 0.541152 |
train_a76ee5b48ef3b6ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.915, 2).extrude(0.171)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.766 + 0.153, 0, 0.482), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.07, 0).lineTo(-0.07, -0.005).lineTo(-0.068, ... | 19 | 151 | 0.596925 |
train_c441fe381116d1f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.445, -0.203, 0.487), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.453, 0.477).extrude(0.502)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.818, -0.192, 0.594), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.364, 0.406).extrude(0.288))
result =... | 13 | 129 | 1.779722 |
train_fdf549a4c5529367 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.11, 0.301), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.686, 0.94).lineTo(0.686, 0.94).lineTo(0.686, -0.94).lineTo(-0.686, -0.94).lineTo(-0.686, 0.94).close().sweep(cq.Workplane('YZ').spline([(-0.336, -0.665), (-0.132, -0.678), (0.072, -0.7... | 8 | 80 | 2.847599 |
train_ef922516f6482adc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.056, 0.518, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(1, 1.88).lineTo(-1, 1.88).lineTo(-1, 0.725).lineTo(-0.333, 0.725).lineTo(0, 0.147).lineTo(0.333, 0.725).lineTo(1, 0.725).lineTo(1, 1.88).close().extrude(0.93)
result = result.edges().cha... | 11 | 94 | 2.036439 |
train_34762c8315283a88 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.856, -0.807, -0.124), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.677, 0.144).lineTo(0.628, 0.127).lineTo(-0.628, 0.127).lineTo(-0.677, 0.144).lineTo(-0.677, -0.144).lineTo(0.677, -0.144).lineTo(0.677, 0.144).close().sweep(cq.Workplane('XY').sp... | 4 | 34 | 0.362847 |
train_2779446ef14c2801 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.54, -0.174), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.31).sweep(cq.Workplane('YZ').spline([(-0.898, -0.435), (-0.623, -0.261), (-0.347, -0.174), (-0.072, -0.174), (0.204, -0.261), (0.479, -0.435)]))
result = result.edges().fillet(0.066)
r... | 6 | 34 | 0.450984 |
train_0fb84f03bf531c89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.042, 0.308, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.262, -0.248).lineTo(0.262, 0.332).lineTo(-0.262, 0.332).lineTo(-0.262, -0.248).lineTo(0.262, -0.248).close().extrude(0.403)
result = result.edges().fillet(0.071)
result = result.cut(cq... | 13 | 115 | 0.153333 |
train_1b4090f197ac1c29 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.259, 0.582, -0.349), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.514, 0.628).extrude(0.157)
result = result.union(cq.Workplane(cq.Plane(origin=(0.259, 0.601, -0.192), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.188).extrude(0.018))
result = result... | 20 | 129 | 0.15381 |
train_2e027fb4a9097518 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.008, 0.31, -0.692), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.308, -0.718).lineTo(0.308, -0.718).lineTo(0.308, 0.734).lineTo(-0.308, 0.734).lineTo(-0.308, -0.718).close().extrude(0.619)
result = result.edges().chamfer(0.089)
result = result.... | 11 | 65 | 0.610216 |
train_78d75a2e69c6147c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.012, 0.062, -0.33), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.286, 1.877).extrude(0.638)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.69, -0.595, -0.166), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.037).extrude(0.055))
result = resul... | 6 | 26 | 1.543047 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.