00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __GEO_Macros_h__
00022 #define __GEO_Macros_h__
00023
00024 #include <GB/GB_Macros.h>
00025 #include <GB/GB_ExtraMacros.h>
00026
00027 #define FOR_ALL_MIX_GROUP_PRIMITIVES(gdp, grp, prim, sec) \
00028 for (gdp->primitives().headMix(*grp, prim, sec); prim; \
00029 gdp->primitives().nextMix(*grp, prim, sec, prim, sec))
00030
00031 #define FOR_SAFE_MIX_GROUP_PRIMITIVES(gdp, grp, prim, sec, nextprim, nextsec) \
00032 for (gdp->primitives().headMix(*grp, prim, sec); \
00033 prim && (gdp->primitives().nextMix(*grp,prim,sec,nextprim,nextsec) || 1); \
00034 prim = nextprim, sec = nextsec)
00035
00036
00037 #endif