From d467158158b92ac9e92482db00ee51b2c16597f3 Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Mon, 24 Nov 2008 19:24:49 +0000 Subject: Second step out of three for merging sketching subdivision methods with graph subdivision methods. Graph subdivision uses graph arc iterators. --- source/blender/blenlib/BLI_graph.h | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'source/blender/blenlib/BLI_graph.h') diff --git a/source/blender/blenlib/BLI_graph.h b/source/blender/blenlib/BLI_graph.h index 12ca87577d5..7629dbf6ba8 100644 --- a/source/blender/blenlib/BLI_graph.h +++ b/source/blender/blenlib/BLI_graph.h @@ -62,20 +62,23 @@ typedef struct BArc { struct BArcIterator; -typedef float* (*PeekPointFct)(struct BArcIterator* iter, int n); -typedef float* (*NextPointFct)(struct BArcIterator* iter); -typedef float* (*CurrentPointFct)(struct BArcIterator* iter); -typedef float* (*PreviousPointFct)(struct BArcIterator* iter); -typedef int (*StoppedFct)(struct BArcIterator* iter); +typedef void* (*PeekFct)(void* iter, int n); +typedef void* (*NextFct)(void* iter); +typedef void* (*NextNFct)(void* iter, int n); +typedef void* (*PreviousFct)(void* iter); +typedef int (*StoppedFct)(void* iter); typedef struct BArcIterator { - PeekPointFct peek; - NextPointFct next; - CurrentPointFct current; - PreviousPointFct previous; - StoppedFct stopped; + PeekFct peek; + NextFct next; + NextNFct nextN; + PreviousFct previous; + StoppedFct stopped; + + float *p, *no; int length; + int index; } BArcIterator; /* Helper structure for radial symmetry */ -- cgit v1.2.3