diff options
Diffstat (limited to 'source/blender/blenlib/BLI_graph.h')
-rw-r--r-- | source/blender/blenlib/BLI_graph.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_graph.h b/source/blender/blenlib/BLI_graph.h index 160c2e04cf5..12ca87577d5 100644 --- a/source/blender/blenlib/BLI_graph.h +++ b/source/blender/blenlib/BLI_graph.h @@ -60,6 +60,24 @@ typedef struct BArc { int symmetry_flag; } 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 struct BArcIterator { + PeekPointFct peek; + NextPointFct next; + CurrentPointFct current; + PreviousPointFct previous; + StoppedFct stopped; + + int length; +} BArcIterator; + /* Helper structure for radial symmetry */ typedef struct RadialArc { |