Class RegularTriangleSampling

Class Documentation

class SPH::RegularTriangleSampling

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

Public Functions

RegularTriangleSampling()

Public Static Functions

void sampleMesh(const unsigned int 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
  • 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