#include <Smoothing.h>
◆ PlaneFitSmoothing()
PlaneFitSmoothing::PlaneFitSmoothing |
( |
MeshKernel & |
m | ) |
|
◆ ~PlaneFitSmoothing()
PlaneFitSmoothing::~PlaneFitSmoothing |
( |
| ) |
|
|
virtual |
◆ Smooth()
void PlaneFitSmoothing::Smooth |
( |
unsigned int |
| ) |
|
|
virtual |
Smooth the triangle mesh.
Implements MeshCore::AbstractSmoothing.
References MeshCore::Approximation::AddPoint(), MeshCore::MeshPointIterator::Begin(), MeshCore::MeshKernel::CountPoints(), MeshCore::PlaneFit::Fit(), MeshCore::PlaneFit::GetNormal(), MeshCore::MeshKernel::GetPoints(), MeshCore::AbstractSmoothing::kernel, MeshCore::MeshPointIterator::More(), MeshCore::MeshPointIterator::Next(), Base::Vector3< _Precision >::Normalize(), MeshCore::MeshPointIterator::Position(), Base::Vector3< _Precision >::Set(), MeshCore::MeshKernel::SetPoint(), MeshCore::AbstractSmoothing::tolerance, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
◆ SmoothPoints()
void PlaneFitSmoothing::SmoothPoints |
( |
unsigned int |
iterations, |
|
|
const std::vector< PointIndex > & |
point_indices |
|
) |
| |
|
virtual |
Implements MeshCore::AbstractSmoothing.
References MeshCore::Approximation::AddPoint(), MeshCore::MeshKernel::CountPoints(), MeshCore::PlaneFit::Fit(), MeshCore::PlaneFit::GetNormal(), MeshCore::MeshKernel::GetPoints(), MeshCore::AbstractSmoothing::kernel, Base::Vector3< _Precision >::Normalize(), MeshCore::MeshPointIterator::Position(), Base::Vector3< _Precision >::Set(), MeshCore::MeshPointIterator::Set(), MeshCore::MeshKernel::SetPoint(), MeshCore::AbstractSmoothing::tolerance, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
The documentation for this class was generated from the following files:
- FreeCAD/src/Mod/Mesh/App/Core/Smoothing.h
- FreeCAD/src/Mod/Mesh/App/Core/Smoothing.cpp