libigl / libigl.github.io

Repository for the libigl website, online tutorial and documentation
http://libigl.github.io
4 stars 29 forks source link

Curvature and normal on hex mesh #34

Open samanseifi opened 4 years ago

samanseifi commented 4 years ago

I don't know if it is the right place. Is libiglcapable of calculating curvatures and normal vectors on a hex mesh which means rectangular elements on surface.

alecjacobson commented 4 years ago

Not currently. The closest you could do is convert the hex/quad mesh into a triangle mesh, compute curvatures there and then map them back.

On Mon, Apr 20, 2020 at 10:37 AM Saman Seifi notifications@github.com wrote:

I don't know if it is the right place. Is libigl capable of calculating curvatures and normal vectors on a hex mesh which means rectangular elements on surface.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/libigl/libigl.github.io/issues/34, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARDJGOZSR5HBAD4FNMPTFDRNRM3XANCNFSM4MMP2KLA .

samanseifi commented 4 years ago

This might be good enough for now. Anywhere I can see how it can be done? Tutorial maybe?

And it can be done in 2D mesh as well right?

alecjacobson commented 4 years ago

https://libigl.github.io/tutorial/#curvature-directions

On Mon, Apr 20, 2020 at 2:18 PM Saman Seifi notifications@github.com wrote:

This might be good enough for now. Anywhere I can see how it can be done? Tutorial maybe?

And it can be done in 2D mesh as well right?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/libigl/libigl.github.io/issues/34#issuecomment-616727157, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARDJGMAFQZVEWOVKKZN6PLRNSGYZANCNFSM4MMP2KLA .

samanseifi commented 4 years ago

It doesn't say anything about converting hex mesh to tet. What am I missing? The quadratic fitting approach also takes V an F matrices from a triangular mesh file. libigl doesn't offer this direct translation I assume.

alecjacobson commented 4 years ago

Do you have a hexahedral volumetric mesh or a hexagonal surface mesh?

On Mon, Apr 20, 2020 at 5:23 PM Saman Seifi notifications@github.com wrote:

It doesn't say anything about converting hex mesh to tet. What am I missing? The quadratic fitting approach also takes V an F matrices from a triangular mesh file. libigl doesn't offer this direct translation I assume.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/libigl/libigl.github.io/issues/34#issuecomment-616817283, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARDJGMX7NYHQYY2DUKYSETRNS4NJANCNFSM4MMP2KLA .

samanseifi commented 4 years ago

It's hexahedron volumetric mesh.