From 6c17d2141bf596672f6916d8d5897bcd53d3537d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 5 Feb 2014 05:22:21 +1100 Subject: Scanfill: optimize filling curves, text, masks - skip calculating holes Support for tagging polygon numbers when adding scanfill data, saves having to calculate connectivity afterwards (which can take approx half overall scanfill time for complex curves). --- source/blender/blenlib/BLI_scanfill.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenlib/BLI_scanfill.h') diff --git a/source/blender/blenlib/BLI_scanfill.h b/source/blender/blenlib/BLI_scanfill.h index bb91b747223..d77640ea187 100644 --- a/source/blender/blenlib/BLI_scanfill.h +++ b/source/blender/blenlib/BLI_scanfill.h @@ -46,6 +46,10 @@ typedef struct ScanFillContext { ListBase filledgebase; ListBase fillfacebase; + /* increment this value before adding each curve to skip having to calculate + * 'poly_nr' for edges and verts (which can take approx half scanfill time) */ + unsigned short poly_nr; + /* private */ struct ScanFillVertLink *_scdata; struct MemArena *arena; -- cgit v1.2.3