org.jcae.mesh.amibe.algos3d
Class SmoothNodes3D

java.lang.Object
  extended by org.jcae.mesh.amibe.algos3d.SmoothNodes3D

public class SmoothNodes3D
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
SmoothNodes3D(Mesh m)
          Creates a SmoothNodes3D instance.
SmoothNodes3D(Mesh m, java.util.Map<java.lang.String,java.lang.String> options)
          Creates a SmoothNodes3D 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

SmoothNodes3D

public SmoothNodes3D(Mesh m)
Creates a SmoothNodes3D instance.

Parameters:
m - the Mesh instance to refine.

SmoothNodes3D

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

Parameters:
m - the Mesh instance to refine.
options - map containing key-value pairs to modify algorithm behaviour. Valid keys are size, iterations, boundaries, tolerance, refresh and relaxation.
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