17 lines
368 B
C++
17 lines
368 B
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
#include "vde/foundation/math_types.h"
|
|
|
|
namespace vde::foundation {
|
|
|
|
struct StlTriangle {
|
|
Vector3D normal;
|
|
Point3D v0, v1, v2;
|
|
};
|
|
|
|
std::vector<StlTriangle> read_stl(const std::string& filepath);
|
|
void write_stl(const std::string& filepath, const std::vector<StlTriangle>& tris);
|
|
|
|
} // namespace vde::foundation
|