Meshing colored shading

Hello,

I was wondering if someone might have a clue on how to achieve the kind of shading found in the attached pictures using Open Cascade.

I could easily do mesh facet base shading and mesh node base shading, but this is something else.

Best regards,

François.

Attachments: 
Kirill Gavrilov's picture

As color interpolation on screenshot doesn't match per-vertex shading, it is either stored within the texture or computed in run-time via shading program.
Both approaches are possible with OCCT, although this will require development of specific algorithm (considering that you actually know what you would like to see).

Francois Lauzon's picture

So it is either a shader or a pre-computed texture that is applied to obtain such result if I understand correctly...

Thanks for the fast reply Kirill.

François.

Giovanni Bettega's picture

Hello,

I Obtained the result you described using as reference the following paper

Volume Contouring of Generic Unstructured Meshes - LUIZ FERNANDO MARTHA, MARCELO T´ILIO MONTEIRO DE CARVALHO, ROBERTO DE BEAUCLAIR SEIXAS

Actually strips could be built using also the marching quads/tets algo. I attach a figure, in which the FEM mesh and the isocontouring mesh are both shown.

Regards

Giovanni

Attachments: