gustaf.vertices.Vertices.update_vertices#

Vertices.update_vertices(mask, inverse=None)[source]#

Update vertices with a mask. In other words, keeps only masked vertices. Adapted from github.com/mikedh/trimesh. Updates connectivity accordingly too.

Parameters:
  • mask ((n,) bool or int)

  • inverse ((len(self.vertices),) int)

Returns:

updated_self

Return type:

type(self)