pcb 4.1.1
An interactive printed circuit board layout editor.

decompose.h File Reference

Header file for auxiliary bitmap manipulations. More...

#include "potracelib.h"
Include dependency graph for decompose.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int bm_to_pathlist (const potrace_bitmap_t *bm, path_t **plistp, const potrace_param_t *param)
 Decompose the given bitmap into paths.

Detailed Description

Header file for auxiliary bitmap manipulations.


Copyright.


PCB, interactive printed circuit board design

Copyright (C) 2001-2007 Peter Selinger.

This file is part of Potrace. It is free software and it is covered by the GNU General Public License. See the file COPYING for details.

Definition in file decompose.h.


Function Documentation

int bm_to_pathlist ( const potrace_bitmap_t bm,
path_t **  plistp,
const potrace_param_t param 
)

Decompose the given bitmap into paths.

Returns a linked list of path_t objects with the fields len, pt, area, sign filled in.

Returns:
0 on success with plistp set, or -1 on error with errno set.

Definition at line 578 of file decompose.c.

References potrace_path_s::area, bm_clearexcess(), bm_dup(), bm_free(), BM_GET, error, findnext(), findpath(), potrace_bitmap_s::h, list_forall_unlink, list_insert_beforehook, path_free(), pathlist_to_tree(), sign, potrace_param_s::turdsize, potrace_param_s::turnpolicy, x, xor_path(), and y.

Referenced by gcode_do_export().

Here is the call graph for this function: