Class 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 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.