Coloring with AIS_Triangulation

I created an AIS_Triangulation from Poly_Triangulation and colored it as shown here: https://dev.opencascade.org/content/how-use-opengl-directly-occ%EF%BC%9F.

However, doing AIS context->Display is not showing anything. Please say what could be the problem.

DKGH's picture

Figured it out. Took me two days. All I needed to do was to comment out SetDisplayMode after Display.