2015-01-08 01:38:40 +02:00
|
|
|
/*
|
|
|
|
* stl.h - STL file reading
|
|
|
|
*
|
2015-01-08 02:26:50 +02:00
|
|
|
* Written 2014-2015 by Werner Almesberger
|
|
|
|
* Copyright 2014-2015 by Werner Almesberger
|
2015-01-08 01:38:40 +02:00
|
|
|
*
|
|
|
|
* 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 STL_H
|
|
|
|
#define STL_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
2015-01-08 02:26:50 +02:00
|
|
|
struct v {
|
|
|
|
float x, y, z;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
void stl_load_file(FILE *file, void (*facet)(struct v f[3]));
|
|
|
|
void stl_load(const char *name, void (*facet)(struct v f[3]));
|
2015-01-08 01:38:40 +02:00
|
|
|
|
|
|
|
#endif /* !STL_H */
|