de.javagl.simplemesh.utils
Class Smooth

java.lang.Object
  extended by de.javagl.simplemesh.utils.Smooth

public class Smooth
extends java.lang.Object

Utility methods for smoothing meshes


Method Summary
static void smooth(Mesh mesh, int iterations)
          Smooth the given mesh with the given number of iterations.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

smooth

public static void smooth(Mesh mesh,
                          int iterations)
Smooth the given mesh with the given number of iterations. This will iteratively move all non-border vertices of the given mesh into the center of their adjacent vertices.

Parameters:
mesh - The mesh
iterations - The smoothing iterations