-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to convert an obj file to .m file the algorithm needed? #1
Comments
Hi, you may read the vertices and faces from the .obj file using some of the following functions: The spherical mapping code (spherical_conformal_map.m) only requires the vertex (nv x 3 matrix) and face (nf x 3 matrix) as the input. The variable mean_curv is not required for computing the mapping. It is just an optional vertex-based quantity (which can either be the mean curvature, Gaussian curvature, or any other quantity you want to visualize) for the mesh plotting code plot_mesh.m. |
Thanks so much !!! |
Hi, The spherical map always results in a sphere centered at the origin and with radius 1. You can rescale it based on the surface area of the input surface as follows: |
You help me a lot,thanks! I try to use the result generated from your code, as input of optimal transport program which is from Spherical Optimal Transportation Map,and it output the Legendre dual mesh and the optimal transportation map mesh which is .m file, show below;Honestly, I don’t know how to understand this output , what software can be used to load this kind of file. What do c and u stand for and Is normal the vertex normal? Have you dealt with the similarity problem? |
I am not very familiar with that program and the data format. It seems to me that "normal" is the vertex normal, and "u" may be the spherical parameterization result. I suggest that you contact the authors for more details. |
It's very nice of you !Thanks for your suggestion , I try to contact the authors . |
Thanks for your code. Assume that I have two surfaces with their landmarks. Thank you in advance. |
Thanks for your sharing ! I have a .nrrd medical file of hippocampus segmentation and I want to use your code to map the hippocampus to sphere, then I convert .nrrd file to obj file using slicer. I want to convert the .obj file to .m file the algorithm needed.The .m file is consisted of three variable: vertex ,face and mean_curv. What is mean_curv ? And could it converted from .obj file?
Or is there any easy way to create a mat for hippocampus surface which is a .nrrd file or .obj file as input ? I really appreciate if you could reply to me
The text was updated successfully, but these errors were encountered: