Main Content

showNonManifoldEdges

Highlight non-manifold edges in STL file or mesh

Since R2021b

    Description

    showNonManifoldEdges(s) displays the geometry contained in the STL file and highlights the non-manifold edges in red.

    example

    showNonManifoldEdges(m) displays the mesh and highlights the non-manifold edges in red.

    Examples

    collapse all

    Use the stlFileChecker object to detect and display bad features in a STL file.

    stlFilename = 'sample_stl_file.stl';
    s = stlFileChecker(stlFilename)
    detected 8 Non Manifold Edges.
    detected 3 Non Manifold Vertices.
    detected 4 duplicate Vertices.
    detected 0 Slivers.
    detected 12 Normal Transition Edges.
    detected 2 Free Triangles.
    detected 9 T-Vertices.
    
    s = 
      stlFileChecker with properties:
    
                     FileName: 'sample_stl_file.stl'
                Triangulation: [162x3 triangulation]
             NonManifoldEdges: [8x2 double]
          NonManifoldVertices: [3x1 double]
                      Slivers: [0x1 double]
            DuplicateVertices: [4x1 double]
        NormalTransitionEdges: [12x2 double]
                FreeTriangles: [2x1 double]
                    TVertices: [9x1 double]
                      ShowLog: 1
            MinimumSeparation: 1.0000e-06
                  MinimumArea: 1.0000e-11
    
    

    Visualize the non-manifold edges in the STL file.

    showNonManifoldEdges(s)

    Figure contains an axes object. The axes object with title Mesh Showing Non-Manifold Edges contains 3 objects of type patch, line. One or more of the lines displays its values using only markers This object represents Non-Manifold Edges.

    Visualize the non-manifold vertices in the STL file.

    figure
    showNonManifoldVertices(s)

    Figure contains an axes object. The axes object with title Mesh Showing Non-Manifold Vertices contains 2 objects of type patch, line. One or more of the lines displays its values using only markers This object represents Non-Manifold Vertices.

    Visualize duplicate vertices in the STL file.

    figure
    showDuplicateVertices(s)

    Figure contains an axes object. The axes object with title Mesh Showing Duplicate Vertices contains 2 objects of type patch, line. One or more of the lines displays its values using only markers This object represents Duplicate Vertices.

    Visualize the normal transition edges in the STL file.

    figure
    showNormalTransitionEdges(s)

    Figure contains an axes object. The axes object with title Mesh Showing Normal Transition Edges contains 3 objects of type patch, line. One or more of the lines displays its values using only markers This object represents Normal Transition Edges.

    Visualize the free triangles in the STL file.

    figure
    showFreeTriangles(s)

    Figure contains an axes object. The axes object with title Mesh Showing Free Triangles contains 3 objects of type patch, line. One or more of the lines displays its values using only markers This object represents Free Triangles.

    Visualize the T-vertices in the STL file.

    figure
    showTVertices(s)

    Figure contains an axes object. The axes object with title Mesh Showing T-Vertices contains 2 objects of type patch, line. One or more of the lines displays its values using only markers This object represents T-Vertices.

    Input Arguments

    collapse all

    STL file checked for defects, specified as a stlFileChecker object.

    Example: stlFileChecker("sample_stl_file.stl")

    Mesh parameters, specified as a MeshReader object.

    Example: MeshReader object created using the mesh function.

    Version History

    Introduced in R2021b

    See Also

    Objects