diff options
author | Martin Poirier <theeth@yahoo.com> | 2008-08-19 02:22:56 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2008-08-19 02:22:56 +0400 |
commit | 18bce23a6052540c2ded4bdc548f83106c71c117 (patch) | |
tree | d08c4a6345a87aa821fc49d013580e9f688edf55 /source/blender/blenlib/BLI_graph.h | |
parent | aef45864082c6db8609bc6aa4d9552d84c84f087 (diff) |
Make subgraph tagging use own index, to not interfere with flagging used to prevent backtracking in different other functions
Better deal with chains starting with control bones
Diffstat (limited to 'source/blender/blenlib/BLI_graph.h')
-rw-r--r-- | source/blender/blenlib/BLI_graph.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_graph.h b/source/blender/blenlib/BLI_graph.h index 59e73004b8b..0f75701a284 100644 --- a/source/blender/blenlib/BLI_graph.h +++ b/source/blender/blenlib/BLI_graph.h @@ -40,6 +40,8 @@ typedef struct BNode { int degree; struct BArc **arcs; + + int subgraph_index; int symmetry_level; int symmetry_flag; @@ -70,6 +72,8 @@ BNode *BLI_otherNode(BArc *arc, BNode *node); void BLI_freeNode(BGraph *graph, BNode *node); void BLI_removeNode(BGraph *graph, BNode *node); +void BLI_removeArc(BGraph *graph, BArc *arc); + void BLI_flagNodes(BGraph *graph, int flag); void BLI_flagArcs(BGraph *graph, int flag); @@ -84,7 +88,7 @@ void BLI_ReflagSubgraph(BGraph *graph, int old_subgraph, int new_subgraph); #define SHAPE_RADIX 10 /* each shape level is encoded this base */ -int BLI_subtreeShape(BNode *node, BArc *rootArc, int include_root); +int BLI_subtreeShape(BGraph *graph, BNode *node, BArc *rootArc, int include_root); float BLI_subtreeLength(BNode *node); void BLI_calcGraphLength(BGraph *graph); |