mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-10 20:23:07 +05:00
rnc : removed unnecessary comments
This commit is contained in:
parent
71206bf1b7
commit
9940adbd03
@ -753,18 +753,13 @@ bool EntityGUI_FeatureDetectorDlg::execute( ObjectList& objects )
|
|||||||
// double y = aContourPnt.Y();
|
// double y = aContourPnt.Y();
|
||||||
// double z = aContourPnt.Z();
|
// double z = aContourPnt.Z();
|
||||||
|
|
||||||
// When using the new way with textures on shapes we just have to do the following
|
// When using the new way with textures on shapes we just have to do the following
|
||||||
// TEST pour éviter les points doubles
|
|
||||||
int pnt_array[] = {it->x,it->y};
|
int pnt_array[] = {it->x,it->y};
|
||||||
std::vector<int> pnt (pnt_array, pnt_array + sizeof(pnt_array) / sizeof(int) );
|
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);
|
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 x = -0.5*width + it->x;
|
||||||
double y = 0.5 *height - it->y;
|
double y = 0.5 *height - it->y;
|
||||||
double z = 0;
|
double z = 0;
|
||||||
@ -773,10 +768,6 @@ bool EntityGUI_FeatureDetectorDlg::execute( ObjectList& objects )
|
|||||||
geomContourPnts[j] = aGeomContourPnt;
|
geomContourPnts[j] = aGeomContourPnt;
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
MESSAGE("point deja insere")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GEOM::GEOM_Object_var aWire;
|
GEOM::GEOM_Object_var aWire;
|
||||||
@ -787,7 +778,7 @@ bool EntityGUI_FeatureDetectorDlg::execute( ObjectList& objects )
|
|||||||
}
|
}
|
||||||
else if(myOutputGroup->RadioButton1->isChecked())
|
else if(myOutputGroup->RadioButton1->isChecked())
|
||||||
{
|
{
|
||||||
aWire = aCurveOperations->MakeSplineInterpolation(geomContourPnts.in(), false, false);
|
aWire = aCurveOperations->MakeSplineInterpolation(geomContourPnts.in(), /*closed =*/ false, /*reordering =*/ false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return res;
|
return res;
|
||||||
|
Loading…
Reference in New Issue
Block a user