Class Vertex<TPosition, TVertex, TEdge, TFace>
Abstract class for a vertex in a polyhedral mesh data structure.
Namespace: BRIDGES.DataStructures.PolyhedralMeshes.Abstract
Assembly: BRIDGES.dll
Syntax
public abstract class Vertex<TPosition, TVertex, TEdge, TFace> : object, IVertex<TPosition> where TPosition : IEquatable<TPosition> where TVertex : Vertex<TPosition, TVertex, TEdge, TFace> where TEdge : Edge<TPosition, TVertex, TEdge, TFace> where TFace : Face<TPosition, TVertex, TEdge, TFace>
Type Parameters
Name | Description |
---|---|
TPosition | Type for the position of the vertex. |
TVertex | Type of vertex for the mesh. |
TEdge | Type of vertex for the mesh. |
TFace | Type of vertex for the mesh. |
Properties
| Improve this Doc View SourceIndex
Gets the index of the current vertex in the mesh.
Declaration
public int Index { get; }
Property Value
Type | Description |
---|---|
Int32 |
Position
Gets or sets the position of the current vertex.
Declaration
public TPosition Position { get; set; }
Property Value
Type | Description |
---|---|
TPosition |
Methods
| Improve this Doc View SourceAdjacentFaces()
Identifies the faces around the current vertex.
Declaration
public abstract IReadOnlyList<TFace> AdjacentFaces()
Returns
Type | Description |
---|---|
IReadOnlyList<TFace> | The list of adjacent faces. An empty list can be returned. |
ConnectedEdges()
Identifies the edges connected to the current vertex.
Declaration
public abstract IReadOnlyList<TEdge> ConnectedEdges()
Returns
Type | Description |
---|---|
IReadOnlyList<TEdge> | The list of connected edges. An empty list can be returned. |
Equals(TVertex)
Abstract class for a vertex in a polyhedral mesh data structure.
Declaration
public virtual bool Equals(TVertex vertex)
Parameters
Type | Name | Description |
---|---|---|
TVertex | vertex |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Abstract class for a vertex in a polyhedral mesh data structure.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Abstract class for a vertex in a polyhedral mesh data structure.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
IsBoundary()
Evaluates whether the vertex is on a boundary.
Declaration
public abstract bool IsBoundary()
Returns
Type | Description |
---|---|
Boolean | true if the vertex is not connected or if at least one edge is a boundary edge, false otherwise. |
IsConnected()
Evaluates whether the vertex is connected to any edge.
Declaration
public abstract bool IsConnected()
Returns
Type | Description |
---|---|
Boolean | true if the vertex has at least one connected edge, false otherwise. |
NeighbourVertices()
Identifies the vertices directly connected to the current vertex with an edge.
Declaration
public abstract IReadOnlyList<TVertex> NeighbourVertices()
Returns
Type | Description |
---|---|
IReadOnlyList<TVertex> | The list of connected vertices. An empty list can be returned. |
ToString()
Abstract class for a vertex in a polyhedral mesh data structure.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Valence()
Determines the number of edges connected to the current vertex.
Declaration
public abstract int Valence()
Returns
Type | Description |
---|---|
Int32 | The number of edges connected to the current vertex |
Explicit Interface Implementations
| Improve this Doc View SourceIVertex<TPosition>.AdjacentFaces()
Abstract class for a vertex in a polyhedral mesh data structure.
Declaration
IReadOnlyList<IFace<TPosition>> IVertex<TPosition>.AdjacentFaces()
Returns
Type | Description |
---|---|
IReadOnlyList<IFace<TPosition>> |
IVertex<TPosition>.ConnectedEdges()
Abstract class for a vertex in a polyhedral mesh data structure.
Declaration
IReadOnlyList<IEdge<TPosition>> IVertex<TPosition>.ConnectedEdges()
Returns
Type | Description |
---|---|
IReadOnlyList<IEdge<TPosition>> |
IVertex<TPosition>.NeighbourVertices()
Abstract class for a vertex in a polyhedral mesh data structure.
Declaration
IReadOnlyList<IVertex<TPosition>> IVertex<TPosition>.NeighbourVertices()
Returns
Type | Description |
---|---|
IReadOnlyList<IVertex<TPosition>> |