taiya / dgp

Digital Geometry Processing - Fall 2016 - University of Victoria
38 stars 11 forks source link

Lab 3: is my logic correct? #10

Closed xuzheng0927 closed 8 years ago

xuzheng0927 commented 8 years ago

To calculate gauss curvature, I have the following code (very simple and straightforward I think):

(code removed)

But I got a completely different result:

2016-10-12 8 36 37

What could be the problem?

nlguillemot commented 8 years ago

I tried to illustrate what the variables in your code correspond to. You can see the angle is in the wrong corner.

http://i.imgur.com/TMYbyKd.png

nlguillemot commented 8 years ago

Also I've removed your code from your post to prevent others from copying it, just to be safe.

xuzheng0927 commented 8 years ago

I see. I thought the vertex associated with a half edge was the "point-to" one but actually it is the "point-from" one. Now it is correct.