Package org.tinfour.contour
Class ContourIntegrityCheck
- java.lang.Object
-
- org.tinfour.contour.ContourIntegrityCheck
-
public class ContourIntegrityCheck extends Object
Provides methods for checking the correctness of implementation for Tinfour contour building operations. This class can detect many problematic results, but is by no means comprehensive. It is intended for testing, diagnostic, and debugging purposes.
-
-
Constructor Summary
Constructors Constructor Description ContourIntegrityCheck(ContourBuilderForTin builder)Constructs an instance of the integrity checker for the specified builder instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Gets a status message indicating the results of the most recent inspection.booleaninspect()Inspects the content of the builder to verify that it was correctly constructed.
-
-
-
Constructor Detail
-
ContourIntegrityCheck
public ContourIntegrityCheck(ContourBuilderForTin builder)
Constructs an instance of the integrity checker for the specified builder instance.- Parameters:
builder- a fully populated builder instance.
-
-
Method Detail
-
inspect
public boolean inspect()
Inspects the content of the builder to verify that it was correctly constructed. This method can detect many problematic geometries, but is by no means comprehensive. It is intended for testing, diagnostic, and debugging purposes.If the builder fails inspection, a message giving an explanation can be obtained through a call to getMessage().
- Returns:
- true if the builder passes inspection; otherwise, false.
-
getMessage
public String getMessage()
Gets a status message indicating the results of the most recent inspection.- Returns:
- a valid string.
-
-