Main Content

isVertexManifold

Check if surface mesh is vertex-manifold

Since R2022b

    Description

    example

    TF = isVertexManifold(mesh) checks if the surface mesh is vertex-manifold. A mesh is vertex-manifold if faces with a common vertex form an open or closed fan.

    Manifold mesh

    Examples

    collapse all

    Define mesh vertices and faces for the surface mesh.

    vertices = [0 0 0; 0 0 1; 0 1 1; 0 0 2; 1 0.5 1];
    faces = [1 2 3; 2 3 4; 2 3 5];

    Create and display the surface mesh.

    mesh = surfaceMesh(vertices,faces);
    surfaceMeshShow(mesh,Title="Input Mesh")

    Check if the mesh is vertex-manifold.

    TF = isVertexManifold(mesh)
    TF = logical
       1
    
    

    Input Arguments

    collapse all

    Surface mesh, specified as a surfaceMesh object.

    Output Arguments

    collapse all

    Surface mesh is vertex-manifold, returned as a logical 0 (false) or 1 (true). The function returns true when the mesh is vertex-manifold. Otherwise, it returns false.

    Version History

    Introduced in R2022b