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

Method popPendingWires

cadquery/cq.py:111–121  ·  view source on GitHub ↗

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

(self, errorOnEmpty: bool = True)

Source from the content-addressed store, hash-verified

109 return out
110
111 def popPendingWires(self, errorOnEmpty: bool = True) -> List[Wire]:
112 """
113 Get and clear pending wires.
114
115 :raises ValueError: if errorOnEmpty is True and no wires are present.
116 """
117 if errorOnEmpty and not self.pendingWires:
118 raise ValueError("No pending wires present")
119 out = self.pendingWires
120 self.pendingWires = []
121 return out
122
123
124class Workplane(object):

Callers 4

loftMethod · 0.80
_getFacesMethod · 0.80
_sweepMethod · 0.80
testPopPendingMethod · 0.80

Calls

no outgoing calls

Tested by 1

testPopPendingMethod · 0.64