Jump to content

How do you find the edge of a mesh?


Dal
 Share

Recommended Posts

another simple fast way CPU side (the simplest actually) :

if your edge is one of the ground widths : the first subdivisions+1 vertices are on the edge. So, for the whole mesh the first sub+1 and last sub+1 are the edges.

if your edges are the sides of the ground (the heights) : 

left side : all the vertices with an index stride of sub+1 :0, sub+1, 2 * (sub+1), ..., (sub+1) * (sub+1)

right side : the same but starting at index sub : sub, 2*sub+1, 2*(sub+1)+sub, ..., (sub+1)*(sub+1)+sub

if i''m not wrong 

Link to comment
Share on other sites

9 hours ago, NasimiAsl said:

Wow! This is really awesome! I am impressed.
It looks really good on my PC. The bad news - performance on mobile seems even worse than my groundmesh based solution so far. Hope it will be possible to optimize it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...