Jump to content
  • Advertisement
Sign in to follow this  
lucky6969b

Is the sum of dot products of all interior angles towards a hollow space zero?

This topic is 528 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

Imagine there is a hole and a number of edges are facing towards it,
When I take 2 consecutive edges and calculate the dot products of them,
I will get some value back, if I add all subsequent dot products until
the 1st edge is met again, will I get a sum of zero?
Thanks
Jack

Edited by lucky6969b

Share this post


Link to post
Share on other sites
Advertisement
I am not sure I understand the question exactly, but for any interpretation of the question I can think of, the answer is "no". Just think of the case where your edges form a regular polygon that is not a square. The dot products will all be equal and not zero, therefore their sum won't be zero either.

Share this post


Link to post
Share on other sites
The edges will be concave and as such positive dot values returned. You will get some positive total. Only if the edges were perpendicular would you get 0.

Share this post


Link to post
Share on other sites

Then What about

For every pair of edges,
since dot(edge_i, edge_i+1) = norm(i) * norm(i+1) * cos(angle)
then
angle_i = acos(dot(edge_i, edge_i+1) / norm(i) / norm(i+1))

 

Sorry about my notations.

As the sum of all interior angles of a polygon is 360 degrees,
If the sum is indeed 360 degrees, then it is hollow?
Thanks
Jack

Share this post


Link to post
Share on other sites
How about you explain what problem you are trying to solve, ideally with some example, and we'll go from there?

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!