Class UniformSurfaceSampling

All Implemented Interfaces:
MeshVisitor, PointSamplingVisitor

public class UniformSurfaceSampling extends UniformSpaceSampling
Similar downsampling strategy to the UniformSpaceSampling. However, a random vertex from the mesh is selected from each non-empty cell instead of computing a new average point. Therefore, the samples lie on the mesh surface.
  • Constructor Details

    • UniformSurfaceSampling

      public UniformSurfaceSampling(int max)
      Constructor.
      Parameters:
      max - Required number of samples. Must be bigger than zero
      Throws:
      IllegalArgumentException - if the input parameter is wrong
  • Method Details