DelaunayPredicates

org.appliedtopology.tda4j.DelaunayPredicates
open class DelaunayPredicates(points: Array[Array[Double]])

Exact geometric predicates for Delaunay triangulation in dimensions 2 to 4: the sign of an orientation determinant and of an in-sphere determinant, each computed in floating point first and, when the result is too close to zero for the floating-point error bound, again in exact arithmetic (BigDecimal: a double is a binary fraction, so sums and products of doubles are exact there). In-sphere ties (a point exactly on a circumsphere) are broken by a symbolic perturbation of the lifted coordinate that depends only on the points' indices, so the result is the Delaunay triangulation of an infinitesimally perturbed point set: unique, whatever the insertion order.

Determinants are expanded over permutations, which is cheap up to 5x5 (in-sphere in 4-D) and grows as n! beyond.

Attributes

Experimental
true
Source
DelaunayPredicates.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def exactOrientations: Long

How often the floating-point filter was not enough: orientations and in-sphere tests decided exactly, and in-sphere ties broken by the symbolic perturbation.

How often the floating-point filter was not enough: orientations and in-sphere tests decided exactly, and in-sphere ties broken by the symbolic perturbation.

Attributes

Source
DelaunayPredicates.scala
def exactSpheres: Long

Attributes

Source
DelaunayPredicates.scala
def inSphere(cell: Array[Int], q: Int): Int

Whether q lies inside the circumsphere of the positively oriented cell cell (indices into the points), with exact ties broken by the perturbation: never undecided for distinct points. 1 inside, -1 outside.

Whether q lies inside the circumsphere of the positively oriented cell cell (indices into the points), with exact ties broken by the perturbation: never undecided for distinct points. 1 inside, -1 outside.

Attributes

Source
DelaunayPredicates.scala
def orientation(v: Array[Int]): Int

The sign of the orientation of the simplex v(0), ..., v(dimension): the determinant of the rows p(v(i)) - p(v(0)), i >= 1. Zero exactly when the points are affinely dependent.

The sign of the orientation of the simplex v(0), ..., v(dimension): the determinant of the rows p(v(i)) - p(v(0)), i >= 1. Zero exactly when the points are affinely dependent.

Attributes

Source
DelaunayPredicates.scala
def perturbedSpheres: Long

Attributes

Source
DelaunayPredicates.scala
def sphereDeterminantSign(cell: Array[Int], q: Int): Int

The unperturbed sign of the translated in-sphere determinant (exact).

The unperturbed sign of the translated in-sphere determinant (exact).

Attributes

Source
DelaunayPredicates.scala

Concrete fields

val dimension: Int

Attributes

Source
DelaunayPredicates.scala