Create outline around a 3D object

Hi!

Sorry to revive this topic eight months later, but I just found that the render inconsistencies using the mesh.renderOutline property are due to the “smooth” or “flat” shading on the mesh.

I post some examples here: Render Outline - Buggy - #3 by Sidharth_Suresh

Does anyone have an idea how to solve this?

Thank you