How to color a stl file using VTK in python

Hamid_Fsian
Sun, 20 Nov 2022 20:21:09 +0000
Support

Hello,

I am a newbie in VTK.

I have generated a STL file (of bones) using VTK, and now I want to have specific color labels for each slice, for example :

if the width of slice(n) > N (number) => green,

if width of slice(n) < M => red,

if width of M<slice(n)<N => orange.

Is there’s a way to do it ?

4 posts - 3 participants