VertexPointer
Namespace: Digi21.DigiNG.Entities
Assembly: Digi21.DigiNG
Identifies a vertex of a ReadOnlyLine by its line and vertex index.
public struct VertexPointer
Inheritance: Object → ValueType → VertexPointer
The structure only stores the two values received by its constructor: it does not check whether line is non-null or the index is within line.Points, and it is not updated when the line changes. default(VertexPointer) has Line set to null and Vertex set to 0.
The DetectNodes method of the NodeDetector class in the Digi21.DigiNG.Topology package groups by coordinate the VertexPointer values of vertices forming nodes.
Constructors
| Member | Description |
|---|---|
VertexPointer(ReadOnlyLine line, int vertex) |
Creates the pointer to vertex vertex of line. |
Properties
| Member | Description |
|---|---|
ReadOnlyLine Line { get; } |
Line to which the vertex belongs. |
int Vertex { get; } |
Vertex index in Line.Points. |
Example
The SegmentPointer example creates a VertexPointer for each vertex of a line stored in a .bind file.