Blender  V3.3
Public Attributes | List of all members
BLI_AStarSolution Struct Reference

#include <BLI_astar.h>

Public Attributes

int steps
 
int * prev_nodes
 
BLI_AStarGNLink ** prev_links
 
voidcustom_data
 
BLI_bitmapdone_nodes
 
floatg_costs
 
int * g_steps
 
struct MemArenamem
 

Detailed Description

Definition at line 34 of file BLI_astar.h.

Member Data Documentation

◆ custom_data

void* BLI_AStarSolution::custom_data

◆ done_nodes

BLI_bitmap* BLI_AStarSolution::done_nodes

◆ g_costs

float* BLI_AStarSolution::g_costs

◆ g_steps

int* BLI_AStarSolution::g_steps

◆ mem

struct MemArena* BLI_AStarSolution::mem

◆ prev_links

BLI_AStarGNLink** BLI_AStarSolution::prev_links

Indices are nodes' ones, as prev_nodes, but they map to relevant link.

Definition at line 42 of file BLI_astar.h.

Referenced by BKE_mesh_remap_calc_loops_from_mesh(), BLI_astar_graph_solve(), BLI_astar_solution_clear(), and BLI_astar_solution_init().

◆ prev_nodes

int* BLI_AStarSolution::prev_nodes

Store the path, in reversed order (from destination to source node), as indices.

Definition at line 40 of file BLI_astar.h.

Referenced by BKE_mesh_remap_calc_loops_from_mesh(), BLI_astar_graph_solve(), BLI_astar_solution_clear(), and BLI_astar_solution_init().

◆ steps

int BLI_AStarSolution::steps

Number of steps (i.e. walked links) in path (nodes num, including start and end, is steps + 1).

Definition at line 38 of file BLI_astar.h.

Referenced by BKE_mesh_remap_calc_loops_from_mesh(), BLI_astar_graph_solve(), BLI_astar_solution_clear(), and BLI_astar_solution_init().


The documentation for this struct was generated from the following file: