}
-void HYDROData_LCM_FaceClassifier::Classify( const std::vector<gp_Pnt2d>& thePoints,
+void HYDROData_LCM_FaceClassifier::Classify( const std::vector<gp_XY>& thePoints,
std::vector<std::set <QString> >& theTypes,
std::vector<NCollection_Map<TopoDS_Face> >* theFaces) const
{
NCollection_UBTreeFiller <Standard_Integer, Bnd_Box2d> aTreeFiller (aTree);
NCollection_IndexedDataMap<TopoDS_Face, BRepTopAdaptor_FClass2d*> aMapF2Class2d;
- int NbF= aFaces.Extent();
+ int NbF = aFaces.Extent();
std::vector<BRepTopAdaptor_FClass2d*> fclass2dpointers;
fclass2dpointers.reserve(NbF);
- for (int i = 1; i < NbF; i++)
+ for (int i = 1; i <= NbF; i++)
{
Bnd_Box2d B;
const TopoDS_Face& F = TopoDS::Face(aFaces(i));