Class Halfedge<TPosition>
Class for a halfedge in a polyhedral halfedge mesh data structure.
Namespace: BRIDGES.DataStructures.PolyhedralMeshes.HalfedgeMesh
Assembly: BRIDGES.dll
Syntax
public class Halfedge<TPosition> : IEquatable<Halfedge<TPosition>> where TPosition : IEquatable<TPosition>
Type Parameters
Name | Description |
---|---|
TPosition | Type for the position of the vertex. |
Properties
| Improve this Doc View SourceAdjacentFace
Gets the adjacent face of the current halfedge.
Declaration
public Face<TPosition> AdjacentFace { get; }
Property Value
Type | Description |
---|---|
Face<TPosition> |
EndVertex
Gets the end vertex of the current edge.
Declaration
public Vertex<TPosition> EndVertex { get; }
Property Value
Type | Description |
---|---|
Vertex<TPosition> |
Index
Gets the index of the current edge in the mesh.
Declaration
public int Index { get; }
Property Value
Type | Description |
---|---|
Int32 |
NextHalfedge
Gets the next halfedge of the current halfedge.
Declaration
public Halfedge<TPosition> NextHalfedge { get; }
Property Value
Type | Description |
---|---|
Halfedge<TPosition> |
PairHalfedge
Gets the pair halfedge of the current halfedge.
Declaration
public Halfedge<TPosition> PairHalfedge { get; }
Property Value
Type | Description |
---|---|
Halfedge<TPosition> |
PrevHalfedge
Gets the previous halfedge of the current halfedge.
Declaration
public Halfedge<TPosition> PrevHalfedge { get; }
Property Value
Type | Description |
---|---|
Halfedge<TPosition> |
StartVertex
Gets the start vertex of the current edge.
Declaration
public Vertex<TPosition> StartVertex { get; }
Property Value
Type | Description |
---|---|
Vertex<TPosition> |
Methods
| Improve this Doc View SourceEquals(Halfedge<TPosition>)
Class for a halfedge in a polyhedral halfedge mesh data structure.
Declaration
public bool Equals(Halfedge<TPosition> halfedge)
Parameters
Type | Name | Description |
---|---|---|
Halfedge<TPosition> | halfedge |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Class for a halfedge in a polyhedral halfedge mesh data structure.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
GetEdge()
Identifies the edge representing the current halfedge and its pair. It is the edge whose index is half the current halfedge's index (rounded towards zero).
Declaration
public Edge<TPosition> GetEdge()
Returns
Type | Description |
---|---|
Edge<TPosition> | The edge representing the current halfedge. |
GetHashCode()
Class for a halfedge in a polyhedral halfedge mesh data structure.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
IsBoundary()
Evaluates whether the halfedge is on a boundary.
Declaration
public bool IsBoundary()
Returns
Type | Description |
---|---|
Boolean | true if the halfedge is on a boundary, false otherwise. |
ToString()
Class for a halfedge in a polyhedral halfedge mesh data structure.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |