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
23050: EDF 10631 SMESH: Nodes outside the plane after ConvertToQuadratic
[modules/smesh.git]
/
src
/
StdMeshers
/
StdMeshers_NumberOfSegments.cxx
diff --git
a/src/StdMeshers/StdMeshers_NumberOfSegments.cxx
b/src/StdMeshers/StdMeshers_NumberOfSegments.cxx
index f09dc7a10d1cf66ef59c211e80a592008b697b2d..2f0d05b9d75e8aee3d1c903434f830bfd71da973 100644
(file)
--- a/
src/StdMeshers/StdMeshers_NumberOfSegments.cxx
+++ b/
src/StdMeshers/StdMeshers_NumberOfSegments.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
4
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
5
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
@@
-53,6
+53,7
@@
#include <Basics_Utils.hxx>
#include <Basics_Utils.hxx>
+using namespace StdMeshers;
using namespace std;
const double PRECISION = 1e-7;
using namespace std;
const double PRECISION = 1e-7;
@@
-184,8
+185,8
@@
void StdMeshers_NumberOfSegments::SetScaleFactor(double scaleFactor)
//throw SALOME_Exception(LOCALIZED("not a scale distribution"));
if (scaleFactor < PRECISION)
throw SALOME_Exception(LOCALIZED("scale factor must be positive"));
//throw SALOME_Exception(LOCALIZED("not a scale distribution"));
if (scaleFactor < PRECISION)
throw SALOME_Exception(LOCALIZED("scale factor must be positive"));
-
//
if (fabs(scaleFactor - 1.0) < PRECISION)
-
// throw SALOME_Exception(LOCALIZED("scale factor must not be equal to 1"))
;
+ if (fabs(scaleFactor - 1.0) < PRECISION)
+
_distrType = DT_Regular
;
if (fabs(_scaleFactor - scaleFactor) > PRECISION)
{
if (fabs(_scaleFactor - scaleFactor) > PRECISION)
{