This API reference is not for the latest stable Salvus version.
salvus.mesh.algorithms.unstructured_mesh.chain_complex.io
I/O utilities for 2-D mixed-polytope chain complex states.
Functions
write_2d_vtu()
write_2d_vtu()def write_2d_vtu(
points: npt.NDArray[np.float64],
polygons: list[npt.NDArray[np.int64]],
path: pathlib.Path,
) -> None: ...Write a 2-D mixed-polytope mesh to a VTU file.
Parameters
pointsnpt.NDArray[np.float64] —(n_vtx, 2)array of vertex coordinates.polygonslist[npt.NDArray[np.int64]] — List of 1-D int64 arrays, each listing vertex indices of one polygon in CCW order.pathpathlib.Path — Output file path. Will be overwritten if it already exists.
Returns None