I used BRepBuilderAPI_MakeEdge to create a line shape and would like to set its display thickness?
Code:
gp_Pnt P1 = myStartPoint->Pnt();
gp_Pnt P2 = myEndPoint->Pnt();
Handle(Geom_Line) myComponent = new Geom_Line(P1, gp_Dir(P2.XYZ() - P1.XYZ()));
Standard_Real dist = P1.Distance(P2);
GeomAdaptor_Curve curv(myComponent, 0., dist);
TopoDS_Edge line = BRepBuilderAPI_MakeEdge(curv.Curve());