pcb 4.1.1
An interactive printed circuit board layout editor.

potrace_privpath_s Struct Reference

More...

#include <curve.h>

Collaboration diagram for potrace_privpath_s:

Data Fields

int len
point_tpt
int * lon
int x0
int y0
sums_tsums
int m
int * po
privcurve_t curve
privcurve_t ocurve
privcurve_tfcurve

Detailed Description

The path structure is filled in with information about a given path as it is accumulated and passed through the different stages of the Potrace algorithm. Backends only need to read the fcurve and fm fields of this data structure, but debugging backends may read other fields.

Definition at line 72 of file curve.h.


Field Documentation

curve[m]: array of curve elements.

Definition at line 82 of file curve.h.

Referenced by adjust_vertices(), opti_penalty(), opticurve(), and path_free().

final curve: this points to either curve or ocurve.

Warning:
Do not free this separately.

Definition at line 85 of file curve.h.

lon[len]: (i,lon[i]) = longest straight line from i.

Definition at line 76 of file curve.h.

Referenced by bestpolygon(), calc_lon(), and path_free().

Length of optimal polygon.

Definition at line 80 of file curve.h.

Referenced by adjust_vertices(), bestpolygon(), and plotpolygon().

ocurve[om]: array of curve elements.

Definition at line 83 of file curve.h.

Referenced by opticurve(), and path_free().

po[m]: optimal polygon.

Definition at line 81 of file curve.h.

Referenced by adjust_vertices(), bestpolygon(), path_free(), and plotpolygon().

pt[len]: path as extracted from bitmap.

Definition at line 75 of file curve.h.

Referenced by adjust_vertices(), calc_lon(), calc_sums(), findpath(), path_free(), pathlist_to_tree(), penalty3(), plotpolygon(), setbbox_path(), and xor_path().

sums[len+1]: cache for fast summing.

Definition at line 79 of file curve.h.

Referenced by calc_sums(), path_free(), penalty3(), and pointslope().

X-value of origin for sums.

Definition at line 77 of file curve.h.

Referenced by adjust_vertices(), and calc_sums().

Y-value of origin for sums.

Definition at line 78 of file curve.h.

Referenced by adjust_vertices(), and calc_sums().


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