GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-8f4931381
P_node Struct Reference

Topological feature - node. More...

#include <dig_structs.h>

Data Fields

double x
 X coordinate. More...
 
double y
 Y coordinate. More...
 
double z
 Z coordinate (used only for 3D data) More...
 
plus_t alloc_lines
 Allocated space for lines. More...
 
plus_t n_lines
 Number of attached lines (size of lines, angle) More...
 
plus_tlines
 List of connected lines. More...
 
float * angles
 List of angles of connected lines. More...
 

Detailed Description

Topological feature - node.

Definition at line 1448 of file dig_structs.h.

Field Documentation

◆ alloc_lines

plus_t P_node::alloc_lines

Allocated space for lines.

Definition at line 1465 of file dig_structs.h.

Referenced by dig_free_node(), and dig_node_alloc_line().

◆ angles

float* P_node::angles

List of angles of connected lines.

Angles for lines/boundaries are in radians between -PI and PI. Value for points or lines with identical points (degenerated) is set to -9. See dig_calc_begin_angle() and dig_calc_end_angle() for details.

Definition at line 1488 of file dig_structs.h.

Referenced by dig_free_node(), dig_node_alloc_line(), dig_node_line_angle(), dig_Rd_P_node(), and dig_Wr_P_node().

◆ lines

plus_t* P_node::lines

List of connected lines.

Line id can be positive (for lines which starts at the node) or negative (for lines which ends at the node).

Definition at line 1479 of file dig_structs.h.

Referenced by dig_free_node(), dig_node_alloc_line(), dig_node_line_angle(), dig_Rd_P_node(), and dig_Wr_P_node().

◆ n_lines

plus_t P_node::n_lines

Number of attached lines (size of lines, angle)

If 0, then is degenerate node, for snapping ???

Definition at line 1472 of file dig_structs.h.

Referenced by dig_node_alloc_line(), dig_node_line_angle(), dig_Rd_P_node(), and dig_Wr_P_node().

◆ x

◆ y

◆ z

double P_node::z

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