de.javagl.simplemesh.utils
Class Area

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

public class Area
extends java.lang.Object

Utility methods for area-related computations on meshes


Method Summary
static float[] computeVertexAreas(MeshPrimitives meshPrimitives)
          Compute the array containing for each vertex the area (that is, 1/3 of the area of its adjacent triangles).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

computeVertexAreas

public static float[] computeVertexAreas(MeshPrimitives meshPrimitives)
Compute the array containing for each vertex the area (that is, 1/3 of the area of its adjacent triangles).

Parameters:
meshPrimitives - The mesh primitives
Returns:
The array containing the vertex areas