Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Copyright update 2021
[modules/smesh.git]
/
src
/
SMESHUtils
/
SMESH_Offset.cxx
diff --git
a/src/SMESHUtils/SMESH_Offset.cxx
b/src/SMESHUtils/SMESH_Offset.cxx
index a1adcccac7603ff2b67be7f3641ccf7772a0b153..4934e4cba456efb1580d1ea593148ab450bf81f5 100644
(file)
--- a/
src/SMESHUtils/SMESH_Offset.cxx
+++ b/
src/SMESHUtils/SMESH_Offset.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-202
0
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-202
1
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-552,7
+552,7
@@
namespace
bool getTranslatedPosition( const SMDS_MeshNode* theNewNode,
const double theOffset,
bool getTranslatedPosition( const SMDS_MeshNode* theNewNode,
const double theOffset,
- const double
theTol
,
+ const double
/*theTol*/
,
const double theSign,
const std::vector< gp_XYZ >& theFaceNormals,
SMDS_Mesh& theSrcMesh,
const double theSign,
const std::vector< gp_XYZ >& theFaceNormals,
SMDS_Mesh& theSrcMesh,
@@
-2022,6
+2022,8
@@
namespace SMESH_MeshAlgos
#ifdef _DEBUG_
std::cerr << "BAD tria" << std::endl;
cf.Dump();
#ifdef _DEBUG_
std::cerr << "BAD tria" << std::endl;
cf.Dump();
+#else
+ if ( i < 0 ) cf.Dump(); // avoid "CutFace::Dump() unused in release mode"
#endif
continue;
}
#endif
continue;
}
@@
-2497,7
+2499,7
@@
namespace
*/
//================================================================================
*/
//================================================================================
- void CutFace::AddPoint( const CutLink& p1, const CutLink& p2, double
tol
) const
+ void CutFace::AddPoint( const CutLink& p1, const CutLink& p2, double
/*tol*/
) const
{
if ( myInitFace->GetNodeIndex( p1.IntNode() ) >= 0 ||
myInitFace->GetNodeIndex( p2.IntNode() ) >= 0 )
{
if ( myInitFace->GetNodeIndex( p1.IntNode() ) >= 0 ||
myInitFace->GetNodeIndex( p2.IntNode() ) >= 0 )
@@
-2756,7
+2758,7
@@
namespace
// add links connecting internal loops with the boundary ones
// find a pair of closest nodes
// add links connecting internal loops with the boundary ones
// find a pair of closest nodes
- const SMDS_MeshNode *closestNode1
, *closestNode2
;
+ const SMDS_MeshNode *closestNode1
= 0, *closestNode2 = 0
;
double minDist = 1e100;
for ( size_t iE = 0; iE < loop.myLinks.size(); ++iE )
{
double minDist = 1e100;
for ( size_t iE = 0; iE < loop.myLinks.size(); ++iE )
{
@@
-2918,7
+2920,7
@@
namespace
const double theSign,
const std::vector< gp_XYZ >& theNormals,
std::vector< EdgePart >& theCutOffLinks,
const double theSign,
const std::vector< gp_XYZ >& theNormals,
std::vector< EdgePart >& theCutOffLinks,
- TLinkMap&
theCutOffCoplanarLinks
) const
+ TLinkMap&
/*theCutOffCoplanarLinks*/
) const
{
EdgePart sideEdge;
boost::container::flat_set< const SMDS_MeshElement* > checkedCoplanar;
{
EdgePart sideEdge;
boost::container::flat_set< const SMDS_MeshElement* > checkedCoplanar;