Message Boards Message Boards

Extract finite mesh connectivity?

Posted 6 years ago

Hello All:

I used the command:

DelaunayMesh[SpherePoints[12]] (* Create a concave mesh given 12 points on a sphere*)

to generate a finite element mesh on a spherical surface. Now, how I can extract this mesh vertices coordinates and elements connectivities:

for mesh coordinates, I should have for each point, something like x,y,z for mesh connectivities, I should have for each element, something like 1-2-3

I am new to the Mathematica software, So, I tried to search in the library to make these two tasks, but unfortunately, I cannot solve this issue. I think I need to use the command: ToElementMesh or ElementMesh.

Can anyone help with these tasks?

POSTED BY: Hassan Al-Siraj
7 Replies

Yes, Horvat This is working now. I am very thanks for your help and Henrik. This is my first use Mathematica, and I found its capabilities are very versatile with ease of use, self-learning and trying. I intended to learn this software for future projects.

Thanks

POSTED BY: Hassan Al-Siraj
POSTED BY: Hassan Al-Siraj
POSTED BY: Szabolcs Horvát
POSTED BY: Szabolcs Horvát
POSTED BY: Hassan Al-Siraj

Well, if you have an explicite look into my polygons2D data, you see how points are related in terms of trinangles. Or likewise, if you want to have your points indexed, try (using the above code):

indxRules = MapIndexed[#1 -> First[#2] &, First /@ points];
triConns = First /@ polygons2D /. indxRules

Regards -- Henrik

POSTED BY: Henrik Schachner
POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract