Accessing Mesh Data To get the number of mesh vertices, use int model.mesh(<tag>).getNumVertex(); To get the coordinates of the mesh vertices, use double[][] model.mesh(<tag>).getVertex(); which gives you a matrix where each column corresponds to a mesh vertex. To get the element types in the mesh, use String[] model.mesh(<tag>).getTypes(); The following table lists the possible types. See Element Numbering Conventions for an explanation of each type. String Element dimension Number of Nodes vtx Vertex element 0 1 edg Edge element 1 2 tri Triangular element 2 3 quad Quadrilateral element 2 4 tet Tetrahedral element 3 4 pyr Pyramid element 3 5 prism Prism element 3 6 hex Hexahedral element 3 8 To get the number of elements of a specific type, use int model.mesh(<tag>).getNumElem(type); To get the elements for a specific type, use int[][] model.mesh(<tag>).getElem(type); which gives you a matrix where each column contains the mesh vertex indices of an element’s corners. To get the geometric entity number for the elements of a specific type, use int[] model.mesh(<tag>).getElemEntity(type); Information and Statistics