For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Difference between function AIS_InteractiveContext::Remove(), Erase() and Clear()

Sven Jungnickel's picture

Hi everybody,

in my application I am trying to remove specific interactive objects from my interactive context. Tha AIS_InteractiveContext class offers three different functions Remove(), Erase() and Clear(). Reading the help and cdl files hasn't revealed the differences between those three functions to me. Can anyone explain the differences and which function has to be used at which circumstances?

Thanks in advance and best regards,


Hans's picture

Sorry for pushing this old thread, but i need this answer, too.

I've got a AIS_Shape from a step/igs-file. My Application requires a function to delete (i mean to free the memory) a shape and not only to set is as invisible.

So what is the difference between Remove, Erase and clear?

Which is the right function for deleting?
Which is the right function to set a shape as invisible?