UnityMol  0.9.6-875
UnityMol viewer / In developement
SmoothFilter Class Reference
+ Inheritance diagram for SmoothFilter:
+ Collaboration diagram for SmoothFilter:

Static Public Member Functions

static void AdjSetsSmoother (MeshData mData, AdjacencySets adjacencySets)
 
static void ConditionalAdjSetsSmoother (MeshData mData, AdjacencySets adjacencySets)
 
static void AdjSetsHCSmoother (Mesh mesh, AdjacencySets adjacencySets)
 

Static Private Member Functions

static Vector3 TrueAverageVertex (List< Vector3 > neighbors, Vector3 v)
 
static Vector3 AverageOfNeighbors (List< Vector3 > neighbors)
 
static Vector3 NudgeVertex (List< Vector3 > neighbors, Vector3 v)
 
static void BuildNeighborsLists (AdjacencySets adjSets, List< Vector3 > neighbors, List< int > neighborIndices, int i, Vector3[] vertices)
 
static bool IsInsideVertex (List< Vector3 > neighbors, List< int > nIndices, AdjacencySets aSets)
 

Static Private Attributes

static float NUDGE_COEF = 0.05f
 
static float BETA = 0.85f
 
static float ONE_MINUS_BETA = 1f - BETA
 
static float HC_CORRECT = 0.2f
 

Detailed Description

Definition at line 12 of file SmoothFilter.cs.

Member Function Documentation

static void SmoothFilter.AdjSetsHCSmoother ( Mesh  mesh,
AdjacencySets  adjacencySets 
)
static

Definition at line 188 of file SmoothFilter.cs.

References AverageOfNeighbors(), BuildNeighborsLists(), IsInsideVertex(), and TrueAverageVertex().

+ Here is the call graph for this function:

static void SmoothFilter.AdjSetsSmoother ( MeshData  mData,
AdjacencySets  adjacencySets 
)
static

Definition at line 153 of file SmoothFilter.cs.

References BuildNeighborsLists(), TrueAverageVertex(), and MeshData.vertices.

Referenced by GenerateMesh.CreateSurfaceObjects().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Vector3 SmoothFilter.AverageOfNeighbors ( List< Vector3 >  neighbors)
staticprivate

Definition at line 82 of file SmoothFilter.cs.

Referenced by AdjSetsHCSmoother().

+ Here is the caller graph for this function:

static void SmoothFilter.BuildNeighborsLists ( AdjacencySets  adjSets,
List< Vector3 >  neighbors,
List< int >  neighborIndices,
int  i,
Vector3[]  vertices 
)
staticprivate

Definition at line 107 of file SmoothFilter.cs.

References AdjacencySets.GetAdjacencySet().

Referenced by AdjSetsHCSmoother(), AdjSetsSmoother(), and ConditionalAdjSetsSmoother().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void SmoothFilter.ConditionalAdjSetsSmoother ( MeshData  mData,
AdjacencySets  adjacencySets 
)
static

Definition at line 169 of file SmoothFilter.cs.

References BuildNeighborsLists(), IsInsideVertex(), TrueAverageVertex(), and MeshData.vertices.

+ Here is the call graph for this function:

static bool SmoothFilter.IsInsideVertex ( List< Vector3 >  neighbors,
List< int >  nIndices,
AdjacencySets  aSets 
)
staticprivate

Definition at line 119 of file SmoothFilter.cs.

References AdjacencySets.GetAdjacencySet().

Referenced by AdjSetsHCSmoother(), and ConditionalAdjSetsSmoother().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Vector3 SmoothFilter.NudgeVertex ( List< Vector3 >  neighbors,
Vector3  v 
)
staticprivate

Definition at line 95 of file SmoothFilter.cs.

static Vector3 SmoothFilter.TrueAverageVertex ( List< Vector3 >  neighbors,
Vector3  v 
)
staticprivate

Definition at line 65 of file SmoothFilter.cs.

Referenced by AdjSetsHCSmoother(), AdjSetsSmoother(), and ConditionalAdjSetsSmoother().

+ Here is the caller graph for this function:

Member Data Documentation

float SmoothFilter.BETA = 0.85f
staticprivate

Definition at line 14 of file SmoothFilter.cs.

float SmoothFilter.HC_CORRECT = 0.2f
staticprivate

Definition at line 21 of file SmoothFilter.cs.

float SmoothFilter.NUDGE_COEF = 0.05f
staticprivate

Definition at line 13 of file SmoothFilter.cs.

float SmoothFilter.ONE_MINUS_BETA = 1f - BETA
staticprivate

Definition at line 15 of file SmoothFilter.cs.


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