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 Gould379March 23, 2013 03:17PM
Re: Point matching Re: Question about edges Philippe Hurbain180March 23, 2013 11:11PM
Re: Point matching Re: Question about edges Tim Gould174March 24, 2013 12:04AM
Re: Point matching Re: Question about edges Michael Heidemann193March 24, 2013 02:50AM
Re: Point matching Re: Question about edges Tim Gould174March 24, 2013 03:06AM
Re: Point matching Re: Question about edges Roland Melkert151March 24, 2013 09:27AM
Re: Point matching Re: Question about edges Michael Heidemann182March 24, 2013 09:52AM
Re: Point matching Re: Question about edges Ben Supnik211March 24, 2013 11:02AM
Re: Point matching Re: Question about edges Roland Melkert203March 24, 2013 11:47AM
Re: Point matching Re: Question about edges Roland Melkert173March 24, 2013 04:45PM
Re: Point matching Re: Question about edges Ben Supnik197March 24, 2013 07:41PM
Re: Point matching Re: Question about edges Roland Melkert232March 25, 2013 10:48AM
Re: Point matching Re: Question about edges Ben Supnik187March 25, 2013 07:33PM
Re: Point matching Re: Question about edges Roland Melkert191March 26, 2013 01:19PM
Re: Point matching Re: Question about edges Ben Supnik182March 26, 2013 02:12PM
Re: Point matching Re: Question about edges Roland Melkert177March 26, 2013 03:25PM
Re: Point matching Re: Question about edges Ben Supnik197March 26, 2013 05:24PM
Re: Point matching Re: Question about edges Roland Melkert199March 27, 2013 11:08AM
Re: Point matching Re: Question about edges Roland Melkert162March 27, 2013 06:01PM
Re: Point matching Re: Question about edges Ben Supnik258March 27, 2013 09:35PM
Re: Point matching Re: Question about edges Ben Supnik180March 24, 2013 09:03AM
Re: Point matching Re: Question about edges Roland Melkert168March 24, 2013 09:31AM
Re: Point matching Re: Question about edges Ben Supnik191March 24, 2013 11:00AM
Re: Point matching Re: Question about edges Michael Heidemann191March 24, 2013 02:45AM



Sorry, only registered users may post in this forum.

Click here to login