com1DFA.com1DFA.initializeMesh

initializeMesh(cfg, demOri, num)[source]

Create rectangular mesh

Reads the DEM information, computes the normal vector field and boundries to the DEM. Also generates the grid for the neighbour search

Parameters
  • demOri (dict) – dictionary with initial dem information

  • num (int) – chose between 4, 6 or 8 (using then 4, 6 or 8 triangles) or 1 to use the simple cross product method

Returns

dem – dictionary relocated in (0,0) and completed with normal field and boundaries as well as neighbour search grid information

Return type

dict