MeshCore::AbstractSmoothing Class Referenceabstract

Base class for smoothing algorithms. More...

#include <Smoothing.h>

Public Types

enum  Component { Tangential, Normal, TangentialNormal }
 
enum  Continuity { C0, C1, C2 }
 

Public Member Functions

 AbstractSmoothing (MeshKernel &)
 
void initialize (Component comp, Continuity cont)
 
virtual void Smooth (unsigned int)=0
 Smooth the triangle mesh. More...
 
virtual void SmoothPoints (unsigned int, const std::vector< unsigned long > &)=0
 
virtual ~AbstractSmoothing ()
 

Protected Attributes

Component component
 
Continuity continuity
 
MeshKernelkernel
 
float tolerance
 

Detailed Description

Base class for smoothing algorithms.

Member Enumeration Documentation

◆ Component

Enumerator
Tangential 

Smooth tangential direction.

Normal 

Smooth normal direction.

TangentialNormal 

Smooth tangential and normal direction.

◆ Continuity

Enumerator
C0 
C1 
C2 

Constructor & Destructor Documentation

◆ AbstractSmoothing()

AbstractSmoothing::AbstractSmoothing ( MeshKernel m)

◆ ~AbstractSmoothing()

AbstractSmoothing::~AbstractSmoothing ( )
virtual

Member Function Documentation

◆ initialize()

void AbstractSmoothing::initialize ( Component  comp,
Continuity  cont 
)

References component, and continuity.

◆ Smooth()

virtual void MeshCore::AbstractSmoothing::Smooth ( unsigned int  )
pure virtual

Smooth the triangle mesh.

Implemented in MeshCore::TaubinSmoothing, MeshCore::LaplaceSmoothing, and MeshCore::PlaneFitSmoothing.

◆ SmoothPoints()

virtual void MeshCore::AbstractSmoothing::SmoothPoints ( unsigned int  ,
const std::vector< unsigned long > &   
)
pure virtual

Member Data Documentation

◆ component

Component MeshCore::AbstractSmoothing::component
protected

Referenced by initialize().

◆ continuity

Continuity MeshCore::AbstractSmoothing::continuity
protected

Referenced by initialize().

◆ kernel

◆ tolerance

float MeshCore::AbstractSmoothing::tolerance
protected

The documentation for this class was generated from the following files:
  • src/Mod/Mesh/App/Core/Smoothing.h
  • src/Mod/Mesh/App/Core/Smoothing.cpp