[vtkusers] Visualizing a surface
virtual tea kit
paul_geus at hotmail.com
Sun May 6 05:20:09 EDT 2018
That is a very impressive result.
Thank you!
I have made the same experience regarding the parameters.
For each data set the parameters are different. But here is what I did,
which works okay until now:
I largely follow the this tutorial:
https://lorensen.github.io/VTKExamples/site/Cxx/Points/ExtractSurface/
However, for the radius in the distance and vtkextractsurface functions I
set a much smaller value, than the one given in the example. There, the
radius is dependend on the bounds. This led to bad results in my case.
I then pass the signeddistancefunction to the extractsurface function and
try creating a surface.
Sometimes, if the parameters are wrong no surface-volume is created. Or a
surface-volume with a lot of holes is created. That is why I put the whole
thing into a loop.
At the end of the loop, i check the number of cells created by the
vtkextractsurface. If that is smaller than 1.5*number of points in polydata
then I restart the loop and increase the parameters. This has led to a
fairly robust function that keeps creating surfaces.
vtketxractsurface.PNG
<http://vtk.1045678.n5.nabble.com/file/t342366/vtketxractsurface.PNG>
I hope this helped.
Kind regards :)
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
More information about the vtkusers
mailing list