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

Method _addPendingWire

cadquery/cq.py:2291–2306  ·  view source on GitHub ↗

Queue a Wire for later extrusion Internal Processing Note. In OCCT, edges-->wires-->faces-->solids. but users do not normally care about these distinctions. Users 'think' in terms of edges, and solids. CadQuery tracks edges as they are drawn, and automat

(self, wire: Wire)

Source from the content-addressed store, hash-verified

2289 self.ctx.firstPoint = self.plane.toLocalCoords(edge.startPoint())
2290
2291 def _addPendingWire(self, wire: Wire) -> None:
2292 """
2293 Queue a Wire for later extrusion
2294
2295 Internal Processing Note. In OCCT, edges-->wires-->faces-->solids.
2296
2297 but users do not normally care about these distinctions. Users 'think' in terms
2298 of edges, and solids.
2299
2300 CadQuery tracks edges as they are drawn, and automatically combines them into wires
2301 when the user does an operation that needs it.
2302
2303 Similarly, CadQuery tracks pending wires, and automatically combines them into faces
2304 when necessary to make a solid.
2305 """
2306 self.ctx.pendingWires.append(wire)
2307
2308 def _consolidateWires(self) -> List[Wire]:
2309

Callers 10

bezierMethod · 0.95
splineMethod · 0.95
splineApproxMethod · 0.95
parametricCurveMethod · 0.95
ellipseArcMethod · 0.95
wireMethod · 0.95
eachMethod · 0.95
eachpointMethod · 0.95
mirrorYMethod · 0.80
mirrorXMethod · 0.80

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected