Class SymmetryVisitorRobustMesh.ProcessedCloud
java.lang.Object
cz.fidentis.analyst.engines.symmetry.impl.SymmetryVisitorRobustMesh.ProcessedCloud
- Enclosing class:
SymmetryVisitorRobustMesh
A helper class that copies input mesh point and moves them
so that the given centroid is in the space origin.
Also, it computes some additional data
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProcessedCloud
(List<MeshPoint> points, javax.vecmath.Point3d centroid) Moves orig points so that the centroid is in the space origin, copies them into a new list. -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
getCurvatureSumilarity
(MeshPoint p1, MeshPoint p2) Returns similarity of Gaussian curvature.int
Returns the number of points.getPoint
(int i) Returns i-th transformed point
-
Field Details
-
AVG_CUR_MAGIC_MULTIPLIER
public static final double AVG_CUR_MAGIC_MULTIPLIER- See Also:
-
-
Constructor Details
-
ProcessedCloud
Moves orig points so that the centroid is in the space origin, copies them into a new list. Also, computes the average distance of orig points to the centroid (= average distance of shifted points into the space origin).- Parameters:
points
- Original mesh pointcentroid
- Centroid.
-
-
Method Details
-
getCurvatureSumilarity
Returns similarity of Gaussian curvature.- Parameters:
p1
- First pointp2
- Second point- Returns:
- similarity of Gaussian curvature.
-
getPoint
Returns i-th transformed point- Parameters:
i
- index- Returns:
- i-th transformed point
-
getNumPoints
public int getNumPoints()Returns the number of points.- Returns:
- the number of points.
-
getAvgCurvature
public double getAvgCurvature() -
getAvgDistance
public double getAvgDistance()
-