Blender V4.3
BLI_AStarSolution Struct Reference

#include <BLI_astar.h>

Public Attributes

int steps
 
intprev_nodes
 
BLI_AStarGNLink ** prev_links
 
void * custom_data
 
BLI_bitmapdone_nodes
 
floatg_costs
 
intg_steps
 
struct MemArenamem
 

Detailed Description

Definition at line 37 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 45 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 43 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 41 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: