We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it would be nice to have a function like this in ofxAssimpModelLoader
//------------------------------------------- vector <ofMesh> ofxAssimpModelLoader::getMeshes() { vector <ofMesh> m; for(int i=0; i<(int)scene->mNumMeshes; i++){ ofMesh ofm; ofm.setMode(OF_PRIMITIVE_TRIANGLES); aiMeshToOfMesh(scene->mMeshes[i],ofm); m.push_back(move(ofm)); } return move(m); }
to be used like this, for example:
for (auto & m : model.getMeshes()) { m.setMode(OF_PRIMITIVE_LINES); m.drawWireframe(); }
In fact it is already tested and working here, just not sure about the move() commands. Any ideas?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
it would be nice to have a function like this in ofxAssimpModelLoader
to be used like this, for example:
In fact it is already tested and working here, just not sure about the move() commands.
Any ideas?
The text was updated successfully, but these errors were encountered: