docs.unity3d.com
Version: 

    Decimate meshes by collapsing edges

    API function: algo.decimateEdgeCollapse

    Use this feature to reduce the polygon count by collapsing polygon edges, based on quality criteria.

    This feature is particularly suitable for models that have soft edges or smooth textured surfaces, such as game assets and 3D scans.

    Use quality criteria to avoid artifacts that result from smoothing and irregularities in topology.

    Prerequisites

    We strongly recommend that you perform these operations before decimation, to ensure the efficiency of decimation:

    • Repair meshes, to avoid widening cracks or gaps in meshes. Read more.
    • Remove unnecessary texture coordinates. Read more.

    Parameters

    This feature performs these operations:

    1. Calculate the position of a new vertex.
    2. Compute an error score for each edge with different deviations on boundaries, normals, and texture coordinates.
    3. Delete the edges that have the lowest score.

    Example

    This table shows examples of values:

    Quality Surface tolerance Maximum deviation of normals Maximum deviation of texture coordinates
    High quality‚ very light decimation 0.0005 -1 -1
    Medium quality 0.001 -1 -1
    Low quality 0.003 -1 -1
    Version 2024.3.0.10
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX.