script/ script

Given a mesh file, this script extracts its surface and prints it to stdout in form of a list where each row is [element, face, component]. A component corresponds to a contiguous surface region - for example, a cubical mesh with a spherical hole has two surface components. Two surface faces sharing a single node belong to one component.

With ‘-m’ option, a mesh of the surface is created and saved in ‘<original path>/surf_<original mesh file name>.mesh’.

extract_surface.surface_components(gr_s, surf_faces)[source]

Determine surface components given surface mesh connectivity graph.

extract_surface.surface_graph(surf_faces, n_nod)[source]