valette / ACVD

Fast simplification of 3D surface meshes
https://www.creatis.insa-lyon.fr/~valette/public/project/acvd/
Other
266 stars 57 forks source link

MSVC compiler complains about int to vtkIdType conversion #45

Closed YangShen398 closed 2 years ago

YangShen398 commented 2 years ago

Hi ACVD developers,

I am building ACVD using VTK 9 using MSVC (16.11.11) from Visual Studio 2019 for x64 architecture and the compilation failed due to the error "int to vtkIdType conversion" on line 119 in vtkVerticesProcessing.h.

It seems like easy fix. I just replace line 118 with // int NumberOfEdges,Edges,i; vtkIdType NumberOfEdges,Edges,i;

Then, the complication is succesful.

valette commented 2 years ago

Hi, I have just pushed commit 5cd56db, does this help?

YangShen398 commented 2 years ago

Hi, I have just pushed commit 5cd56db, does this help?

yes