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 Gould627March 23, 2013 03:17PM
Re: Point matching Re: Question about edges Philippe Hurbain319March 23, 2013 11:11PM
Re: Point matching Re: Question about edges Tim Gould300March 24, 2013 12:04AM
Re: Point matching Re: Question about edges Michael Heidemann333March 24, 2013 02:50AM
Re: Point matching Re: Question about edges Tim Gould307March 24, 2013 03:06AM
Re: Point matching Re: Question about edges Roland Melkert254March 24, 2013 09:27AM
Re: Point matching Re: Question about edges Michael Heidemann311March 24, 2013 09:52AM
Re: Point matching Re: Question about edges Ben Supnik346March 24, 2013 11:02AM
Re: Point matching Re: Question about edges Roland Melkert342March 24, 2013 11:47AM
Re: Point matching Re: Question about edges Roland Melkert303March 24, 2013 04:45PM
Re: Point matching Re: Question about edges Ben Supnik351March 24, 2013 07:41PM
Re: Point matching Re: Question about edges Roland Melkert414March 25, 2013 10:48AM
Re: Point matching Re: Question about edges Ben Supnik354March 25, 2013 07:33PM
Re: Point matching Re: Question about edges Roland Melkert336March 26, 2013 01:19PM
Re: Point matching Re: Question about edges Ben Supnik355March 26, 2013 02:12PM
Re: Point matching Re: Question about edges Roland Melkert328March 26, 2013 03:25PM
Re: Point matching Re: Question about edges Ben Supnik333March 26, 2013 05:24PM
Re: Point matching Re: Question about edges Roland Melkert351March 27, 2013 11:08AM
Re: Point matching Re: Question about edges Roland Melkert275March 27, 2013 06:01PM
Re: Point matching Re: Question about edges Ben Supnik383March 27, 2013 09:35PM
Re: Point matching Re: Question about edges Ben Supnik275March 24, 2013 09:03AM
Re: Point matching Re: Question about edges Roland Melkert278March 24, 2013 09:31AM
Re: Point matching Re: Question about edges Ben Supnik341March 24, 2013 11:00AM
Re: Point matching Re: Question about edges Michael Heidemann334March 24, 2013 02:45AM



Sorry, only registered users may post in this forum.

Click here to login