mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-08 22:37:28 +05:00
fix for loop range (occ is 1-based)
This commit is contained in:
parent
928cb57448
commit
b99b107bbc
@ -2018,7 +2018,7 @@ namespace netgen
|
|||||||
|
|
||||||
// load names
|
// load names
|
||||||
Standard_Integer nb = model->NbEntities();
|
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);
|
Handle(Standard_Transient) entity = model->Value(i);
|
||||||
auto item = Handle(StepRepr_RepresentationItem)::DownCast(entity);
|
auto item = Handle(StepRepr_RepresentationItem)::DownCast(entity);
|
||||||
@ -2036,7 +2036,7 @@ namespace netgen
|
|||||||
|
|
||||||
|
|
||||||
// load custom data (maxh etc.)
|
// 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);
|
Handle(Standard_Transient) entity = model->Value(i);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user