diff --git a/src/osgUtil/TriStrip_graph_array.h b/src/osgUtil/TriStrip_graph_array.h index 21fa3eb22..a383e32a9 100644 --- a/src/osgUtil/TriStrip_graph_array.h +++ b/src/osgUtil/TriStrip_graph_array.h @@ -2,7 +2,7 @@ // ////////////////////////////////////////////////////////////////////// // -// Copyright (C) 2002 Tanguy Fautré. +// Copyright (C) 2002 Tanguy Fautr�. // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -20,7 +20,7 @@ // misrepresented as being the original software. // 3. This notice may not be removed or altered from any source distribution. // -// Tanguy Fautré +// Tanguy Fautr� // softdev@pandora.be // ////////////////////////////////////////////////////////////////////// @@ -258,20 +258,12 @@ inline void graph_array::setsize(const size_t NbNodes) { template inline typename graph_array::node & graph_array::operator [] (const nodeid & i) { - // Debug check - // assert(i < size()); - if (i >= size()) throw "graph_array::operator [] out of range"; - return m_Nodes[i]; } template inline const typename graph_array::node & graph_array::operator [] (const nodeid & i) const { - // Debug check - // assert(i < size()); - if (i >= size()) throw "graph_array::operator [] out of range"; - return m_Nodes[i]; } diff --git a/src/osgUtil/TriStrip_heap_array.h b/src/osgUtil/TriStrip_heap_array.h index ff82dd8b4..e2b664951 100644 --- a/src/osgUtil/TriStrip_heap_array.h +++ b/src/osgUtil/TriStrip_heap_array.h @@ -2,7 +2,7 @@ // ////////////////////////////////////////////////////////////////////// // -// Copyright (C) 2002 Tanguy Fautré. +// Copyright (C) 2002 Tanguy Fautr�. // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages @@ -20,7 +20,7 @@ // misrepresented as being the original software. // 3. This notice may not be removed or altered from any source distribution. // -// Tanguy Fautré +// Tanguy Fautr� // softdev@pandora.be // ////////////////////////////////////////////////////////////////////// @@ -44,7 +44,6 @@ #ifndef TRISTRIP_HEAP_ARRAY_H #define TRISTRIP_HEAP_ARRAY_H - // namespace common_structures namespace common_structures { @@ -148,8 +147,10 @@ inline size_t heap_array::size() const { template inline const T & heap_array::top() const { // Debug check to ensure heap is not empty - //assert(! empty()); - if (empty()) throw "heap_array::top() error, heap empty"; + if (empty()) + { + osg::notify(osg::NOTICE)<<"TriStripVisitor:: heap_array::top() error, heap empty."< inline const T & heap_array::peek(size_t i) const { // Debug check to ensure element is still present //assert(! removed(i)); - if (removed(i)) throw "heap_array::peek(size_t i) error"; + if (removed(i)) + { + osg::notify(osg::NOTICE)<<"TriStripVisitor:: heap_array::peek(size_t i) error."<::pop() { m_Locked = true; // Debug check to ensure heap is not empty - //assert(! empty()); - if (empty()) throw "heap_array::pop() error, heap empty"; + if (empty()) + { + osg::notify(osg::NOTICE)<<"TriStripVisitor:: heap_array::pop() error, heap empty."<::pop() { template inline size_t heap_array::push(const T & Elem) { if (m_Locked) - throw "heap_is_locked"; + { + osg::notify(osg::NOTICE)<<"TriStripVisitor:: heap_array::push() heap_is_locked."<::erase(size_t i) { m_Locked = true; // Debug check to ensure element is still present - if (removed(i)) throw "heap_array::erase(size_t i) error"; - + if (removed(i)) + { + osg::notify(osg::NOTICE)<<"TriStripVisitor:: heap_array::erase(size_t i) error."< inline void heap_array::update(size_t i, const T & Elem) { // Debug check to ensure element is still present // assert(! removed(i)); - if (removed(i)) throw "heap_array::update(size_t i, const T & Elem) error"; + if (removed(i)) + { + osg::notify(osg::NOTICE)<<"TriStripVisitor:: heap_array::update(size_t i, const T & Elem) error."< +#include "TriStrip_tri_stripper.h" // namespace triangle_stripper