Method Equals
Equals(Edge)
Tests whether this Edge is equal to another Edge object.
Declaration
public bool Equals(Edge other)
Parameters
Type | Name | Description |
---|---|---|
Edge | other | The Edge to compare against. |
Returns
Type | Description |
---|---|
bool | True if the edges are equal, false if not. |
Implements
Equals(object)
Tests whether this object is equal to another object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare against. |
Returns
Type | Description |
---|---|
bool | True if the edges are equal, false if not. |
Overrides
Equals(Edge, Dictionary<int, int>)
Compares edges and takes shared triangles into account.
Declaration
public bool Equals(Edge other, Dictionary<int, int> lookup)
Parameters
Type | Name | Description |
---|---|---|
Edge | other | The edge to compare against. |
Dictionary<int, int> | lookup | A common vertex indexes lookup dictionary. See pb_IntArray for more information. |
Returns
Type | Description |
---|---|
bool | True if edges are perceptually equal (that is, they point to the same common indexes). |
Remarks
Generally you just pass ProBuilderMesh.sharedIndexes.ToDictionary() to lookup, but it's more efficient to do it once and reuse that dictionary if possible.