Highliting Circular Edges

Hi,
How do I enable highlighting and selecting of only circular edges of a shape for a particular necessity in TopoAbs_EDGE mode of local context?
Plz Help!

N.Sharjith

mbd's picture

Hi,

you just have to add filters to your selection mode :

if you want to select edges based on circles :
myAISContext->OpenLocalContext();
myAISContext->ActivateStandardMode(TopAbs_EDGE);
Handle(StdSelect_EdgeFilter) EdgeFilter = new StdSelect_EdgeFilter(StdSelect_Circle);
myAISContext->AddFilter(EdgeFilter);

mbd

Sharjith Naramparambath's picture

Hi,
Thanx a lot!