• Advertisement
Sign in to follow this  

Normal smoothing on an n-gon

This topic is 4403 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there, Given a point on a polygon with n vertices, and a vertex normal for each of those vertices, I want to calculate a smooth interpolated normal at given point. For n = 3, my solution was to calculate the barycentric coordinates and interpolate the normals using those weights. For artibitray n, I could do something along the lines of: 1. Triangulate the polygon 2. Loop through the triangles, and calculate the barycentric coordinates for the point. If barycentric coordinates indicate point-in-triangle, interpolate and exit. However, I am actually hoping for a more elegant solution (perhaps assuming convexity of the polygon) that does not involve triangulating the polygon. If anyone could comment on this, it'd be very much appreciated! Thanks in advance for any help you smart folks might have to offer, Paul-Jan

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement