MeshKernel
Public Member Functions | List of all members
meshkernel::SplitRowColumnOfMesh Class Referencefinal

Split the row or column connected to the given edge. More...

#include <SplitRowColumnOfMesh.hpp>

Public Member Functions

std::unique_ptr< UndoAction > Compute (Mesh2D &mesh, const UInt edgeId) const
 Split the row or column connected to the given edge. More...
 

Detailed Description

Split the row or column connected to the given edge.

Member Function Documentation

◆ Compute()

std::unique_ptr<UndoAction> meshkernel::SplitRowColumnOfMesh::Compute ( Mesh2D mesh,
const UInt  edgeId 
) const

Split the row or column connected to the given edge.

The splitting will occur upto either the boundary (next elememnt is null value), when the next element is not a quadrilateral, or when the next element is the same as the first element, i.e. a loop has been detected

Parameters
meshMesh for which a row or column is to be split
edgeIdThe starting edges for the splitting
Returns
The undo action, enabling undoing of the splitting, may be null if no splitting can occur, e.g. invalid edgeId, neither element connected to the edge is a quadrilateral.

The documentation for this class was generated from the following file: