docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DecimateTarget

    DecimateTarget(OccurrenceList, DecimateOptionsSelector, UVImportanceEnum, bool, int, bool)

    reduce the polygon count by collapsing some edges to obtain a target triangle count (iterative version that use less memory)

    Declaration
    public void DecimateTarget(OccurrenceList occurrences, DecimateOptionsSelector targetStrategy, UVImportanceEnum UVImportance = UVImportanceEnum.PreserveSeamsAndReduceDeformation, bool protectTopology = false, int iterativeThreshold = 5000000, bool processMeshIndependently = false)
    Parameters
    Type Name Description
    OccurrenceList occurrences

    List of occurrences to process

    DecimateOptionsSelector targetStrategy

    Select between targetCount or ratio to define the number of triangles left after the decimation process

    UVImportanceEnum UVImportance

    Select importance of texture coordinates

    bool protectTopology

    If False, the topology of the mesh can change and some edges can become non-manifold

    int iterativeThreshold

    Number of triangles above which the iterative algorithm is used to limit the memory usage (disabled if processMeshIndependently=True)

    bool processMeshIndependently

    If true, each mesh will be processed independently and the triangleCount or ratio will apply by mesh (disable iterative method)

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)