Class Edge<TPosition, TVertex, TEdge, TFace>
Abstract class for an edge in a polyhedral mesh data structure.
Namespace: BRIDGES.DataStructures.PolyhedralMeshes.Abstract
Assembly: BRIDGES.dll
Syntax
public abstract class Edge<TPosition, TVertex, TEdge, TFace> : object, IEdge<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 SourceEndVertex
Gets the end vertex of the current edge.
Declaration
public TVertex EndVertex { get; }
Property Value
Type | Description |
---|---|
TVertex |
Index
Gets the index of the current edge in the mesh.
Declaration
public int Index { get; }
Property Value
Type | Description |
---|---|
Int32 |
StartVertex
Gets the start vertex of the current edge.
Declaration
public TVertex StartVertex { get; }
Property Value
Type | Description |
---|---|
TVertex |
Methods
| Improve this Doc View SourceAdjacentFaces()
Identifies the faces around the current edge.
Declaration
public abstract IReadOnlyList<TFace> AdjacentFaces()
Returns
Type | Description |
---|---|
IReadOnlyList<TFace> | The list of adjacent faces. An empty list can be returned. |
Equals(TEdge)
Abstract class for an edge in a polyhedral mesh data structure.
Declaration
public virtual bool Equals(TEdge edge)
Parameters
Type | Name | Description |
---|---|---|
TEdge | edge |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Abstract class for an edge 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 an edge in a polyhedral mesh data structure.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
IsBoundary()
Evaluates whether the edge is on a boundary.
Declaration
public abstract bool IsBoundary()
Returns
Type | Description |
---|---|
Boolean | true if the edge is on a boundary, false otherwise. |
ToString()
Abstract class for an edge in a polyhedral mesh data structure.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Explicit Interface Implementations
| Improve this Doc View SourceIEdge<TPosition>.AdjacentFaces()
Abstract class for an edge in a polyhedral mesh data structure.
Declaration
IReadOnlyList<IFace<TPosition>> IEdge<TPosition>.AdjacentFaces()
Returns
Type | Description |
---|---|
IReadOnlyList<IFace<TPosition>> |
IEdge<TPosition>.EndVertex
Abstract class for an edge in a polyhedral mesh data structure.
Declaration
IVertex<TPosition> IEdge<TPosition>.EndVertex { get; }
Returns
Type | Description |
---|---|
IVertex<TPosition> |
IEdge<TPosition>.StartVertex
Abstract class for an edge in a polyhedral mesh data structure.
Declaration
IVertex<TPosition> IEdge<TPosition>.StartVertex { get; }
Returns
Type | Description |
---|---|
IVertex<TPosition> |