From 62e4e8825b521242fffdb269b03a3cfbab31671b Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Wed, 28 Apr 2004 11:19:52 +0000 Subject: [PATCH] Changed : in Init(p0, norm) _dist = p0 * _dir; in _offset = p0 * _dir; Changed : in Init(p0, p1, p2) _offset = p0 * _dist; in _offset = p0 * _dir; --- vcg/space/plane3.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vcg/space/plane3.h b/vcg/space/plane3.h index d1bb5953..a076fb0a 100644 --- a/vcg/space/plane3.h +++ b/vcg/space/plane3.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.1 2004/03/31 22:19:24 ponchio +Untested first draft. + ****************************************************************************/ @@ -110,14 +113,14 @@ public: /// Calculates the plane passing through three points (Rename this method) void Init(const PointType &p0, const PointType &p1, const PointType &p2) { _dir = (p2 - p0) ^ (p1 - p0); - _offset = p0 * _dist; + _offset = p0 * _dir; if(NORM) Normalize(); } /// Calculates the plane passing through a point and the normal (Rename this method inline void Init(const PointType &p0, const PointType &norm) { _dir = norm; - _dist = p0 * _dir; + _offset = p0 * _dir; } }; // end class Plane3