1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2025-04-21 12:27:27 +03:00

cameo/: move conversion between poly2d and "struct path" from area-poly2d.c to poly2d.c

Untested.
This commit is contained in:
Werner Almesberger
2012-06-12 14:58:46 -03:00
parent f48754e067
commit 7b54293bff
4 changed files with 130 additions and 35 deletions

29
cameo/poly2d.h Normal file
View File

@@ -0,0 +1,29 @@
/*
* poly2d.h - Poly2D interface functions
*
* Written 2012 by Werner Almesberger
* Copyright 2012 Werner Almesberger
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef POLY2D_H
#include <poly2d.h>
#include "path.h"
struct p2d *path_to_poly(const struct path *path);
struct p2d *paths_to_polys_z(const struct path *paths,
double zmin, double zmax);
struct p2d *paths_to_polys(const struct path *paths);
struct path *poly_to_path(const struct p2d *poly, double r_tool, double z);
struct path *polys_to_paths(const struct p2d *polys, double r_tool, double z);
#endif /* !POLY2D_H */