Jurwen / Adaptive-grid-generation

The code of paper "Adaptive grid generation for discretizing implicit complexes" (Proc. SIGGRAPH 2024)
https://jurwen.github.io/Adaptive-grid-for-implicit-complexes/
Apache License 2.0
17 stars 1 forks source link

How to get the isosurface mesh #3

Open jiayaozhang opened 3 months ago

jiayaozhang commented 3 months ago

Thanks for your great work!

I have tried to run Isosurfacing tool, by using the results from mesh.json and function_value.json from Adaptive Grid Generation.

But Isosurfacing tool didn't generate the obj or off format mesh. But it generate the mesh_patches.msh, mesh_chains.msh and mesh_cells.msh store the same data as chains, patches and cells in mesh.json.

How can i able to get the adaptive mesh then. Many thanks!

Jurwen commented 3 months ago

Hi,

We usually view these MSH files using Gmsh. I had experience exporting these files from .msh format to .obj and .off using the export function in Gmsh, but I don't know if these exported files will match your expectation. Please let me know.

If you're using Mac, you can open those files in Gmsh, and export using the following: File and Export... . Windows should have a similar route.

jiayaozhang commented 3 months ago

Many thanks for your guidance and hope this project would expand it's value and influence in the industry in the future too!

What i want to see it's adaptive mesh surface. I try to use one of the gmesh demo mesh to generate it's surface in stl and export to meshlab successful.

image

But when i go to use the human-head.msh, click File->Mesh->2D or File->Mesh->3D and but it fail in stl and I can only see 3D points in off format. Curious if there is any steps that I can go wrong that fails to see the adaptive mesh surface. Many thanks again!

image

qnzhou commented 2 months ago

@jiayaozhang Can you provide the command you used to generate human-head.msh? MSH format can store both surface and volumetric meshes. In the screenshot, it looks like a tet mesh, but I am not sure. STL format can only support triangle mesh.

jiayaozhang commented 2 months ago

This is the command I have used, image With export ASCII Format (save all elements), but still can not see the surface. image

Thanks again for the kindly reply and help