From 35d099384f008bd275943c7a7ea5643c819f19b4 Mon Sep 17 00:00:00 2001 From: cignoni Date: Sat, 9 Aug 2014 00:01:41 +0000 Subject: [PATCH] added a MaxCoeffId utility function that was missing... --- vcg/space/deprecated_point3.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vcg/space/deprecated_point3.h b/vcg/space/deprecated_point3.h index bc80c3ce..2e86074a 100644 --- a/vcg/space/deprecated_point3.h +++ b/vcg/space/deprecated_point3.h @@ -391,6 +391,13 @@ public: //@} //@{ + size_t MaxCoeffId() const + { + if (_v[0]>_v[1]) + return _v[0]>_v[2] ? 0 : 2; + else + return _v[1]>_v[2] ? 1 : 2; + } /** @name Comparison Operators. Note that the reverse z prioritized ordering, useful in many situations. **/