For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

AIS_Shape with dot lines

Gustavo Toranzo Lorca's picture
Forums: 

Hello, I'm trying to draw a shape with dot lines but when I change the visualization mode of lines in a AIS_Shape object I don't see the result, the shape is drawed without changes. I have this piece of code:

BRepPrimAPI_MakeBox makeBox(gp_Pnt(0, 0, 0), 5, 5, 5);

Handle(AIS_Shape) shape = new AIS_Shape(makeBox.Shape());

shape->Attributes()->WireAspect()->SetTypeOfLine(Aspect_TOL_DOT);
Best regards.