From 9fc361301d43c577bd632fa108e85c37367fe1c0 Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 26 Aug 2009 00:10:32 +0000 Subject: [PATCH] Added missing Plane3::Import --- vcg/space/plane3.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vcg/space/plane3.h b/vcg/space/plane3.h index 5620338d..35f25bc0 100644 --- a/vcg/space/plane3.h +++ b/vcg/space/plane3.h @@ -99,6 +99,13 @@ public: /// The (distance, direction) constructor Plane3(const ScalarType &dist, const PointType &dir) { Set(dist, dir); } + template + inline void Import( const Plane3 & b ) + { + _offset = ScalarType(b.Offset()); + _dir = Point3::Construct(b.Direction()); + } + //@{ /** @name Members to access the distance or direction Direction() cannot be assigned directly.