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.

Args:

layerset (LayerSet): The original LayerSet to be refined. factor (int): The refinement factor to increase the number of subdivisions.

Returns:

LayerSet: A new LayerSet with increased subdivisions for each layer.

Parameters:
Return type:

LayerSet