graphlow.core.MeshTopology.cell_block#

MeshTopology.cell_block(cell_type: CellType) CellBlock | None#

Return cell block for specified cell type.

Advanced API: returns a CellBlock on the host and touches the cell block cache. Use when you need cell connectivity data.

Parameters:
cell_typepv.CellType

VTK cell type to extract.

Returns:
CellBlock | None

If the corresponding cell does not exist, return None. If the cell is a fixed-length cell, return FixedCellBlock. If the cell is a variable-length cell, return JaggedCellBlock.