Triangulation color

I am using the following code to build a triangulation:

Handle(Poly_Triangulation) polys = new Poly_Triangulation(tab, trian);
Handle(AIS_Triangulation) triang = new AIS_Triangulation(polys);


In 6.8.0 worked as expected, i.e., mesh with dark green edge and no interior.

In 6.9.0 I get a solid brown color mesh.

Forum supervisor's picture

Dear Billy,
The attributes management has been slightly changed in 6.9.0 to prevent ambiguous actions, which previously might work but have hidden side effects (e.g. breaking design of presentation attributes).
Please refer to OCCT6.9.0 Release Notes:

Summary: Remove AIS_Drawer class and transfer its Link() logic to Prs3d_Drawer.
Link() is not auto-created, so its attributes should not be used before setting of Link to Drawer (before Display() call by default). It is necessary to set custom aspects explicitly with SetApsectX methods. If attributes are not set, the default value or value from Link() will be used.

Best regards

Billy's picture

Thanks it is working now. (ShadingAspect after display().)