Fri, 09/22/2023 - 06:00
Forums:
Hello, everybody!
I know how to display Automatic highlighting,It's about moveto.But as far as I know,
const Handle(Prs3d_Drawer)& aPartSelStyle = myContext->HighlightStyle(Prs3d_TypeOfHighlight_LocalSelected);
The above method can control the highlight status after the selection,
aPartSelStyle->SetMethod(Aspect_TOHM_COLOR);
aPartSelStyle->SetColor(Quantity_NOC_GREEN1);
aPartSelStyle->SetDisplayMode(1);
aPartSelStyle->SetTransparency(0.4f);
There are only a few ways,If I want TopoDS Wire to be dotted,Is not possible,need to customize the method.Create a subclass of AIS Shape,rewriting Compute function,But I don't know exactly how to do it,I hope someone can help me,I hope it looks like the picture
Attachments:
Sun, 04/14/2024 - 12:59
Did you read this: https://dev.opencascade.org/doc/overview/html/tutorials__ais_object.html