mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2025-01-03 19:40:15 +02:00
poly2d/f2d_tri.c (f2d_free_all): free list of faces
This commit is contained in:
parent
d0b5696a07
commit
ca271dd313
@ -11,6 +11,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "poly2d.h"
|
#include "poly2d.h"
|
||||||
#include "p2d_hsort.h"
|
#include "p2d_hsort.h"
|
||||||
|
|
||||||
@ -40,3 +42,15 @@ struct f2d *f2d_tri(const struct p2d *p)
|
|||||||
p2d_hier_free(t, 0);
|
p2d_hier_free(t, 0);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void f2d_free_all(struct f2d *f)
|
||||||
|
{
|
||||||
|
struct f2d *next;
|
||||||
|
|
||||||
|
while (f) {
|
||||||
|
next = f->next;
|
||||||
|
free(f);
|
||||||
|
f = next;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -171,6 +171,7 @@ void f2d_tri_holes_append(const struct p2d *p, const struct p2d *holes,
|
|||||||
struct f2d ***last);
|
struct f2d ***last);
|
||||||
struct f2d *f2d_tri_holes(const struct p2d *p, const struct p2d *holes);
|
struct f2d *f2d_tri_holes(const struct p2d *p, const struct p2d *holes);
|
||||||
struct f2d *f2d_tri(const struct p2d *p);
|
struct f2d *f2d_tri(const struct p2d *p);
|
||||||
|
void f2d_free_all(struct f2d *f);
|
||||||
|
|
||||||
struct p2d *p2d_read_gnuplot(FILE *file);
|
struct p2d *p2d_read_gnuplot(FILE *file);
|
||||||
int p2d_write_gnuplot(FILE *file, const struct p2d *p);
|
int p2d_write_gnuplot(FILE *file, const struct p2d *p);
|
||||||
|
Loading…
Reference in New Issue
Block a user