ogstools.meshlib.refine_mesh module#

ogstools.meshlib.refine_mesh.refine(layerset, factor)[source]#

Refine the provided LayerSet by increasing the number of subdivisions.

This function takes a LayerSet and refines it by increasing the number of subdivisions in each layer. The factor parameter determines the degree of refinement.

Parameters:
  • layerset (LayerSet) – The original LayerSet to be refined.

  • factor (int) – The refinement factor for the number of subdivisions.

Returns:

A new LayerSet with increased subdivisions for each layer.

Return type:

LayerSet