Class AvgMeshVisitorNN

java.lang.Object
cz.fidentis.analyst.engines.avgmesh.impl.AvgMeshVisitorNN
All Implemented Interfaces:
KdTreeVisitor, MeshVisitor, OctreeVisitor, AvgMeshVisitor

public class AvgMeshVisitorNN extends Object implements 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 Details

    • AvgMeshVisitorNN

      public AvgMeshVisitorNN(MeshFacet templateFacet)
      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

      public AvgMeshVisitorNN(Collection<MeshFacet> templateFacets)
      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

      public AvgMeshVisitorNN(MeshModel templateModel)
      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