MCPcopy
hub / github.com/CadQuery/cadquery / getPaths

Function getPaths

cadquery/occ_impl/exporters/svg.py:109–125  ·  view source on GitHub ↗

Collects the visible and hidden edges from the CadQuery object.

(visibleShapes, hiddenShapes)

Source from the content-addressed store, hash-verified

107
108
109def 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
128def getSVG(shape, opts=None):

Callers 1

getSVGFunction · 0.85

Calls 3

makeSVGedgeFunction · 0.85
EdgesMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected