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. **/