Added a class prototype for avoiding the inclusion of tetra.h

This commit is contained in:
Paolo Cignoni 2006-12-07 00:39:22 +00:00
parent c88392e13b
commit 67007b3691
1 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,9 @@
/**************************************************************************** /****************************************************************************
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.9 2006/12/04 09:27:13 cignoni
Removed useless include <tetra.h>
****************************************************************************/ ****************************************************************************/
#ifndef __PICK______H #ifndef __PICK______H
#define __PICK______H #define __PICK______H
@ -151,6 +154,10 @@ static bool PickNearestTetra(int x, int y,TETRA_MESH_TYPE &m, TetraIterator &ti,
return false; return false;
} }
// class prototype needed for avoid the inclusion of tetra.h
class Tetra;
static int PickTetra(int x, int y, TETRA_MESH_TYPE &m, std::vector<TetraPointer> &result, int width=4, int height=4) static int PickTetra(int x, int y, TETRA_MESH_TYPE &m, std::vector<TetraPointer> &result, int width=4, int height=4)
{ {
result.clear(); result.clear();