Salome HOME
Synchronize adm files
[modules/hexablock.git] / src / HEXABLOCK / HexAssoEdge.cxx
index f55d560696af5e599295f6fcc2501397de49c664..ba7a445df2e0c1220d77371173c4dda75c5aaca9 100755 (executable)
@@ -1,12 +1,12 @@
 //
 // C++ : Implementation des associations d'edges
 //
-// Copyright (C) 2009-2013  CEA/DEN, EDF R&D
+// Copyright (C) 2009-2014  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -31,9 +31,8 @@
 BEGIN_NAMESPACE_HEXA
 
 // static bool db = on_debug ();
-// static const double TolAsso = 1e-2;    // Tolerance pour les associations
 
-// ========================================================= Constructeur
+// ======================================================= Constructeur
 AssoEdge::AssoEdge (EdgeShape* shape, double deb, double fin)
 {
    arc_line  = shape;
@@ -87,12 +86,13 @@ double AssoEdge::length ()
 // ========================================================= getUstart
 double AssoEdge::getUstart ()
 {
+   double ustart = 0;
    BRepAdaptor_Curve* curve = arc_line->getCurve () ;
    double             len   = arc_line->getLength ();
 
    GCPnts_AbscissaPoint discret_start (*curve, len*arc_para1,
                                         curve->FirstParameter() );
-   double ustart = discret_start.Parameter();
+   ustart = discret_start.Parameter();
    return ustart;
 }
 // ========================================================= saveXml