public class CommonAlgorithms extends Object
| Constructor and Description |
|---|
CommonAlgorithms() |
| Modifier and Type | Method and Description |
|---|---|
static float[] |
calcSmoothNormals(float[] vertices,
int[] indices)
Calculate the smooth normals for a given mesh.
|
static float[] |
gridIdxToPoint(Grid grid,
int idx)
Convert a grid index to a point (the min x/y/z for the given grid box).
|
static float[] |
makeNormalCoordSys(float[] normals,
int offset)
Create an ortho-normalized coordinate system where the Z-axis is aligned
with the given normal.
|
static float[] |
restoreVertices(int[] intVertices,
int[] gridIndices,
Grid grid,
float vertexPrecision)
Calculate inverse derivatives of the vertices.
|
public static float[] restoreVertices(int[] intVertices,
int[] gridIndices,
Grid grid,
float vertexPrecision)
public static float[] gridIdxToPoint(Grid grid, int idx)
public static float[] calcSmoothNormals(float[] vertices,
int[] indices)
public static float[] makeNormalCoordSys(float[] normals,
int offset)
Copyright © 2013. All Rights Reserved.