de.javagl.simplemesh
Interface Mesh

All Superinterfaces:
MeshPrimitives, java.io.Serializable
All Known Implementing Classes:
DefaultMesh

public interface Mesh
extends MeshPrimitives, java.io.Serializable

Interface for a simple mesh. This interface extends the MeshPrimitives interface by topology information.


Method Summary
 java.util.List<Edge> getEdges(Vertex vertex)
          Returns an unmodifiable list of edges that are adjacent to the given vertex.
 java.util.List<Face> getFaces(Edge edge)
          Returns an unmodifiable list of faces that are adjacent to the given edge.
 java.util.List<Face> getFaces(Vertex vertex)
          Returns an unmodifiable list of faces that are adjacent to the given vertex.
 java.util.List<Vertex> getVertices(Vertex vertex)
          Returns an unmodifiable list of vertices that are adjacent to the given vertex.
 
Methods inherited from interface de.javagl.simplemesh.MeshPrimitives
getEdges, getFaces, getVertices
 

Method Detail

getFaces

java.util.List<Face> getFaces(Edge edge)
Returns an unmodifiable list of faces that are adjacent to the given edge.

Parameters:
edge - The edge
Returns:
The adjacent faces

getEdges

java.util.List<Edge> getEdges(Vertex vertex)
Returns an unmodifiable list of edges that are adjacent to the given vertex.

Parameters:
vertex - The vertex
Returns:
The adjacent edges

getFaces

java.util.List<Face> getFaces(Vertex vertex)
Returns an unmodifiable list of faces that are adjacent to the given vertex.

Parameters:
vertex - The vertex
Returns:
The adjacent faces

getVertices

java.util.List<Vertex> getVertices(Vertex vertex)
Returns an unmodifiable list of vertices that are adjacent to the given vertex.

Parameters:
vertex - The vertex
Returns:
The adjacent vertices