Struct EdgeLookup
Represents an edge composed of both the local index and the common index.
Use this to compare vertex indices that are coincident. Coincident vertices share the same coordinate space, but are separate values in the vertex array. ProBuilder tracks these coincident values in the sharedVertices array. A "common" (also called "shared") index is the index of a vertex in the sharedVertices array.
Implements
Inherited Members
Namespace: UnityEngine.ProBuilder
Assembly: Unity.ProBuilder.dll
Syntax
public struct EdgeLookup : IEquatable<EdgeLookup>
Constructors
Name | Description |
---|---|
EdgeLookup(int, int, int, int) | Creates an edge lookup from two set of vertices that represent the common and local edges. |
EdgeLookup(Edge, Edge) | Creates an edge lookup from common and local Edge instances. |
Properties
Name | Description |
---|---|
common | Gets or sets the common edges. Commmon edges point to the vertex index in the sharedVertices array. |
local | Gets or sets the local edges. Local edges point to an index in the vertices array. |
Methods
Name | Description |
---|---|
Equals(object) | Compares each EdgeLookup common edge (does not take into account local edge differences). |
Equals(EdgeLookup) | Compares each EdgeLookup common edge (does not take into account local edge differences). |
GetEdgeLookup(IEnumerable<Edge>, Dictionary<int, int>) | Creates a list of EdgeLookup edges from a set of local edges and a sharedVertices dictionary. |
GetEdgeLookupHashSet(IEnumerable<Edge>, Dictionary<int, int>) | Creates a hashset of edge lookup values from a collection of local edges and a shared indexes lookup. |
GetHashCode() | Returns the hash code for this instance. |
ToString() | Returns a string representation of the common edge property. |
Operators
Name | Description |
---|---|
operator ==(EdgeLookup, EdgeLookup) | Compares two objects for equality. |
operator !=(EdgeLookup, EdgeLookup) | Returns true if the two objects are not equal. |