RdR wrote:Hmmm I don' t have any compilation errors with GCC (Linux or MinGW) and doesn't matter for the effect of the edges, not checking by object but by the unique ID string of an edge.
OK. I guess I didn't look closely. It was a bit scary when VS 2010 said there were 6 signatures and none matched. To prove it, it showed me Ty1, Ty2, Ty, ky, ...

But it really seemed to be complaining that an integer ('0') does not match the type 'Edge *'. I was distracted because I was looking for more edges but, as Lonesome Ducky pointed out, those edges did not end on the vertex in question.
Here is the error. (The line number is different because I added some debugging to the code.)
- cpp Code: Select all
1>ClCompile:
1> ProgressiveMeshBuffer.cpp
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2440: 'initializing' : cannot convert from 'int' to 'Edge *'
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
1> C:\Program Files\Microsoft Visual Studio 10.0\VC\include\utility(247) : see reference to function template instantiation 'std::_Pair_base<_Ty1,_Ty2>::_Pair_base<irr::core::stringw&,_Ty>(_Other1,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=irr::core::stringw,
1> _Ty2=Edge *,
1> _Ty=int,
1> _Other1=irr::core::stringw &,
1> _Other2=int
1> ]
1> ProgressiveMeshBuffer.cpp(537) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2>::pair<irr::core::stringw&,int>(_Other1,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=irr::core::stringw,
1> _Ty2=Edge *,
1> _Other1=irr::core::stringw &,
1> _Other2=int
1> ]
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2439: 'std::_Pair_base<_Ty1,_Ty2>::second' : member could not be initialized
1> with
1> [
1> _Ty1=irr::core::stringw,
1> _Ty2=Edge *
1> ]
1> C:\Program Files\Microsoft Visual Studio 10.0\VC\include\utility(167) : see declaration of 'std::_Pair_base<_Ty1,_Ty2>::second'
1> with
1> [
1> _Ty1=irr::core::stringw,
1> _Ty2=Edge *
1> ]
1>
1>Build FAILED.
hybrid wrote:Also animated meshes create extra vertices. Animation is simply duplicated for those vertices.
OK, thanks.