In computer graphics, it's common to use *.node
and *.ele
files to store tetrahedral mesh, where the former one stores 3D coordinates (x,y,z)
of all the vertices and the latter one stores the indices of every tetrahedron, such as
#<tetrahedron index> <vertex 1> <vertex 2> <vertex 3> <vertex 4> <attribute>
1 1 2 3 4 1
... ... ... ... ... ...
which means a tetrahedron with index 1 consists of vertices with indices 1, 2, 3, 4 and has attribute 1.
However, it is difficult to visualize such kinds of files. So are there any libraries which can convert such kinds of *.node
and *.ele
files into *.obj
or *.ply
files for visualization in MeshLab?
Many thanks!