Hi All, I am using XCAFPrs_AISObject to store main shape (the box shape) and use TDocStd_Document to store shape labels; both main shape and sub shapes. Here I saved main shape label and add faces as child as sub shapes.
Now I want to hide face from the view which is a sub shape. But I could not find any possible solution for that. There was a forum thread discussing to hide shape using AISColored_shape. But that do not work for me. https://dev.opencascade.org/content/display-how-hide-face-within-aiscolored-shape
I have tried following code snippet.
Handle(XCAFPrs_AISObject) thePrs; Handle(AIS_ColoredDrawer) aDrawer = thePrs->CustomAspects(theSubShape); aDrawer->SetHidden(true); Handle(AIS_InteractiveContext) context; context->UpdateCurrentViewer();
It would be very helpful if anyone can help me on this.