I just found a small bug while comping ACVDQ in windows.
// Line 246 @ ACVDQ.cxx
bool* fixed = new bool[mesh->GetNumberOfPoints()];
//bool fixed[ mesh->GetNumberOfPoints() ]; //Dynamic array should be used here
fixedVertices = vtkIdList::New();
int id, n = 0;
for ( int i = 0; i < mesh->GetNumberOfPoints(); i++ )
fixed[ i ] = false;
while( input >> id ) {
n++;
vtkIdType v1, v2, v3;
mesh->GetFaceVertices( id, v1, v2, v3 );
fixed[ v1 ] = fixed[ v2 ] = fixed[ v3 ] = true;
}
for ( int i = 0; i < mesh->GetNumberOfPoints(); i++ )
if ( fixed[ i ] ) fixedVertices->InsertNextId( i );
input.close();
cout << "Added " << n << " constraints on triangles" << endl;
delete[] fixed; //Free dynamic error
}
I just found a small bug while comping ACVDQ in windows.
Can you check this issue and update your code?