MCPcopy Index your code
hub / github.com/CadQuery/cadquery / popPendingEdges

Method popPendingEdges

cadquery/cq.py:99–109  ·  view source on GitHub ↗

Get and clear pending edges. :raises ValueError: if errorOnEmpty is True and no edges are present.

(self, errorOnEmpty: bool = True)

Source from the content-addressed store, hash-verified

97 self.tags = {}
98
99 def popPendingEdges(self, errorOnEmpty: bool = True) -> List[Edge]:
100 """
101 Get and clear pending edges.
102
103 :raises ValueError: if errorOnEmpty is True and no edges are present.
104 """
105 if errorOnEmpty and not self.pendingEdges:
106 raise ValueError("No pending edges present")
107 out = self.pendingEdges
108 self.pendingEdges = []
109 return out
110
111 def popPendingWires(self, errorOnEmpty: bool = True) -> List[Wire]:
112 """

Callers 2

wireMethod · 0.80
testPopPendingMethod · 0.80

Calls

no outgoing calls

Tested by 1

testPopPendingMethod · 0.64