Sign in to follow this  
pauljan

Normal smoothing on an n-gon

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this