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_e099965dcfc3e07a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.893, 0.156, -0.218), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.581, 1.003).threePointArc((0.715, 0.948), (0.771, 0.813)).lineTo(0.771, -0.654).threePointArc((0.715, -0.788), (0.581, -0.844)).lineTo(-0.581, -0.844).threePointArc((-0.715, -0.78... | 16 | 222 | 4.333075 |
train_8293f64875d22ed0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.302, 0, -5.078), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(1.037).extrude(3.168)
result = result.union(cq.Workplane(cq.Plane(origin=(-1.302, 0, -2.858), normal=(0.173, 0, 0.985), xDir=(0.985, 0, -0.173))).circle(1.006).extrude(3.96))
result = r... | 5 | 20 | 0.423189 |
train_213077da1c58c52f | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.928, 0.847).lineTo(0.928, 0.509).lineTo(-0.664, 0.509).lineTo(-0.664, 0.169).lineTo(0.928, 0.169).lineTo(0.928, -0.847).lineTo(-0.928, -0.847).lineTo(-0.928, -0.509).lineTo(0.664, -0.509).lineTo(0.664, -0.169).lineTo(-0.928, -0.169).lineTo(-0.928, 0... | 1 | 32 | 1.837589 |
train_ec57a7f8c1e552f1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.242, 0, -0.678), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.299, 1.356).lineTo(0.299, 0.299).lineTo(0.484, 0.299).lineTo(0.484, 0).lineTo(0, 0).lineTo(0, 1.356).lineTo(0.299, 1.356).close().extrude(1, both=True)
result = result.cut(cq.Workpla... | 11 | 71 | 0.656465 |
train_627ae8a242541ea6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.036, 0.002, -0.388), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.565, 0.993).threePointArc((0.762, 0.944), (0.846, 0.828)).lineTo(0.846, -0.727).threePointArc((0.711, -0.914), (0.394, -0.993)).lineTo(-0.201, -0.993).threePointArc((-0.655, -0.88)... | 7 | 198 | 1.866563 |
train_aeb50a0f75502eab | import cadquery as cq
import math
result = cq.Workplane('XY').box(1.527, 2, 1.743)
result = result.edges().fillet(0.168)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.098, 0.126, -0.001), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.162, 0.859).threePointArc((0.614, 0.481), (0.778, -0.087)).threePointArc((0.758, ... | 8 | 55 | 2.449042 |
train_1dbae44e8b25ad98 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.364), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.762, 0.595).lineTo(0.762, 0.361).lineTo(1, 0.361).lineTo(1, -0.477).lineTo(0.873, -0.477).lineTo(0.873, -0.595).lineTo(-0.834, -0.595).lineTo(-1, -0.436).lineTo(-1, 0.363).lineTo(-0.766, 0... | 7 | 104 | 1.083622 |
train_8c502e4fb43e1d24 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.188, 0, -0.032), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.74, 0.791).threePointArc((0.776, 0.772), (0.791, 0.727)).lineTo(0.791, 0.201).threePointArc((0.744, 0.06), (0.63, 0)).lineTo(0.341, 0).threePointArc((0.213, -0.068), (0.158, -0.228)).... | 4 | 88 | 0.346501 |
train_d0aa8fd6c66a9146 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.168, 0.587, -0.021), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.412).threePointArc((0.292, 0.292), (0.412, 0)).threePointArc((0.292, -0.292), (0, -0.412)).threePointArc((-0.292, -0.292), (-0.412, 0)).threePointArc((-0.292, 0.292), (0, 0.412... | 5 | 39 | 0.145591 |
train_ea0d247a227d7c86 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.999, -0.363, -0.937), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 1.031).threePointArc((0.729, 0.729), (1.031, 0)).lineTo(0.579, 0).threePointArc((0.41, 0.41), (0, 0.579)).lineTo(0, 1.031).close().extrude(1.873)
result = result.union(cq.Workpl... | 9 | 44 | 1.11458 |
train_6795c90d0a0b0cc4 | 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.611, 0.833).lineTo(-0.409, -0.133).lineTo(-0.169, -0.445).lineTo(0.224, -0.51).lineTo(0.875, -0.418).lineTo(0.92, -0.734).lineTo(0.221, -0.833).lineTo(-0.345, -0.739).lineTo(-0.71, -0.266).li... | 1 | 12 | 1.71121 |
train_0b34d4891a9c531f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.361, -0.416), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.917, 0.215).threePointArc((0.975, 0.191), (1, 0.133)).lineTo(1, -0.12).threePointArc((0.971, -0.187), (0.904, -0.215)).lineTo(-0.805, -0.215).threePointArc((-0.941, -0.157), (-1, -0.02... | 11 | 58 | 0.492651 |
train_db22dbaa2430f4d8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.016, 0.001, -0.106), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.865, 0.573).lineTo(0.865, 0.4).lineTo(1, 0.4).lineTo(1, 0).lineTo(0, 0).lineTo(0, 0.573).lineTo(0.865, 0.573).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1,... | 7 | 43 | 1.014642 |
train_34ff5c486c890af8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.099, -0.156), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.369, 0.9).threePointArc((0.426, 0.876), (0.451, 0.819)).lineTo(0.451, 0.097).threePointArc((0.479, 0.029), (0.547, 0)).lineTo(0.752, 0).threePointArc((0.856, -0.044), (0.9, -0.149)).l... | 13 | 582 | 1.647352 |
train_87cfb5d79d4f409b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.035, 0.279, -0.312), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.99, 1.334).lineTo(0.99, -1.334).lineTo(-0.99, -1.334).lineTo(-0.99, -0.89).lineTo(-0.66, -0.89).lineTo(-0.66, -0.445).lineTo(-0.33, -0.445).lineTo(-0.33, 0).lineTo(0, 0).lineTo(0... | 23 | 41 | 3.317423 |
train_335545ad49a5f294 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.077, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.273, 0.55).threePointArc((0.273, 0.55), (0.546, 0.077)).threePointArc((0.273, -0.396), (-0.273, -0.396)).threePointArc((-0.546, 0.077), (-0.273, 0.55)).close().moveTo(0.077, 0.317).lineT... | 15 | 299 | 1.527263 |
train_1ddd13d14942d83b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.14), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.95, 0.279).lineTo(0.919, 0.212).lineTo(1, 0.097).lineTo(1, 0).lineTo(0.792, 0).lineTo(0.792, 0.084).lineTo(0.692, 0.212).lineTo(0, 0.071).lineTo(0, 0.279).lineTo(0.95, 0.279).close().revol... | 2 | 13 | 0.470705 |
train_f5bf1f9ae2978cc6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.013, -0.029), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.201, 0.301).lineTo(-0.201, 0.211).threePointArc((-0.17, 0.181), (-0.096, 0.168)).lineTo(0.485, 0.168).threePointArc((0.567, 0.153), (0.602, 0.119)).lineTo(0.602, 0.05).threePointArc(... | 12 | 226 | 0.128648 |
train_f3f743a1c7d11361 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.426), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.906).lineTo(1, -0.906).lineTo(0, -0.906).lineTo(0, 0.304).lineTo(-1, 0.304).lineTo(-1, 0.906).lineTo(1, 0.906).close().extrude(0.163)
result = result.cut(cq.Workplane(cq.Plane(origin=(-... | 21 | 121 | 0.381609 |
train_d4f013ac426bea70 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.399, 0.557, 0), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(0.459, 0.917).threePointArc((0.443, 0.802), (0.517, 0.711)).threePointArc((0.59, 0.618), (0.616, 0.503)).lineTo(0.542, 0.296).threePointArc((0.548, 0.19), (0.514, 0.089)).lineTo(0.459, -... | 2 | 14 | 2.066849 |
train_8ae0645a9a5aa5d0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.384, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).box(1.231, 0.657, 1.273)
result = result.edges().fillet(0.136)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.384, 0, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.136).extrude(2.463, both=Tr... | 12 | 133 | 0.720942 |
train_534c2f860eb1a719 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.096, -1, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.276, 0.747).lineTo(0.651, 0.372).lineTo(0.276, -0.555).lineTo(-0.651, -0.18).lineTo(-0.276, 0.747).close().extrude(2)
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.371, -0.088, -0... | 6 | 55 | 1.877999 |
train_7d60d7263d739fa3 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.313, 0.332).lineTo(0.313, -0.332).lineTo(-0.313, -0.332).lineTo(-0.313, 0.332).lineTo(-0.129, 0.332).lineTo(-0.129, -0.166).lineTo(0.129, -0.166).lineTo(0.129, 0.332).lineTo(0.313, 0.332).close().extrude(1, taper=-2.794, both=True)
result = result.c... | 11 | 96 | 0.674657 |
train_2d1c8d8c47575c52 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(1, 0.868).lineTo(1, -0.868).lineTo(-1, -0.868).lineTo(-1, 0.868).lineTo(-0.537, 0.868).lineTo(-0.537, -0.544).lineTo(0.537, -0.544).lineTo(0.537, 0.868).lineTo(1, 0.868).close().extrude(0.184, taper=5.754, both=True)
result = result.cut(cq.Workplane(c... | 20 | 42 | 0.665589 |
train_710ebdbd8ea7c011 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.06, 0.351, -0.336), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.142, 0.185).lineTo(0.149, 0.095).lineTo(0.162, 0.086).lineTo(0.163, 0.008).lineTo(0.172, -0.001).lineTo(0.172, -0.038).threePointArc((0.149, -0.047), (0.158, -0.098)).lineTo(0.161,... | 13 | 129 | 0.472239 |
train_3932c4499acef25f | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.148, 0.105).lineTo(0.148, -0.105).lineTo(-0.148, -0.105).lineTo(-0.148, -0.035).lineTo(0.105, -0.035).lineTo(0.105, 0.035).lineTo(-0.148, 0.035).lineTo(-0.148, 0.105).lineTo(0.148, 0.105).close().extrude(8.26, both=True).intersect(cq.Workplane('XZ')... | 5 | 73 | 0.058297 |
train_c951e35cec02e891 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.517, -0.491, -0.01), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.601, 1.349).lineTo(0.601, -0.473).threePointArc((-0.601, 0.438), (0.601, 1.349)).close().workplane(offset=0.196).moveTo(0.507, 1.207).lineTo(0.507, -0.33).threePointArc((-0.507, 0... | 5 | 35 | 0.777363 |
train_2ab8dedcc7de4c81 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.255), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.236, 0.326).threePointArc((0.406, 0.255), (0.476, 0.086)).lineTo(0.476, -0.163).threePointArc((0.429, -0.278), (0.314, -0.326)).lineTo(-0.476, -0.326).lineTo(-0.476, 0.326).lineTo(0.236, 0... | 5 | 22 | 0.824113 |
train_1899461a7f2bfd54 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.427, -0.026, 0.164), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(-0.204, 0.556).threePointArc((-0.074, 0.535), (0.038, 0.505)).threePointArc((0.149, 0.493), (0.257, 0.453)).threePointArc((0.321, 0.357), (0.342, 0.246)).threePointArc((0.381, 0.156... | 9 | 193 | 1.06924 |
train_a6955daed9a57bef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.089, 0.004, -0.231), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.715, -0.025).lineTo(0.91, -0.593).lineTo(0.138, -0.835).lineTo(-0.449, -0.407).lineTo(-0.91, -0.036).lineTo(-0.767, 0.5).lineTo(0.079, 0.835).lineTo(0.802, 0.635).lineTo(0.715, -0.... | 5 | 28 | 0.206998 |
train_a9db9fb61589c153 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.01, -0.085, -0.01), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.722, 0.678).lineTo(0.722, -0.678).lineTo(-0.722, -0.678).lineTo(-0.722, 0.678).lineTo(-0.358, 0.678).lineTo(-0.358, -0.344).lineTo(0.358, -0.344).lineTo(0.358, 0.678).lineTo(0.722,... | 15 | 198 | 1.637726 |
train_61fb1bf21c40c3bf | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.999, -0.546, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0.374, 0.284).threePointArc((0, -0.089), (-0.374, 0.284)).threePointArc((0, 0.657), (0.374, 0.284)).close().revolve(angleDegrees=180, axisStart=(-0.45, -0.546), axisEnd=(0.45, -0.546))
... | 4 | 16 | 0.168999 |
train_a251a54226a88374 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.234, -1, -0.002), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.136, 0.185).threePointArc((0.159, 0.172), (0.154, 0.16)).threePointArc((0.191, 0.107), (0.157, 0.075)).threePointArc((0.145, 0.062), (0.093, 0.094)).threePointArc((0.067, 0.084), (0.... | 2 | 33 | 0.158341 |
train_275ca7f61f616ae9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.01, -0.809), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.111, 0.314).threePointArc((0.521, 0.424), (0.876, 0.267)).lineTo(0.982, 0.098).lineTo(1, -0.072).threePointArc((0.935, -0.213), (0.623, -0.424)).threePointArc((0.217, -0.391), (-0.033, ... | 5 | 19 | 0.542001 |
train_c263a07f4ccf44db | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.514), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-1, -0.201).threePointArc((-0.858, -0.527), (-0.533, -0.664)).lineTo(0.844, -0.664).threePointArc((0.951, -0.619), (1, -0.513)).lineTo(1, -0.166).threePointArc((0.946, -0.05), (0.829, 0)).li... | 4 | 33 | 1.953681 |
train_28b98a09cee0f6b9 | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.185, 0.197).lineTo(0.185, -0.197).lineTo(-0.185, -0.197).lineTo(-0.185, 0.118).lineTo(0, 0.118).lineTo(0, 0.197).lineTo(0.185, 0.197).close().extrude(1, both=True)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.114, 0, 0.322), normal=(1, 0, 0),... | 20 | 902 | 0.185603 |
train_e89fbb7f7396c334 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.293), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.585).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.585).lineTo(-0.715, 0.585).lineTo(-0.715, 0.281).lineTo(0.715, 0.281).lineTo(0.715, 0.585).lineTo(1, 0.585).close().extrude(0.199, both=Tru... | 9 | 34 | 0.299437 |
train_3de5da645ff3efa0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.045, -0.073, -0.143), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.106, 0.36).threePointArc((0.269, 0.259), (0.569, 0.224)).threePointArc((0.611, 0.079), (0.954, 0.009)).lineTo(0.668, -0.267).lineTo(-0.006, -0.36).threePointArc((-0.22, -0.267), ... | 13 | 127 | 0.469919 |
train_7f67d0fc9f7a2076 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.462, -0.903, -0.138), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.137, 0.767).threePointArc((-0.126, 0.748), (-0.111, 0.732)).lineTo(-0.054, 0.728).threePointArc((-0.036, 0.713), (-0.03, 0.69)).lineTo(-0.002, 0.657).threePointArc((0.001, 0.633... | 4 | 65 | 1.004631 |
train_02fd43375ae5a458 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.004, -0.023), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 7.602).lineTo(0, 4.561).lineTo(3.041, -1.52).lineTo(6.082, -4.561).threePointArc((-3.041, -7.602), (-6.082, -4.561)).lineTo(-3.041, -1.52).lineTo(0, 7.602).close().extrude(3.542, bot... | 5 | 46 | 0.31298 |
train_22f319a56428053f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.379, 0, -0.195), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.185, 0.39).lineTo(0.185, 0.185).lineTo(0.758, 0.185).lineTo(0.758, 0).lineTo(0, 0).lineTo(0, 0.39).lineTo(0.185, 0.39).close().extrude(1, both=True)
result = result.cut(cq.Workplane(... | 11 | 52 | 0.315596 |
train_932b72d6be47f128 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.131), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(1, 0.261).lineTo(1, 0).lineTo(-1, 0).lineTo(-1, 0.261).lineTo(-0.802, 0.261).lineTo(-0.802, 0.198).lineTo(0.802, 0.198).lineTo(0.802, 0.261).lineTo(1, 0.261).close().extrude(0.777, both=Tru... | 6 | 18 | 0.559497 |
train_2c9340e86294cd4c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-1.131, -0.068, 0.03), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(-0.143, 2.048).lineTo(0.07, 2.008).threePointArc((0.424, 2.13), (0.758, 2.006)).lineTo(0.424, 1.334).lineTo(0.981, 1.156).lineTo(0.548, 0.609).lineTo(0.307, 0.413).lineTo(0.097, 0.33... | 20 | 23 | 1.559401 |
train_560e77b8285f7a8d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.075, -0.563), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.723, 0.75).threePointArc((0.918, 0.668), (1, 0.473)).lineTo(1, -0.085).threePointArc((0.951, -0.201), (0.835, -0.25)).lineTo(0.585, -0.25).threePointArc((0.525, -0.275), (0.5, -0.335)... | 11 | 27 | 2.211782 |
train_2932cdde3e552285 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.064, 0.22, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.293, -0.312).threePointArc((-0.471, -0.332), (-0.439, -0.172)).lineTo(-0.479, -0.099).lineTo(-0.299, 0.34).threePointArc((-0.319, 0.439), (-0.215, 0.396)).lineTo(-0.006, 0.398).threePo... | 10 | 97 | 1.198787 |
train_cb79a074ac84a899 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.118, -0.144), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.249, 0.77).lineTo(0.994, 0.44).lineTo(0.994, 0.33).lineTo(0.249, 0.11).lineTo(0.249, -0.881).lineTo(-0.249, -0.881).lineTo(-0.249, 0.11).lineTo(-0.994, 0.33).lineTo(-0.994, 0.44).line... | 8 | 102 | 0.482866 |
train_063022c4e4d8bcd8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.029, 0.023, -0.102), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.343, 0.736).threePointArc((0.687, 0.538), (0.527, 0.411)).lineTo(0.896, 0.233).threePointArc((0.927, -0.118), (0.71, -0.091)).lineTo(0.775, -0.445).threePointArc((0.469, -0.685), ... | 18 | 560 | 1.608863 |
train_f479cf34bb359fa0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.096, 0, -0.216), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.904, 0.837).lineTo(0.904, -0.837).lineTo(-0.904, -0.837).lineTo(-0.904, 0.837).lineTo(-0.518, 0.837).lineTo(-0.518, -0.566).lineTo(0.518, -0.566).lineTo(0.518, 0.837).lineTo(0.904, 0.8... | 2 | 36 | 0.518425 |
train_7720ad80620665e8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.19, 0.355, -0.073), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.139, 0.629).threePointArc((0.614, 0.195), (0.475, -0.434)).threePointArc((-0.139, -0.629), (-0.614, -0.195)).threePointArc((-0.475, 0.434), (0.139, 0.629)).close().sweep(cq.Workpla... | 4 | 14 | 1.276518 |
train_ac1fd2200f963cf3 | import cadquery as cq
import math
result = cq.Workplane('XY').circle(0.1).extrude(0.564, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.192).extrude(1, both=True))
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0,... | 6 | 17 | 0.184549 |
train_7d2640616197d4ad | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.993, 0.17, 0), normal=(1, 0, 0), xDir=(0, 0, 1))).moveTo(0, 1.164).threePointArc((0.704, 0.873), (1, 0.172)).threePointArc((0.704, -0.532), (0, -0.823)).threePointArc((-0.704, -0.532), (-1, 0.172)).threePointArc((-0.704, 0.873), (0, 1.164)).clo... | 8 | 282 | 4.395648 |
train_f1ec5a87934eb9a3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.611), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.799, 0.67).threePointArc((0.934, 0.612), (1, 0.471)).lineTo(1, -0.282).threePointArc((0.878, -0.556), (0.61, -0.67)).lineTo(-0.672, -0.67).threePointArc((-0.897, -0.575), (-1, -0.344)).lin... | 13 | 72 | 1.386406 |
train_b08a6ab872deb00a | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.231, 0, -0.279), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.241, 0.769).threePointArc((-0.18, 0.743), (-0.154, 0.682)).lineTo(-0.154, 0.536).threePointArc((-0.132, 0.484), (-0.079, 0.462)).lineTo(0.233, 0.462).threePointArc((0.394, 0.394), (0... | 6 | 116 | 0.823654 |
train_47696b77d937a0b6 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.04, -0.132), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.173, -1.029).threePointArc((-0.102, -1.253), (-0.228, -0.953)).lineTo(-1.169, -0.568).lineTo(-1.006, 0.463).threePointArc((-1.186, 0.861), (-0.782, 0.934)).lineTo(-0.567, 1.167).lineTo... | 13 | 108 | 1.009173 |
train_2f926030b1a38fb8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.408).extrude(1.08)
result = result.cut(cq.Workplane(cq.Plane(origin=(0.408, 0, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).pushPoints([(0, 0), (-0.408, 0.408), (-0.816, 0), (-0.408, -0.408)]).rect... | 5 | 45 | 0.49061 |
train_634ffe8e5ab184c2 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.137, 0.161, -0.008), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.073, 0.614).threePointArc((0.277, 0.53), (0.361, 0.326)).lineTo(0.359, 0.312).lineTo(0.366, 0.298).lineTo(0.367, 0.284).lineTo(0.363, 0.27).lineTo(0.361, 0.256).threePointArc((0.2... | 4 | 74 | 0.60238 |
train_83fb2ecc86ac8d62 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.032, -0.572, -0.323), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.094, 0.606).lineTo(0.293, 0.423).lineTo(0.136, 0.252).lineTo(0.335, 0.069).lineTo(0.178, -0.102).lineTo(0.377, -0.285).lineTo(0.22, -0.456).lineTo(-0.377, 0.094).lineTo(0.094, 0.6... | 10 | 153 | 0.748264 |
train_cd4b00e9b537908d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.006, 0.001, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).workplane(offset=0).moveTo(0.77, 0.695).lineTo(0.77, -0.757).lineTo(-0.77, -0.757).lineTo(-0.77, 0.695).threePointArc((-0.576, 0.633), (-0.384, 0.695)).threePointArc((-0.192, 0.757), (0, 0.695... | 2 | 24 | 3.742273 |
train_211f607bc14198c9 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.075, -0.091, -0.61), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.118, 0.123).lineTo(0.148, -0.108).threePointArc((0.148, -0.114), (0.145, -0.119)).lineTo(0.13, -0.136).threePointArc((0.127, -0.139), (0.122, -0.141)).lineTo(0.068, -0.159).threeP... | 4 | 46 | 0.088841 |
train_d1e2ba207b9f68cc | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(1, 0.469, 0), normal=(-1, 0, 0), xDir=(0, 0, 1))).moveTo(0.244, 0.356).threePointArc((0.404, 0.197), (0.244, 0.037)).lineTo(-0.244, 0.037).threePointArc((-0.404, 0.197), (-0.244, 0.356)).lineTo(0.244, 0.356).close().extrude(1.214)
result = result.... | 19 | 22 | 0.722025 |
train_82b1cc819ec1d629 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.258), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.396, 1).lineTo(0.779, 0.534).lineTo(0.779, -0.458).threePointArc((0.646, -0.782), (0.321, -1)).lineTo(-0.506, -1).lineTo(-0.506, -0.644).lineTo(-0.779, -0.644).lineTo(-0.779, 0.553).lineTo... | 12 | 80 | 0.705518 |
train_872dd9b0b7ee17de | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.336, -0.153, 0.382), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(-0.035, 0.527).lineTo(0.148, 0.182).lineTo(0.246, 0.201).lineTo(0.343, 0.216).threePointArc((0.391, 0.196), (0.441, 0.207)).lineTo(0.539, 0.184).lineTo(0.267, -0.097).lineTo(0.39, ... | 3 | 48 | 0.250603 |
train_5f2a8d09b0f87093 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.037, 0.132, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.292, 0.29).threePointArc((-0.271, 0.284), (-0.262, 0.271)).lineTo(-0.262, -0.05).threePointArc((-0.205, -0.139), (-0.071, -0.177)).lineTo(0.41, -0.177).threePointArc((0.425, -0.181), (... | 6 | 154 | 0.686896 |
train_4d1c8b9587faa93e | import cadquery as cq
import math
result = cq.Workplane('XY').moveTo(0.021, 0.092).lineTo(0.059, 0.073).lineTo(0.085, 0.04).lineTo(0.094, 0).lineTo(0.085, -0.04).lineTo(0.059, -0.073).lineTo(0.021, -0.092).lineTo(-0.021, -0.092).lineTo(-0.059, -0.073).lineTo(-0.085, -0.04).lineTo(-0.094, 0).lineTo(-0.085, 0.04).lineTo(... | 9 | 66 | 0.019016 |
train_82e264b9aab5f6c1 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.43, -0.292), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.56, 0.569).lineTo(-0.56, -0.376).lineTo(0.877, -0.376).lineTo(0.877, -0.569).lineTo(-0.877, -0.569).lineTo(-0.877, 0.569).lineTo(-0.56, 0.569).close().extrude(0.441)
result = result.un... | 5 | 38 | 0.242385 |
train_32258dca5c3f81f3 | import cadquery as cq
import math
result = cq.Workplane('XY').circle(1).extrude(0.808, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.478).extrude(0.412, both=True))
result = result.cut(cq.Workplane('XY').circle(0.767).extrude(2.42, both=True))
resul... | 13 | 47 | 1.223393 |
train_03c7f43393d954a0 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.4, 0.583, -0.095), normal=(0, -1, 0), xDir=(0, 0, 1))).moveTo(-0.195, 0.947).lineTo(0.012, 0.65).lineTo(0.284, 0.892).lineTo(0.18, 0.543).lineTo(0.539, 0.481).lineTo(0.201, 0.345).lineTo(0.378, 0.026).lineTo(0.059, 0.205).lineTo(-0.079, -0.131).... | 12 | 125 | 0.440568 |
train_84749f05f8b97afb | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, -0.108, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.196, 0.194).lineTo(0.196, -0.194).lineTo(-0.196, -0.194).lineTo(-0.196, 0.194).lineTo(-0.063, 0.194).lineTo(-0.063, -0.059).lineTo(0.063, -0.059).lineTo(0.063, 0.194).lineTo(0.196, 0.194).... | 19 | 112 | 0.252644 |
train_58aba557e9127e69 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.2, -0.359), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.222).lineTo(1, 0.177).threePointArc((0.988, 0.17), (0.96, 0.167)).lineTo(0.325, 0.167).threePointArc((0.197, 0.154), (0.143, 0.122)).lineTo(0.143, -0.226).threePointArc((0.128, -0.235... | 3 | 49 | 0.245333 |
train_1b59ae3dbd8abe17 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.017, -0.014, 0), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.936, 0.503).threePointArc((0.975, 0.447), (0.942, 0.079)).threePointArc((0.07, -0.52), (-0.918, -0.224)).lineTo(-0.974, -0.096).threePointArc((-0.975, -0.017), (-0.908, 0.042)).threeP... | 4 | 44 | 0.810597 |
train_02c4abb12b2bde3f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.037, 0, -0.958), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.122, 0.029).threePointArc((0.181, 0.029), (0.181, -0.029)).threePointArc((0.122, -0.029), (0.122, 0.029)).close().sweep(cq.Workplane(cq.Plane(origin=(0.037, 0, -0.958), normal=(0, 0, ... | 9 | 62 | 0.032313 |
train_f2414541ae8782d3 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.371, -0.005, 0.004), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(-0.617, 0.094).threePointArc((0.217, 0.811), (0.562, -0.096)).lineTo(0.562, -0.744).threePointArc((0.512, -0.811), (0.298, -0.744)).lineTo(0.302, -0.032).threePointArc((0.617, 0.283... | 6 | 96 | 1.106683 |
train_3d473dd9c8e91444 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.413, 0.254, -0.082), normal=(0, 0, -1), xDir=(1, 0, 0))).moveTo(0.454, 0.663).lineTo(0.454, -0.663).threePointArc((-0.454, 0), (0.454, 0.663)).close().extrude(0.918)
result = result.union(cq.Workplane(cq.Plane(origin=(-0.322, -0.185, -0.049), n... | 9 | 343 | 1.284135 |
train_3298798f957b2a96 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.158), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.5, 0.847).lineTo(0.5, 0.282).lineTo(1, 0.282).lineTo(1, -0.282).lineTo(-0.5, -0.282).lineTo(-0.5, -0.847).lineTo(-1, -0.847).lineTo(-1, 0.282).lineTo(-0.5, 0.282).lineTo(-0.5, 0.847).lineT... | 13 | 69 | 0.489039 |
train_daf02c12267eea9d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.002, -0.364), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.937, 0.206).lineTo(0.937, -0.151).threePointArc((0.826, -0.215), (0.562, -0.242)).lineTo(-0.64, -0.242).threePointArc((-0.849, -0.221), (-0.937, -0.17)).lineTo(-0.937, 0.204).threePoin... | 1 | 26 | 0.598178 |
train_fc2cddfb904d96c8 | import cadquery as cq
import math
result = cq.Workplane('XY').circle(0.639).extrude(1, both=True)
result = result.union(cq.Workplane(cq.Plane(origin=(0, 0, 0), normal=(0, 1, 0), xDir=(0, 0, 1))).circle(0.119).extrude(0.968, both=True))
result = result.cut(cq.Workplane('XY').circle(0.375).extrude(2.978, both=True))
resu... | 4 | 6 | 1.597144 |
train_33736ec9917b535f | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.63), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.825, 1.26).lineTo(0.825, 0.49).lineTo(1, 0.49).lineTo(1, 0).lineTo(0.375, 0).lineTo(0.375, 1.26).lineTo(0.825, 1.26).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0... | 3 | 55 | 2.286806 |
train_0acd0a76a142d937 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.007, 0, -0.179), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.777, 0.705).threePointArc((0.991, 0.519), (0.915, 0.218)).lineTo(-0.348, -0.54).threePointArc((-0.666, -0.705), (-0.935, -0.598)).threePointArc((-0.991, -0.388), (-0.851, -0.179)).thr... | 3 | 25 | 0.493746 |
train_49692e99abb52140 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.135, -0.621, -0.667), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.825, 0.328).lineTo(0.825, 0.047).lineTo(0.527, 0.047).lineTo(0.527, -0.047).lineTo(0.825, -0.047).lineTo(0.825, -0.328).lineTo(-0.053, -0.328).lineTo(-0.053, -0.047).lineTo(0.246... | 12 | 56 | 2.042434 |
train_50ef3ec60196e024 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.257), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.277).lineTo(1, -0.267).threePointArc((0.988, -0.274), (0.981, -0.277)).lineTo(-0.984, -0.277).threePointArc((-0.989, -0.276), (-1, -0.271)).lineTo(-1, 0.277).lineTo(1, 0.277).close().ex... | 9 | 57 | 0.479334 |
train_ad614482469880a8 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.904), normal=(0, 0, 1), xDir=(1, 0, 0))).rect(0.762, 0.234).workplane(offset=1.903).rect(0.059, 0.124).loft()
result = result.cut(cq.Workplane(cq.Plane(origin=(0, 0, -0.429), normal=(0, 0, 1), xDir=(1, 0, 0))).circle(0.05).extrude(0.703, ... | 6 | 51 | 0.140388 |
train_3751a38e1511a264 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.015, 0.169, -0.173), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.176, 0.324).threePointArc((0.253, 0.292), (0.286, 0.214)).lineTo(0.286, -0.245).threePointArc((0.262, -0.301), (0.206, -0.324)).lineTo(-0.207, -0.324).threePointArc((-0.262, -0.30... | 12 | 106 | 0.322995 |
train_e1d5d04ba9816aba | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.174, 0.515, -0.246), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.083, -0.378).threePointArc((-0.562, 0.129), (0.174, 0.378)).lineTo(0.486, 0.295).threePointArc((0.562, 0.163), (0.43, 0.086)).lineTo(0.118, 0.17).threePointArc((-0.298, 0.282), (-0... | 7 | 39 | 3.116415 |
train_68a41be41f3a003c | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.326, 0.296, 0.069), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.212, 0.26).lineTo(0.212, 0.149).lineTo(0.466, 0.186).lineTo(0.382, 0.112).lineTo(0.551, 0.112).lineTo(0.466, 0.037).lineTo(0.636, 0).lineTo(0.466, -0.037).lineTo(0.551, -0.112).lin... | 3 | 141 | 0.78205 |
train_30efad096d19412d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0.005, 0.258), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.366, 0.277).lineTo(0.41, 0.255).lineTo(0.618, 0.087).lineTo(0.564, 0.015).lineTo(0.411, 0.13).lineTo(0.387, 0.028).lineTo(0.748, -0.058).lineTo(0.898, 0.112).threePointArc((0.968, 0.11... | 9 | 151 | 0.541134 |
train_6ff38126fd588183 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.131, 0.146, 0.136), normal=(1, 0, 0), xDir=(0, 1, 0))).moveTo(0.563, -0.14).lineTo(0.817, -0.248).lineTo(0.775, -0.354).lineTo(0.512, -0.267).lineTo(0.473, -0.329).lineTo(0.67, -0.519).lineTo(0.592, -0.603).lineTo(0.378, -0.43).lineTo(0.319, -0... | 9 | 610 | 0.683231 |
train_8d6fe0f24d586e80 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.013, 0, -0.667), normal=(0, -1, 0), xDir=(1, 0, 0))).moveTo(0.153, 0.015).threePointArc((0.162, 0), (0.153, -0.015)).threePointArc((0.136, -0.015), (0.127, 0)).threePointArc((0.136, 0.015), (0.153, 0.015)).close().sweep(cq.Workplane(cq.Plane(ori... | 5 | 44 | 0.03076 |
train_9a9dad584da23f5e | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 1, -0.095), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0, 0.174).threePointArc((0.123, 0.123), (0.174, 0)).threePointArc((0.123, -0.123), (0, -0.174)).threePointArc((-0.123, -0.123), (-0.174, 0)).threePointArc((-0.123, 0.123), (0, 0.174)).close(... | 4 | 29 | 0.048633 |
train_1a5b8b8e7ca4d48d | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.116, -0.572, -0.109), normal=(0, 1, 0), xDir=(0, 0, 1))).moveTo(0.724, 0.946).threePointArc((0.841, 0.897), (0.89, 0.78)).lineTo(0.89, -0.548).threePointArc((0.841, -0.666), (0.724, -0.715)).lineTo(-0.724, -0.715).threePointArc((-0.841, -0.666)... | 25 | 1,173 | 3.112829 |
train_d19fcd25de970d3b | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.031, -0.409, -0.039), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.436, 0.361).lineTo(0.436, -0.458).lineTo(-0.436, -0.458).lineTo(-0.436, 0.361).threePointArc((-0.327, 0.263), (-0.218, 0.361)).threePointArc((-0.109, 0.458), (0, 0.361)).threePoi... | 15 | 117 | 0.942837 |
train_8aaddbb1a9b1e213 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.311, 0.07, -0.115), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.689, 0.399).lineTo(0.689, -0.339).threePointArc((0.672, -0.381), (0.63, -0.399)).lineTo(-0.628, -0.399).lineTo(-0.689, -0.337).lineTo(-0.689, 0.362).threePointArc((-0.678, 0.388), (... | 18 | 116 | 0.170909 |
train_73fde865b6b88b88 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.357, -0.112, -1), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.714).threePointArc((0.505, 0.505), (0.714, 0)).lineTo(0.329, 0).threePointArc((0.232, 0.232), (0, 0.329)).lineTo(0, 0.714).close().extrude(2)
result = result.union(cq.Workplane(cq... | 11 | 65 | 0.674053 |
train_b6d65db7466a0a76 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(-0.131, -0.179, -0.586), normal=(0.195, 0.398, 0.896), xDir=(-0.898, 0.439, 0))).moveTo(-0.147, -0.53).threePointArc((-0.282, -0.565), (-0.364, -0.384)).lineTo(-0.755, -0.259).threePointArc((-0.801, -0.291), (-0.775, -0.208)).lineTo(-0.59, 0.202).... | 19 | 185 | 0.49167 |
train_cc0a63a69b5c7623 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.11, 0, 0.016), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.424, 0.725).lineTo(0.424, -0.725).threePointArc((-0.424, 0), (0.424, 0.725)).close().extrude(5.195, both=True)
result = result.intersect(cq.Workplane(cq.Plane(origin=(0.11, 0, 0.016), no... | 8 | 49 | 0.737555 |
train_7075a7e608109440 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.221), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(1, 0.444).lineTo(1, -0.472).lineTo(-1, -0.472).lineTo(-1, 0.452).lineTo(-0.979, 0.452).lineTo(-0.979, 0.472).lineTo(0.97, 0.472).lineTo(0.97, 0.444).lineTo(1, 0.444).close().extrude(0.441)
r... | 15 | 488 | 0.755553 |
train_6bb3d723624716af | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.091), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.174, 0.859).threePointArc((0.286, 0.819), (0.333, 0.723)).lineTo(0.333, 0.492).threePointArc((0.404, 0.348), (0.573, 0.286)).lineTo(0.894, 0.286).threePointArc((0.968, 0.259), (1, 0.195)).... | 8 | 467 | 0.300132 |
train_befcadf2d96017ef | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0.35, 0.236, -0.008), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0, 0.65).threePointArc((0.563, 0.325), (0.563, -0.325)).threePointArc((0, -0.65), (-0.563, -0.325)).threePointArc((-0.563, 0.325), (0, 0.65)).close().sweep(cq.Workplane(cq.Plane(origi... | 11 | 74 | 0.158238 |
train_9506804d7b2e4ef2 | import cadquery as cq
import math
result = cq.Workplane('XZ').moveTo(1.028, 0.106).lineTo(0.863, 0).lineTo(1.028, -0.106).lineTo(0.491, -0.106).lineTo(0.491, 0.106).lineTo(1.028, 0.106).close().revolve(angleDegrees=360, axisStart=(0, 0, 0), axisEnd=(0, 1, 0))
result = result.cut(cq.Workplane(cq.Plane(origin=(-0.283, -0... | 11 | 193 | 0.326296 |
train_be65d4e03b5d6123 | import cadquery as cq
import math
result = cq.Workplane(cq.Plane(origin=(0, 0, -0.085), normal=(0, 0, 1), xDir=(1, 0, 0))).moveTo(0.94, 0.43).threePointArc((0.98, 0.414), (1, 0.372)).lineTo(1, -0.385).threePointArc((0.984, -0.417), (0.952, -0.43)).lineTo(-0.903, -0.43).threePointArc((-0.97, -0.403), (-1, -0.336)).lineT... | 13 | 161 | 0.125709 |
train_0d18ffbe680068fa | 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.489, 0.367).lineTo(0.489, -0.122).lineTo(0.245, -0.122).lineTo(0.245, -0.367).lineTo(-0.245, -0.367).lineTo(-0.245, -0.122).lineTo(-0.489, -0.122).lineTo(-0.489, 0.367).lineTo(-0.245, 0.367).l... | 3 | 65 | 1.864614 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.