Skip to content
Snippets Groups Projects
Commit 28f704ce authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

cleanup

parent 9214b523
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,10 @@
#include "MTriangle.h"
static bool getVertices(int num, int *indices, std::vector<MVertex*> &vec,
std::vector<MVertex*> &vertices, int minVertex = 0)
std::vector<MVertex*> &vertices)
{
for(int i = 0; i < num; i++){
if(indices[i] < minVertex || indices[i] > (int)(vec.size() - 1 + minVertex)){
if(indices[i] < 0 || indices[i] > (int)(vec.size() - 1)){
Msg::Error("Wrong vertex index %d", indices[i]);
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment