Package mgui.geometry.mesh
Class Neighbourhood
java.lang.Object
mgui.geometry.mesh.Neighbourhood
public class Neighbourhood
extends java.lang.Object
Represents a 1-ring neighbourhood in a mesh.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description java.util.TreeSet<java.lang.Integer>
neighbours
int
node
-
Constructor Summary
Constructors Constructor Description Neighbourhood(int n)
Neighbourhood(int n, java.util.List<java.lang.Integer> list)
-
Method Summary
Modifier and Type Method Description void
addNeighbour(int n)
int[]
getNeighbourList()
int
getSize()
boolean
hasNeighbour(int n)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
node
public int node -
neighbours
public java.util.TreeSet<java.lang.Integer> neighbours
-
-
Constructor Details
-
Neighbourhood
public Neighbourhood(int n) -
Neighbourhood
public Neighbourhood(int n, java.util.List<java.lang.Integer> list)
-
-
Method Details
-
addNeighbour
public void addNeighbour(int n) -
getNeighbourList
public int[] getNeighbourList() -
getSize
public int getSize() -
hasNeighbour
public boolean hasNeighbour(int n)
-