diff --git a/libsrc/occ/occgeom.cpp b/libsrc/occ/occgeom.cpp index 4769288e..229d9d78 100644 --- a/libsrc/occ/occgeom.cpp +++ b/libsrc/occ/occgeom.cpp @@ -2018,7 +2018,7 @@ namespace netgen // load names Standard_Integer nb = model->NbEntities(); - for (Standard_Integer i = 1; i < nb; i++) + for (Standard_Integer i = 1; i <= nb; i++) { Handle(Standard_Transient) entity = model->Value(i); auto item = Handle(StepRepr_RepresentationItem)::DownCast(entity); @@ -2036,7 +2036,7 @@ namespace netgen // load custom data (maxh etc.) - for (Standard_Integer i = 1; i < nb; i++) + for (Standard_Integer i = 1; i <= nb; i++) { Handle(Standard_Transient) entity = model->Value(i);