How to paint surfaces in jzy3D with plain colors

454 views Asked by At

I have some surfaces and I want to paint one in red, another un blue...

Tutorial of jzy3D only shows how to paint as a rainbow with ColorMaps:

Any help?

2

There are 2 answers

0
Roman Rdgz On BEST ANSWER

My problem was I was using the same set of Polygons for each Shape object. Using differents Polygons and Shapes, it's possible to give a different color to each surface.

0
Martin Pernollet On

I see two ways to do that: 1) You can implement a Colormap that returns your choosen color and to provide it to the surface builder. 2) You can build the surface and then access the polygon points and edit their color object.