Class VolumeSampling
Defined in File VolumeSampling.h
Class Documentation
-
class VolumeSampling
This class implements a volume sampling of 3D models.
Public Static Functions
-
static void sampleMesh(const unsigned int numVertices, const Vector3r *vertices, const unsigned int numFaces, const unsigned int *faces, const Real radius, const AlignedBox3r *region, const std::array<unsigned int, 3> &resolution, const bool invert, const unsigned int sampleMode, std::vector<Vector3r> &samples)
Performs the volume sampling with the respective parameters.
- Parameters
numVertices – number of vertices
vertices – vertex data
numFaces – number of faces
faces – index list of faces
radius – radius of sampled particles
region – defines a subregion of the mesh to be sampled (nullptr if not used)
resolution – resolution of the used SDF
invert – defines if the mesh should be inverted and the outside is sampled
sampleMode – 0=regular, 1=almost dense, 2=dense
samples – sampled vertices that will be returned
-
static void sampleMesh(const unsigned int numVertices, const Vector3r *vertices, const unsigned int numFaces, const unsigned int *faces, const Real radius, const AlignedBox3r *region, const std::array<unsigned int, 3> &resolution, const bool invert, const unsigned int sampleMode, std::vector<Vector3r> &samples)