Class NeighbourhoodMesh

java.lang.Object
mgui.geometry.mesh.NeighbourhoodMesh

public class NeighbourhoodMesh
extends java.lang.Object
Constructs a list of node neighbourhoods, i.e., for each node lists its neighbours. This format is useful for quickly searching a vertex's neighbouring vertices.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Summary

    Fields
    Modifier and Type Field Description
    Mesh3D mesh  
    java.util.ArrayList<Neighbourhood> neighbourhoods  
  • Constructor Summary

    Constructors
    Constructor Description
    NeighbourhoodMesh​(Mesh3D mesh)  
  • Method Summary

    Modifier and Type Method Description
    Neighbourhood getNeighbourhood​(int i)  
    java.util.ArrayList<java.lang.Integer> getNeighbourhoodRing​(int i)
    Return neighbourhood as connected cycle, or null if neighbourhood does not form a cycle
    int getSize()  
    boolean isBoundaryNode​(int i)
    Returns true if this node lies on a mesh boundary; false otherwise.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • neighbourhoods

      public java.util.ArrayList<Neighbourhood> neighbourhoods
    • mesh

      public Mesh3D mesh
  • Constructor Details

    • NeighbourhoodMesh

      public NeighbourhoodMesh​(Mesh3D mesh)
  • Method Details

    • getSize

      public int getSize()
    • getNeighbourhood

      public Neighbourhood getNeighbourhood​(int i)
    • getNeighbourhoodRing

      public java.util.ArrayList<java.lang.Integer> getNeighbourhoodRing​(int i)
      Return neighbourhood as connected cycle, or null if neighbourhood does not form a cycle
      Parameters:
      i - node for which to find a neighbourhood
      Returns:
      Neighbourhood whose neighbour list forms a connected ring
    • isBoundaryNode

      public boolean isBoundaryNode​(int i)
      Returns true if this node lies on a mesh boundary; false otherwise.
      Parameters:
      i -
      Returns: