1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2024-12-23 04:13:20 +02:00

slicer/slice.c (add): only output lower end of vertical walls (still needs work)

This commit is contained in:
Werner Almesberger 2015-01-08 00:14:21 -03:00
parent 49abc13699
commit 3f2c6cdc30

View File

@ -79,6 +79,8 @@ static void add(const struct v *a, const struct v *b, const struct v *c)
fprintf(stderr, "zero point\n"); fprintf(stderr, "zero point\n");
return; return;
} }
if (c->z < a->z)
return;
z = get_z(a->z); z = get_z(a->z);
line = alloc_type(struct line); line = alloc_type(struct line);
line->ax = a->x; line->ax = a->x;