rnc : removed unnecessary comments

This commit is contained in:
gdd 2011-10-19 13:51:56 +00:00
parent 71206bf1b7
commit 9940adbd03

View File

@ -753,18 +753,13 @@ bool EntityGUI_FeatureDetectorDlg::execute( ObjectList& objects )
// double y = aContourPnt.Y();
// double z = aContourPnt.Z();
// When using the new way with textures on shapes we just have to do the following
// TEST pour éviter les points doubles
// When using the new way with textures on shapes we just have to do the following
int pnt_array[] = {it->x,it->y};
std::vector<int> pnt (pnt_array, pnt_array + sizeof(pnt_array) / sizeof(int) );
MESSAGE("pnt[x] = "<<pnt[0]<<",pnt[y] = "<<pnt[1])
pnt_it=existing_points.insert(pnt);
if (pnt_it.second == true)
if (pnt_it.second == true) // To avoid double points in the contours
{
MESSAGE("point absent du contour insere")
//fin TEST
double x = -0.5*width + it->x;
double y = 0.5 *height - it->y;
double z = 0;
@ -773,10 +768,6 @@ bool EntityGUI_FeatureDetectorDlg::execute( ObjectList& objects )
geomContourPnts[j] = aGeomContourPnt;
j++;
}
else
{
MESSAGE("point deja insere")
}
}
GEOM::GEOM_Object_var aWire;
@ -787,7 +778,7 @@ bool EntityGUI_FeatureDetectorDlg::execute( ObjectList& objects )
}
else if(myOutputGroup->RadioButton1->isChecked())
{
aWire = aCurveOperations->MakeSplineInterpolation(geomContourPnts.in(), false, false);
aWire = aCurveOperations->MakeSplineInterpolation(geomContourPnts.in(), /*closed =*/ false, /*reordering =*/ false);
}
else
return res;