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_d8b4e032805fbf73 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.734, 0.18, 0.097), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.175, -0.257).lineTo(0.196, -0.257).lineTo(0.196, 0.257).lineTo(0.175, 0.257).lineTo(-0.192, 0.192).lineTo(-0.196, 0.171).lineTo(0.175, 0.105).lineTo(0.175, -0.054).lineTo(-0.192, 0... | 4 | 52 | 0.710473 |
train_440803b4cf0c7717 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.21), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.125).lineTo(-1, 0.125).lineTo(-1, -0.125).lineTo(1, -0.125).lineTo(1, 0.125).close().extrude(0.421)
result = result.edges().fillet(0.02)
result = result.cut(cq.Workplane(cq.Plane(origin=... | 19 | 219 | 0.174163 |
train_d8e9bc1a714dc25d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.138, -1), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.184).lineTo(1, -0.184).lineTo(-1, -0.184).lineTo(-1, 0.184).lineTo(1, 0.184).close().revolve(angleDegrees=90, axisStart=(1, 0.184), axisEnd=(1, -0.184))
result = result.union(cq.Workpl... | 10 | 131 | 1.841807 |
train_9c7abdb82f088f5b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.037, -0.023, -0.009), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.004, 0.021).lineTo(0.004, 0.021).lineTo(0.004, -0.013).lineTo(0.012, -0.013).lineTo(0.012, 0.021).lineTo(0.013, 0.021).lineTo(0.013, -0.014).lineTo(-0.013, -0.014).lineTo(-0.013... | 26 | 182 | 0.000737 |
train_299a902ab85f820e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.286, 0.065, -0.412), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.381, 1.375).extrude(1.046)
result = result.faces('>X').shell(-0.096)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.378, -0.074, -0.634), normal=(0, 0, 1), xDir=(1, 0, 0))).... | 11 | 119 | 0.84952 |
train_36ce36b31a5bc47f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.493, 0, 0.207), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.506, 0.029).threePointArc((-0.507, 0), (-0.506, -0.029)).threePointArc((0.014, -0.507), (0.507, 0)).threePointArc((0.014, 0.507), (-0.506, 0.029)).close().extrude(0.705)
result = res... | 8 | 65 | 0.528789 |
train_cede5933d6064a14 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.019, -0.217), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, -0.033).lineTo(0.685, 0.658).lineTo(0.01, 1.01).lineTo(-0.692, 0.66).lineTo(-0.952, 0).lineTo(-0.694, -0.717).lineTo(-0.012, -0.972).lineTo(0.675, -0.709).close().moveTo(0.15, 0.111)... | 11 | 94 | 0.615418 |
train_4cdee8939c5a04f7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.579, -0.092, -0.367), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.242, 0.289).threePointArc((-0.26, 0.343), (-0.307, 0.376)).threePointArc((-0.409, 0.334), (-0.395, 0.225)).lineTo(-0.166, 0.002).lineTo(-0.087, -0.308).threePointArc((0, -0.376... | 8 | 44 | 0.211523 |
train_68c14034787af0d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.052, -0.014, -0.916), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.111, 0.066).threePointArc((0, -0.045), (0.111, 0.066)).lineTo(0.075, 0.066).lineTo(-0.075, 0.066).lineTo(-0.111, 0.066).close().revolve(angleDegrees=90, axisStart=(0.111, 0.066)... | 11 | 61 | 0.005847 |
train_5a3091f6904e4f17 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.025, -0.618, 0.16), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.255, 0.003).threePointArc((-0.257, 0.034), (-0.255, 0.066)).threePointArc((0.257, 0.034), (-0.255, 0.003)).close().extrude(0.842)
result = result.edges().fillet(0.088)
result = re... | 10 | 101 | 0.515599 |
train_cf6721488a976466 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.058), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.463).extrude(0.101)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.8 + 0.267, -0.585 + 0.146, 0.043), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.092, 0.092).lineTo(-0.092, 0.041... | 13 | 198 | 0.300986 |
train_26701c3233dc0fbc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.001, -0.003, 1), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.56).workplane(offset=0.645).circle(0.697).workplane(offset=0.729).circle(0.7).workplane(offset=0.626).circle(0.423).loft()
result = result.edges().fillet(0.56)
result = result.cut(cq... | 10 | 43 | 1.818928 |
train_9f3a94430ff0ebc7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.341, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.312, 0.611).threePointArc((0, 0.716), (0.312, 0.611)).lineTo(0.312, 0.2).threePointArc((0, -0.113), (-0.312, 0.2)).lineTo(-0.312, 0.611).close().extrude(2)
result = result.union(cq.Workp... | 3 | 15 | 0.968004 |
train_35d63adc64436add | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.16, 0.423, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.774, 1.606).lineTo(0.515, 1.159).lineTo(0.258, 1.606).lineTo(0, 2.053).lineTo(-0.258, 1.606).lineTo(-0.774, 1.606).lineTo(-0.515, 1.159).lineTo(-0.774, 0.713).lineTo(0.258, 0.713).lineT... | 10 | 81 | 0.921005 |
train_de88517b2628e68b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.043, 0, -0.369), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.926, 2).extrude(0.737)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.107, 0.471, 0.172), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.034).extrude(0.079))
result = result.edges().... | 15 | 68 | 1.310249 |
train_2ebeda3ff9fb73bd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.702, 0.356, -0.156), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.292).workplane(offset=0.378).circle(0.297).workplane(offset=0.333).circle(0.276).loft()
result = result.edges().fillet(0.219)
result = result.union(cq.Workplane(cq.Plane(origin=(... | 7 | 60 | 0.213235 |
train_a3b371069149e920 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.559).extrude(0.347)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.33, -0.165, 0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.346).extrude(0.225))
result = result.cut(cq.Workplan... | 13 | 76 | 1.329731 |
train_711aabe4326f0d42 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.17, 0, 0.298), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.039, 0.351).threePointArc((0, 0.361), (0.039, 0.351)).threePointArc((0.275, 0.115), (0.361, -0.207)).threePointArc((0.351, -0.246), (0.322, -0.275)).threePointArc((0, -0.361), (-0.322... | 13 | 116 | 0.302918 |
train_7e98b05448716900 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.251, 0.805, 0.02), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.653).workplane(offset=0.312).circle(0.481).workplane(offset=0.269).circle(0.465).workplane(offset=0.246).circle(0.715).workplane(offset=0.282).circle(0.722).workplane(offset=0.211)... | 10 | 19 | 1.902787 |
train_22c6aefe4bfb72b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.935), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.866).extrude(1.869)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.165, 0.477, -0.487), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.48).extrude(0.712))
result = result.edges().fille... | 15 | 118 | 4.126074 |
train_d2813cbae01063b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.714, 0, 0.352), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.174, 0.286).lineTo(-0.286, 0.286).lineTo(-0.286, 0.23).threePointArc((-0.27, 0.19), (-0.23, 0.174)).lineTo(-0.174, 0.174).lineTo(-0.174, -0.168).lineTo(-0.118, -0.168).threePointArc((... | 3 | 20 | 0.074007 |
train_35f597defbd1cd44 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.03, -0.021, -0.228), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.524, 1.456).extrude(0.633)
result = result.union(cq.Workplane(cq.Plane(origin=(0.96, -0.027, -0.048), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.039, 0.029).lineTo(-0.019, 0.029)... | 12 | 106 | 0.695242 |
train_19dac194526ed1c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.509, -0.397), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.201, 0.491).lineTo(0.201, -0.103).lineTo(-0.008, -0.103).lineTo(-0.008, 0.09).lineTo(-0.201, 0.09).lineTo(-0.201, 0.298).lineTo(-0.008, 0.298).lineTo(-0.008, 0.491).lineTo(0.201, 0.491... | 5 | 45 | 0.150676 |
train_9cdbee90c4b34a2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.764, 0.397, -0.331), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.527, 0.297).threePointArc((-0.669, 0.423), (-0.527, 0.55)).threePointArc((-0.383, 0.807), (-0.126, 0.95)).threePointArc((0, 0.837), (0.126, 0.95)).threePointArc((0.383, 0.807), (... | 7 | 53 | 1.256465 |
train_2afb3b9d17920cce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.015), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.175, 0.942).threePointArc((0, -0.959), (-0.175, 0.942)).threePointArc((0, 0.959), (0.175, 0.942)).close().workplane(offset=0.006).moveTo(0.157, 0.843).threePointArc((0, -0.858), (-0.157, 0... | 9 | 86 | 0.04599 |
train_69062c9f1ba6fed7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.722, 0, 0.534), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.069, 0.46).threePointArc((0.222, 0.409), (0.349, 0.309)).lineTo(0.332, 0.294).threePointArc((0.378, 0.231), (0.412, 0.162)).lineTo(0.433, 0.17).threePointArc((0.465, 0.012), (0.442, -... | 2 | 24 | 0.321754 |
train_5c18d56abf37ce13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.988, -0.469, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.042, -0.012).lineTo(0.042, 0.012).lineTo(-0.042, -0.012).lineTo(0.042, -0.012).close().sweep(cq.Workplane('XY').spline([(-0.988, 0.693), (-0.605, 1.2), (-0.223, 1.369), (0.16, 1.2), ... | 1 | 5 | 0.001735 |
train_ff63ec446125bed1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.795, -0.194), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.163, -0.092).threePointArc((0, -0.205), (0.163, -0.092)).lineTo(0.204, 0.016).lineTo(0.219, 0.055).threePointArc((0, 0.205), (-0.219, 0.055)).lineTo(-0.204, 0.016).lineTo(-0.163, -0... | 2 | 10 | 0.050627 |
train_c2270ec19e1f1e9e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.629, -0.574, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.007, 0.126).threePointArc((-0.947, 0.467), (-0.775, 0.769)).threePointArc((-0.712, 0.837), (-0.643, 0.901)).threePointArc((0, 1.132), (0.643, 0.901)).threePointArc((0.712, 0.837), (0... | 12 | 70 | 1.441538 |
train_e6405897b3a3c282 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.696, -0.327), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.484).sweep(cq.Workplane('YZ').spline([(-0.696, -0.327), (-0.201, -0.078), (0.295, 0.059), (0.79, 0.084)]))
result = result.edges().chamfer(0.225)
result = result.cut(cq.Workplane(cq.... | 10 | 50 | 0.279705 |
train_10a3670550f9d5d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, -0.235), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.166, 0.096).lineTo(0, 0.191).threePointArc((-0.096, 0.166), (-0.166, 0.096)).lineTo(-0.166, -0.096).lineTo(0, -0.191).lineTo(0.166, -0.096).lineTo(0.166, 0.096).close().sweep(cq.Workplan... | 4 | 29 | 0.114362 |
train_d3ca27f327f627a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.275, 0.546, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.571, 1.275).lineTo(0.714, 1.275).lineTo(0.714, 1.132).lineTo(0.571, 1.132).lineTo(0.571, -0.725).lineTo(-0.714, -0.725).lineTo(-0.714, 1.132).lineTo(-0.571, 1.132).lineTo(-0.571, 1.27... | 4 | 22 | 1.042413 |
train_19da586db19f34f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.23, -0.173, -0.813), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.897, 0.897).extrude(1.589)
result = result.faces('>Z').shell(-0.103)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.099, -0.045, 0.767), normal=(0, 0, 1), xDir=(1, 0, 0))).c... | 23 | 165 | 0.946173 |
train_9db1888c5c542ab2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.164, -0.005, -0.051), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.286, 0.017).threePointArc((0.041, -0.123), (0.368, 0.017)).lineTo(0.368, 0.343).threePointArc((0.041, 0.483), (-0.286, 0.343)).threePointArc((-0.368, 0.18), (-0.286, 0.017)).clo... | 16 | 93 | 0.261251 |
train_957ceab04cdf9fc2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.532, 0, 0.081), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.279, 1).threePointArc((0.105, 0.803), (0.279, 0.409)).lineTo(0.279, -0.85).lineTo(0.138, -0.85).lineTo(0.06, -1).lineTo(-0.279, -0.998).lineTo(-0.279, 1).close().sweep(cq.Workplane('XZ... | 2 | 12 | 0.63119 |
train_bf2e3aaae4ae9268 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.209, 0.338, -0.22), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.445, 0.575).threePointArc((0.118, 0.091), (0.445, -0.575)).lineTo(0.445, 0.575).lineTo(-0.445, 0.575).close().extrude(0.78)
result = result.edges().fillet(0.228)
result = result.... | 4 | 28 | 0.112077 |
train_2d5be8c74a37ebed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.067, -0.001, -0.648), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.164, 0.209).extrude(0.153)
result = result.union(cq.Workplane(cq.Plane(origin=(0.075, 0.062, -0.505), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.021, 0.048).lineTo(0.021, 0.078).l... | 8 | 84 | 0.321511 |
train_dbe2b10dfdaa37ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.726, -0.052, -0.416), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.031, -0.274).lineTo(-0.092, -0.214).lineTo(0.193, 0.071).lineTo(0.274, 0.153).lineTo(0.274, 0.274).lineTo(-0.274, -0.274).lineTo(-0.031, -0.274).close().transformed(offset=(0.41... | 1 | 8 | 0.020588 |
train_5d84f165c8efa760 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.483, 0.561, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.561, 2.41).lineTo(-0.561, 2.483).lineTo(-0.634, 2.483).lineTo(-0.634, 0.483).lineTo(-0.561, 0.483).lineTo(-0.561, 0.556).lineTo(0.634, 0.556).lineTo(0.634, 2.41).lineTo(-0.561, 2.41).... | 15 | 46 | 1.024 |
train_992ed36130a79905 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.018, -0.059, -0.128), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.182, 0.817).lineTo(0.225, 1.059).lineTo(0.146, 1.045).lineTo(-0.172, 1.005).lineTo(-0.261, 0.626).lineTo(-0.117, -0.772).lineTo(-0.079, -0.941).close().moveTo(0.17, 0).lineTo(0.12... | 5 | 37 | 0.162622 |
train_c0d067267acd5789 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.749, 0.573, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.606, 1.373).lineTo(0.02, 1.373).lineTo(0.02, 1.749).lineTo(0.328, 1.749).lineTo(0.328, 1.373).lineTo(0.606, 1.373).lineTo(0.606, 0.08).lineTo(-0.298, 0.08).lineTo(-0.298, -0.251).line... | 9 | 164 | 1.521738 |
train_debf073644a731d6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.012, -0.454), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.03, -0.03).lineTo(0.03, 0.03).lineTo(-0.03, 0.03).lineTo(-0.015, 0.015).lineTo(0.014, 0.021).lineTo(0.015, 0.015).lineTo(0, 0).lineTo(-0.014, -0.021).lineTo(-0.015, -0.015).lineTo(-0... | 17 | 136 | 0.117111 |
train_590272b329440f0b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, -0.108), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.061).workplane(offset=0.536).circle(0.152).workplane(offset=0.404).circle(0.099).workplane(offset=0.536).circle(0.116).workplane(offset=0.524).circle(0.091).loft()
result = result.edges()... | 11 | 45 | 0.06641 |
train_6bf62369c4709a4f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.053, -0.048, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.878, 0.721).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.302, 0.359, 0.266), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.092, 0.101).extrude(0.319))
result = result.... | 12 | 191 | 1.190817 |
train_0f87eccf23f56606 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.208, -0.208, -0.437), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.584, 0.467).extrude(0.746)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.784, -0.136, -0.248), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.433, 0.229).extrude(0.177))
result ... | 11 | 76 | 0.713602 |
train_db4eac2a20542e39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.153, 0.571, 0.422), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.512, 0.57).threePointArc((0.578, 0.42), (0.512, 0.269)).threePointArc((0, 0.073), (-0.512, 0.269)).threePointArc((-0.578, 0.42), (-0.512, 0.57)).threePointArc((0, 0.767), (0.512, 0... | 9 | 74 | 0.53084 |
train_e3d75cbdc453dfa1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.126, -0.13, -0.587), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.748, 0.955).extrude(0.89)
result = result.faces('<Y').shell(-0.073)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.235, 0.473, -0.406), normal=(0, 0, 1), xDir=(1, 0, 0))).cir... | 11 | 121 | 0.5963 |
train_5f0a9dd203b4e3f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.848, -0.108, -0.066), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.152).sweep(cq.Workplane('XY').spline([(0.848, 0.319), (0.343, 0.43), (-0.399, 0.454), (-1.055, 0.382)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(0.472, 0.603, -2.579), ... | 13 | 20 | 0.050452 |
train_58e4ece7624918e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.465, -0.73, -0.371), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.25, 0.078).lineTo(-0.167, -0.033).lineTo(-0.167, 0.033).lineTo(-0.117, -0.033).lineTo(-0.083, -0.078).lineTo(0.083, -0.078).lineTo(0.083, -0.144).lineTo(0.167, -0.033).lineTo(0.25... | 2 | 15 | 0.014828 |
train_ac3b18bc9e4089ce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.949), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.692).extrude(1.898)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.482, 0.742, -0.643), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.09).extrude(0.211))
result = result.cut(cq.Workpl... | 13 | 50 | 5.715228 |
train_cead5c3e405807a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.238, -0.022, -0.066), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, -0.035).lineTo(-0.006, -0.039).lineTo(-0.012, -0.042).lineTo(-0.012, -0.055).lineTo(-0.006, -0.059).lineTo(0, -0.062).lineTo(0.006, -0.059).lineTo(0.012, -0.055).lineTo(0.012, 0... | 7 | 55 | 0.018588 |
train_c15dad3df41e41e7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.02), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.308).extrude(0.034)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.8 + 0.2, -0.523 + 0.131, 0.014), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.106, 0.014).lineTo(-0.051, 0.007).l... | 17 | 102 | 0.089152 |
train_fb056acfe0beb12a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.694, 0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.192).sweep(cq.Workplane('YZ').spline([(0.694, -0.785), (0.835, -0.16), (0.558, 0.413), (-0.007, 0.661), (-0.592, 0.467), (-0.917, -0.076)]))
result = result.edges().chamfer(0.184)
resul... | 8 | 22 | 0.181279 |
train_d18e33a00d6d4a2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.005, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.99, 1.95).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.005, -0.718, -0.064), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.6, 0.54).extrude(0.128))
result = result.cut(cq.Wor... | 25 | 282 | 2.834502 |
train_35eca9523da17eed | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.198, -0.727, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.588, 1.198).lineTo(-0.252, 1.198).lineTo(-0.252, -0.214).threePointArc((0, -0.466), (0.252, -0.214)).lineTo(0.252, 1.198).lineTo(0.588, 1.198).lineTo(0.588, -0.214).threePointArc((0,... | 10 | 103 | 1.850015 |
train_0e96d9db49cabf83 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.952, -0.473, 0.024), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-1.055, 0.688).lineTo(-0.719, 0.107).threePointArc((-0.04, 0.978), (1.055, 1.131)).lineTo(0.719, 1.712).lineTo(-1.055, 0.688).close().extrude(0.946)
result = result.edges().fillet(0... | 9 | 61 | 0.472217 |
train_8f29154d4d38ef8b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.796, -0.509, 0.24), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.204, 0.136).lineTo(0.068, 0.136).lineTo(0.204, 0).lineTo(0.204, -0.136).lineTo(-0.204, -0.136).lineTo(-0.204, 0.136).close().transformed(offset=(0.141, 0.145, 0.144), rotate=(0, 6... | 2 | 14 | 0.10774 |
train_4174d77ac3c893ee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.626, 0.601, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.379, 1.439).lineTo(0.758, 0.783).lineTo(-1, 0.783).lineTo(-1, 0.127).lineTo(1, 0.127).lineTo(1, 1.439).lineTo(0.379, 1.439).close().extrude(1.202)
result = result.edges().fillet(0.054)... | 20 | 184 | 1.270181 |
train_82e74b2bc14d08df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.155, 0.562, -0.227), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.659, 1.588).lineTo(0.659, 0.035).threePointArc((0.894, 1.822), (-0.894, 1.588)).lineTo(-0.185, 1.588).threePointArc((0.09, 1.65), (0.365, 1.588)).lineTo(0.659, 1.588).close().extr... | 8 | 58 | 1.290045 |
train_0b90cb43465b349b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.632, -0.033, -0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.02, 0.127).threePointArc((0.029, 0.058), (0.028, -0.011)).threePointArc((0.026, -0.027), (0.023, -0.042)).lineTo(-0.029, -0.042).lineTo(-0.02, -0.011).lineTo(0.02, 0.127).close()... | 9 | 56 | 0.00099 |
train_714bcb3f07320109 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.24, 0.007, -0.245), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.792, 0.005).lineTo(0.573, 0.555).lineTo(0.015, 0.773).lineTo(-0.561, 0.528).lineTo(-0.76, 0.021).lineTo(-0.54, -0.553).lineTo(-0.024, -0.788).lineTo(0.53, -0.546).close().moveTo(0.... | 9 | 78 | 0.371052 |
train_9c1b3bc90b3aac9b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.167, -0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.875, 1.666).extrude(0.083)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.75 + 0.1875, -0.499 + 0.133, 0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.017, -0.048).lineTo(-0... | 22 | 249 | 0.267595 |
train_158d5ec738b7adbd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.453, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.054, 1.131).threePointArc((-0.68, 0.453), (0.054, -0.225)).threePointArc((0.68, 0.453), (0.054, 1.131)).close().extrude(2)
result = result.edges().chamfer(0.193)
result = result.cut(cq.Wo... | 7 | 53 | 2.737191 |
train_ffd3e50276575237 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.19, -0.052, -0.213), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.049, 0.168).threePointArc((-0.171, 0.027), (0.002, -0.168)).lineTo(0.068, -0.154).threePointArc((0.171, 0.014), (0.049, 0.168)).close().extrude(0.094)
result = result.edges().fil... | 22 | 286 | 0.402636 |
train_6626274ea2b7a591 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.998, 0.661, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, -0.339).lineTo(-1, 1.661).lineTo(1, 1.661).lineTo(1, 0.662).lineTo(0, -0.339).lineTo(-1, -0.339).close().extrude(1.996)
result = result.edges().chamfer(0.335)
result = result.cut(cq.... | 28 | 256 | 2.948926 |
train_c260e0cc949a22b2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.066, 0.058, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.18, 0.335).extrude(0.204)
result = result.union(cq.Workplane(cq.Plane(origin=(0.188, -0.065, -0.043), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.05, 0.151).lineTo(0.05, 0.062).line... | 5 | 51 | 0.022347 |
train_f787d3b5995465f3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.011, 0, -0.62), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.429, 0.901).extrude(1.62)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.214, -0.121, 0.226), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.023, 0.083).extrude(0.22))
result = result.... | 14 | 121 | 0.648776 |
train_3fc33c9b2956a841 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.275), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.559).lineTo(1, 0.186).threePointArc((0.814, 0), (1, -0.186)).lineTo(1, -0.559).lineTo(0.587, -0.559).lineTo(0.214, -0.559).lineTo(-0.158, -0.559).threePointArc((-0.345, -0.372), (-0.531... | 5 | 109 | 1.781497 |
train_522ff131ce6cd758 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.11, -0.375, -0.149), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.89, 0.651).lineTo(0.89, 0.032).lineTo(-0.89, 0.032).lineTo(-0.89, 0.651).lineTo(0.89, 0.651).close().extrude(0.298)
result = result.edges().fillet(0.114)
result = result.union(cq.... | 11 | 52 | 0.281757 |
train_565d06e6547ac9e1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.748, -0.926, 0.15), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.85, 1.907).lineTo(-0.686, 1.907).lineTo(-0.686, 0.094).lineTo(0.85, 0.094).lineTo(0.85, -0.055).lineTo(-0.85, -0.055).lineTo(-0.85, 1.907).close().extrude(1.497)
result = result.u... | 2 | 13 | 1.380653 |
train_28f34ea07ffa8ca1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-2.139, -0.54, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.753, 1.933).lineTo(-0.753, 2.346).lineTo(-0.358, 0.835).lineTo(0.753, 1.933).close().revolve(angleDegrees=180, axisStart=(0.753, 1.933), axisEnd=(-0.753, 2.346))
result = result.edges(... | 6 | 26 | 0.816055 |
train_8c6eed3921bbb3bc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.016, 0.287, 0.19), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.411, 0.514).threePointArc((0.099, 0.651), (-0.24, 0.613)).threePointArc((-0.514, 0.411), (-0.651, 0.099)).threePointArc((-0.613, -0.24), (-0.411, -0.514)).threePointArc((-0.099, -0... | 15 | 113 | 0.853066 |
train_bbbb5152e5caa256 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.018, 0.032, -0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.013, 0).lineTo(0.009, 0.009).lineTo(0, 0.013).lineTo(-0.009, 0.009).lineTo(-0.013, 0).lineTo(-0.009, -0.01).lineTo(0, -0.013).lineTo(0.01, -0.009).close().moveTo(-0.003, -0.003).li... | 6 | 117 | 0.034733 |
train_4df3c568380d56f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.163, 0, -0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.632, 0.909).extrude(1.088)
result = result.union(cq.Workplane(cq.Plane(origin=(0.083, -0.093, 0.801), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.036).extrude(0.199))
result = result.un... | 9 | 35 | 1.365128 |
train_06ab945e21f9506f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.292).extrude(0.067)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.464, -0.148, 0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.052).extrude(0.021))
result = result.cut(cq.Wor... | 12 | 36 | 0.143607 |
train_44d5439b9d78ac7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.086, -0.209, -0.344), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.713, -0.649).lineTo(0.72, -0.658).lineTo(0.73, 0.647).lineTo(-0.74, 0.663).close().moveTo(-0.119, 0.184).lineTo(-0.177, 0.265).lineTo(-0.268, 0.235).lineTo(-0.269, 0.137).lineTo... | 14 | 69 | 0.425635 |
train_b3c3ca47615d0991 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.32, 0, 0.044), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.017, 0.079).lineTo(-0.061, 0.091).lineTo(-0.285, 0.091).lineTo(-0.363, 0.054).lineTo(-0.363, -0.054).lineTo(-0.285, -0.079).lineTo(-0.043, -0.079).lineTo(-0.017, -0.067).lineTo(-0.017... | 7 | 452 | 0.005836 |
train_ec2e5dbbac5f314c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.019, 0.321), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.305).workplane(offset=0.174).circle(0.269).workplane(offset=0.213).circle(0.238).workplane(offset=0.231).circle(0.149).workplane(offset=0.237).circle(0.133).workplane(offset=0.209).cir... | 8 | 33 | 0.097526 |
train_9f1ff662daa37e65 | 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.024, 1.166).extrude(1.552)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.104, -0.121, -1.02), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.305).extrude(0.803))
result = result.cut(cq.Workpl... | 23 | 115 | 1.114876 |
train_7f2647bf0a4f3adb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.222, -0.182, 0.445), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.739).lineTo(0, -0.208).lineTo(-0.303, -0.208).lineTo(-0.303, 0.739).lineTo(0, 0.739).lineTo(0, 0).lineTo(0.303, 0).lineTo(0.303, -0.739).lineTo(0, -0.739).close().workplane(o... | 6 | 35 | 0.791614 |
train_7b1fdec60c5fe1d2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.147, 0.278, -0.164), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.122, -0.123).threePointArc((0.323, -0.016), (0.471, 0.415)).threePointArc((0.021, 0.809), (-0.457, 0.45)).threePointArc((-0.471, 0.314), (-0.445, 0.181)).threePointArc((-0.322, -... | 26 | 191 | 0.397636 |
train_76c1cfbf7127848e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.16, 0.111, -0.725), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.68, 0.8).extrude(1.213)
result = result.union(cq.Workplane(cq.Plane(origin=(0.525, 0.085, -0.96), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.168, 0.072).extrude(0.258))
result = result... | 9 | 33 | 1.595549 |
train_34e0851278a75a93 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.513), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.95, 2).extrude(1.346)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.249 * math.cos(1.924 + 2 * math.pi * 0 / 3), 0 + 0.249 * math.sin(1.924 + 2 * math.pi * 0 / 3), -0.833), norma... | 12 | 53 | 2.441347 |
train_dc4aad3f25ed895e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.627).workplane(offset=0.661).circle(0.462).workplane(offset=0.829).circle(0.612).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(0.241, 0.36, 0.041), normal=(0, 0, 1), xDir=(1, 0, 0))... | 14 | 90 | 0.832584 |
train_0df563f326ed0aee | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.495, 0.06, 0.072), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.252, 0.122).lineTo(-0.252, 0.036).lineTo(0.252, 0.036).lineTo(0.252, 0.122).lineTo(-0.252, 0.122).close().revolve(angleDegrees=270, axisStart=(-0.252, 0.122), axisEnd=(-0.252, 0.03... | 34 | 165 | 0.079455 |
train_3814a6a27041f528 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.051, 0, -0.814), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.903, 0.66).extrude(1.814)
result = result.union(cq.Workplane(cq.Plane(origin=(0.45, 0.153, 0.173), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.106, 0.115).extrude(0.255))
result = result.... | 16 | 191 | 1.06554 |
train_27766b35171aed13 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.401), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.431).extrude(0.887)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.11, -0.1, 0.311), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.061, 1.717).extrude(0.034))
result = result.cut(cq.Wor... | 8 | 36 | 2.499985 |
train_6ce6227bf83734f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.306, -0.246, 0.18), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.277, 0.207).lineTo(0.277, -0.095).lineTo(-0.277, -0.095).lineTo(-0.277, 0.112).lineTo(-0.166, 0.112).lineTo(-0.166, 0.207).lineTo(0, 0.207).lineTo(0, 0.112).lineTo(0.166, 0.112).l... | 30 | 388 | 0.288923 |
train_83160540e5a1760e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.335, -1, 0.045), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.678, 0.9).lineTo(-0.678, 0.082).threePointArc((-0.637, -0.017), (-0.539, -0.057)).lineTo(0.539, -0.057).threePointArc((0.637, -0.017), (0.678, 0.082)).lineTo(0.678, 0.677).lineTo(0.6... | 9 | 32 | 2.566939 |
train_4f4cc9a6050eb3e5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.014, 0.019, -0.177), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.986, 0.031).lineTo(0.476, 0.844).lineTo(-0.513, 0.864).lineTo(-1.014, -0.016).lineTo(-0.517, -0.902).lineTo(0.493, -0.867).close().center(0, 0.362).circle(0.158).center(-0.28, -0.6... | 13 | 62 | 0.56772 |
train_fd7433a75b1fc6d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.059, -0.107, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.028, 0.347).lineTo(-0.069, 0.289).lineTo(-0.143, 0.444).lineTo(0.071, -0.301).lineTo(0.262, -0.004).close().moveTo(0.096, -0.001).lineTo(0.068, 0.068).lineTo(-0.001, 0.097).lineT... | 14 | 81 | 0.036891 |
train_2206c2af54742585 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.077, -0.329), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.92, 1.846).extrude(0.695)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.768 + 0.256, 0.2385, -1.53), normal=(0, 1, 0), xDir=(1, 0, 0))).circle(0.053).extrude(2.401))
result = resu... | 24 | 196 | 2.40521 |
train_58b0fda2e27cba0e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.267, 0.21), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.216, -0.848).threePointArc((0, -0.631), (0.216, -0.848)).lineTo(0.216, 0.848).lineTo(-0.216, 0.826).lineTo(-0.216, -0.848).close().sweep(cq.Workplane('YZ').spline([(-1.015, -0.084), (-... | 9 | 89 | 1.113459 |
train_1de46acae6e90fbd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.199, 0, -0.258), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.333, 0.073).threePointArc((-0.237, 0.311), (0, 0.41)).threePointArc((0.236, 0.312), (0.333, 0.076)).lineTo(0, 0.075).lineTo(-0.333, 0.073).close().revolve(angleDegrees=360, axisStart... | 22 | 94 | 0.437064 |
train_a923838f39153c05 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.158, -0.333, -0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.842, 0.531).threePointArc((0, 0.473), (0.842, 0.531)).lineTo(0.842, 0.085).threePointArc((0, 0.031), (-0.842, 0.085)).lineTo(-0.842, 0.531).close().extrude(0.624)
result = resul... | 5 | 46 | 0.445558 |
train_648c911c011dc9ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.602, -0.22, -0.794), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.398, 1.096).lineTo(0.398, 0.034).lineTo(0.133, 0.034).threePointArc((-0.398, 0.565), (0.133, 1.096)).lineTo(0.398, 1.096).close().extrude(1.101)
result = result.edges().fillet(0.0... | 20 | 106 | 0.408644 |
train_05bfdfdc6e3db57c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.426, 0, 0.214), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.429, -0.333).threePointArc((0, 0.061), (0.429, -0.333)).lineTo(0.574, -0.333).lineTo(0.574, 0.333).lineTo(-0.574, 0.333).lineTo(-0.574, -0.333).lineTo(-0.429, -0.333).close().sweep(cq.... | 6 | 34 | 0.047977 |
train_32bfcf6e6463c2fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.194, -0.475, -0.391), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.376, 0.956).extrude(0.265)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.098, -0.637, -0.303), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.135).extrude(0.086))
result = resu... | 12 | 116 | 0.752492 |
train_c8051929834de05c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.787, 0.007), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.899).workplane(offset=0.236).circle(0.986).workplane(offset=0.241).circle(0.921).workplane(offset=0.31).circle(0.936).workplane(offset=0.296).circle(0.997).workplane(offset=0.243).circ... | 7 | 27 | 1.899155 |
train_848ad782bcb32057 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.148, -0.256, 0.082), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.813, 0.018).lineTo(0.423, 0.721).lineTo(-0.436, 0.719).lineTo(-0.822, 0.021).lineTo(-0.421, -0.744).lineTo(0.429, -0.744).close().moveTo(0.134, 0.234).lineTo(0.041, 0.364).lineTo(-... | 12 | 121 | 0.435152 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.