Gems/SceneProcessing/Code/Source/Generation/Components/MeshOptimizer/MeshBuilder.cpp
const MeshBuilderVertexLookup MeshBuilder::FindVertexIndex(size_t orgVertexNr) const
    {
        // if there are no layers, we can't find a valid index
        if (m_layers.empty())
        {
            return {};
        }

        // try to locate a matching duplicate
        return FindMatchingDuplicate(orgVertexNr);
    }
// find the index value for the current set vertex
find the index value for the current set vertex
find the index value for the current set vertex
const MeshBuilderVertexLookup MeshBuilder::FindVertexIndex(size_t orgVertexNr) const
    {
        if (m_layers.empty())
        {
            return {};
        }
        return FindMatchingDuplicate(orgVertexNr);
    }
const MeshBuilderVertexLookup MeshBuilder :: FindVertexIndex ( size_t orgVertexNr ) const { if ( m_layers . empty ( ) ) { return { } ; } return FindMatchingDuplicate ( orgVertexNr ) ; }
find the index value for the current set vertex
find the index value for the current set vertex
// if there are no layers, we can't find a valid index // try to locate a matching duplicate