Collects the visible and hidden edges from the CadQuery object.
(visibleShapes, hiddenShapes)
| 107 | |
| 108 | |
| 109 | def getPaths(visibleShapes, hiddenShapes): |
| 110 | """ |
| 111 | Collects the visible and hidden edges from the CadQuery object. |
| 112 | """ |
| 113 | |
| 114 | hiddenPaths = [] |
| 115 | visiblePaths = [] |
| 116 | |
| 117 | for s in visibleShapes: |
| 118 | for e in s.Edges(): |
| 119 | visiblePaths.append(makeSVGedge(e)) |
| 120 | |
| 121 | for s in hiddenShapes: |
| 122 | for e in s.Edges(): |
| 123 | hiddenPaths.append(makeSVGedge(e)) |
| 124 | |
| 125 | return (hiddenPaths, visiblePaths) |
| 126 | |
| 127 | |
| 128 | def getSVG(shape, opts=None): |
no test coverage detected