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

ptrude/: changed extrusion from xy path to xz path; variable number of faces

This commit is contained in:
Werner Almesberger
2011-07-31 09:57:51 -03:00
parent 7ef626988c
commit ee634458dc
3 changed files with 83 additions and 74 deletions

26
ptrude/extrude.h Normal file
View File

@@ -0,0 +1,26 @@
/*
* extrude.h - Perform the extrusion
*
* Written 2011 by Werner Almesberger
* Copyright 2011 by 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 EXTRUDE_H
#define EXTRUDE_H
struct point {
double x, y, z;
};
void extrude(const struct path *path, const struct path *shape,
double r, double d,
void (*face)(void *data, struct point a, struct point b, struct point c),
void *data);
#endif /* !EXTRUDE_H */