Class RawFacetDistances

java.lang.Object
cz.fidentis.analyst.engines.distance.measurement.RawFacetDistances
All Implemented Interfaces:
FacetDistances, Iterable<DistanceRecord>

public class RawFacetDistances extends Object implements FacetDistances
The result of the facet-to-surface distance measurement, i.e., distances and nearest neighbors of all vertices of a single mesh facet. Weights are set to 1.0.
  • Constructor Details

    • RawFacetDistances

      public RawFacetDistances(MeshFacet facet, List<Double> distances, List<MeshPoint> nearestPoints)
      Constructor.
      Parameters:
      facet - A mesh facet whose distance was measured
      distances - Measured distances at facet's points. The size and order of values have to correspond to facet's vertices.
      nearestPoints - Closets points (nearest neighbors). The size and order of values have to correspond to facet's vertices.
  • Method Details

    • get

      public DistanceRecord get(int pointIndex)
      Description copied from interface: FacetDistances
      Returns distance measurement for a single facet's vertex.
      Specified by:
      get in interface FacetDistances
      Parameters:
      pointIndex - index of the facet's vertex from the range from zero to MeshFacet.getNumberOfVertices() - 1.
      Returns:
      the mesh point with the distance value
    • size

      public int size()
      Description copied from interface: FacetDistances
      Returns the number of facet's vertices, i.e., the number of measured distances.
      Specified by:
      size in interface FacetDistances
      Returns:
      the number of facet's vertices, i.e., the number of measured distances.
    • getMeasuredFacet

      public MeshFacet getMeasuredFacet()
      Description copied from interface: FacetDistances
      Returns the source facet from which the measurement was performed.
      Specified by:
      getMeasuredFacet in interface FacetDistances
      Returns:
      the source facet from which the measurement was performed.