The current get_matplotlib_triangulation_from_mesh implementation will either give incorrect triangulation or give a ValueError when trying to reshape the cell-to-point connectivity array (if array size is not a multiple of 3) with meshes with non-triangular elements. We should raise a more informative ValueError when calling with meshes with non-triangular cells and document that only triangular cells are supported.
The current
get_matplotlib_triangulation_from_mesh
implementation will either give incorrect triangulation or give aValueError
when trying to reshape the cell-to-point connectivity array (if array size is not a multiple of 3) with meshes with non-triangular elements. We should raise a more informativeValueError
when calling with meshes with non-triangular cells and document that only triangular cells are supported.