Salome HOME
correct update status of stream and DTM
[modules/hydro.git] / src / HYDROData / HYDROData_LCM_FaceClassifier.cxx
index b801df77bb1ed85b8ad6e8e507f4db0e3c1afd38..9e3a8f913b0d8565f1cc00b59e0cd5f3133ac629 100644 (file)
@@ -57,7 +57,7 @@ Standard_Boolean HYDROData_FaceClassifier_BndBoxTreeSelector::Accept (const Stan
 
 }
 
-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
 {
@@ -75,11 +75,11 @@ void HYDROData_LCM_FaceClassifier::Classify( const std::vector<gp_Pnt2d>& thePoi
   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));