Setting line style

Hi,

I am trying to set the type (dotted,solid,dashed)
of a line. I am using
Prs3d_LineAspect::SetTypeOfLine() and then I am doing,
m_AISContext->DefaultDrawer()->SetLineAspect(prs);
It does not seem to set the style.Also,for drawing the actual line I am using BRepBuilderAPI_MakeEdge().Can anybody help?

Thanks
~Amod

Serge's picture

Hi!
This should work...
Are you trying to set line attributes after the object was displayed? If yes - you have to call m_AISContext->Redisplay( line ).

Regards