docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Decimate

    Decimate(OccurrenceList, double, double, double, double, bool)

    reduce the polygon count by removing some vertices

    Declaration
    public void Decimate(OccurrenceList occurrences, double surfacicTolerance, double lineicTolerance = 0.1, double normalTolerance = 5, double texCoordTolerance = -1, bool releaseConstraintOnSmallArea = false)
    Parameters
    Type Name Description
    OccurrenceList occurrences

    Occurrences of components to process

    double surfacicTolerance

    Maximum distance between surfacic vertices and resulting simplified surfaces

    double lineicTolerance

    Maximum distance between lineic vertices and resulting simplified lines

    double normalTolerance

    Maximum angle between original normals and those interpolated on the simplified surface

    double texCoordTolerance

    Maximum distance (in 3D space) between original texcoords and those interpolated on the simplified surface

    bool releaseConstraintOnSmallArea

    If True, release constraint of normal and/or texcoord tolerance on small areas (according to surfacicTolerance)

    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)