public class IntegrityCheck extends Object implements IIntegrityCheck
Modifier and Type | Method and Description |
---|---|
int |
getConstrainedViolationCount()
Gets the number of constrained edges that would violate the Delaunay
criterion
|
double |
getConstrainedViolationMaximum()
Get the maximum calculated in-circle score for constrained
edges that violate the Delaunay criterion
|
double |
getContrainedViolationAverage()
Get the average calculated in-circle score for constrained
edges that violate the Delaunay criterion
|
String |
getMessage()
Gets descriptive information about the cause of a test failure.
|
boolean |
inspect()
Performs an inspection of the TIN checking for conditions that
violate the construction rules.
|
boolean |
inspectLinks()
Inspects the references that connect various edges in the
TIN.
|
boolean |
inspectPerimeterLinks()
Inspects the edges related to the perimeter (convex hull) of the
TIN.
|
boolean |
inspectTriangleGeometry()
Inspects the triangles forming the TIN.
|
boolean |
isCheckOkay()
Determines whether the most recent integrity check completed okay.
|
void |
printSummary(PrintStream ps)
Prints a summary of data collected during inspection of a TIN.
|
boolean |
testGetVerticesAgainstInputList(List<Vertex> inputList)
Compares the list of vertices from the getVertices() method
to the original list of input vertices and determines whether they
are consistent.
|
public boolean inspect()
The Rules
inspect
in interface IIntegrityCheck
public boolean inspectLinks()
public boolean inspectPerimeterLinks()
public boolean inspectTriangleGeometry()
If an inspection fails, information about the cause may be obtained through a call to getMessage().
public String getMessage()
getMessage
in interface IIntegrityCheck
public boolean isCheckOkay()
public void printSummary(PrintStream ps)
IIntegrityCheck
printSummary
in interface IIntegrityCheck
ps
- a print stream to receive the output.public boolean testGetVerticesAgainstInputList(List<Vertex> inputList)
IIntegrityCheck
This method does not account for cases where constraints have been added to the TIN. If constraints have been added, it will return a value of false.
Important: The test assumes that each vertex in the input set is unique. If a vertex occurs more than once, the test will fail.
testGetVerticesAgainstInputList
in interface IIntegrityCheck
inputList
- the list of vertices input into the TIN.public int getConstrainedViolationCount()
IIntegrityCheck
getConstrainedViolationCount
in interface IIntegrityCheck
public double getConstrainedViolationMaximum()
IIntegrityCheck
getConstrainedViolationMaximum
in interface IIntegrityCheck
public double getContrainedViolationAverage()
IIntegrityCheck
getContrainedViolationAverage
in interface IIntegrityCheck
Copyright © 2021. All rights reserved.