MeshKernel
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages Concepts
Classes | Public Member Functions | List of all members
meshkernel::Smoother Class Reference

Orthogonalizion (optimize the aspect ratios) and mesh smoothing (optimize internal face angles or area). More...

#include <Smoother.hpp>

Public Member Functions

 Smoother (const Mesh2D &mesh, const std::vector< MeshNodeType > &nodeType)
 Mesh2D constructor.
 
void Compute ()
 Computes the smoother weights.
 
auto GetWeight (UInt node, int connectedNode) const
 Gets the weight for a certain node and connected node.
 
auto GetConnectedNodeIndex (UInt node, int connectedNode) const
 Get the index of the connected node as assigned by the smoother administration.
 
auto GetNumConnectedNodes (UInt node) const
 Get number of connected nodes.
 

Detailed Description

Orthogonalizion (optimize the aspect ratios) and mesh smoothing (optimize internal face angles or area).

Constructor & Destructor Documentation

◆ Smoother()

meshkernel::Smoother::Smoother ( const Mesh2D mesh,
const std::vector< MeshNodeType > &  nodeType 
)
explicit

Mesh2D constructor.

Parameters
[in]meshMesh
[in]nodeTypeType of node in the mesh, may be different from the node type contained in the Mesh.

Member Function Documentation

◆ GetConnectedNodeIndex()

auto meshkernel::Smoother::GetConnectedNodeIndex ( UInt  node,
int  connectedNode 
) const
inline

Get the index of the connected node as assigned by the smoother administration.

node

connectedNode

Returns

◆ GetNumConnectedNodes()

auto meshkernel::Smoother::GetNumConnectedNodes ( UInt  node) const
inline

Get number of connected nodes.

node

Returns

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