Forum archiveIssue archiveVisualization and 3D Viewer

Archived discussion

Boundary Color

Visualization and 3D ViewerTue, 12/08/2020 - 01:161 reply

Browse this forum
QuestionAuthor
Handle(AIS_Shape) ais_Shape = Handle(AIS_Shape)::DownCast(aIO);
ais_Shape->SetColor(aQC);
ais_Shape->Attributes()->SetFaceBoundaryAspect(new Prs3d_LineAspect(Quantity_NOC_BLACK, Aspect_TOL_SOLID, 1.));
aCtx->Redisplay(ais_Shape, Standard_False);

if i change the AIS_Shape color using above way it works.

Shape color is changing but boundary color is black.

But i use TPrsStd_AISPresentation to display the shape, so how can i apply above method to my code?

Discussion

1 archived reply

Posts are displayed in their archived order.

01Author

XCAFPrs_AISObject is the answer to my question,

I need to work about it, thanks to Kiril