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 Gould490March 23, 2013 03:17PM
Re: Point matching Re: Question about edges Philippe Hurbain239March 23, 2013 11:11PM
Re: Point matching Re: Question about edges Tim Gould232March 24, 2013 12:04AM
Re: Point matching Re: Question about edges Michael Heidemann254March 24, 2013 02:50AM
Re: Point matching Re: Question about edges Tim Gould223March 24, 2013 03:06AM
Re: Point matching Re: Question about edges Roland Melkert206March 24, 2013 09:27AM
Re: Point matching Re: Question about edges Michael Heidemann253March 24, 2013 09:52AM
Re: Point matching Re: Question about edges Ben Supnik281March 24, 2013 11:02AM
Re: Point matching Re: Question about edges Roland Melkert272March 24, 2013 11:47AM
Re: Point matching Re: Question about edges Roland Melkert240March 24, 2013 04:45PM
Re: Point matching Re: Question about edges Ben Supnik281March 24, 2013 07:41PM
Re: Point matching Re: Question about edges Roland Melkert307March 25, 2013 10:48AM
Re: Point matching Re: Question about edges Ben Supnik261March 25, 2013 07:33PM
Re: Point matching Re: Question about edges Roland Melkert260March 26, 2013 01:19PM
Re: Point matching Re: Question about edges Ben Supnik261March 26, 2013 02:12PM
Re: Point matching Re: Question about edges Roland Melkert248March 26, 2013 03:25PM
Re: Point matching Re: Question about edges Ben Supnik260March 26, 2013 05:24PM
Re: Point matching Re: Question about edges Roland Melkert283March 27, 2013 11:08AM
Re: Point matching Re: Question about edges Roland Melkert217March 27, 2013 06:01PM
Re: Point matching Re: Question about edges Ben Supnik315March 27, 2013 09:35PM
Re: Point matching Re: Question about edges Ben Supnik230March 24, 2013 09:03AM
Re: Point matching Re: Question about edges Roland Melkert234March 24, 2013 09:31AM
Re: Point matching Re: Question about edges Ben Supnik270March 24, 2013 11:00AM
Re: Point matching Re: Question about edges Michael Heidemann243March 24, 2013 02:45AM



Sorry, only registered users may post in this forum.

Click here to login