docs.unity3d.com
Version: 

    Filleting meshes

    API functions: algo.identifySharpEdges and algo.filletMesh

    These functions allow to create fillets and chamfers on hard edges on meshes.

    First, one must use the algo.identifySharpEdges to mark the edges on the occurrences that are to be filleted. This function allows to mark as "sharp" the edges whose angles are between minSharpAngle and maxSharpAngle. They can be filtered by their convexity and using onlyExplicitSharp one can choose to also use the normals of the mesh for the flagging.

    Convexity

    Note

    The viewer will not highlight the marked edges nor the ideal chamfers.

    Once the edges are marked, the algo.filletMesh can be used. The value of the filleting depends on the FilletingMode.

    Filleting modes

    As shown, all these parameters are linked to the angle of the edge. For instance for the same width a fillet on a sharp edge will have more distance than a fillet on a flatter edge.

    Using the parameters subdivisionNb and createFlatChamfer allows to create more or less rounded fillets and to create chamfers without normal interpolation.

    FilletingMode

    Version 2025.2.0.1
    • 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.