Class CurvatureSampling
java.lang.Object
cz.fidentis.analyst.engines.sampling.impl.PointSamplingVisitorImpl
cz.fidentis.analyst.engines.sampling.impl.CurvatureSampling
- All Implemented Interfaces:
MeshVisitor
,PointSamplingVisitor
A relevance-based point sampling using the highest curvature
(see this paper).
If curvature is not set in inspected facets, then it is computed and set automatically.
This visitor is tread-safe.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Curvature algorithm used for the selection of the top X significant points. -
Constructor Summary
ConstructorsConstructorDescriptionCurvatureSampling
(CurvatureSampling.CurvatureAlg cAlg, int max) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of vertices reduced according to the strategy.boolean
Iftrue
, then the returned points samples are points from the original mesh.toString()
void
visitMeshFacet
(MeshFacet facet) The inspection method to be implemented by specific visitors.Methods inherited from class cz.fidentis.analyst.engines.sampling.impl.PointSamplingVisitorImpl
getRequiredSamples, setRealSamples, setRequiredSamples
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface cz.fidentis.analyst.data.mesh.MeshVisitor
dispose, isThreadSafe
-
Constructor Details
-
CurvatureSampling
Constructor.- Parameters:
cAlg
- Curvature strategy to be used for the selection of significant points.max
- Maximal number of significant points- Throws:
IllegalArgumentException
- if thecurbatureVisitor
is missing
-
-
Method Details
-
visitMeshFacet
Description copied from interface:MeshVisitor
The inspection method to be implemented by specific visitors.- Specified by:
visitMeshFacet
in interfaceMeshVisitor
- Specified by:
visitMeshFacet
in interfacePointSamplingVisitor
- Specified by:
visitMeshFacet
in classPointSamplingVisitorImpl
- Parameters:
facet
- Mesh facet to be visited.
-
getSamples
Description copied from interface:PointSamplingVisitor
Returns a list of vertices reduced according to the strategy. The returned mesh points are backed by original points.- Specified by:
getSamples
in interfacePointSamplingVisitor
- Specified by:
getSamples
in classPointSamplingVisitorImpl
- Returns:
- selected vertices of inspected meshes
-
isBackedByOrigMesh
public boolean isBackedByOrigMesh()Description copied from interface:PointSamplingVisitor
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.- Specified by:
isBackedByOrigMesh
in interfacePointSamplingVisitor
- Specified by:
isBackedByOrigMesh
in classPointSamplingVisitorImpl
- Returns:
true
if the point samples include points of the original mesh
-
getCurvatureAlg
-
toString
- Overrides:
toString
in classPointSamplingVisitorImpl
-