andyfan
andyfan

Reputation: 29

how to change sub-volumes' color in volume rendering with vtk?

I used vtk's volume rendering algorithm to render a volume data(eg. 500*500*100).If i want change certain sub-volumes'(eg 20*20*20) color,and how can i do that? Any advice will be thankful!

I had tried some methods. Like vtkVolumePicker,vtkMultiBlockDataSet and so on. But all failed.

Upvotes: 0

Views: 197

Answers (1)

mmusy
mmusy

Reputation: 1337

If you are coding in python you can consider using vedo, which allows you to go from/to numpy objects to vtkVolumes. Find examples here.

Alternatively pyvista can also help you depending on your needs.

Upvotes: 1

Related Questions