Class RegularTriangleSampling¶
Defined in File RegularTriangleSampling.h
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 verticesvertices: vertex data of sampled datanumFaces: number of faces in the meshfaces: face data of sampled meshmaxDistance: maximal distance of sampled verticessamples: vector to store the samples
-