ProMesh User Manual  v4.3.19
Raster Layers

Tools to generate meshes for stacks of raster data. More...

Classes

class  RasterLayers
 
class  RasterLayerDesc
 

Functions

void MeshLayers (Mesh *mesh, const RasterLayers *layers)
 Creates triangle/quadrilateral grids for the given raster-layers. More...
 
void MeshLayerBoundaries (Mesh *mesh, const RasterLayers *layers)
 Creates boundary grids for the given raster-layers. More...
 
void ExtrudeLayers (Mesh *mesh, RasterLayers *layers, bool allow_for_tets_and_pyras)
 Creates volumes for a given stack of raster-layers and an initial triangulation of the surface. More...
 
void ExtrudeLayersAndAddProjector (Mesh *mesh, RasterLayers *layers, bool allow_for_tets_and_pyras)
 Creates volumes for a given stack of raster-layers and an initial triangulation of the surface. It also generates a raster-based refinement-projector for the whole geometry. More...
 
void ProjectToLayer (Mesh *mesh, RasterLayers *layers, int layer_index)
 Projects a (surface-)mesh to the specified raster-layer. Only height values in valid regions are adjusted. More...
 
void ProjectToTopLayer (Mesh *mesh, RasterLayers *layers)
 Projects a (surface-)mesh to the top-layer of the specified raster-stack. Only height values in valid regions are adjusted. More...
 
void SnapToHorizontalRaster (Mesh *mesh, RasterLayers *layers)
 Snaps all vertices of the given (surface) grid horizontally to the closest raster-node. More...
 

Detailed Description

Tools to generate meshes for stacks of raster data.


Class Documentation

◆ RasterLayers

class RasterLayers

Stack of 2d raster data.

Public Member Functions

 RasterLayers ()
 
void load_from_files (vector< string > filenames, double param)
 Loads raster data from the specified .asc files. Specify the bottom layer first and the surface layer last. More...
 
void load_from_files (vector< RasterLayerDesc * > filenames)
 Loads raster data from the specified .asc files. Specify the bottom layer first and the surface layer last. More...
 
void invalidate_flat_cells ()
 Marks all cells as invalid that belong to a small lense regarding its horizontal area. More...
 
void invalidate_small_lenses (double min_area)
 Marks all cells as invalid which are closer to the next higher valid cell than the given min height. More...
 
void remove_small_holes (double max_area, _min_height)
 removes small holes by expanding the layer in those regions to the specified height More...
 
void snap_cells_to_higher_layers ()
 sets invalid or flat cells to the value of the corresponding cell in the level above. More...
 
void eliminate_invalid_cells ()
 
void blur_layers (double alpha, size_t num_iterations)
 Blurs the values in each layer by averaging between neighbored cells on the same layer. More...
 
void construct_relative_to_global_height_table (size_t iterations, double alpha)
 Prepares a table for improved height value reconstructions in no-data-regions. More...
 

Constructor & Destructor Documentation

◆ RasterLayers()

Member Function Documentation

◆ blur_layers()

void blur_layers ( double  alpha,
size_t  num_iterations 
)

Blurs the values in each layer by averaging between neighbored cells on the same layer.

◆ construct_relative_to_global_height_table()

void construct_relative_to_global_height_table ( size_t  iterations,
double  alpha 
)

Prepares a table for improved height value reconstructions in no-data-regions.

◆ eliminate_invalid_cells()

void eliminate_invalid_cells ( )

◆ invalidate_flat_cells()

void invalidate_flat_cells ( )

Marks all cells as invalid that belong to a small lense regarding its horizontal area.

◆ invalidate_small_lenses()

void invalidate_small_lenses ( double  min_area)

Marks all cells as invalid which are closer to the next higher valid cell than the given min height.

◆ load_from_files() [1/2]

void load_from_files ( vector< string filenames,
double  param 
)

Loads raster data from the specified .asc files. Specify the bottom layer first and the surface layer last.

◆ load_from_files() [2/2]

void load_from_files ( vector< RasterLayerDesc * >  filenames)

Loads raster data from the specified .asc files. Specify the bottom layer first and the surface layer last.

◆ remove_small_holes()

void remove_small_holes ( double  max_area,
_min_height   
)

removes small holes by expanding the layer in those regions to the specified height

◆ snap_cells_to_higher_layers()

void snap_cells_to_higher_layers ( )

sets invalid or flat cells to the value of the corresponding cell in the level above.

◆ RasterLayerDesc

class RasterLayerDesc

Layer Desc for RasterLayers class

Public Member Functions

 RasterLayerDesc (string filename, double minLayerHeight)
 
string filename ()
 Returns the filename of the given layer-desc. More...
 
double min_height ()
 Returns the minimal height of the given layer-desc. More...
 

Constructor & Destructor Documentation

◆ RasterLayerDesc()

RasterLayerDesc ( string  filename,
double  minLayerHeight 
)

Member Function Documentation

◆ filename()

string filename ( )

Returns the filename of the given layer-desc.

◆ min_height()

double min_height ( )

Returns the minimal height of the given layer-desc.

Function Documentation

◆ ExtrudeLayers()

void ExtrudeLayers ( Mesh mesh,
RasterLayers layers,
bool  allow_for_tets_and_pyras 
)

Creates volumes for a given stack of raster-layers and an initial triangulation of the surface.

◆ ExtrudeLayersAndAddProjector()

void ExtrudeLayersAndAddProjector ( Mesh mesh,
RasterLayers layers,
bool  allow_for_tets_and_pyras 
)

Creates volumes for a given stack of raster-layers and an initial triangulation of the surface. It also generates a raster-based refinement-projector for the whole geometry.

◆ MeshLayerBoundaries()

void MeshLayerBoundaries ( Mesh mesh,
const RasterLayers layers 
)

Creates boundary grids for the given raster-layers.

◆ MeshLayers()

void MeshLayers ( Mesh mesh,
const RasterLayers layers 
)

Creates triangle/quadrilateral grids for the given raster-layers.

◆ ProjectToLayer()

void ProjectToLayer ( Mesh mesh,
RasterLayers layers,
int  layer_index 
)

Projects a (surface-)mesh to the specified raster-layer. Only height values in valid regions are adjusted.

◆ ProjectToTopLayer()

void ProjectToTopLayer ( Mesh mesh,
RasterLayers layers 
)

Projects a (surface-)mesh to the top-layer of the specified raster-stack. Only height values in valid regions are adjusted.

◆ SnapToHorizontalRaster()

void SnapToHorizontalRaster ( Mesh mesh,
RasterLayers layers 
)

Snaps all vertices of the given (surface) grid horizontally to the closest raster-node.