org.osm2world.core.math.algorithms
Class NormalCalculationUtil

Object
  extended by NormalCalculationUtil

public final class NormalCalculationUtil
extends Object


Method Summary
static List<VectorXYZ> calculateTriangleFanNormals(List<VectorXYZ> vertices, boolean smooth)
           
static List<VectorXYZ> calculateTriangleNormals(List<VectorXYZ> vertices, boolean smooth)
          calculates normals for a collection of triangles
static List<VectorXYZ> calculateTriangleStripNormals(List<VectorXYZ> vertices, boolean smooth)
           
static Collection<TriangleXYZWithNormals> calculateTrianglesWithNormals(Collection<TriangleXYZ> triangles)
          calculates normals for vertices that are shared by multiple triangles.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

calculateTriangleNormals

public static final List<VectorXYZ> calculateTriangleNormals(List<VectorXYZ> vertices,
                                                             boolean smooth)
calculates normals for a collection of triangles


calculateTriangleStripNormals

public static final List<VectorXYZ> calculateTriangleStripNormals(List<VectorXYZ> vertices,
                                                                  boolean smooth)

calculateTriangleFanNormals

public static final List<VectorXYZ> calculateTriangleFanNormals(List<VectorXYZ> vertices,
                                                                boolean smooth)

calculateTrianglesWithNormals

public static final Collection<TriangleXYZWithNormals> calculateTrianglesWithNormals(Collection<TriangleXYZ> triangles)
calculates normals for vertices that are shared by multiple triangles.