Class Vertex<TPosition>
Class for a vertex in a polyhedral halfedge mesh data structure.
Inheritance
Inherited Members
Namespace: BRIDGES.DataStructures.PolyhedralMeshes.HalfedgeMesh
Assembly: BRIDGES.dll
Syntax
public class Vertex<TPosition> : Vertex<TPosition, Vertex<TPosition>, Edge<TPosition>, Face<TPosition>>, IVertex<TPosition> where TPosition : IEquatable<TPosition>
Type Parameters
Name | Description |
---|---|
TPosition | Type for the position of the vertex. |
Properties
| Improve this Doc View SourceOutgoingHalfedge
An outgoing halfedge of the current vertex.
Declaration
public Halfedge<TPosition> OutgoingHalfedge { get; }
Property Value
Type | Description |
---|---|
Halfedge<TPosition> |
Remarks
If the current vertex is on the boundary, the outgoing halfedge must be the boundary one.
Methods
| Improve this Doc View SourceAdjacentFaces()
Identifies the faces around the current vertex.
Declaration
public override IReadOnlyList<Face<TPosition>> AdjacentFaces()
Returns
Type | Description |
---|---|
IReadOnlyList<Face<TPosition>> | The list of adjacent faces. An empty list can be returned. |
Overrides
ConnectedEdges()
Identifies the edges connected to the current vertex.
Declaration
public override IReadOnlyList<Edge<TPosition>> ConnectedEdges()
Returns
Type | Description |
---|---|
IReadOnlyList<Edge<TPosition>> | The list of connected edges. An empty list can be returned. |
Overrides
Equals(Object)
Class for a vertex in a polyhedral halfedge mesh data structure.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
GetHashCode()
Class for a vertex in a polyhedral halfedge mesh data structure.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
IncomingHalfedges()
Identifies the halfedges whose end is the current vertex.
Declaration
public IReadOnlyList<Halfedge<TPosition>> IncomingHalfedges()
Returns
Type | Description |
---|---|
IReadOnlyList<Halfedge<TPosition>> | The list of incomming halfedges. An empty list can be returned. |
IsBoundary()
Evaluates whether the vertex is on a boundary.
Declaration
public override 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. |
Overrides
IsConnected()
Evaluates whether the vertex is connected to any edge.
Declaration
public override bool IsConnected()
Returns
Type | Description |
---|---|
Boolean | true if the vertex has at least one connected edge, false otherwise. |
Overrides
NeighbourVertices()
Identifies the vertices directly connected to the current vertex with an edge.
Declaration
public override IReadOnlyList<Vertex<TPosition>> NeighbourVertices()
Returns
Type | Description |
---|---|
IReadOnlyList<Vertex<TPosition>> | The list of connected vertices. An empty list can be returned. |
Overrides
OutgoingHalfedges()
Identifies the halfedges whose start is the current vertex.
Declaration
public IReadOnlyList<Halfedge<TPosition>> OutgoingHalfedges()
Returns
Type | Description |
---|---|
IReadOnlyList<Halfedge<TPosition>> | The list of outgoing halfedges. An empty list can be returned. |
ToString()
Class for a vertex in a polyhedral halfedge mesh data structure.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
Valence()
Determines the number of edges connected to the current vertex.
Declaration
public override int Valence()
Returns
Type | Description |
---|---|
Int32 | The number of edges connected to the current vertex |