Interface IVertex<TPosition>
Abstract class for an vertex in a polyhedral mesh data structure.
Namespace: BRIDGES.DataStructures.PolyhedralMeshes
Assembly: BRIDGES.dll
Syntax
public interface IVertex<TPosition>
where TPosition : IEquatable<TPosition>
Type Parameters
Name | Description |
---|---|
TPosition | Type of the vertex position. |
Properties
| Improve this Doc View SourceIndex
Gets the index of the current vertex in the mesh.
Declaration
int Index { get; }
Property Value
Type | Description |
---|---|
Int32 |
Position
Gets or sets the position of the current vertex.
Declaration
TPosition Position { get; set; }
Property Value
Type | Description |
---|---|
TPosition |
Methods
| Improve this Doc View SourceAdjacentFaces()
Identifies the faces around the current vertex.
Declaration
IReadOnlyList<IFace<TPosition>> AdjacentFaces()
Returns
Type | Description |
---|---|
IReadOnlyList<IFace<TPosition>> | The list of adjacent faces. An empty list can be returned. |
ConnectedEdges()
Identifies the edges connected to the current vertex.
Declaration
IReadOnlyList<IEdge<TPosition>> ConnectedEdges()
Returns
Type | Description |
---|---|
IReadOnlyList<IEdge<TPosition>> | The list of connected edges. An empty list can be returned. |
IsBoundary()
Evaluates whether the vertex is on a boundary.
Declaration
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
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
IReadOnlyList<IVertex<TPosition>> NeighbourVertices()
Returns
Type | Description |
---|---|
IReadOnlyList<IVertex<TPosition>> | The list of connected vertices. An empty list can be returned. |
Valence()
Determines the number of edges connected to the current vertex.
Declaration
int Valence()
Returns
Type | Description |
---|---|
Int32 | The number of edges connected to the current vertex |