Windows compatibility

This commit is contained in:
ana 2010-03-15 14:45:59 +00:00
parent 2f541de569
commit a4a1062443
2 changed files with 7 additions and 1 deletions

View File

@ -32,6 +32,12 @@
#include <string> #include <string>
#include <vector> #include <vector>
#ifdef WNT
#include <windows.h>
#else
#include <dlfcn.h>
#endif
/*! /*!
* \brief High level util for effective file reading and other file operations * \brief High level util for effective file reading and other file operations
*/ */

View File

@ -6133,7 +6133,7 @@ void SMESH_ElementSearcherImpl::findOuterBoundary(const SMDS_MeshElement* outerF
gp_Vec dirInOF = gp_Vec( ofNorm ) ^ n1n2; gp_Vec dirInOF = gp_Vec( ofNorm ) ^ n1n2;
// sort all other faces by angle with the dirInOF // sort all other faces by angle with the dirInOF
map< double, const SMDS_MeshElement* > angle2Face; map< double, const SMDS_MeshElement* > angle2Face;
set< const SMDS_MeshElement* >::const_iterator face = faces.begin(); set< const SMDS_MeshElement*, TIDCompare >::const_iterator face = faces.begin();
for ( ; face != faces.end(); ++face ) for ( ; face != faces.end(); ++face )
{ {
if ( !SMESH_Algo::FaceNormal( *face, fNorm, /*normalized=*/false )) if ( !SMESH_Algo::FaceNormal( *face, fNorm, /*normalized=*/false ))