Class RegularSampling2D

Class Documentation

class RegularSampling2D

This class implements a per-triangle regular sampling for the surface of 3D models.

Public Functions

RegularSampling2D()

Public Static Functions

static void sampleMesh(const Matrix3r &rotation, const Vector3r &translation, const unsigned numVertices, const Vector3r *vertices, const unsigned int numFaces, const unsigned int *faces, const Real maxDistance, std::vector<Vector3r> &samples)

Performs the poisson sampling with the respective parameters. Compare http://graphics.cs.umass.edu/pubs/sa_2010.pdf

Parameters
  • rotation – rotation of the mesh

  • translation – translation of the mesh

  • numVertices – number of mesh vertices

  • vertices – vertex data of sampled data

  • numFaces – number of faces in the mesh

  • faces – face data of sampled mesh

  • maxDistance – maximal distance of sampled vertices

  • samples – vector to store the samples