Class Comparer
Comparer for sorting vertices by their edge collapse cost during mesh decimation.
Implements
Namespace: NWH.DWP2.MeshDecimation
Assembly: NWH.DWP2.dll
Syntax
public class Comparer : IComparer
Methods
| Edit this page View SourceCompare(object, object)
Compares two vertices based on their edge collapse cost.
Declaration
public int Compare(object x, object y)
Parameters
| Type | Name | Description |
|---|---|---|
| object | x | First vertex to compare. |
| object | y | Second vertex to compare. |
Returns
| Type | Description |
|---|---|
| int | -1 if x has lower cost, 0 if equal, 1 if x has higher cost. |