No matching member function for call to 'addVertices' (ofMesh)

I want to use ofMesh::addVertices() but I get an error like this “error: no matching member function for call to ‘addVertices’”.
I can use ofMesh::addVertex(). Maybe a bug?
I’m using ofx0.11.0 on macOS.
Sorry in poor english.

↓error code(refer from https://ayumu-nagamatsu.com/archives/579/)

void ofApp::createOctaByVboMesh(ofMatrix4x4 * mat){
    
    vector<ofVec3f> vecs;
    
    for (int i = 0; i < ov.size(); i++) {
        vecs.push_back(ov[i] * *mat);
    }
    vboMesh.addVertices(vecs);
    vboMesh.addIndices(oi);
}

Hi,
I think you need to use glm::vec3.
However, addVertex() does work with ofVec3f, addVertices() doesn’t.

1 Like

Thank you very much!! Probrem is solved!