10 #ifndef BBINFILETK_SHELL
11 #define BBINFILETK_SHELL
14 #include "BPolyhedron.h"
104 TK_Status SetFaces(
int length,
int const *face_list = 0 );
122 void set_flist (
int count,
int const * list = 0) { SetFaces( count, list ); };
139 #define SEMI_PROTECT(x) do {x} while (0)
142 #define ENSURE_ALLOCATED(var,type,count) SEMI_PROTECT( \
144 BSTREAM_ALLOC_ARRAY(var, count, type); \
151 #define ENSURE_ALLOCATED_CLEAR(var,type,count) SEMI_PROTECT( \
152 BSTREAM_ALLOC_ARRAY(var, count, type); \
155 memset (var, 0, (count) * sizeof(type)); \
void set_flist(int count, int const *list=0)
obsolete. Provided for compatibility
Definition: BOpcodeShell.h:122
Handles the TKE_Shell opcode.
Definition: BOpcodeShell.h:25
int m_substage
Definition: BOpcodeShell.h:61
Contains data types which are used by BBaseOpcodeHandler.
int m_flistlen
Definition: BOpcodeShell.h:63
int * m_flist
Definition: BOpcodeShell.h:64
virtual TK_Status Read(BStreamFileToolkit &tk)=0
char m_lodlevel
Definition: BOpcodeShell.h:65
int const * GetFaces() const
Definition: BOpcodeShell.h:108
int GetFacesLength() const
Definition: BOpcodeShell.h:110
Definition: BStream.h:275
int GetLodLevel() const
Definition: BOpcodeShell.h:112
TK_Status
Codes which can be either passed to various toolkit functions, or indicate the result of a toolkit fu...
Definition: BStream.h:274
TK_Status SetLodLevel(int level)
Sets the lod level for this representation (as in HOOPS, '0' means original base resolution) ...
Definition: BOpcodeShell.h:106
Base class for shell and mesh.
Definition: BPolyhedron.h:22
unsigned char m_compression_scheme
Definition: BOpcodeShell.h:62
virtual TK_Status Write(BStreamFileToolkit &tk)=0