Welcome! Log In Create A New Profile

Advanced
Re: Point matching Re: Question about edges
March 26, 2013 05:24PM
Hi Roland,

Hrm - I get the angle -almost- for free...my vertices and faces are linked in the internal data structure, so the weighting cost is the cost of:
- calculating the normalized vector to the adjacent points on the polygon (the vertex "object" can be found by ptrs easily)
- calculating the dot product of those vectors
- applying acos to get a radian angle weight.

I don't need to normalize - after all, the angles going into the vertex may not sum up to 360 or 2pi. I just use the relative weights and renormalize the normal at the end, something I would have had to do anyway.

Adding the weighting coefficient only slowed smoothing by 5% - that's a pretty light cost to pay to get the specular hilights looking right when a face is/must be triangulated. :-)

cheers
Ben
SubjectAuthorViewsPosted
Point matching Re: Question about edges Tim Gould451March 23, 2013 03:17PM
Re: Point matching Re: Question about edges Philippe Hurbain221March 23, 2013 11:11PM
Re: Point matching Re: Question about edges Tim Gould210March 24, 2013 12:04AM
Re: Point matching Re: Question about edges Michael Heidemann230March 24, 2013 02:50AM
Re: Point matching Re: Question about edges Tim Gould208March 24, 2013 03:06AM
Re: Point matching Re: Question about edges Roland Melkert187March 24, 2013 09:27AM
Re: Point matching Re: Question about edges Michael Heidemann230March 24, 2013 09:52AM
Re: Point matching Re: Question about edges Ben Supnik258March 24, 2013 11:02AM
Re: Point matching Re: Question about edges Roland Melkert247March 24, 2013 11:47AM
Re: Point matching Re: Question about edges Roland Melkert221March 24, 2013 04:45PM
Re: Point matching Re: Question about edges Ben Supnik254March 24, 2013 07:41PM
Re: Point matching Re: Question about edges Roland Melkert289March 25, 2013 10:48AM
Re: Point matching Re: Question about edges Ben Supnik239March 25, 2013 07:33PM
Re: Point matching Re: Question about edges Roland Melkert241March 26, 2013 01:19PM
Re: Point matching Re: Question about edges Ben Supnik235March 26, 2013 02:12PM
Re: Point matching Re: Question about edges Roland Melkert228March 26, 2013 03:25PM
Re: Point matching Re: Question about edges Ben Supnik244March 26, 2013 05:24PM
Re: Point matching Re: Question about edges Roland Melkert252March 27, 2013 11:08AM
Re: Point matching Re: Question about edges Roland Melkert204March 27, 2013 06:01PM
Re: Point matching Re: Question about edges Ben Supnik300March 27, 2013 09:35PM
Re: Point matching Re: Question about edges Ben Supnik222March 24, 2013 09:03AM
Re: Point matching Re: Question about edges Roland Melkert211March 24, 2013 09:31AM
Re: Point matching Re: Question about edges Ben Supnik244March 24, 2013 11:00AM
Re: Point matching Re: Question about edges Michael Heidemann228March 24, 2013 02:45AM



Sorry, only registered users may post in this forum.

Click here to login