mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-13 15:19:13 +08:00
0022807: Loading of STEP entities in model during reading of STEP file requires redundant memory
This commit is contained in:
@@ -17,14 +17,13 @@
|
||||
Interface_GraphContent::Interface_GraphContent
|
||||
(const Interface_Graph& agraph, const Handle(Standard_Transient)& ent)
|
||||
{
|
||||
Interface_IntList list =
|
||||
agraph.SharedNums(agraph.EntityNumber(ent));
|
||||
Standard_Integer nb = list.Length();
|
||||
Interface_EntityIterator list = agraph.Shareds(ent);
|
||||
Standard_Integer nb = list.NbEntities();
|
||||
if (nb == 0) return; // Liste redefinie a VIDE
|
||||
Handle(Interface_InterfaceModel) mod = agraph.Model();
|
||||
for (Standard_Integer i = 1; i <= nb; i ++) {
|
||||
Standard_Integer num = list.Value(i);
|
||||
if (agraph.IsPresent(num)) GetOneItem (agraph.Entity(num));
|
||||
for( ; list.More(); list.Next()) {
|
||||
Handle(Standard_Transient) curent = list.Value();
|
||||
if (agraph.IsPresent(agraph.EntityNumber(curent)))
|
||||
GetOneItem (curent);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user