TopTools_HSequenceOfShape

Hi guys,

Please be so kind to answer my question.

I have a
Handle(TopTools_HSequenceOfShape) myedges=new TopTools_HSequenceOfShape();

and after I clear it
myedges->Clear();
it has no contect in it.

now, how do I i know it is null

I have tried to do this
if(!myedges->IsEmpty())
{
.
.
.
.
}

but it doesn't work
please tell me why.. and how!

Thanks!

Hugues's picture

What does not work?
After doing myedges->Clear (), then myedges->IsEmpty () == true.
There should be no problems with this.
By the way, you are not obliged to use OpenCascade's containers. With TopoDS_Shape objects you are able to use STL's container.