-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
179 additions
and
188 deletions.
There are no files selected for viewing
42 changes: 0 additions & 42 deletions
42
lucien/src/main/java/com/hellblazer/luciferase/lucien/grid/GridLocator.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
package com.hellblazer.luciferase.lucien.grid; | ||
|
||
import javax.vecmath.Point3d; | ||
import javax.vecmath.Point3f; | ||
import java.util.ArrayList; | ||
import java.util.Deque; | ||
import java.util.List; | ||
|
@@ -30,7 +29,6 @@ | |
* The dynamic, mutable version of the Grid | ||
* | ||
* @author <a href="mailto:[email protected]">Hal Hildebrand</a> | ||
* | ||
*/ | ||
|
||
public class MutableGrid extends Grid { | ||
|
@@ -43,7 +41,6 @@ public MutableGrid() { | |
|
||
/** | ||
* Construct a Sentinel using the supplied random number generator | ||
* | ||
*/ | ||
public MutableGrid(Vertex[] fourCorners) { | ||
super(fourCorners); | ||
|
@@ -68,8 +65,8 @@ public void rebuild(Random entropy) { | |
} | ||
|
||
/** | ||
* Track the point into the tetrahedralization. See "Computing the 3D Voronoi | ||
* Diagram Robustly: An Easy Explanation", by Hugo Ledoux | ||
* Track the point into the tetrahedralization. See "Computing the 3D Voronoi Diagram Robustly: An Easy | ||
* Explanation", by Hugo Ledoux | ||
* <p> | ||
* | ||
* @param p - the point to be inserted | ||
|
@@ -78,13 +75,17 @@ public void rebuild(Random entropy) { | |
public Vertex track(Point3d p, Random entropy) { | ||
assert p != null; | ||
final var v = new Vertex(p); | ||
add(v, locate(p, last, entropy)); | ||
add(v, locate(p, entropy)); | ||
return v; | ||
} | ||
|
||
public Tetrahedron locate(Point3d p, Random entropy) { | ||
return locate(p, last, entropy); | ||
} | ||
|
||
/** | ||
* Track the point into the tetrahedralization. See "Computing the 3D Voronoi | ||
* Diagram Robustly: An Easy Explanation", by Hugo Ledoux | ||
* Track the point into the tetrahedralization. See "Computing the 3D Voronoi Diagram Robustly: An Easy | ||
* Explanation", by Hugo Ledoux | ||
* <p> | ||
* | ||
* @param p - the point to be inserted | ||
|
@@ -109,7 +110,6 @@ public void untrack(Vertex v) { | |
* Perform the 4->1 bistellar flip. This flip is the inverse of the 1->4 flip. | ||
* | ||
* @param n - the vertex who's star defines the 4 tetrahedron | ||
* | ||
* @return the tetrahedron created from the flip | ||
*/ | ||
protected Tetrahedron flip4to1(Vertex n) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.