I have a polydata created by points(with z-value 0) and polys, and cell attribute data, How can I convert this 2d polydata data(2d mesh) to 3d mesh use the scalar attribute data. I hope you can give me some suggestions and methods, I look forward to your reply!
So, you want to set the z dimensions by using one of your cell data?
If that’s correct, then you need to use vtkCellDataToPointData to create point data out of your cell data
and then either use vtkWarpScalar (read the documentation) or just change the z array using your scalar point data array.
Thank you my friend! this is exactly what I need.