fedoo.mesh.find_surface_nodes

find_surface_nodes(mesh, seed, seed_type='Node', angle=30.0, *, seed_face=None, boundary_edges=None)

Find the nodes of the connected exterior patch containing a seed.

Parameters:
  • mesh (Mesh or MultiMesh) – Reference geometry. Solid faces shared by cells (including across submeshes) are removed. Three-dimensional tri/quad meshes are treated as shells; two-dimensional tri/quad meshes expose their boundary edges.

  • seed (int) – Node ID or global element ID, according to seed_type.

  • seed_type ({"Node", "Element"}) – Type of the starting entity. Interior entities cannot seed a patch.

  • angle (float, default 30) – Maximum angle in degrees between adjacent face normals, in [0, 180]. Zero joins coplanar neighbors; 90 also crosses right-angle corners. The comparison is local, so a smoothly curved surface may wrap around.

  • seed_face (int, optional) – Exterior face ID used to resolve an ambiguous seed. If candidate faces belong to distinct patches, AmbiguousSurfaceSeed exposes their IDs and normals. IDs refer to this mesh and are stable until topology changes.

  • boundary_edges (bool, optional) – Select boundary lines of tri/quad meshes even when coordinates have three components. By default, XYZ tri/quad meshes expose their faces. This option supports planar 2D meshes saved with XYZ coordinates.

Returns:

Sorted unique node IDs, including midside nodes. On solid/2D meshes, pass these to extract_surface(mesh, node_set=ids). On a shell mesh, select its elements using mesh.get_elements_from_nodes(ids) instead.

Return type:

numpy.ndarray

Notes

Faces must share complete corner edges, not just one vertex. Traversal stops at non-manifold junctions and uses corner geometry for curved faces. Supported families: tet, hex, wedge, tri and quad. Coincident unmerged nodes are not connected. No mesh or named set is modified.