Robert Osfield
55de8b03d9
From Wojciech Lewandowski, "----1----
...
Attached is a fixed version of OverlayNode.cpp. I fixed CustomPolytope::cut( osg::Plane ) method. Bug was apparent in such scenario:
Let P1 be some random frustum polytope
Let P2 be the polytope that was created from P1 bounding box (P2 contains P1 entirely)
Then ignoring precision errors: P1.cut( P2 ) == P2.cut( P1 ) == P1. But this condition was not always met. Cut failed when some of the polytope reference points happened to lie exactly on some intersecting planes in both P1 & P2 (plane distance was = 0).
I only use CustomPolytope for my shadowing stuff so I did not test how this affects rest of OverlayNode.cpp.
----2----
Also attached is a minor precision improvement for osg::Plane intersect method (double version).
----3----
I have also one observation regarding osg::Plane - There are two intersect vertices methods (float and double flavour):
inline int intersect(const std::vector<Vec3>& vertices) const
inline int intersect(const std::vector<Vec3d>& vertices) const
I guess osg::Plane won't compile when someone changes default vec3 typedef to vec3d. Shouldn't the first method be changed to use vec3f explicitly ? Ie:
inline int intersect(const std::vector<Vec3f>& vertices) const"
2008-02-25 14:15:27 +00:00
..
2007-03-05 17:34:36 +00:00
2007-06-13 19:54:00 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-11 15:55:02 +00:00
2007-05-22 15:17:52 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2006-07-18 15:21:48 +00:00
2006-07-18 15:21:48 +00:00
2007-01-04 14:11:51 +00:00
2008-01-08 13:24:29 +00:00
2007-12-10 17:30:18 +00:00
2006-11-27 14:52:07 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2006-07-18 15:21:48 +00:00
2007-02-16 15:17:43 +00:00
2008-01-18 21:01:18 +00:00
2007-03-29 15:41:59 +00:00
2007-12-10 17:30:18 +00:00
2006-07-18 15:21:48 +00:00
2006-07-18 15:21:48 +00:00
2007-02-16 17:34:34 +00:00
2007-01-05 09:55:04 +00:00
2007-01-05 09:55:04 +00:00
2008-02-25 13:17:30 +00:00
2006-07-18 15:21:48 +00:00
2007-03-05 17:34:36 +00:00
2006-07-18 15:21:48 +00:00
2007-12-10 17:30:18 +00:00
2007-08-10 17:44:54 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-08-23 14:31:23 +00:00
2008-01-21 11:36:54 +00:00
2007-05-14 16:16:22 +00:00
2006-08-24 20:15:32 +00:00
2007-12-10 17:30:18 +00:00
2006-07-18 15:21:48 +00:00
2007-12-10 17:30:18 +00:00
2008-01-08 13:24:29 +00:00
2008-01-08 13:24:29 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-04-03 19:42:43 +00:00
2008-01-08 14:38:58 +00:00
2008-02-22 18:38:30 +00:00
2008-01-08 13:24:29 +00:00
2007-10-03 20:21:01 +00:00
2008-01-04 13:57:36 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-10-31 12:55:15 +00:00
2007-06-28 14:19:30 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-01-07 10:00:50 +00:00
2008-02-18 14:51:05 +00:00
2007-03-05 17:34:36 +00:00
2005-04-11 17:14:17 +00:00
2007-12-10 17:30:18 +00:00
2007-03-05 17:34:36 +00:00
2007-03-05 17:34:36 +00:00
2007-12-10 17:30:18 +00:00
2007-05-20 11:45:09 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2006-07-18 15:21:48 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2006-12-19 17:16:14 +00:00
2007-07-11 16:06:04 +00:00
2007-12-21 14:45:16 +00:00
2006-07-18 15:21:48 +00:00
2007-12-10 17:30:18 +00:00
2006-11-26 22:27:09 +00:00
2006-07-18 15:21:48 +00:00
2008-01-10 11:02:21 +00:00
2008-01-18 09:17:32 +00:00
2006-07-18 15:21:48 +00:00
2008-02-25 14:15:27 +00:00
2007-12-10 17:30:18 +00:00
2007-03-05 17:34:36 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-03-05 17:34:36 +00:00
2007-12-10 17:30:18 +00:00
2006-07-18 15:21:48 +00:00
2008-02-15 14:09:44 +00:00
2008-01-08 14:38:58 +00:00
2006-07-18 15:21:48 +00:00
2007-12-10 17:30:18 +00:00
2006-07-18 15:21:48 +00:00
2006-07-03 15:21:08 +00:00
2007-12-10 17:30:18 +00:00
2007-07-14 17:07:59 +00:00
2007-03-05 17:34:36 +00:00
2007-12-24 14:45:31 +00:00
2007-04-05 20:27:02 +00:00
2008-01-08 14:38:58 +00:00
2007-12-10 17:30:18 +00:00
2007-03-29 19:42:07 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-11 11:42:02 +00:00
2007-02-15 10:25:11 +00:00
2007-03-05 17:34:36 +00:00
2007-12-10 17:30:18 +00:00
2006-07-18 15:21:48 +00:00
2007-12-10 17:30:18 +00:00
2006-07-18 15:21:48 +00:00
2007-07-11 15:51:17 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-01-11 10:35:03 +00:00
2006-11-22 20:39:44 +00:00
2008-01-08 13:24:29 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-09-11 12:04:58 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2008-02-22 11:52:23 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-04 14:46:46 +00:00
2008-01-08 14:38:58 +00:00
2006-07-18 15:21:48 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2006-07-18 15:21:48 +00:00
2007-12-17 17:43:57 +00:00
2006-07-18 15:21:48 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-17 17:43:57 +00:00
2006-07-18 15:21:48 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-17 17:43:57 +00:00
2007-12-10 17:30:18 +00:00
2008-01-29 10:28:56 +00:00
2008-01-08 13:24:29 +00:00
2007-12-11 16:34:37 +00:00
2007-12-10 17:30:18 +00:00