Record Class SymmetryConfig
java.lang.Object
java.lang.Record
cz.fidentis.analyst.engines.symmetry.SymmetryConfig
- Record Components:
method
- Symmetry estimation methodpriSampling
- Primary sampling strategy used for finding candidate planesmaxSamplesForCandidatePruning
- Secondary sub-sampling used for finding the best candidate (pruning of candidates). Uniform 3D grid is always used for this purpose.
public record SymmetryConfig(SymmetryConfig.Method method, PointSamplingConfig priSampling, int maxSamplesForCandidatePruning)
extends Record
Symmetry estimation strategies and their configuration.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSymmetryConfig
(SymmetryConfig.Method method, PointSamplingConfig strategy) Simplified constructor for the same sampling strategies or for symmetry methods with only one sampling strategy.SymmetryConfig
(SymmetryConfig.Method method, PointSamplingConfig priSampling, int maxSamplesForCandidatePruning) Creates an instance of aSymmetryConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Instantiates and returns a symmetry visitor.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of themaxSamplesForCandidatePruning
record component.method()
Returns the value of themethod
record component.Returns the value of thepriSampling
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SymmetryConfig
Simplified constructor for the same sampling strategies or for symmetry methods with only one sampling strategy.- Parameters:
method
- Symmetry estimation methodstrategy
- Sub-sampling strategy
-
SymmetryConfig
public SymmetryConfig(SymmetryConfig.Method method, PointSamplingConfig priSampling, int maxSamplesForCandidatePruning) Creates an instance of aSymmetryConfig
record class.- Parameters:
method
- the value for themethod
record componentpriSampling
- the value for thepriSampling
record componentmaxSamplesForCandidatePruning
- the value for themaxSamplesForCandidatePruning
record component
-
-
Method Details
-
getVisitor
Instantiates and returns a symmetry visitor.- Returns:
- a symmetry visitor
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
method
Returns the value of themethod
record component.- Returns:
- the value of the
method
record component
-
priSampling
Returns the value of thepriSampling
record component.- Returns:
- the value of the
priSampling
record component
-
maxSamplesForCandidatePruning
public int maxSamplesForCandidatePruning()Returns the value of themaxSamplesForCandidatePruning
record component.- Returns:
- the value of the
maxSamplesForCandidatePruning
record component
-