cortex.polyutils.Surface.create_subsurface

Surface.create_subsurface(vertex_mask=None, polygon_mask=None)

Create subsurface for efficient operations on subset of Surface

  • should specify either vertex_mask or polygon_mask

  • input vertex_mask is not necessarily the final vertex_mask used
    • final vertex_mask is always derived from polygon_mask

    • this prevents dangling vertices

Parameters
- vertex_maskboolean array
  • mask of which vertices to include

- polygon_maskboolean array
  • mask of which polygons to include