I am using SPHARM-PDM downloaded from spharm-pdm_v1.13_linux64.zip.
My inputs are binary image files (*.nrrd). My expectation is that SPHARM-PDM can output triangle meshes that have a consistent ordering on the surface points. For example, those meshes are ordered from top to bottom, left to right, etc. The result is not, as shown in the picture below. This picture shows three surfaces (transparent ellipsoidal ones) generated by SPHARM. I connect the i_th point between surface a and b, forming the cyan line segment; I connect the i_th point between surface a and c, forming the red line segment. These two line segments share a same end on a. However, the other two ends apparently are on different sides, despite they have the same ordinal position on the respective mesh.
Please help me look at the way I call the program. I guess that I missed some parameters but I don’t know which. I know there are some about flip … But I’m not sure this is a general solution, i.e., I may need watch out the correspondence of every surface I generated; otherwise, I may have inconsistently oriented surfaces. Anyone had such a problem?
I call SPHARM-PDM like this:
GenParaMeshCLP --label 255 image.nrrd output_para.vtk output_surf.vtk ParaToSPHARMMeshCLP output_para.vtk output_surf.vtk final_mesh --subdivLevel 10
Also, I noticed that there are some updates in SPHARM-PDM. If a new version is suggested, could you please also suggest a convenient way to use SPHARM-PDM in a python script like the above or better?
Thanks in advance.