//
// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+#ifdef _MSC_VER
+#pragma warning(disable:4786)
+#endif
+
#include "SMDS_IteratorOfElements.hxx"
bool SMDS_IteratorOfElements::subMore()
{
- if((t2Iterator==NULL)||(!t2Iterator->more()))
+ if((t2Iterator.get()==NULL)||(!t2Iterator->more()))
{
if(t1Iterator->more())
{
const SMDS_MeshElement * SMDS_IteratorOfElements::subNext()
{
- if((t2Iterator==NULL)||(!t2Iterator->more()))
+ if((t2Iterator.get()==NULL)||(!t2Iterator->more()))
if(t1Iterator->more())
t2Iterator=t1Iterator->next()->elementsIterator(myType);
return t2Iterator->next();
// Author : Jean-Michel BOULCOURT
// Module : SMESH
+#ifdef _MSC_VER
+#pragma warning(disable:4786)
+#endif
#include "SMDS_MeshEdge.hxx"
#include "SMDS_IteratorOfElements.hxx"
//
// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+#ifdef _MSC_VER
+#pragma warning(disable:4786)
+#endif
+
#include "SMDS_MeshElement.hxx"
#include "SMDS_MeshNode.hxx"
#include "SMDS_MeshEdge.hxx"
// Author : Jean-Michel BOULCOURT
// Module : SMESH
+#ifdef _MSC_VER
+#pragma warning(disable:4786)
+#endif
+
#include "SMDS_MeshGroup.hxx"
#include "utilities.h"
SMDS_MeshGroup(SMDS_MeshGroup* theParent,
const SMDSAbs_ElementType theType = SMDSAbs_All);
- typedef std::set<const SMDS_MeshElement *>::iterator TIterator;
+ typedef std::set<const SMDS_MeshElement *>::const_iterator TIterator;
const SMDS_Mesh * myMesh;
SMDSAbs_ElementType myType;
std::set<const SMDS_MeshElement *> myElements;
// Author : Edward AGAPOV (eap)
// Copyright : Open CASCADE
+#ifdef _MSC_VER
+#pragma warning(disable:4786)
+#endif
#include "SMDS_VolumeTool.hxx"
#include "SMDS_MeshNode.hxx"
#include <map>
#include <float.h>
+#include <math.h>
using namespace std;
theFaceNodes.clear();
int iNode, nbNode = myFaceNbNodes[ faceIndex ];
- for ( int iNode = 0; iNode < nbNode; iNode++ )
+ for ( iNode = 0; iNode < nbNode; iNode++ )
theFaceNodes.insert( myFaceNodes[ iNode ]);
return true;
return ( reversed ? faceIndex != 0 : faceIndex != 1 );
case 8: {
// in a forward hexahedron, odd face normal is external, else vice versa
- bool odd = faceIndex % 2;
+ bool odd = (faceIndex % 2 != 0);
return ( reversed ? !odd : odd );
}
default:;