Hi Alberto, as osg::Plane is not documented, there are different interpretations how it should work. You assume that the plane is described like p1*x+p2*y+p3*z+d = 0 (without any restrictions to p1, p2, p3 and d), I assume that it is described as p1*x+p2*y+p3*z+d = 0 where p1^2+p2^2+p3^2 is to be equal to 1.
You may be right because otherwise makeUnitLength does not work but I may be I am also right because osg::Plane::distance does not work if the plane's normal is not normalized (at least the result is not the distance but the distance multiplied with the norm of the normal). Furthermore, as I wrote in the documentation the constructors are not consistent because one does the normalization of the plane's normal the others don't. I thought about makeUnitLength only as a convenience function to normalize the plane's normal. So, what is the right description of the plane? Cheers, Hartwig ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26931#26931 _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
