org.osm2world.core.math.algorithms
public final class NormalCalculationUtil extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static final List<VectorXYZ> calculateTriangleNormals(List<VectorXYZ> vertices, boolean smooth)
public static final List<VectorXYZ> calculateTriangleStripNormals(List<VectorXYZ> vertices, boolean smooth)
public static final List<VectorXYZ> calculateTriangleFanNormals(List<VectorXYZ> vertices, boolean smooth)
public static final Collection<TriangleXYZWithNormals> calculateTrianglesWithNormals(Collection<TriangleXYZ> triangles)