MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / filter_vertices

Method filter_vertices

python/pymesh/wires/WireNetwork.py:176–181  ·  view source on GitHub ↗

Remove all vertices other than the ones marked with to_keep. Edges are updated accordingly.

(self, to_keep)

Source from the content-addressed store, hash-verified

174 raise RuntimeError("Zero vertices left after trimming.")
175
176 def filter_vertices(self, to_keep):
177 """ Remove all vertices other than the ones marked with to_keep.
178 Edges are updated accordingly.
179 """
180 self.raw_wires.filter_vertices(to_keep)
181 self.__initialize_wires()
182
183 def filter_edges(self, to_keep):
184 """ Remove all edges unless marked with to keep.

Callers 1

trimMethod · 0.45

Calls 1

__initialize_wiresMethod · 0.95

Tested by

no test coverage detected