Dynamic Water Physics 2
Search Results for

    Show / Hide Table of Contents

    Class Comparer

    Comparer for sorting vertices by their edge collapse cost during mesh decimation.

    Inheritance
    object
    Comparer
    Implements
    IComparer
    Namespace: NWH.DWP2.MeshDecimation
    Assembly: NWH.DWP2.dll
    Syntax
    public class Comparer : IComparer

    Methods

    | Edit this page View Source

    Compare(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.

    Implements

    IComparer
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics