public class Thresholds extends Object
Modifier and Type | Field and Description |
---|---|
static double |
DELAUNAY_THRESHOLD_FACTOR
Factor for computing the Delaunay threshold.
|
static double |
HALF_PLANE_THRESHOLD_FACTOR
Factor for computing the half-plane threshold.
|
static double |
IN_CIRCLE_THRESHOLD_FACTOR
Factor for computing the in-circle threshold.
|
static double |
PRECISION_THRESHOLD_FACTOR
Factor for computing precision threshold.
|
static double |
VERTEX_TOLERANCE_FACTOR_DEFAULT
Factor for computing the vertex tolerance.
|
Constructor and Description |
---|
Thresholds()
Constructs thresholds for a nominal point spacing of 1.
|
Thresholds(double nominalPointSpacing)
Constructs threshold values for the specified nominalPointSpacing.
|
Modifier and Type | Method and Description |
---|---|
double |
getCircumcircleDeterminantThreshold()
Gets a threshold value giving guidelines for the smallest absolute value
result that can be trusted in geometric calculations for for computing
a determinant to be used in determining a set of circumcircle
center coordinates and radius.
|
double |
getDelaunayThreshold()
Gets the computed value for evaluating whether a triangle pair is
within sufficient tolerance when testing to see if they approximately
meet the Delaunay criterion using the in-circle calculation.
|
double |
getHalfPlaneThreshold()
Gets a threshold value giving guidelines for the smallest absolute value
result that can be trusted in geometric calculations for determining
on which side of a point a plane lies (the "half-plane calculation").
|
double |
getInCircleThreshold()
Gets the threshold value indicating when an extended-precision
calculation must be used for the in-circle determination.
|
double |
getNominalPointSpacing()
Gets the nominal point spacing value specified in the constructor.
|
double |
getPrecisionThreshold()
Get a threshold value giving guidelines for the smallest absolute value
result from a geometric calculations that can be accepted without
concern for an excessive loss of precision.
|
double |
getVertexTolerance()
Gets a threshold value indicating the distance at which a pair
of (x,y) coordinates will be treated as effectively a match for
a vertex.
|
double |
getVertexTolerance2()
Gets a threshold value indicating the square of the distance at which a
pair of (x,y) coordinates will be treated as effectively a match for
a vertex.
|
public static final double PRECISION_THRESHOLD_FACTOR
public static final double HALF_PLANE_THRESHOLD_FACTOR
public static final double DELAUNAY_THRESHOLD_FACTOR
public static final double IN_CIRCLE_THRESHOLD_FACTOR
public static final double VERTEX_TOLERANCE_FACTOR_DEFAULT
public Thresholds()
public Thresholds(double nominalPointSpacing)
nominalPointSpacing
- a positive, non-zero valuepublic double getInCircleThreshold()
public double getVertexTolerance()
public double getVertexTolerance2()
public double getPrecisionThreshold()
public double getNominalPointSpacing()
public double getDelaunayThreshold()
This value is primarily used in test procedures that evaluate the correctness of a TIN constructed by the IncrementalTin class.
public double getHalfPlaneThreshold()
public double getCircumcircleDeterminantThreshold()
Copyright © 2021. All rights reserved.