Navigation

Operators and Keywords

Function List:

C++ API

Function File: [varargout] = msh2m_topological_properties(mesh,[string1,string2,...])

Compute mesh topological properties identified by input strings.

Valid properties are:

  • "n": return a matrix with size 3 times the number of mesh elements containing the list of its neighbours. The entry M(i,j) in this matrix is the mesh element sharing the side i of triangle j. If no such element exists (i.e. for boundary edges) a value of NaN is set.
  • "sides": return a matrix with size 2 times number of sides.The entry M(i,j) is the index of the i-th vertex of j-th side.
  • "ts": return a matrix with size 3 times the number of mesh elements containing the sides associated with each element.
  • "tws":return a matrix with size 2 times the number of mesh sides containing the elements associated with each side. For a side belonging to one triangle only a value of NaN is set.
  • "coinc": return a matrix with 2 rows. Each column contains the indices of two triangles sharing the same circumcenter.
  • "boundary": return a matrix with size 2 times the number of side edges. The first row contains the mesh element to which the side belongs, the second row is the local index of this edge.

The output will contain the geometrical properties requested in the input in the same order specified in the function call.

If an unexpected string is given as input, an empty vector is returned in output.

See also: mshm2m_geometrical_properties, msh3m_geometrical_properties.

Package: msh