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_b55fb7f00b404798 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1.334, 0, -0.5), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.5, 1.334).lineTo(0.5, 0.931).lineTo(-0.5, 0.931).lineTo(-0.5, 1.738).lineTo(0.5, 1.738).lineTo(0.5, 1.334).close().revolve(angleDegrees=360, axisStart=(0.5, 1.334), axisEnd=(0.5, 0.931)... | 4 | 11 | 2.352355 |
train_ce983188a0e9717e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.491, 0.467, -0.227), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.424, 1.113).threePointArc((0, -0.306), (-0.424, 1.113)).threePointArc((0, 1.239), (0.424, 1.113)).close().extrude(1.251)
result = result.edges().chamfer(0.34)
result = result.unio... | 7 | 31 | 1.792657 |
train_ae8ee2a22f7098df | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.042, 0.719, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.652).sweep(cq.Workplane('XY').spline([(0.042, -0.139), (0.107, 0.288), (-0.114, 0.634), (-0.479, 0.678)]))
result = result.edges().chamfer(0.111)
result = result.cut(cq.Workplane(cq.Pla... | 36 | 51 | 1.17241 |
train_66244d4c35fb653c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.162, 0.07, -0.524), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.499, 0.005).lineTo(-0.433, 0.158).lineTo(0.433, 0.158).lineTo(0.499, 0.005).lineTo(-0.499, 0.005).close().extrude(0.324)
result = result.edges().chamfer(0.056)
result = result.uni... | 5 | 40 | 0.037231 |
train_c459365b3586a740 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.83, 0.932, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.013, 0.043).threePointArc((-0.042, 0.018), (-0.043, -0.021)).lineTo(-0.04, -0.018).threePointArc((-0.033, -0.03), (-0.022, -0.039)).threePointArc((0, -0.045), (0.022, -0.039)).lineTo(0.... | 1 | 10 | 0.006478 |
train_bbd8b372605f4242 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.953), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.369).extrude(1.906)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.539, 0.131, -0.344), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.325).extrude(0.813))
result = result.cut(cq.Workp... | 15 | 54 | 3.142782 |
train_dc001a4bc94102b5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.124, 0, -0.378), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.56, 1.47).extrude(0.837)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.066, -0.141, -0.459), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.211, 0.041).lineTo(-0.182, 0.041).line... | 4 | 29 | 2.256379 |
train_71338cb1ad9f88ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.295, -0.484, -0.234), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.274, 0.156).lineTo(0.274, 0.705).lineTo(-0.274, 0.705).lineTo(-0.122, 0.553).lineTo(0.111, 0.602).lineTo(0.122, 0.553).lineTo(0, 0.431).lineTo(-0.111, 0.26).lineTo(-0.122, 0.309).... | 10 | 64 | 0.399452 |
train_ed18ecca810ca2e2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.389, -0.184, -0.449), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.173, 1.184).lineTo(-0.543, 1.184).lineTo(-0.543, -0.816).lineTo(0.543, -0.816).lineTo(0.543, 1.184).lineTo(-0.173, 1.184).close().extrude(0.898)
result = result.edges().fillet(0... | 17 | 46 | 1.659785 |
train_e958910896a61c3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.123, 0, 0.153), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.5, 1).lineTo(-0.5, -1).lineTo(0.5, -1).lineTo(0.5, 0.84).lineTo(0.26, 1).lineTo(-0.5, 1).close().extrude(0.305)
result = result.edges().fillet(0.017)
result = result.union(cq.Workpla... | 8 | 56 | 0.539959 |
train_34f3b85f4cd96491 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.005, -0.728, 0.275), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.057, 0.272).lineTo(-0.057, 0.272).lineTo(-0.057, -0.272).lineTo(0.057, -0.272).lineTo(0.057, 0.272).close().revolve(angleDegrees=90, axisStart=(0.057, 0.272), axisEnd=(-0.057, 0.2... | 6 | 75 | 0.052487 |
train_9529e84deb21dc10 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.191, 0.269, 0.397), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.603, 0.467).lineTo(0.603, 0.252).lineTo(0.316, 0.252).lineTo(0.316, 0.036).lineTo(-0.144, 0.036).lineTo(-0.144, 0.252).lineTo(-0.287, 0.252).lineTo(-0.287, 0.036).lineTo(-0.603, 0.... | 23 | 207 | 0.347802 |
train_d9e0f935a02bed4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.205, 0.261, -0.48), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.59, 1.346).extrude(1.36)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.029, 0.124, -0.46), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.327, -0.102).lineTo(-0.327, 0.095).li... | 11 | 71 | 1.483688 |
train_20e1bb6797b7365c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.154, -0.225, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.118, 1.225).lineTo(-0.118, -0.657).threePointArc((0, -0.775), (0.118, -0.657)).lineTo(0.118, 1.225).lineTo(-0.118, 1.225).close().extrude(0.441)
result = result.edges().chamfer(0.065... | 5 | 28 | 0.190775 |
train_fb94e44d6260ab5d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.255, -0.021, -0.761), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.015, -0.184).lineTo(0.27, 0.1).threePointArc((-0.006, 0.197), (-0.27, 0.071)).lineTo(0.015, -0.184).close().extrude(0.509)
result = result.edges().chamfer(0.042)
result = result.... | 9 | 51 | 0.097642 |
train_d437fe6dc3c31cfd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.142, -0.288, 0.344), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.594, 0.093).lineTo(-0.198, 0.093).lineTo(-0.198, -0.031).lineTo(0.198, -0.031).lineTo(0.198, 0.712).lineTo(0.594, 0.712).lineTo(0.594, -0.712).lineTo(-0.594, -0.712).lineTo(-0.59... | 5 | 123 | 0.269398 |
train_f0ca2b6f9a563e7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.112, -0.797, -0.399), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.176, 0.022).threePointArc((0.199, 0.032), (0.209, 0.055)).lineTo(0.209, 0.088).threePointArc((0.199, 0.111), (0.176, 0.121)).lineTo(0.088, 0.121).threePointArc((0.067, 0.113), (0... | 7 | 76 | 0.281316 |
train_021a04c06219bd54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.076), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.041).extrude(0.127)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.8 + 0.16, -0.417 + 0.139, 0.051), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.001, -0.091).lineTo(0, 0).lineTo(... | 16 | 66 | 0.264448 |
train_1a4eeeb7b773b203 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.923, 0.109, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.016, -0.718).lineTo(-0.016, -0.718).lineTo(-0.016, 0.132).threePointArc((-0.164, 0.102), (-0.194, 0.25)).threePointArc((-0.351, 0.298), (-0.274, 0.444)).lineTo(-0.194, 0.638).lineTo(0... | 5 | 42 | 0.161953 |
train_b97aeb1cce61301f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.124, -0.009, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.401, 1.422).extrude(0.144)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.054, 0.062, 0.041), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.63).extrude(0.012))
result = resul... | 20 | 168 | 0.212128 |
train_05d432775e80b241 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.463, 0.304, 0.627), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.132, -0.102).lineTo(0.118, -0.102).lineTo(-0.003, 0.108).lineTo(-0.007, 0.102).lineTo(0.111, -0.102).lineTo(-0.132, -0.102).lineTo(-0.135, -0.108).lineTo(0.135, -0.108).lineTo(0.13... | 19 | 151 | 0.616266 |
train_93a95bdd7c4d9c79 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.662, 0.079, -0.052), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.338).sweep(cq.Workplane('XZ').spline([(0.662, -0.052), (0.379, 0.175), (-0.079, 0.24), (-0.498, 0.111), (-0.684, -0.151), (-0.55, -0.424)]))
result = result.cut(cq.Workplane(cq.Pl... | 10 | 36 | 0.499162 |
train_156dc58ade06bceb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.577), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.997, 0.082).threePointArc((-1, 0.002), (-0.997, -0.079)).threePointArc((-0.707, -0.707), (-0.079, -0.997)).threePointArc((0.002, -1), (0.082, -0.997)).threePointArc((0.71, -0.707), (1, -0... | 2 | 13 | 3.613845 |
train_16ab23a741f6dc90 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.465, -0.09, 0.072), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.928, 0.013).lineTo(0.928, 0.167).lineTo(-0.928, 0.167).lineTo(-0.928, 0.013).lineTo(0.928, 0.013).close().extrude(0.823)
result = result.edges().fillet(0.031)
result = result.cut(c... | 15 | 73 | 0.227447 |
train_2402d710898adfa0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.995, 0.08, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.489).sweep(cq.Workplane('XY').spline([(-0.142, 0.08), (0.392, 0.08), (0.927, 0.08), (1.139, -0.16), (1.351, -0.4), (1.564, -0.64)]))
result = result.cut(cq.Workplane(cq.Plane(origin=(-... | 11 | 50 | 1.344746 |
train_419fd303709e36f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.73), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.763).extrude(1.46)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.17, 0.355, -0.144), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.553).extrude(0.44))
result = result.edges().fillet(0.... | 12 | 201 | 4.206312 |
train_343d7a66ebcfa9a9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.027, 0.009, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.57, 0.877).extrude(0.732)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.062, -0.045, -1.022), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.191, 0.278).extrude(0.879))
result = result... | 18 | 85 | 0.98071 |
train_b2ec41b224ecd0cd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.275, 0.096, -0.754), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.449, 0.712).extrude(1.132)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.464, 0.146, -0.111), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.157).extrude(0.367))
result = result.e... | 12 | 25 | 0.143101 |
train_4ff860776aae665b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.48, 0.2, 0.93), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.4, 0.048).extrude(0.037)
result = result.union(cq.Workplane(cq.Plane(origin=(0.501, 0.202, 0.879), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.089, 0.024).extrude(0.056))
result = result.un... | 7 | 97 | 0.561805 |
train_4ad907f648ec7d8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.04, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.628, 0.446).extrude(0.692)
result = result.union(cq.Workplane(cq.Plane(origin=(0.168, 0.129, -0.444), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.028).extrude(1.444))
result = result.union(cq... | 8 | 63 | 0.165284 |
train_0e648c1b3c6e1140 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.192, -0.251, -0.388), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.416, 0.284).extrude(0.07)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.235, -0.326, -0.327), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.156, -0.07).lineTo(-0.071, 0.194).li... | 14 | 133 | 0.1741 |
train_858fd52470c8eabe | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.58), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.967, 0.659).lineTo(-0.967, -0.399).lineTo(0.5, -0.399).lineTo(0.726, -0.549).lineTo(0.967, -0.71).lineTo(0.967, -0.529).lineTo(-0.817, 0.659).lineTo(-0.892, 0.71).lineTo(-0.967, 0.659).clo... | 12 | 64 | 0.560829 |
train_970f0df022d40ab1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.036, 0.03, -0.435), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.077, 0.16).lineTo(0.077, 0.051).lineTo(0.077, -0.15).lineTo(-0.077, -0.15).lineTo(-0.077, 0.16).close().extrude(0.105)
result = result.union(cq.Workplane(cq.Plane(origin=(0.033, 0... | 18 | 172 | 0.304519 |
train_10306de83c772843 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.147, -0.265, -0.011), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, -0.735).lineTo(0.193, -0.735).lineTo(0.193, 0.735).lineTo(-0.193, 0.735).lineTo(-0.193, -0.735).lineTo(0, -0.735).close().extrude(0.172)
result = result.edges().fillet(0.042)
re... | 26 | 208 | 0.19218 |
train_7bb001b853215d8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.802, 0.635, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.951, 0.944).threePointArc((0.897, 1.076), (0.825, 1.2)).threePointArc((-1, 0.635), (0.825, 0.071)).threePointArc((0.897, 0.194), (0.951, 0.326)).threePointArc((0.988, 0.478), (1, 0.635... | 5 | 29 | 3.978155 |
train_3c94092c0a1db7ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.155, 0.175, 0.414), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.413, 0.085).lineTo(-0.413, 0.225).lineTo(0.413, 0.225).lineTo(0.413, 0.085).lineTo(-0.413, 0.085).close().revolve(angleDegrees=270, axisStart=(-0.413, 0.085), axisEnd=(-0.413, 0.2... | 7 | 55 | 0.175656 |
train_c242302ad000a446 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.296, -0.17, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.743).lineTo(-0.128, 0.17).lineTo(-0.22, -0.244).lineTo(-0.256, -0.404).lineTo(-0.128, -0.404).lineTo(-0.128, -0.244).lineTo(0, -0.244).lineTo(0, -0.404).lineTo(0.256, -0.404).lineTo... | 10 | 41 | 0.180909 |
train_b22abbef544ed6f8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.116, 0.087, -0.315), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.17, 0.987).extrude(0.803)
result = result.faces('<X').shell(-0.07)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.095, 0.224, 0.474), normal=(0, 0, 1), xDir=(1, 0, 0))).rect... | 13 | 92 | 0.722991 |
train_3f862bfa07b8e5a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.331, 0.406, -0.252), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.748, 0.406).lineTo(0.748, -0.015).lineTo(-0.748, -0.015).lineTo(-0.748, 0.827).lineTo(0.748, 0.827).lineTo(0.748, 0.406).close().extrude(0.703)
result = result.edges().fillet(0.20... | 23 | 155 | 0.525202 |
train_2329646581bdd638 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.469, -0.002, -0.079), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.569).transformed(offset=(0.311, 0.099, 0.038), rotate=(90, 0, 0)).circle(0.308).transformed(offset=(0.622, 0.038, 0.447), rotate=(0, 0, 20)).circle(0.57).loft()
result = result.e... | 16 | 171 | 0.055849 |
train_195e16f66e6ff80f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.268), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.207).extrude(0.805)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.195, 0.084, 0.157), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.278).extrude(0.299))
result = result.edges().chamfe... | 8 | 86 | 1.69736 |
train_731c5cbfb4d3ab09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.109, -0.056, -0.346), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.783, 1.26).extrude(0.687)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.355, 0.453, -0.236), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.129).extrude(0.269))
result = result.c... | 14 | 60 | 1.188356 |
train_0a3cccf633f28b0f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.877, -1.312, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-1, 0.508).lineTo(1, 0.508).lineTo(1, 2.263).lineTo(-1, 2.263).lineTo(-1, 0.508).close().revolve(angleDegrees=90, axisStart=(-1, 0.508), axisEnd=(1, 0.508))
result = result.union(cq.Wor... | 10 | 70 | 3.385315 |
train_5dd53f99a97fda4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.233, 0.025, -0.091), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.909, -0.126).lineTo(0.303, 0.126).lineTo(0.909, 0.126).lineTo(0.909, 0).lineTo(0.76, 0).lineTo(0.76, -0.126).lineTo(-0.909, -0.126).close().sweep(cq.Workplane('XY').spline([(0.233... | 11 | 59 | 0.277898 |
train_33148a2ca71bc035 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.375, 0.126), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.833, 0.426).lineTo(-0.684, 0.426).lineTo(-0.485, 0.372).lineTo(0.628, 0.372).lineTo(0.833, 0.168).lineTo(0.833, -0.168).lineTo(0.628, -0.372).lineTo(-0.485, -0.372).lineTo(-0.684, -0.4... | 3 | 139 | 0.344369 |
train_17929f3136029641 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.365, 0.369, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.151).sweep(cq.Workplane('XY').spline([(-0.365, -0.284), (-0.603, -0.166), (-0.885, -0.158), (-1.134, -0.261)]))
result = result.union(cq.Workplane(cq.Plane(origin=(-0.209, 0.659, -0.05... | 3 | 16 | 0.063257 |
train_c167a2bfa7b3d73a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.379), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.842, 0.467).extrude(0.424)
result = result.faces('<Y').shell(-0.023)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.034, 0.197, -0.235), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.449, ... | 5 | 67 | 0.081483 |
train_68eda82bb13b7864 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.055, -0.312), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.376, 1.238).extrude(0.623)
result = result.faces('>Z').shell(-0.072)
result = result.union(cq.Workplane(cq.Plane(origin=(0.108, -0.832, 0.033), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0... | 6 | 146 | 0.339621 |
train_f601bd92e6a774c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.308, -0.129, -0.996), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.383, 1.477).extrude(1.651)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.338, 0.178, -0.632), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.297).extrude(0.987))
result = result.... | 23 | 174 | 2.475755 |
train_339fb5b3700d4bf8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.355, 0.914, 0.552), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.199, -0.564).lineTo(0.199, 0.365).threePointArc((0, 0.564), (-0.199, 0.365)).lineTo(-0.199, -0.564).lineTo(0.199, -0.564).close().sweep(cq.Workplane('YZ').spline([(0.571, 0.285), (0... | 6 | 58 | 1.447352 |
train_67c74d3c977ac54c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.296, -0.516, -0.324), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.343, 0.328).extrude(0.177)
result = result.union(cq.Workplane(cq.Plane(origin=(0.281, -0.312, -0.291), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.043).extrude(0.088))
result = resu... | 22 | 245 | 0.365417 |
train_5685d7df471e76c6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.103, -1, -0.474), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.333, -0.275).lineTo(0.333, -0.158).lineTo(0.237, -0.096).lineTo(0, 0.058).lineTo(-0.237, 0.212).lineTo(-0.333, 0.275).lineTo(-0.333, -0.275).lineTo(0.333, -0.275).close().sweep(cq.W... | 21 | 168 | 0.711741 |
train_a7a03419b870fef2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.521), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.547).extrude(0.955)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.086, 0.331, -0.683), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.031).extrude(1.146))
result = result.cut(cq.Workpl... | 11 | 46 | 2.738298 |
train_0a570bf0d8762188 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.875, 0.937), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.144).sweep(cq.Workplane('YZ').spline([(0.875, 0.135), (1.31, 0.16), (1.745, 0.419), (2.18, 0.677), (2.615, 0.702)]))
result = result.edges().chamfer(0.033)
result = result.cut(cq.Workpl... | 6 | 18 | 0.001655 |
train_d17dc4e4e66a872a | 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.88, 0.484).lineTo(0.88, 0.484).lineTo(0.88, -0.484).lineTo(-0.88, -0.484).lineTo(-0.88, 0.484).close().extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.026, 0.239, -0.002), norm... | 9 | 110 | 3.045717 |
train_9d013b01f6db664d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.933, 0.086, 0.228), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.197, -0.224).threePointArc((0.099, 0.111), (-0.158, 0.347)).threePointArc((-0.197, -0.074), (0.197, -0.224)).close().extrude(0.535)
result = result.edges().fillet(0.144)
result = r... | 15 | 105 | 0.217365 |
train_f07c349361fde342 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.206, 0, 0.123), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.794, -0.628).lineTo(-0.794, 0.628).threePointArc((-0.074, -0.094), (0.794, -0.628)).lineTo(-0.794, -0.628).close().extrude(0.306)
result = result.union(cq.Workplane(cq.Plane(origin=(... | 16 | 212 | 0.335846 |
train_0c13e8ed8e504d6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.588, 0.433).lineTo(-0.588, 1.002).lineTo(0.588, 1.002).lineTo(0.588, 0.433).lineTo(-0.588, 0.433).close().revolve(angleDegrees=180, axisStart=(0, 0), axisEnd=(0.478, 0))
result = result.e... | 6 | 39 | 1.335269 |
train_40e51577394c29f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.19), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.574).extrude(0.379)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.19, -1.213), normal=(0, 1, 0), xDir=(1, 0, 0))).circle(0.087).moveTo(-0.066, 0.026).lineTo(-0.066, 0.012).lineTo(... | 13 | 61 | 0.955273 |
train_af4d640406cafc04 | 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.587, 1.544).extrude(1.565)
result = result.union(cq.Workplane(cq.Plane(origin=(0 + 0.32 * math.cos(0.802 + 2 * math.pi * 0 / 5), 0 + 0.32 * math.sin(0.802 + 2 * math.pi * 0 / 5), 0.565), normal=... | 25 | 205 | 3.493397 |
train_1a787b8bd8d09650 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.567), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.718).extrude(1.134)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.14, 0.025, -0.426), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.293).extrude(0.366))
result = result.edges().chamfe... | 13 | 167 | 3.500319 |
train_50858c79af63ea7c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.676, 0.287, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.334, -0.597).lineTo(-0.276, -0.597).lineTo(-0.111, 0.018).threePointArc((-0.334, 0.516), (-0.111, 1.014)).threePointArc((0.095, 1.14), (0.334, 1.184)).lineTo(0.334, 1.014).lineTo(0.334... | 16 | 62 | 1.155887 |
train_b8b6a80897daf3aa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.147, 0.013, -0.147), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.853, 0.019).lineTo(0.281, 0.795).lineTo(-0.657, 0.471).lineTo(-0.674, -0.495).lineTo(0.251, -0.821).close().moveTo(-0.203, 0.368).lineTo(0.203, 0.367).lineTo(0.205, 0.298).lineTo(0... | 10 | 78 | 0.324199 |
train_2c6eabe55622ba8a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.358, 0.984, -0.237), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.092, -0.081).lineTo(0.092, 0).lineTo(0.064, 0).lineTo(0.037, 0.081).lineTo(0.037, 0).lineTo(-0.037, 0).lineTo(-0.037, 0.081).lineTo(-0.064, 0).lineTo(-0.092, 0).lineTo(-0.092, -0.... | 13 | 152 | 0.497899 |
train_071ad3311e0bf96d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.821, 0.132, 0.084), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.106, 0.226).threePointArc((0, 0.312), (0.106, 0.226)).lineTo(0.175, -0.095).threePointArc((0, -0.312), (-0.175, -0.095)).lineTo(-0.106, 0.226).close().sweep(cq.Workplane('XZ').sp... | 11 | 37 | 0.217956 |
train_9c8dae6370abf528 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.117, -0.819), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.545).extrude(1.638)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.236, -0.765, -0.06), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.128, 0.248).extrude(0.265))
result = result.u... | 16 | 79 | 4.038973 |
train_b29e22fe9dd67c23 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.137, 0.408, 0.063), normal=(0, -1, 0), xDir=(0, 0, 1))).circle(0.526).workplane(offset=0.265).circle(0.506).workplane(offset=0.312).circle(0.537).workplane(offset=0.315).circle(0.467).workplane(offset=0.287).circle(0.448).loft()
result = result... | 5 | 53 | 0.985531 |
train_a01ef6a5640d8dc1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.318, -0.019, -0.561), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.364, 1.607).extrude(1.121)
result = result.union(cq.Workplane(cq.Plane(origin=(0.318 + 0.247 * math.cos(1.233 + 2 * math.pi * 0 / 3), 0.541 + 0.247 * math.sin(1.233 + 2 * math.pi * ... | 8 | 27 | 2.569018 |
train_2b4eb7e111ae16ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.296, 0.134, -0.29), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.258, 1.34).extrude(0.579)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.037, 0.894, -0.104), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.106).extrude(0.258))
result = result... | 16 | 181 | 0.559963 |
train_ececdd0a47f448d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.829, 0.169, -0.47), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.53, 0.831).lineTo(0.53, -0.494).lineTo(-0.53, -0.494).lineTo(-0.53, 0.831).lineTo(0.53, 0.831).close().extrude(1.438)
result = result.edges().fillet(0.129)
result = result.cut(cq.W... | 5 | 62 | 3.676786 |
train_ecaedd8805421a09 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.136, -0.235, -0.339), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.34, 1.53).extrude(0.621)
result = result.union(cq.Workplane(cq.Plane(origin=(0.209, -0.565, 0.274), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.041).extrude(0.136))
result = result... | 10 | 72 | 1.109308 |
train_2f14de6dc5bce462 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.379), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.6, 0.6).lineTo(0.6, 0.563).lineTo(0.55, 0.563).threePointArc((0.283, 0.493), (0.083, 0.302)).lineTo(-1, -0.6).lineTo(0.3, -0.6).lineTo(0.3, -0.3).lineTo(0.3, 0.013).threePointArc((0.373, 0... | 12 | 49 | 0.595708 |
train_22f216c04a0ce01c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.621, 0.141, -0.107), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.377, -0.463).lineTo(0.378, -0.476).lineTo(0.379, 0.471).lineTo(-0.371, 0.48).close().moveTo(0.07, 0.001).lineTo(0.022, 0.066).lineTo(-0.057, 0.041).lineTo(-0.057, -0.042).lineTo(0... | 20 | 333 | 0.217567 |
train_565148490f28e5b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.837, 0, -0.53), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.138, -0.087).threePointArc((-0.163, 0), (-0.138, 0.087)).threePointArc((0, 0.163), (0.138, 0.087)).threePointArc((0.154, 0.054), (0.162, 0.018)).threePointArc((0.163, 0), (0.162, -0.... | 4 | 26 | 0.220074 |
train_3997e64d38adeab3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.29, 0, 0.668), normal=(1, 0, 0), xDir=(0, 0, 1))).circle(0.267).sweep(cq.Workplane('XZ').spline([(-0.36, 0.231), (-0.213, 0.095), (0.016, 0.044), (0.236, 0.13), (0.265, 0.308), (0.125, 0.391), (-0.086, 0.47), (-0.317, 0.353)]))
result = result.e... | 3 | 11 | 0.609761 |
train_a6b26f32d8a34015 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.407, 0.066, -0.551), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.108, 0.747).threePointArc((0.356, 0.739), (0.349, 0.275)).lineTo(0.108, 0.042).threePointArc((-0.356, 0.049), (-0.349, 0.513)).lineTo(-0.108, 0.747).close().extrude(0.814)
result... | 4 | 22 | 0.459186 |
train_51783861fbf4b4b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.03, -0.041, -0.601), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.834, 1.917).extrude(1.107)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.093, -0.176, -0.415), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.06, 2.301).extrude(0.077))
result = res... | 19 | 44 | 3.577028 |
train_73a2fa45ca538ccd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.001, -0.051, -0.692), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 0.007).lineTo(-0.308, 0.007).lineTo(-0.308, 0.095).lineTo(0.308, 0.095).lineTo(0.308, 0.007).lineTo(0, 0.007).close().extrude(0.106)
result = result.edges().fillet(0.016)
result... | 8 | 62 | 0.008286 |
train_77e83d38f5e0bd91 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.692, -0.609), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.237, -0.041).lineTo(-0.261, 0).lineTo(-0.237, 0.041).lineTo(-0.233, 0.048).lineTo(-0.178, 0.048).lineTo(-0.174, 0.041).lineTo(0.174, 0.041).lineTo(0.178, 0.048).lineTo(0.233, 0.048)... | 17 | 209 | 0.109966 |
train_788e0eb07d48070b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.219, 0.025, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.119, 0.116).lineTo(-0.107, 0.094).lineTo(-0.06, 0.013).lineTo(-0.025, -0.098).threePointArc((0, -0.116), (0.025, -0.098)).threePointArc((0.024, -0.081), (0.013, -0.068)).lineTo(0.06,... | 2 | 18 | 0.066709 |
train_5d6da84c3db966cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, -0.091), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.789, 0.506).lineTo(-0.789, -0.335).lineTo(-0.171, -0.335).threePointArc((0, -0.506), (0.171, -0.335)).lineTo(0.789, -0.335).lineTo(0.789, 0.506).lineTo(-0.526, 0.506).lineTo(-0.789, 0.5... | 14 | 28 | 1.503204 |
train_00f7af974f67dfcb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.053, -0.018, 0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.06, 0.06).extrude(0.081)
result = result.union(cq.Workplane(cq.Plane(origin=(0.091, -0.012, 0.05), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.018, 0.012).extrude(0.008))
result = resu... | 10 | 53 | 0.10491 |
train_da963e5b4913ff23 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.454, -0.412, -0.357), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.436, 0.451).extrude(0.278)
result = result.union(cq.Workplane(cq.Plane(origin=(0.367, -0.412, -0.444), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.063).extrude(0.087))
result = resu... | 16 | 85 | 0.421267 |
train_4ffa66efa4905e87 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.062, -0.205, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.499, 0.104).lineTo(-0.499, 0.131).threePointArc((-0.75, 0.381), (-1, 0.131)).lineTo(-0.926, 0.131).threePointArc((-0.75, 0.306), (-0.574, 0.131)).lineTo(-0.574, 0.029).lineTo(0, 0.02... | 4 | 68 | 0.022352 |
train_c19996059fe044c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.97).extrude(0.563)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0.174), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.249, -0.195).lineTo(0.145, -0.374).lineTo(-0.034, -0.27).lin... | 10 | 48 | 1.502403 |
train_e5525cba30c49355 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.598, -0.288, -0.294), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.264, 0.571).threePointArc((0.075, 0.663), (-0.133, 0.647)).lineTo(-0.397, 0.341).threePointArc((-0.381, 0.133), (-0.264, -0.04)).lineTo(0.133, -0.116).threePointArc((0.306, 0.002... | 9 | 63 | 0.196434 |
train_656ef93f5116ed98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.083, -0.034, -0.335), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.965, 1.125).extrude(0.461)
result = result.union(cq.Workplane(cq.Plane(origin=(0.084, -0.73, -0.222), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.326, 0.317).extrude(0.192))
result =... | 37 | 113 | 0.48192 |
train_d00a763e44b84235 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.393, -0.208, -0.396), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, -0.638).lineTo(0.157, -0.216).lineTo(0.607, -0.197).lineTo(0.254, 0.083).lineTo(0.375, 0.516).lineTo(0, 0.267).lineTo(-0.375, 0.516).lineTo(-0.254, 0.083).lineTo(-0.607, -0.197)... | 16 | 216 | 0.450566 |
train_aa4fb957c2f063d1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.792, -0.129, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.262).sweep(cq.Workplane('XY').spline([(0.456, -0.355), (0.669, 0.014), (0.23, 0.389), (-0.373, 0.321), (-0.565, -0.155), (-0.124, -0.389)]))
result = result.edges().chamfer(0.064)
re... | 3 | 9 | 0.259395 |
train_b3943c5752320499 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.077, 0.143), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.013, 0.671).extrude(0.857)
result = result.union(cq.Workplane(cq.Plane(origin=(0.096, -0.329, 0.477), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.084).extrude(0.144))
result = result.edge... | 23 | 347 | 0.845182 |
train_6ed58a17ad784f01 | 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.838, 1.914).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.042, -0.253, -0.044), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.228).extrude(1.071))
result = result.cut(cq.Workplane... | 9 | 110 | 2.621807 |
train_3b56b72d475a7d68 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.083, -0.112, -0.088), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.238).sweep(cq.Workplane('XY').spline([(0.459, -0.354), (0.613, -0.349), (0.768, -0.321), (0.923, -0.21), (1.078, -0.013), (1.232, 0.097), (1.387, 0.125), (1.542, 0.131)]))
resul... | 12 | 96 | 0.512578 |
train_b388aa68de6e91da | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.399, -0.367, -0.167), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.148, 0.773).lineTo(0.148, -0.633).lineTo(-0.148, -0.633).lineTo(-0.148, 0.773).lineTo(0.148, 0.773).close().extrude(0.365)
result = result.edges().fillet(0.1)
result = result.cut... | 25 | 184 | 0.408987 |
train_475955731b306a04 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.191, 0, -0.514), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.618, 1.569).extrude(0.861)
result = result.union(cq.Workplane(cq.Plane(origin=(0.806, -0.113, -0.106), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.194).extrude(0.287))
result = result.c... | 12 | 110 | 1.521824 |
train_585eaf7d75440187 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.066, 0.075), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.333, -0.087).lineTo(-0.333, -1).lineTo(-0.196, -1).lineTo(-0.196, -0.087).lineTo(0.333, -0.087).lineTo(0.333, 0.087).lineTo(-0.127, 0.087).lineTo(-0.127, 1).lineTo(-0.196, 1).lineTo(-0... | 7 | 18 | 0.283466 |
train_e222a19bb336e6e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.358, -0.582), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, 0.882).lineTo(-1, -0.166).lineTo(1, -0.166).lineTo(-1, 0.882).close().extrude(1.164)
result = result.edges().fillet(0.211)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.599, -... | 13 | 36 | 0.93018 |
train_ec3478d15a7213d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.339, -0.17, -0.097), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.266, 0.231).extrude(0.017)
result = result.union(cq.Workplane(cq.Plane(origin=(0.471, -0.17, -0.079), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.05, 0.018).lineTo(-0.05, -0.682).li... | 12 | 203 | 0.366125 |
train_0fc92680220f838d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.028, 0.677, -0.331), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.53, 0.53).extrude(0.792)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.287, 0.6, -0.067), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.118, 0.053).extrude(0.138))
result = resu... | 8 | 34 | 0.434144 |
train_776a92a0a36c540f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.081, -0.117, -0.012), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.144, 1.081).lineTo(0.144, 1.081).lineTo(0.144, -0.834).lineTo(0.029, -0.834).threePointArc((0, -0.805), (-0.029, -0.834)).lineTo(-0.144, -0.834).lineTo(-0.144, 1.081).close().ex... | 6 | 51 | 0.111599 |
train_9eb70a37a15b24b7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.094), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.733, 2).extrude(0.137)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.218, -0.452, 0.042), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.228, -0.533).lineTo(-0.222, -0.533).lineTo(-0... | 11 | 25 | 0.442754 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.