Class VolumeSampling¶
Defined in File VolumeSampling.h
Class Documentation¶
-
class
Utilities::VolumeSampling¶ This class implements a volume sampling of 3D models.
Public Static Functions
-
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 verticesvertices: vertex datanumFaces: number of facesfaces: index list of facesradius: radius of sampled particlesregion: defines a subregion of the mesh to be sampled (nullptr if not used)resolution: resolution of the used SDFinvert: defines if the mesh should be inverted and the outside is sampledsampleMode: 0=regular, 1=almost dense, 2=densesamples: sampled vertices that will be returned
-
void