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

Method _getFacesVertices

cadquery/cq.py:3672–3687  ·  view source on GitHub ↗

Convert pending wires or sketches to faces/vertices for subsequent operation

(self)

Source from the content-addressed store, hash-verified

3670 return rv
3671
3672 def _getFacesVertices(self) -> List[Union[Face, Vertex]]:
3673 """
3674 Convert pending wires or sketches to faces/vertices for subsequent operation
3675 """
3676
3677 rv: List[Union[Face, Vertex]] = []
3678
3679 for el in self.objects:
3680 if isinstance(el, Sketch):
3681 rv.extend(f for f in el if isinstance(f, Face))
3682 elif isinstance(el, (Face, Vertex)):
3683 rv.append(el)
3684 elif isinstance(el, Compound):
3685 rv.extend(subel for subel in el if isinstance(subel, (Face, Vertex)))
3686
3687 return rv
3688
3689 def _extrude(
3690 self,

Callers 1

loftMethod · 0.95

Calls 2

extendMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected