Question: Write a function which converts mesh data generated by easymesh to vtk format. 1. Implement a function to convert the data. Let the function prototype
Write a function which converts mesh data generated by easymesh to vtk format.
1. Implement a function to convert the data. Let the function prototype be: void Convert_easymesh_to_vtk_unstruc_mesh();
The following may be usefull:
http://www-dinma.univ.trieste.it/nirftc/research/easymesh/Default.htm
http://www.cacr.caltech.edu/~slombey/asci/vtk/vtk_formats.simple.html
Data Format for Unstructured Grid in VTK
The unstructured grid dataset consists of arbitrary combinations of any possible cell type. Unstructured grids are defined by points, cells, and cell types. The CELLS keyword requires two parameters: the number of cells n and the size of the cell list size. The cell list size is the total number of integer values required to represent the list (i.e., sum of numPoints and connectivity indices over each cell). The CELL_ TYPES keyword requires a single parameter: the number of cells n. This value should match the value specified by the CELLS keyword. The cell types data is a single integer value per cell that specified cell type.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
