Class AvgMeshVisitorNN
java.lang.Object
cz.fidentis.analyst.engines.avgmesh.impl.AvgMeshVisitorNN
- All Implemented Interfaces:
KdTreeVisitor
,MeshVisitor
,OctreeVisitor
,AvgMeshVisitor
Visitor capable to create an average face by deforming given face template
so that its vertices are in the "average position" with respect to the visited faces.
The average position is computed as the centroid of mass of the closest points
(nearest neighbors) from inspected faces.
-
Constructor Summary
ConstructorsConstructorDescriptionAvgMeshVisitorNN
(MeshFacet templateFacet) Constructor.AvgMeshVisitorNN
(MeshModel templateModel) Constructor.AvgMeshVisitorNN
(Collection<MeshFacet> templateFacets) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the averaged mesh modelvoid
visitKdTree
(KdTree kdTree) The main inspection method to be implemented by specific visitors.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.fidentis.analyst.engines.avgmesh.AvgMeshVisitor
isThreadSafe, visitMeshFacet, visitOctree
Methods inherited from interface cz.fidentis.analyst.data.mesh.MeshVisitor
dispose
-
Constructor Details
-
AvgMeshVisitorNN
Constructor.- Parameters:
templateFacet
- Mesh facet which is transformed to the averaged mesh. The original mesh remains unchanged. New mesh is allocated instead.- Throws:
IllegalArgumentException
- if some parameter is wrong
-
AvgMeshVisitorNN
Constructor.- Parameters:
templateFacets
- Mesh facets that are transformed to the averaged mesh The original mesh remains unchanged. New mesh is allocated instead.- Throws:
IllegalArgumentException
- if some parameter is wrong
-
AvgMeshVisitorNN
Constructor.- Parameters:
templateModel
- Mesh model which is transformed to the averaged mesh The original mesh remains unchanged. New mesh is allocated instead.- Throws:
IllegalArgumentException
- if some parameter is wrong
-
-
Method Details
-
visitKdTree
Description copied from interface:KdTreeVisitor
The main inspection method to be implemented by specific visitors.- Specified by:
visitKdTree
in interfaceAvgMeshVisitor
- Specified by:
visitKdTree
in interfaceKdTreeVisitor
- Parameters:
kdTree
- K-d tree to be visited
-
getAveragedMeshModel
Description copied from interface:AvgMeshVisitor
Returns the averaged mesh model- Specified by:
getAveragedMeshModel
in interfaceAvgMeshVisitor
- Returns:
- averaged mesh model
-