Class MarkHalfEdge
A HalfEdge which supports marking edges with a boolean flag. Useful for algorithms which perform graph traversals.
Implements
Inherited Members
Namespace: NetTopologySuite.EdgeGraph
Assembly: NetTopologySuite.dll
Syntax
public class MarkHalfEdge : HalfEdge, IComparable<HalfEdge>
Constructors
| Edit this page View SourceMarkHalfEdge(Coordinate)
Creates a new marked edge.
Declaration
public MarkHalfEdge(Coordinate orig)
Parameters
| Type | Name | Description |
|---|---|---|
| Coordinate | orig | the coordinate of the edge origin |
Properties
| Edit this page View SourceMarked
Gets or sets a value indicating if this MarkHalfEdge is marked
Declaration
public bool Marked { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceIsMarked(HalfEdge)
Returns a value indicating that the given edge is marked.
Declaration
public static bool IsMarked(HalfEdge e)
Parameters
| Type | Name | Description |
|---|---|---|
| HalfEdge | e | An edge |
Returns
| Type | Description |
|---|---|
| bool |
|
Mark()
Marks this edge.
Declaration
public void Mark()
Mark(HalfEdge)
Marks the edge.
Declaration
public static void Mark(HalfEdge e)
Parameters
| Type | Name | Description |
|---|---|---|
| HalfEdge | e | An edge to mark |
MarkBoth(HalfEdge)
Marks the edges in a pair.
Declaration
public static void MarkBoth(HalfEdge e)
Parameters
| Type | Name | Description |
|---|---|---|
| HalfEdge | e | an edge of the pair to mark |
SetMark(HalfEdge, bool)
Sets the mark for the given edge to a boolean value.
Declaration
public static void SetMark(HalfEdge e, bool isMarked)
Parameters
| Type | Name | Description |
|---|---|---|
| HalfEdge | e | An Edge to update |
| bool | isMarked | The mark value to set |
SetMarkBoth(HalfEdge, bool)
Sets the mark for the given edge pair to a boolean value.
Declaration
public static void SetMarkBoth(HalfEdge e, bool isMarked)
Parameters
| Type | Name | Description |
|---|---|---|
| HalfEdge | e | an edge of the pair to update |
| bool | isMarked | the mark value to set |