From 506900e59f8ee38d68bbd8ae1db39253cdc81a7b Mon Sep 17 00:00:00 2001 From: barfowl Date: Thu, 28 May 2015 17:55:34 -0700 Subject: [PATCH] Added more public constants to - added constants for Vtr::INDEX_INVALID and VALENCE_LIMIT - added inline equivalent to Vtr::IndexIsValid() --- opensubdiv/far/types.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/opensubdiv/far/types.h b/opensubdiv/far/types.h index dfec45db..e3988a22 100644 --- a/opensubdiv/far/types.h +++ b/opensubdiv/far/types.h @@ -35,7 +35,8 @@ namespace OPENSUBDIV_VERSION { namespace Far { // -// Typedef's for indices we want at the Far level -- need to go elsewhere eventually... +// Typedef's for indices that are inherited from the Vtr level -- eventually +// these primitive Vtr types may be declared at a lower, more public level. // typedef Vtr::Index Index; typedef Vtr::LocalIndex LocalIndex; @@ -46,6 +47,11 @@ typedef Vtr::LocalIndexArray LocalIndexArray; typedef Vtr::ConstIndexArray ConstIndexArray; typedef Vtr::ConstLocalIndexArray ConstLocalIndexArray; +inline bool IndexIsValid(Index index) { return Vtr::IndexIsValid(index); } + +static const Index INDEX_INVALID = Vtr::INDEX_INVALID; +static const int VALENCE_LIMIT = Vtr::VALENCE_LIMIT; + } // end namespace Far } // end namespace OPENSUBDIV_VERSION