in my project I'm tesselelating a TopoDS_Shape.
Then I use a meanshift-algorithm to divide the triangle-mesh in different segments.
Now, I'd like to color the surface of each segment in a different color.
I know, how to color each edge of a triangle, but how can I color the surface?
Here is the code I use to color the edge of a triangle:
colors is an array of Quantity_NameOfColor.
point1 and point2 are ColumnVector which represent the coordinates of the vertices.
BRepBuilderAPI_MakeEdge ME(gp_Pnt(point1(1),point1(2), point1(3)), gp_Pnt(point2(1),point2(2), point2(3)));
Handle_AIS_Shape ctriangulation = new AIS_Shape(Comp);