]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
refs #674: correct using of doubles coordinates
authorasl <asl@opencascade.com>
Thu, 29 Oct 2015 05:57:58 +0000 (08:57 +0300)
committerasl <asl@opencascade.com>
Thu, 29 Oct 2015 05:57:58 +0000 (08:57 +0300)
src/CurveCreator/CurveCreator_Utils.cxx
src/CurveCreator/CurveCreator_UtilsICurve.cxx
src/CurveCreator/CurveCreator_UtilsICurve.hxx
src/CurveCreator/CurveCreator_Widget.cxx
src/CurveCreator/CurveCreator_Widget.h

index 52ed6f0e219974656928f84e9c6afba6cab0bc75..863432b4cd3fbb2b892a7ea0cc178a70ce63f5e2 100644 (file)
@@ -556,7 +556,7 @@ void CurveCreator_Utils::getSelectedPoints( Handle(AIS_InteractiveContext) theCo
 {
   thePoints.clear();
 
-  std::list<float> aSelectedPoints;
+  std::list<double> aSelectedPoints;
   gp_Pnt aPnt;
   std::map<CompareSectionToPoint, int> aPointsMap;
 
index a0bd400a957f604730394ad3ba398616ee0a9892..cf6dc203de5fb93fa2d2ec8cd3319efe5bc0e4fd 100644 (file)
@@ -25,7 +25,7 @@
 const double LOCAL_SELECTION_TOLERANCE = 0.0001;
 
 int CurveCreator_UtilsICurve::findLocalPointIndex( const CurveCreator_ICurve* theCurve,
-                                             int theSectionId, float theX, float theY )
+                                             int theSectionId, double theX, double theY )
 {
   int aPntIndex = -1;
   if ( !theCurve )
index 89ff253f547d24c2546a1c6ec082289d4ac307ba..39c73b537a7d718080baec813d2cea11df750953 100644 (file)
@@ -39,7 +39,7 @@ public:
    * \param theY the Y coordinate of the point
    */
   CURVECREATOR_EXPORT static int  findLocalPointIndex( const CurveCreator_ICurve* theCurve,
-                                          int theSectionId, float theX, float theY );
+                                          int theSectionId, double theX, double theY );
 
   CURVECREATOR_EXPORT static void findSectionsToPoints( const CurveCreator_ICurve* theCurve,
                                           const double theX, const double theY,
index df9c6b710396b20578d0933762f5728a6d5a2183..54cf166bbb12bcde2f009e3f75e395ee9bad7d7a 100644 (file)
@@ -1490,7 +1490,7 @@ void CurveCreator_Widget::finishCurveModification(
  * \param theX the X coordinate of the point
  * \param theY the Y coordinate of the point
  */
-int CurveCreator_Widget::findLocalPointIndex( int theSectionId, float theX, float theY )
+int CurveCreator_Widget::findLocalPointIndex( int theSectionId, double theX, double theY )
 {
   return CurveCreator_UtilsICurve::findLocalPointIndex( myCurve, theSectionId, theX, theY );
 }
index 1fa317f5658ffba5821952a5e2a715db2b477462..87433c553c36f22beb49dacaf56fe853b9d72175 100644 (file)
@@ -195,7 +195,7 @@ private:
                                       CurveCreator_ICurve::SectionToPointList() );
 
   // curve algorithm
-  int  findLocalPointIndex( int theSectionId, float theX, float theY );
+  int  findLocalPointIndex( int theSectionId, double theX, double theY );
   void findSectionsToPoints( const double theX, const double theY,
                              CurveCreator_ICurve::SectionToPointList& thePoints );
   void convert( const CurveCreator_ICurve::SectionToPointList& thePoints,