Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Procedural mesh: how to extrude and bevel a 2D mesh

Discussion in 'Scripting' started by canxerian_, Aug 28, 2023.

  1. canxerian_

    canxerian_

    Joined:
    Jan 29, 2016
    Posts:
    17
    Hi,

    I have a 2D mesh and would like to extrude and bevel (chamfer) the edges.

    Any suggestions on how to achieve this?
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,563
  3. canxerian_

    canxerian_

    Joined:
    Jan 29, 2016
    Posts:
    17
    Thank you @Kurt-Dekker! Awesome repo by the way :)

    Any idea on how to bevel the edges?
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,563
    That's something I haven't tinkered much with in there. Making a bevel for a "uncongested" shapes is easy: just extrude each point outward a little, adding fresh quads obviously, and then move that outer row of verts down.

    It gets trickier with a congested mesh, when the distance between points gets closer to the bevel amounts. This can cause points to "fold into" and cross over each other so you need some awareness to prevent this. But even Blender3D doesn't prevent such a thing from happening.
     
    canxerian_ likes this.