org.jcae.mesh.amibe.algos2d
Class SmoothNodes2D

java.lang.Object
  extended by org.jcae.mesh.amibe.algos2d.SmoothNodes2D

public class SmoothNodes2D
extends java.lang.Object

Node smoothing. Triangle quality is computed for all triangles, and vertex quality is the lowest value of its incident triangles. Vertices are sorted according to their quality, and processed iteratively by beginning with worst vertex. A modified Laplacian smoothing is performed, as briefly explained in Adaptive Triangular-Quadrilateral Mesh Generation, by Houman Borouchaky and Pascal J. Frey. If final position improves vertex quality, point is moved.


Constructor Summary
SmoothNodes2D(Mesh2D m)
          Creates a SmoothNodes2D instance.
SmoothNodes2D(Mesh2D m, java.util.Map<java.lang.String,java.lang.String> options)
          Creates a SmoothNodes2D instance.
 
Method Summary
 void compute()
           
static void main(java.lang.String[] args)
           
 void setProgressBarStatus(int n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmoothNodes2D

public SmoothNodes2D(Mesh2D m)
Creates a SmoothNodes2D instance.

Parameters:
m - the Mesh2D instance to refine.

SmoothNodes2D

public SmoothNodes2D(Mesh2D m,
                     java.util.Map<java.lang.String,java.lang.String> options)
Creates a SmoothNodes2D instance.

Parameters:
m - the Mesh2D instance to refine.
options - map containing key-value pairs to modify algorithm behaviour. Valid keys are size, iterations and boundaries.
Method Detail

setProgressBarStatus

public void setProgressBarStatus(int n)

compute

public void compute()

main

public static void main(java.lang.String[] args)
Parameters:
args - [options] xmlDir outDir