DiscussionsIssue archiveOther usage issues

Archived discussion

TopTools_HSequenceOfShape

Other usage issuesFri, 05/14/2004 - 09:351 reply

Browse this forum
QuestionAuthor

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!

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

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.