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
it has no contect in it.

now, how do I i know it is null

I have tried to do this

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


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.