Replies: 4 comments
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Hi Bruno, thank you for your prompt reply. Your recommended approach, Periodically3d::vertex(), helped me obtain the correct vertex coordinates. However, I am unsure how to ensure that the vertex indices of a Tet element fall within the range of 1 to Nb_vertices (410). The total number of vertices output is around 410 (with 100 non-periodic points), yet the Tet vertex indices generated range from 1 to 2700. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Use |
Beta Was this translation helpful? Give feedback.
-
Finally, I resolved this problem by implementing a linking array that maps a periodic vertex to the corresponding output nodal index. The save code is as shown below:
|
Beta Was this translation helpful? Give feedback.
-
I used the example project
geogram_demo_Delaunay3d
(with appropriate modifications) to generate a periodic mesh and then output it in the mesh file format. However, I found two issues with the output file:1) The coordinates of the output nodes are very strange, extremely large, far from the region, and there are duplicates, such as:
2) Many of the tetrahedral unit node numbers in the output are greater than the number of nodes (nb_vertices) output above, such as:
My question is, how to correctly input a periodic mesh? The code I used in the save function is as follows:
The code and the output file are in the attachment.
code+outfile.zip
Beta Was this translation helpful? Give feedback.
All reactions