list of shapes....

Hi there!

I'm trying to 'collect' a list of shapes. for this i use:
______________________________________________

void CGruppen::AddPartsToIGES(TopoDS_ListOfShape& shapelisthelpers, TopoDS_ListOfShape& shapelist)
{

TopoDS_ListIteratorOfListOfShape iter(shapelist);

//////////////////// here the error occurs
for(iter.Initialize(shapelist) ; iter.More(); iter.Next())
shapelisthelpers.Append(iter.Value());

___________________________________

Now the problem is that the iterator iterats into nirvana... it doesn't stop till the memory is full than a error occurs.

Do i use the iterator right?? Can someone give me a tip?

Thanks in advance and best regards

Mathias

Bearloga's picture

Probably shapelist and shapelisthelpers refer to the same variable.

Mathias Neyer's picture

thanks this was exactlly the problem... lol spend a long time on this little problem... thanks again