Class SymmetryCache
java.lang.Object
cz.fidentis.analyst.engines.symmetry.impl.SymmetryCache
Precomputed values for the symmetry plane estimation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns average Gaussian curvaturejavax.vecmath.Vector3d
getAvgPos
(int i, int j) Returns average position of given verticesjavax.vecmath.Vector3d
getNormCosVec
(int i, int j) Returns cosine of given normal vectors.
-
Constructor Details
-
SymmetryCache
Constructor.- Parameters:
vertices
- Mesh vertices
-
-
Method Details
-
getNormCosVec
public javax.vecmath.Vector3d getNormCosVec(int i, int j) Returns cosine of given normal vectors.- Parameters:
i
- Index of the first vectorj
- Index of the second vector- Returns:
- cosine of given normals
-
getAvgPos
public javax.vecmath.Vector3d getAvgPos(int i, int j) Returns average position of given vertices- Parameters:
i
- Index of the first vectorj
- Index of the second vector- Returns:
- average position of given vertices
-
getAvgGaussianCurvature
public double getAvgGaussianCurvature()Returns average Gaussian curvature- Returns:
- average Gaussian curvature
-