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 Gould479March 23, 2013 03:17PM
Re: Point matching Re: Question about edges Philippe Hurbain235March 23, 2013 11:11PM
Re: Point matching Re: Question about edges Tim Gould227March 24, 2013 12:04AM
Re: Point matching Re: Question about edges Michael Heidemann246March 24, 2013 02:50AM
Re: Point matching Re: Question about edges Tim Gould220March 24, 2013 03:06AM
Re: Point matching Re: Question about edges Roland Melkert202March 24, 2013 09:27AM
Re: Point matching Re: Question about edges Michael Heidemann249March 24, 2013 09:52AM
Re: Point matching Re: Question about edges Ben Supnik274March 24, 2013 11:02AM
Re: Point matching Re: Question about edges Roland Melkert264March 24, 2013 11:47AM
Re: Point matching Re: Question about edges Roland Melkert235March 24, 2013 04:45PM
Re: Point matching Re: Question about edges Ben Supnik273March 24, 2013 07:41PM
Re: Point matching Re: Question about edges Roland Melkert303March 25, 2013 10:48AM
Re: Point matching Re: Question about edges Ben Supnik256March 25, 2013 07:33PM
Re: Point matching Re: Question about edges Roland Melkert256March 26, 2013 01:19PM
Re: Point matching Re: Question about edges Ben Supnik251March 26, 2013 02:12PM
Re: Point matching Re: Question about edges Roland Melkert245March 26, 2013 03:25PM
Re: Point matching Re: Question about edges Ben Supnik255March 26, 2013 05:24PM
Re: Point matching Re: Question about edges Roland Melkert268March 27, 2013 11:08AM
Re: Point matching Re: Question about edges Roland Melkert214March 27, 2013 06:01PM
Re: Point matching Re: Question about edges Ben Supnik312March 27, 2013 09:35PM
Re: Point matching Re: Question about edges Ben Supnik227March 24, 2013 09:03AM
Re: Point matching Re: Question about edges Roland Melkert226March 24, 2013 09:31AM
Re: Point matching Re: Question about edges Ben Supnik261March 24, 2013 11:00AM
Re: Point matching Re: Question about edges Michael Heidemann237March 24, 2013 02:45AM



Sorry, only registered users may post in this forum.

Click here to login