I'm trying to display a Poly_Triangulation (extracted from an STL-file using the RWSTL-module). I've currently found 2 ways that work but for each solution I'm facing a (different) problem. Note that I'm using the pythonocc wrapper, but the steps should be the same.
ais_shape = AIS_Triangulation(polyTriangulation)
Setting the color won't work (figure 1):
shape = TopoDS_Face()
CompoundBuilder = BRep_Builder()
ais_shape = AIS_Shape(shape)
The color is darker at places with more triangles (figure 2).
The visualization result from method 1 (figure 1) is perfect, only the color should be changed (instead of the standard brown one). The color of method 2 is fine (figure 2), but the visualization result is not optimal. Any ideas? One solution will suffice.