Interface PointSamplingVisitor
- All Superinterfaces:
MeshVisitor
- All Known Implementing Classes:
CurvatureSampling
,NoSampling
,PointSamplingVisitorImpl
,PoissonDiskSubSampling
,PoissonDiskSubSamplingGPU
,RandomSampling
,UniformSpaceSampling
,UniformSurfaceSampling
Stateful sub-sampling.
First, the visitor is created. Then, it is applied to mesh facets. Finally, the samples are returned.
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of required samples.Returns a list of vertices reduced according to the strategy.boolean
Iftrue
, then the returned points samples are points from the original mesh.void
setRequiredSamples
(int max) Changes the number of required samples.void
visitMeshFacet
(MeshFacet facet) The inspection method to be implemented by specific visitors.Methods inherited from interface cz.fidentis.analyst.data.mesh.MeshVisitor
dispose, isThreadSafe
-
Method Details
-
visitMeshFacet
Description copied from interface:MeshVisitor
The inspection method to be implemented by specific visitors.- Specified by:
visitMeshFacet
in interfaceMeshVisitor
- Parameters:
facet
- Mesh facet to be visited.
-
setRequiredSamples
void setRequiredSamples(int max) Changes the number of required samples.- Parameters:
max
- Maximal number of vertices. Must be bigger than zero
-
getRequiredSamples
int getRequiredSamples()Returns the number of required samples.- Returns:
- the number of required samples
-
getSamples
Returns a list of vertices reduced according to the strategy. The returned mesh points are backed by original points.- Returns:
- selected vertices of inspected meshes
-
isBackedByOrigMesh
boolean isBackedByOrigMesh()Iftrue
, then the returned points samples are points from the original mesh. Therefore, the transformation of the original mesh also transform these samples. Iffalse
, then new points are returned that are independent on the original mesh.- Returns:
true
if the point samples include points of the original mesh
-