Normally AIS_Trihedron has a attribute which is DatumAspect() and we can set width for each axis line. But V3d_Trihedrion doesn't have. Is there any other solution to set line width?
gnomon_ = new AIS_Trihedron(placement);
gnomon_->Attributes()->DatumAspect()->LineAspect(Prs3d_DP_XAxis)->SetWidth(width);
Thanks.
Discussion
5 archived replies
Posts are displayed in their archived order.
01Commenter-1
Why don't you use AIS_Trihedron? As for V3d_Trihedron, the code might look like this:
I don't know, have you already tried that but it doesn't work when I set the line widths like that.
Maybe question might be, how to set position as fixed on the view like v3d_trihedron. Because we create AIS_Trihedron with Handle_Geom_Axis2Placement which means I define that on the view with X,Y,Z but I want to fix position on left bottom corner.
Did you get what is the problem, or should I define one more time? :)
03Author
I did that using AIS_Trihedron and problem solved. I set transform persistence like in v3d_trihedron. So thanks :)
04Commenter-1
I don't know, have you already tried that but it doesn't work when I set the line widths like that.
Yes, I've checked the code snippet in Draw Harness environment. But anyway, AIS_Trihedron should be more flexible in many aspects, while V3d_Trihedron is here mostly for historical reasons.