FEMeshSmoothingModifier
#include <FEMeshSmoothingModifier.h>
Public Functions
Name | |
---|---|
FEMeshSmoothingModifier() Constructor. |
|
FEMesh * | Apply(FEMesh * pm) Apply the smoothing modifier. |
Protected Functions
Name | |
---|---|
double | area_triangle(vec3d r[3]) |
double | distance(vec3d x, vec3d y) |
double | random() |
void | Laplacian_Smoothing(FEMesh * pm, vector< int > hashmap) |
void | Laplacian_Smoothing2(FEMesh * pm, vector< int > hashmap) |
void | Taubin_Smoothing(FEMesh * pm, vector< int > hashmap) |
void | Crease_Enhancing_Diffusion(FEMesh * pm, vector< int > hashmap) |
void | Add_Noise(FEMesh * pm, vector< int > hashmap) |
Public Attributes
Name | |
---|---|
double | m_threshold1 |
double | m_threshold2 |
double | m_iteration |
int | m_method |
Detailed Description
class FEMeshSmoothingModifier;
This class implements a modifier that coarses a plygonal mesh using an approximated centroidal voronoi diagram.
Public Functions Documentation
function FEMeshSmoothingModifier
FEMeshSmoothingModifier()
Constructor.
function Apply
FEMesh * Apply(
FEMesh * pm
)
Apply the smoothing modifier.
Protected Functions Documentation
function area_triangle
double area_triangle(
vec3d r[3]
)
function distance
double distance(
vec3d x,
vec3d y
)
function random
double random()
function Laplacian_Smoothing
void Laplacian_Smoothing(
FEMesh * pm,
vector< int > hashmap
)
function Laplacian_Smoothing2
void Laplacian_Smoothing2(
FEMesh * pm,
vector< int > hashmap
)
function Taubin_Smoothing
void Taubin_Smoothing(
FEMesh * pm,
vector< int > hashmap
)
function Crease_Enhancing_Diffusion
void Crease_Enhancing_Diffusion(
FEMesh * pm,
vector< int > hashmap
)
function Add_Noise
void Add_Noise(
FEMesh * pm,
vector< int > hashmap
)
Public Attributes Documentation
variable m_threshold1
double m_threshold1;
variable m_threshold2
double m_threshold2;
variable m_iteration
double m_iteration;
variable m_method
int m_method;
Updated on 2024-11-11 at 19:51:46 +0000