From b15255e820f64d8280cb4611a1fcf5a7725d8e08 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 21 Mar 2012 12:08:16 +0000 Subject: move some bmesh headers into intern/ since they are not used externally. --- source/blender/bmesh/bmesh_class.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'source/blender/bmesh/bmesh_class.h') 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__ */ -- cgit v1.2.3