mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
refs #674: correct using of doubles coordinates
This commit is contained in:
parent
bf8682daf1
commit
643db5d3ff
@ -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;
|
||||
|
||||
|
@ -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 )
|
||||
|
@ -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,
|
||||
|
@ -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 );
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user