fix for loop range (occ is 1-based)

This commit is contained in:
mhochsteger@cerbsim.com 2021-11-05 19:44:58 +01:00
parent 928cb57448
commit b99b107bbc

View File

@ -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);