Important Change. Now GetBBox return a null bbox if called on a deleted face (instead of crashing)

This commit is contained in:
Paolo Cignoni 2008-02-03 23:49:42 +00:00
parent 2e24725d5b
commit 343df1c14c
1 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,9 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.12 2007/05/04 16:40:11 ganovelli
changes to comply "plus" types
Revision 1.11 2007/03/27 09:22:11 cignoni Revision 1.11 2007/03/27 09:22:11 cignoni
Added Visited flags Added Visited flags
@ -311,6 +314,11 @@ static int &LastBitFlag()
template<class BoxType> template<class BoxType>
void GetBBox( BoxType & bb ) const void GetBBox( BoxType & bb ) const
{ {
if(this->IsD())
{
bb.SetNull();
return;
}
bb.Set(this->P(0)); bb.Set(this->P(0));
bb.Add(this->P(1)); bb.Add(this->P(1));
bb.Add(this->P(2)); bb.Add(this->P(2));