refs #674: correct using of doubles coordinates

This commit is contained in:
asl 2015-10-29 08:57:58 +03:00
parent bf8682daf1
commit 643db5d3ff
5 changed files with 5 additions and 5 deletions

View File

@ -556,7 +556,7 @@ void CurveCreator_Utils::getSelectedPoints( Handle(AIS_InteractiveContext) theCo
{ {
thePoints.clear(); thePoints.clear();
std::list<float> aSelectedPoints; std::list<double> aSelectedPoints;
gp_Pnt aPnt; gp_Pnt aPnt;
std::map<CompareSectionToPoint, int> aPointsMap; std::map<CompareSectionToPoint, int> aPointsMap;

View File

@ -25,7 +25,7 @@
const double LOCAL_SELECTION_TOLERANCE = 0.0001; const double LOCAL_SELECTION_TOLERANCE = 0.0001;
int CurveCreator_UtilsICurve::findLocalPointIndex( const CurveCreator_ICurve* theCurve, int CurveCreator_UtilsICurve::findLocalPointIndex( const CurveCreator_ICurve* theCurve,
int theSectionId, float theX, float theY ) int theSectionId, double theX, double theY )
{ {
int aPntIndex = -1; int aPntIndex = -1;
if ( !theCurve ) if ( !theCurve )

View File

@ -39,7 +39,7 @@ public:
* \param theY the Y coordinate of the point * \param theY the Y coordinate of the point
*/ */
CURVECREATOR_EXPORT static int findLocalPointIndex( const CurveCreator_ICurve* theCurve, 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, CURVECREATOR_EXPORT static void findSectionsToPoints( const CurveCreator_ICurve* theCurve,
const double theX, const double theY, const double theX, const double theY,

View File

@ -1490,7 +1490,7 @@ void CurveCreator_Widget::finishCurveModification(
* \param theX the X coordinate of the point * \param theX the X coordinate of the point
* \param theY the Y 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 ); return CurveCreator_UtilsICurve::findLocalPointIndex( myCurve, theSectionId, theX, theY );
} }

View File

@ -195,7 +195,7 @@ private:
CurveCreator_ICurve::SectionToPointList() ); CurveCreator_ICurve::SectionToPointList() );
// curve algorithm // 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, void findSectionsToPoints( const double theX, const double theY,
CurveCreator_ICurve::SectionToPointList& thePoints ); CurveCreator_ICurve::SectionToPointList& thePoints );
void convert( const CurveCreator_ICurve::SectionToPointList& thePoints, void convert( const CurveCreator_ICurve::SectionToPointList& thePoints,