Interface PointSamplingVisitor

All Superinterfaces:
MeshVisitor
All Known Implementing Classes:
CurvatureSampling, NoSampling, PointSamplingVisitorImpl, PoissonDiskSubSampling, PoissonDiskSubSamplingGPU, RandomSampling, UniformSpaceSampling, UniformSurfaceSampling

public interface PointSamplingVisitor extends MeshVisitor
Stateful sub-sampling. First, the visitor is created. Then, it is applied to mesh facets. Finally, the samples are returned.
  • Method Details

    • visitMeshFacet

      void visitMeshFacet(MeshFacet facet)
      Description copied from interface: MeshVisitor
      The inspection method to be implemented by specific visitors.
      Specified by:
      visitMeshFacet in interface MeshVisitor
      Parameters:
      facet - Mesh facet to be visited.
    • setRequiredSamples

      void setRequiredSamples(int max)
      Changes the number of required samples.
      Parameters:
      max - Maximal number of vertices. Must be bigger than zero
    • getRequiredSamples

      int getRequiredSamples()
      Returns the number of required samples.
      Returns:
      the number of required samples
    • getSamples

      List<MeshPoint> getSamples()
      Returns a list of vertices reduced according to the strategy. The returned mesh points are backed by original points.
      Returns:
      selected vertices of inspected meshes
    • isBackedByOrigMesh

      boolean isBackedByOrigMesh()
      If true, then the returned points samples are points from the original mesh. Therefore, the transformation of the original mesh also transform these samples. If false, then new points are returned that are independent on the original mesh.
      Returns:
      true if the point samples include points of the original mesh