Create rectangular array of triangles

make_mesh_connectivity is a function defined in triangle_mesh.c.

Synopsis:

int * make_mesh_connectivity(int edge_ct_x, int edge_ct_y)

Formal Arguments:

  • edge_ct_x: number of edges in X direction
  • edge_ct_y: number of edges in Y direction

Description: Creates a rectangular array of triangles. The number of triangles in the X direction is 2*``edge_ct_x`` and similarly for the Y direction.

Preconditions:

  • There must be at least 1 edge in the x direction. (low-cost)
  • There must be at least 1 edge in the y direction. (low-cost)

See Also: