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_d129c1bce8a91a89 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.119, 0.277, -0.753), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0, 0.614).threePointArc((-0.434, 0.434), (-0.614, 0)).threePointArc((-0.434, -0.434), (0, -0.614)).lineTo(0, 0).lineTo(0.614, 0).threePointArc((0.434, 0.434), (0, 0.614)).close().sw... | 12 | 58 | 0.605695 |
train_db744cdf8474f30a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.042, -0.013, -0.079), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.022, -0.028).threePointArc((0.01, -0.016), (0.022, -0.004)).lineTo(0.001, -0.004).threePointArc((-0.014, -0.011), (-0.029, -0.004)).threePointArc((-0.033, 0.01), (-0.027, 0.022)... | 8 | 93 | 0.002105 |
train_14b944b244c14a7e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.104, -0.235), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.187, 0.314).lineTo(-0.055, 1.062).threePointArc((0, 1.104), (0.055, 1.062)).lineTo(0.187, 0.314).lineTo(0.187, -0.764).lineTo(-0.187, -0.764).lineTo(-0.187, 0.314).close().extrude(0.... | 9 | 43 | 0.267996 |
train_b596a7c5697993c5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.265, 0, 0.078), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.735, -0.136).lineTo(-0.735, 0.136).lineTo(0.735, 0.136).lineTo(0.735, -0.136).lineTo(0.096, -0.136).lineTo(0.096, -0.056).lineTo(-0.096, -0.056).lineTo(-0.096, -0.136).lineTo(-0.735,... | 13 | 84 | 0.03688 |
train_cf7ba9c6e7766070 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.209, 0.447, -0.287), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.663).transformed(offset=(0.107, 0.07, 0.097), rotate=(0, 90, 0)).circle(0.402).transformed(offset=(0.214, 0.107, 0.024), rotate=(0, 0, 60)).circle(0.537).transformed(offset=(0.32... | 2 | 8 | 0.362321 |
train_d512a3cc214fa0dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.353, 0.152, -0.117), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.752, 0.734).extrude(0.181)
result = result.union(cq.Workplane(cq.Plane(origin=(0.353, 0.152, 0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.203).extrude(0.032))
result = result.... | 20 | 347 | 0.205581 |
train_64c174b8573097d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.7, 0, -0.002), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.45).workplane(offset=0.479).circle(0.386).workplane(offset=0.442).circle(0.49).workplane(offset=0.453).circle(0.456).workplane(offset=0.326).circle(0.384).loft()
result = result.edges()... | 14 | 20 | 0.887101 |
train_38833a5ce1c25516 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.3, -0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.527, 1.399).extrude(0.803)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.056, -0.672, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.328).extrude(0.451))
result = result.cut... | 14 | 96 | 0.407548 |
train_f45991e283c4c3f6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.778, -0.679, 0.369), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.393, 0.055).lineTo(-0.393, 0.055).lineTo(-0.393, 1.304).lineTo(0.393, 1.304).lineTo(0.393, 0.055).close().extrude(1.556)
result = result.union(cq.Workplane(cq.Plane(origin=(0.147,... | 4 | 34 | 3.00735 |
train_d65b274eea1dbb34 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.141, -0.533, -0.102), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.143, -0.099).threePointArc((0.143, 0.023), (-0.141, 0.151)).lineTo(-0.143, -0.099).close().extrude(0.493)
result = result.union(cq.Workplane(cq.Plane(origin=(0.398, -0.443, 0.058... | 8 | 141 | 0.09613 |
train_0fb62ccb233384f5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.318, 0.19, -0.176), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.363, 0.865).extrude(0.352)
result = result.union(cq.Workplane(cq.Plane(origin=(0.021, -0.427, -0.139), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.332, 0.391).extrude(0.188))
result = r... | 15 | 102 | 0.349857 |
train_0e5cdc68eaafaed9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.755, 0.201, 0.045), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.49, 0.041).extrude(0.06)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.231, 0.192, 0.053), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.6, 0.013).extrude(0.037))
result = resul... | 7 | 60 | 0.161484 |
train_cad95510be662901 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.184, -0.302, 0.905), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(1.479).sweep(cq.Workplane('YZ').spline([(-0.99, 0.495), (-0.486, -0.091), (0.058, -0.091), (0.563, 0.495), (0.563, 1.126), (0.058, 1.713), (-0.486, 1.713), (-0.99, 1.126)]))
result... | 7 | 15 | 1.535625 |
train_877232677a0edbde | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, -0.35, 0.029), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.138, -0.047).threePointArc((-0.086, 0.104), (0.07, 0.142)).threePointArc((0.138, -0.142), (-0.138, -0.047)).close().sweep(cq.Workplane('XY').spline([(-0.376, -0.35), (-0.168, -0.184)... | 5 | 24 | 0.125601 |
train_be555f91c49ed96a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.414, 0.179, -0.357), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.836, 0.543).extrude(0.431)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.555, 0.291, 0.035), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.039).extrude(0.04))
result = result.cut... | 13 | 107 | 0.601528 |
train_a4e45cb7254cf97c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.027, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.605, 0.471).extrude(2)
result = result.union(cq.Workplane(cq.Plane(origin=(0.301, 0.119, -0.075), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.056, 0.066).extrude(0.254))
result = result.cut(c... | 9 | 42 | 0.547434 |
train_c33bb55c90038f85 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.027, 0.133, -0.104), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.071, 0.09).lineTo(0.055, 0.09).lineTo(0.055, 0.166).lineTo(0.071, 0.166).lineTo(0.071, -0.086).lineTo(-0.071, -0.086).lineTo(-0.071, 0.09).close().extrude(0.111)
result = result.... | 30 | 211 | 0.027687 |
train_86e1a85c04505fb0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.518, 0.26, -0.103), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.331, 0.297).extrude(0.05)
result = result.union(cq.Workplane(cq.Plane(origin=(0.386, 0.26, -0.048), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.005, 0.086).threePointArc((0.072, 0.04... | 8 | 184 | 0.82783 |
train_d31f21ac48c69290 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.861, -0.349, -0.086), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.052, -0.139).lineTo(-0.115, 0.038).lineTo(-0.142, 0.001).lineTo(-0.116, 0.038).lineTo(-0.076, 0.093).lineTo(-0.052, 0.126).lineTo(-0.053, 0.126).lineTo(-0.044, 0.139).lineTo(0.0... | 35 | 479 | 0.93055 |
train_46482e659d9549e0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.053, 0, -0.017), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.006, 0.445).extrude(0.263)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.757, 0.032, 0.024), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.487, 0.113).extrude(0.079))
result = resu... | 15 | 117 | 0.185401 |
train_3b64fcc86bc0ea6d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.377, -0.001, -0.247), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.081, 0.361).lineTo(0.076, 0.369).lineTo(0.057, 0.068).lineTo(0.529, 0.064).lineTo(0.52, -0.076).lineTo(0.071, -0.059).lineTo(0.054, -0.359).lineTo(-0.052, -0.367).lineTo(-0.06, -... | 16 | 144 | 0.188785 |
train_757dffaa0647d176 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.084, -0.003, -0.314), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1.039, -0.008).lineTo(0.353, 1.003).lineTo(-0.871, 0.6).lineTo(-0.854, -0.59).lineTo(0.347, -0.997).close().center(-0.321, 0.291).rect(0.328, 0.227).moveTo(0.509, -0.02).lineTo(0.5... | 12 | 65 | 0.983874 |
train_890b521bfa92a2b4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.552, -0.051, -0.39), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.896, 0.842).extrude(0.644)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.447, 0.516, -0.14), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.506, 0.353).extrude(0.249))
result = ... | 11 | 55 | 0.484882 |
train_1f4b8c04d715e7a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.504, 0.445, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.124, 1.096).lineTo(0.871, -0.183).lineTo(-0.871, -0.183).lineTo(-0.145, 1.096).threePointArc((-0.105, 1.001), (-0.01, 0.963)).lineTo(-0.01, 1.096).lineTo(0.124, 1.096).close().revolve(a... | 17 | 92 | 0.976853 |
train_d3a26a8e2ed482d4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.457, 0.246, 0.601), normal=(0, 0, -1), xDir=(1, 0, 0))).lineTo(0.844, -0.894).lineTo(0.844, 0.113).lineTo(0.844, 1.155).lineTo(0.095, 1.155).lineTo(0.067, 1.155).close().workplane(offset=0.593).lineTo(0.908, -0.963).lineTo(0.908, 0.122).lineTo(... | 4 | 40 | 1.668737 |
train_cb4cd44904685ba4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.126, -0.166, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.168).lineTo(0.952, 0.168).lineTo(1, 0.084).lineTo(-0.952, 0.084).lineTo(-1, 0.168).close().revolve(angleDegrees=90, axisStart=(-1, 0.168), axisEnd=(0.952, 0.168))
result = result.... | 3 | 17 | 0.01 |
train_7a9b717115934772 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.382, 0, -0.463), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.236, 1.669).extrude(0.436)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.112, 0.084, 0.005), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.523).workplane(offset=0.195).circle(0.2... | 3 | 15 | 1.177881 |
train_835fc0a8596839b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.341, 0.052, -0.282), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.648, 0.59).extrude(0.309)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.561, 0.052, -0.148), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.11).extrude(0.041))
result = result.c... | 18 | 116 | 0.227659 |
train_42e968c4d73afa7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.16, -0.791, 0.371), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.485, -0.209).lineTo(-0.485, 0.209).lineTo(-0.282, 0.209).lineTo(-0.282, 0.121).lineTo(-0.201, 0.121).lineTo(-0.201, 0.209).lineTo(0.485, 0.209).lineTo(0.485, -0.209).lineTo(0.381, ... | 6 | 62 | 0.358735 |
train_e70a2687e289b237 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.844, -0.033, -0.339), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.156, -0.025).threePointArc((-0.036, 0.041), (-0.156, -0.123)).lineTo(-0.156, 0.123).lineTo(0.156, 0.123).lineTo(0.156, -0.025).close().transformed(offset=(0.109, 0.109, 0.097), r... | 17 | 6 | 0.023822 |
train_8f8caec12b54108b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.002, 0, -0.198), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.093, 2).extrude(0.596)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.002, 0, -0.287), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.48, 1.136).extrude(0.774))
result = result.union(cq.... | 4 | 27 | 1.118309 |
train_7f65793682c7590e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.474, 0.5), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.5, 0.349).lineTo(-0.5, 0.224).lineTo(0.041, 0.224).lineTo(0.041, 0.464).threePointArc((0.072, 0.537), (0.146, 0.568)).lineTo(0.166, 0.568).lineTo(0.166, 0.536).lineTo(0.334, 0.536).lin... | 8 | 158 | 0.555942 |
train_b027f48b4126b681 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.379, 0.03, 1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.292, -0.277).threePointArc((0.094, -0.009), (-0.079, 0.277)).lineTo(-0.292, 0.162).lineTo(0.292, -0.277).close().sweep(cq.Workplane('XZ').spline([(0.379, -0.265), (0.505, -0.249), (0.631... | 3 | 12 | 0.008062 |
train_4457562dffa56ba5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.281, -0.346, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.069, 0.968).lineTo(0.069, 0.968).lineTo(0.069, 0.346).lineTo(0.169, -0.102).lineTo(0.207, -0.102).lineTo(0.207, -0.275).lineTo(0.069, -0.275).lineTo(0.069, -0.102).lineTo(-0.069, -0.... | 6 | 47 | 0.340491 |
train_f371ef0670a30a4d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.524, 0.121, -0.338), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.492, -0.005).lineTo(0.24, 0.431).lineTo(-0.234, 0.407).lineTo(-0.476, -0.002).lineTo(-0.236, -0.411).lineTo(0.235, -0.426).close().moveTo(-0.089, 0.126).lineTo(0.089, 0.126).lineT... | 15 | 285 | 0.323187 |
train_c7b993d802dd2c2c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.856, 0, 0.067), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.054, -0.153).threePointArc((-0.077, -0.163), (-0.087, -0.186)).lineTo(-0.087, -0.349).lineTo(-0.144, -0.349).lineTo(-0.144, -0.153).lineTo(-0.144, 0.218).lineTo(0.054, 0.218).threePo... | 21 | 201 | 0.128086 |
train_6170000f025cdc03 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.836, -0.012, 0.361), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.36).sweep(cq.Workplane('XZ').spline([(-0.836, 0.361), (-0.47, 0.091), (-0.103, -0.045), (0.263, -0.045), (0.63, 0.091), (0.996, 0.361)]))
result = result.edges().chamfer(0.285)
r... | 14 | 47 | 0.320126 |
train_8813114ce5b1eee0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.738, 0.194, -0.064), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.341, 0.027).lineTo(-0.341, 0.36).lineTo(0.341, 0.36).lineTo(0.341, 0.027).lineTo(-0.341, 0.027).close().extrude(1.738)
result = result.edges().fillet(0.084)
result = result.union... | 13 | 121 | 0.362345 |
train_0f886f828358d293 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.457, 0.333, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-1, 0.124).lineTo(1, 0.124).lineTo(-0.332, 0.79).lineTo(-1, 0.124).close().revolve(angleDegrees=90, axisStart=(-1, 0.124), axisEnd=(1, 0.124))
| 1 | 4 | 0.232245 |
train_62103781b51df2bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, -0.85, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.986, 0.829).lineTo(-0.695, 1.55).lineTo(0.986, 0.871).lineTo(0.695, 0.15).lineTo(-0.986, 0.829).close().extrude(2)
result = result.edges().fillet(0.321)
result = result.cut(cq.Workplane(c... | 17 | 116 | 1.003276 |
train_750e539f2a7854b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.672, -0.712, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.557, 1.362).lineTo(-0.557, 0.062).lineTo(0.557, 0.062).lineTo(0.557, 1.362).lineTo(-0.557, 1.362).close().extrude(1.672)
result = result.edges().chamfer(0.373)
result = result.union(... | 10 | 67 | 1.109983 |
train_1097e85bb706732f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.13, 0.016, -0.218), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.635, 0.459).extrude(0.476)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.171, 0.311, -0.09), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.078).extrude(0.204))
result = result... | 11 | 106 | 0.149938 |
train_c93ecd02957c9166 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.213, 0, -0.377), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.377, 0.103).threePointArc((-0.163, -0.48), (0.377, -0.787)).lineTo(0.377, 0.103).lineTo(0.377, 0.993).lineTo(0.377, 1.213).lineTo(-0.377, 1.213).lineTo(-0.377, 0.103).close().revolve... | 13 | 414 | 2.674336 |
train_b6225869096f6b3a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.262, -0.277, -0.17), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.576, 0.489).threePointArc((0, -0.087), (0.576, 0.489)).lineTo(0.573, 0.489).lineTo(0.567, 0.489).lineTo(0.555, 0.489).lineTo(0.549, 0.489).lineTo(-0.549, 0.489).lineTo(-0.555, 0.4... | 30 | 202 | 0.294008 |
train_bd7bb575807534f0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.124, 0.631, -0.12), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.736, 0.716).extrude(0.137)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.124, 0.672, 0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.388, 0.656).extrude(0.011))
result = r... | 12 | 238 | 0.197589 |
train_a3dcc9077fd16ad5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0, 0.442), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.311, 0.358).lineTo(-0.311, -0.358).lineTo(0.105, -0.358).lineTo(0.105, -0.176).lineTo(0.272, -0.176).threePointArc((0.301, -0.09), (0.311, 0)).lineTo(0.105, 0).lineTo(0.105, 0.176).lineT... | 3 | 19 | 0.284376 |
train_a4af4c9553efe423 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.473, 0.154, -0.086), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.469, 0.439).threePointArc((-0.515, 0.381), (-0.55, 0.318)).threePointArc((-0.589, 0.139), (-0.55, -0.039)).threePointArc((-0.482, 0.038), (-0.458, 0.139)).threePointArc((-0.153, ... | 12 | 144 | 0.492157 |
train_40ca1244f8b9d27e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.077, -0.324, 0.034), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.12, 0.606).lineTo(0.069, 0.606).lineTo(0.069, 0.136).lineTo(0.12, 0.136).lineTo(0.12, 0.037).lineTo(-0.12, 0.037).lineTo(-0.12, 0.606).close().extrude(0.72)
result = result.unio... | 13 | 147 | 0.147171 |
train_85c12ad6f0bf7c1f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.552), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.405).extrude(1.104)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.943, -0.128, -0.136), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.121, 0.053).extrude(0.132))
result = result.cut(cq.... | 21 | 131 | 2.508143 |
train_a90d2b33eae79906 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.171, -0.27, -0.33), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.67, -0.669).lineTo(0.08, 0.082).lineTo(0.67, 0.669).lineTo(0.67, -0.669).lineTo(-0.67, -0.669).close().sweep(cq.Workplane('XY').spline([(-0.171, 0.413), (0.223, 0.728), (0.618, 0... | 5 | 33 | 0.420723 |
train_75f803c6bbb75415 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.108, -0.643, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(1, 0.445).threePointArc((0.981, 0.328), (0.925, 0.223)).threePointArc((0.875, 0.204), (0.856, 0.154)).threePointArc((0.751, 0.098), (0.635, 0.079)).lineTo(-0.635, 0.079).threePointArc((... | 11 | 145 | 0.451172 |
train_87cb8ab52f2eb2ca | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.149, 0.15, -0.407), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.133, 1.7).extrude(0.963)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.558, 0.152, 0.026), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.315, 0.898).extrude(0.171))
result = resu... | 11 | 120 | 0.541834 |
train_3732c44c8db3c6db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.062, -0.007, -0.713), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.145, 0.255).lineTo(-0.145, -0.241).lineTo(0.145, -0.241).lineTo(0.145, 0.255).lineTo(-0.145, 0.255).close().revolve(angleDegrees=90, axisStart=(-0.145, 0.255), axisEnd=(-0.145, ... | 9 | 80 | 0.116619 |
train_b17610c063ff0ffd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.114, -0.655, -0.501), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.304, 0.323).lineTo(-0.126, 0.145).lineTo(-0.166, 0.049).lineTo(0.166, 0.049).lineTo(0.126, 0.145).lineTo(0.304, 0.323).lineTo(0.4, 0.284).lineTo(0.4, 0.615).lineTo(0.166, 0.849)... | 23 | 150 | 0.579401 |
train_ff9e443574d27c59 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.141, 0.07, -0.635), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.077, 0.368).lineTo(-0.198, 0.28).lineTo(0.077, -0.098).lineTo(0.198, -0.01).lineTo(-0.077, 0.368).close().extrude(0.219)
result = result.edges().chamfer(0.044)
result = result.uni... | 9 | 54 | 0.019074 |
train_6c4e7709849b2f20 | 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.231, 1.099).extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.103, 0.367, -0.318), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.589, 0.383).extrude(1.008))
result = result.cut(cq.Work... | 11 | 55 | 2.058772 |
train_d4df6300cb6f514e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.047), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.059, 1).lineTo(0.014, -1).lineTo(-0.014, -1).lineTo(-0.059, 1).lineTo(0.059, 1).close().workplane(offset=0.019).moveTo(0.056, 0.958).lineTo(0.013, -0.958).lineTo(-0.013, -0.958).lineTo(-0.... | 9 | 22 | 0.01052 |
train_60b4d19345da29fa | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.228, 0.244, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.901, 0.297).lineTo(-1, 0.421).lineTo(-0.682, 0.421).threePointArc((-0.681, 0.419), (-0.68, 0.418)).lineTo(-0.019, 0.418).lineTo(1, 0.418).lineTo(1, 0.035).lineTo(-0.876, 0.035).lineTo... | 1 | 11 | 0.351067 |
train_bb75d8f53fb13f71 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.003, -0.021, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.186).lineTo(0.222, 0.229).threePointArc((0.269, 0.208), (0.264, 0.157)).threePointArc((0.238, 0.142), (0.208, 0.148)).lineTo(0.115, -0.014).lineTo(0.022, -0.175).lineTo(0, -0.213)... | 9 | 125 | 0.19856 |
train_e84540c5f8280901 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.046, -0.742), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.05, 1.478).extrude(1.228)
result = result.union(cq.Workplane(cq.Plane(origin=(0.217, -0.207, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.186).extrude(0.273))
result = result.union(... | 16 | 44 | 1.200552 |
train_cb72b1283b644f2e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.5, 0, -0.077), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.79, 1.001).lineTo(-0.79, 0.583).lineTo(0.252, 0.583).threePointArc((0.295, 0.402), (0.235, 0.226)).lineTo(0.79, 0.226).lineTo(0.79, 0.583).lineTo(0.79, 1.001).lineTo(-0.79, 1.001).clos... | 10 | 271 | 1.959209 |
train_763466f9abe853ba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.369, 0.103), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.13, -0.784).lineTo(0.568, 0.271).lineTo(0.654, 0.26).lineTo(0.59, 0.325).lineTo(0.428, 0.714).lineTo(0.39, 0.523).lineTo(0.13, 0.784).lineTo(-0.654, 0).lineTo(0.13, -0.784).close().sw... | 2 | 14 | 1.161424 |
train_d45521d3b4de7df5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.429, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.039).sweep(cq.Workplane('XY').spline([(-0.411, 0.429), (-0.116, 0.168), (0.178, 0.081), (0.473, 0.168), (0.767, 0.429)]))
| 1 | 3 | 0.003918 |
train_7fa044b923c802b1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.466, -0.407, -0.124), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.305, 0.838).threePointArc((0.48, 0.712), (0.547, 0.508)).threePointArc((0.48, 0.303), (0.305, 0.177)).lineTo(-0.393, -0.044).lineTo(-0.547, -0.044).threePointArc((-0.325, 0.508),... | 11 | 51 | 0.729864 |
train_cc585087774a999c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.73, 0.686, -0.319), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.537, 0.311).threePointArc((-0.438, 0.292), (-0.419, 0.193)).threePointArc((0, 0.048), (0.419, 0.193)).threePointArc((0.482, 0.248), (0.537, 0.311)).threePointArc((0.681, 0.73), (0... | 13 | 128 | 1.374298 |
train_a70610e4ee0b090a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.326, -0.014, 0.026), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.475, -1.055).lineTo(0.475, -0.348).threePointArc((0.043, 0.405), (-0.475, 1.102)).lineTo(-0.475, -1.055).close().extrude(0.652)
result = result.edges().chamfer(0.115)
result = re... | 10 | 44 | 0.482937 |
train_9d49faa96d40dce0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.5), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.258, 0.501).lineTo(0.581, 0.501).lineTo(0.581, 0.452).lineTo(-0.581, 0.452).lineTo(-0.581, 0.501).lineTo(-0.298, 0.501).lineTo(-0.298, 1).lineTo(0.258, 1).lineTo(0.258, 0.501).close().revolv... | 4 | 29 | 0.592056 |
train_69a9838d5b741ef7 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.088, -0.544, -0.146), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.854, 0.027).lineTo(-0.854, 0.3).lineTo(0.854, 0.3).lineTo(0.854, 0.027).lineTo(-0.854, 0.027).close().extrude(0.152)
result = result.edges().fillet(0.068)
result = result.union(... | 5 | 78 | 0.095572 |
train_f85e5ebfe1da76a1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.059, -0.033, -0.012), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.07, -0.941).lineTo(0.03, -0.941).lineTo(0.03, -0.821).lineTo(-0.07, -0.821).lineTo(-0.07, 1.059).lineTo(-0.04, 1.059).lineTo(-0.05, 0.939).lineTo(0.01, 0.939).lineTo(0, 1.059).li... | 12 | 193 | 0.040922 |
train_4cba0b158ba01f7b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.341, -0.576, -0.062), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.331).sweep(cq.Workplane('XY').spline([(0.341, -1.394), (0.681, -1.619), (1.021, -1.755), (1.361, -1.799), (1.702, -1.755), (2.041, -1.619), (2.382, -1.394)]))
result = result.edge... | 19 | 103 | 0.39783 |
train_79a4ab468e3c647e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.097, 1, 0.008), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.314, 0.236).lineTo(0.314, 0.236).lineTo(0.314, -0.041).lineTo(-0.314, -0.041).lineTo(-0.314, 0.236).close().extrude(1.121)
result = result.edges().fillet(0.061)
result = result.cut(cq... | 28 | 237 | 0.113904 |
train_2d9d9956244f5695 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.2, -0.789, -0.227), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.257, 0.149).threePointArc((-0.284, 0), (-0.257, -0.149)).lineTo(0.137, -0.149).threePointArc((0.284, 0), (0.137, 0.149)).lineTo(-0.257, 0.149).close().sweep(cq.Workplane('YZ').sp... | 5 | 30 | 0.294959 |
train_0f8423bf85e1b058 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.01, 0, 0.226), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.854, 0.31).threePointArc((0.771, 0), (0.854, -0.31)).lineTo(-0.553, -1.122).threePointArc((-0.854, 0), (-0.553, 1.122)).lineTo(0.854, 0.31).close().workplane(offset=0.13).moveTo(0.757, ... | 2 | 26 | 0.732581 |
train_3f06f27ceca56d48 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.157, -0.432, -0.648), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.971, 0.799).extrude(0.694)
result = result.union(cq.Workplane(cq.Plane(origin=(0.343, -0.41, -0.001), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.098).extrude(1.001))
result = resul... | 12 | 109 | 0.654987 |
train_1c6ead81c315baeb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.501, 0.006, -0.344), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.28).workplane(offset=0.226).circle(0.28).workplane(offset=0.251).circle(0.243).workplane(offset=0.251).circle(0.243).workplane(offset=0.262).circle(0.299).workplane(offset=0.264).... | 12 | 59 | 0.416384 |
train_d883346b91cde258 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.278, 0.067, -0.136), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.14, 0.355).lineTo(-0.14, -0.401).lineTo(0.14, -0.401).lineTo(0.14, 0.355).lineTo(0.046, 0.355).threePointArc((0, 0.401), (-0.046, 0.355)).lineTo(-0.14, 0.355).close().transforme... | 3 | 21 | 0.09969 |
train_5bd83f4a6724256e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.164, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.418, -0.189).threePointArc((-0.27, -0.107), (-0.353, -0.254)).threePointArc((0, -0.383), (0.353, -0.254)).threePointArc((0.387, -0.222), (0.418, -0.189)).threePointArc((0.547, 0.164), (0... | 9 | 22 | 1.560324 |
train_a5aefe671ade6511 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.087, 0, -0.464), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.293, 0.492).lineTo(0.276, 0.502).lineTo(0.276, 0.82).lineTo(0.293, 0.831).lineTo(0, 1).lineTo(0, 0.98).lineTo(-0.276, 0.82).lineTo(-0.293, 0.831).lineTo(-0.293, 0.492).lineTo(0, 0.323)... | 10 | 68 | 0.599206 |
train_7d08f015ba42c6b0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -1, 0.114), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.353, 0.648).lineTo(0.353, -0.53).lineTo(0.236, -0.648).lineTo(-0.353, -0.059).lineTo(-0.236, 0.059).lineTo(0.353, 0.648).close().sweep(cq.Workplane('YZ').spline([(-0.484, -0.307), (-0.313... | 2 | 33 | 0.721675 |
train_0a8355222cf88137 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.897, 0.303, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).circle(0.641).workplane(offset=0.928).circle(0.69).workplane(offset=0.866).circle(0.504).loft()
result = result.union(cq.Workplane(cq.Plane(origin=(0, -0.681, -0.192), normal=(0, 0, 1), xDir=(1... | 16 | 103 | 1.43067 |
train_a72849b353efec19 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.289), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(2, 1.919).extrude(0.578)
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0.289, -1.536), normal=(0, 1, 0), xDir=(1, 0, 0))).moveTo(0.522, 0.09).lineTo(0.423, 0.114).lineTo(0.322, 0.122).l... | 16 | 95 | 1.697881 |
train_4e1bebe1ff36c7dd | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.025, 0.011, -0.323), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.633, -0.686).lineTo(0.613, -0.669).lineTo(0.611, 0.655).lineTo(-0.619, 0.665).close().moveTo(-0.229, 0.132).lineTo(-0.172, 0.133).lineTo(-0.172, 0.029).lineTo(-0.082, 0.028).lineT... | 13 | 132 | 0.382015 |
train_d44def18d87470b3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.199, 0, -0.314), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(1.601, 1.353).extrude(0.628)
result = result.union(cq.Workplane(cq.Plane(origin=(0.791, -0.106, -0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.418, 0.46).extrude(0.324))
result = resu... | 8 | 36 | 0.893938 |
train_17e915b33436c13e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, 0.229), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(1, 0.485).lineTo(1, -0.446).lineTo(0.861, -0.446).lineTo(0.822, -0.485).lineTo(0.783, -0.446).lineTo(-0.783, -0.446).lineTo(-0.822, -0.408).lineTo(-0.861, -0.446).lineTo(-1, -0.446).lineTo(-... | 3 | 18 | 0.692987 |
train_541e53ebcb751e00 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.206, -0.038, -0.437), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.796, -0.013).lineTo(0.434, 0.695).lineTo(-0.4, 0.699).lineTo(-0.794, -0.022).lineTo(-0.419, -0.691).lineTo(0.407, -0.716).close().moveTo(-0.239, -0.219).lineTo(0.239, -0.22).line... | 8 | 45 | 0.65444 |
train_8a550ba1da76e5e4 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.295, -0.029, -0.642), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.358, 0.023).lineTo(-0.33, 0.023).threePointArc((-0.351, 0.056), (-0.358, 0.094)).lineTo(-0.358, 0.167).threePointArc((-0.343, 0.22), (-0.304, 0.258)).lineTo(-0.035, 0.258).lineTo... | 5 | 48 | 0.042476 |
train_281dbd0285515f39 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.188, 0, -0.18), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.311, 0.328).extrude(0.36)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.647, -0.041, -0.062), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.707, 0.042).extrude(0.046))
result = resu... | 7 | 239 | 0.033399 |
train_43815a5f6a63aa6c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.238, 0.531, 0.469), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.531, 0.521).lineTo(-0.531, -0.045).lineTo(0.531, -0.045).lineTo(0.531, 0.521).lineTo(-0.531, 0.521).close().extrude(1.063)
result = result.faces('>Z').shell(-0.045)
result = resul... | 3 | 22 | 0.318703 |
train_a032d754ec0f7f31 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.74, -0.179, -0.4), normal=(0, 0, -1), xDir=(1, 0, 0))).circle(0.187).transformed(offset=(-0.149, 0.056, 0.12), rotate=(10, 0, 0)).circle(0.28).transformed(offset=(-0.265, -0.06, 0.04), rotate=(30, 0, 0)).circle(0.135).transformed(offset=(-0.244,... | 13 | 70 | 0.622232 |
train_99a388660cb58bc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.007, 0, 0.299), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.151, 0.207).extrude(0.01)
result = result.union(cq.Workplane(cq.Plane(origin=(0.03, -0.122, 0.304), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.049, 0.044).extrude(0.004))
result = result.u... | 5 | 116 | 0.018563 |
train_7408b695a9b63b0d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.52, -0.71, 0.034), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.31, -0.285).threePointArc((0.28, -0.358), (0.207, -0.388)).lineTo(0.156, -0.388).lineTo(0, -0.388).lineTo(-0.207, -0.388).threePointArc((-0.28, -0.358), (-0.31, -0.285)).lineTo(-0.3... | 16 | 70 | 0.710663 |
train_febd633f62192e02 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.101, -0.661, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.661).lineTo(0, 0.022).lineTo(-0.639, 0.022).lineTo(-0.639, 1.3).lineTo(0.639, 1.3).lineTo(0.639, 0.661).lineTo(0, 0.661).close().extrude(2)
result = result.edges().fillet(0.117)
re... | 19 | 136 | 1.800179 |
train_884dd5fc6ca0679e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.275, 0.306, -0.186), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.811, 0.453).extrude(0.115)
result = result.union(cq.Workplane(cq.Plane(origin=(0.026, 0.325, -0.062), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.045, 0.218).lineTo(0.045, 0.281).li... | 21 | 244 | 0.339264 |
train_580001d28ebd0f54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.464, -0.482, -0.489), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.536, 1.169).lineTo(-0.536, 0.096).lineTo(0.536, 0.096).lineTo(0.536, 1.169).lineTo(0.248, 1.169).threePointArc((0, 0.921), (-0.248, 1.169)).lineTo(-0.536, 1.169).close().extrude... | 8 | 174 | 1.664489 |
train_2525d54286041aac | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.066, 0.725), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.3, -0.601).lineTo(-0.901, 0).lineTo(-0.901, 0.601).lineTo(0.901, 0.601).lineTo(0.901, 0).lineTo(0.3, -0.601).lineTo(0.3, 0).lineTo(-0.3, 0).lineTo(-0.3, -0.601).close().extrude(1.725)... | 16 | 140 | 1.617694 |
train_7758c68bb42f55cf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.717, 0, 0.307), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.283, -0.485).lineTo(0.1, -0.485).lineTo(0.1, -0.429).lineTo(0.066, -0.429).threePointArc((0.118, 0.192), (0.185, 0.209)).threePointArc((0.267, 0.287), (0.239, 0.347)).lineTo(-0.283, ... | 8 | 37 | 0.27544 |
train_58db50d313a7878b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.417, -0.013, -0.701), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.54, 0.54).extrude(1.05)
result = result.union(cq.Workplane(cq.Plane(origin=(1.108, -0.104, -0.176), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.206, 0.757).lineTo(0.206, 0.293).lin... | 10 | 52 | 0.564592 |
train_d78f167e2fcaaad5 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.864, 0.424), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, -0.735).lineTo(-0.52, -0.215).lineTo(-0.304, 0).lineTo(0, 0.735).lineTo(0.115, 0.458).lineTo(0.198, 0.258).lineTo(0.304, 0).lineTo(0.347, -0.043).lineTo(0.52, -0.215).lineTo(0, -0.735)... | 7 | 46 | 0.73884 |
train_8852cca601810c8e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1, 0.459, -0.074), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.869, 0.203).lineTo(0.58, 0.705).lineTo(0.289, 1.206).lineTo(-0.869, 1.206).lineTo(-0.58, 0.705).lineTo(-0.869, 0.203).lineTo(0, -0.299).lineTo(0.289, 0.203).lineTo(0.869, 0.203).close... | 9 | 75 | 3.391351 |
train_def5546117e43cce | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.81, 0.001, 0.463), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.549, 0.294).threePointArc((0.01, 0.049), (-0.549, 0.245)).lineTo(-0.502, 0.336).threePointArc((0.005, 0.147), (0.495, 0.38)).lineTo(0.549, 0.294).close().revolve(angleDegrees=270, a... | 5 | 63 | 0.412048 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.