diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-21 16:08:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-21 16:08:16 +0400 |
commit | b15255e820f64d8280cb4611a1fcf5a7725d8e08 (patch) | |
tree | 2ccdbd60726170190b5baf59415f3e14f988917b /source/blender/bmesh/bmesh_class.h | |
parent | 7a43cd7909e025ff7e0a464b97428d7cb96c2eb6 (diff) |
move some bmesh headers into intern/ since they are not used externally.
Diffstat (limited to 'source/blender/bmesh/bmesh_class.h')
-rw-r--r-- | source/blender/bmesh/bmesh_class.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source/blender/bmesh/bmesh_class.h b/source/blender/bmesh/bmesh_class.h index 5dc93bfad88..8c8272736e9 100644 --- a/source/blender/bmesh/bmesh_class.h +++ b/source/blender/bmesh/bmesh_class.h @@ -235,4 +235,24 @@ enum { * not have functions clobber them */ }; +/* defines */ + +/*forward declarations*/ + +#ifdef USE_BMESH_HOLES +# define BM_FACE_FIRST_LOOP(p) (((BMLoopList *)((p)->loops.first))->first) +#else +# define BM_FACE_FIRST_LOOP(p) ((p)->l_first) +#endif + +/* size to use for static arrays when dealing with NGons, + * alloc after this limit is reached. + * this value is rather arbitrary */ +#define BM_NGON_STACK_SIZE 32 + +/* avoid inf loop, this value is arbitrary + * but should not error on valid cases */ +#define BM_LOOP_RADIAL_MAX 10000 +#define BM_NGON_MAX 100000 + #endif /* __BMESH_CLASS_H__ */ |