#pragma once #include #include #include "vde/foundation/math_types.h" namespace vde::foundation { struct StlTriangle { Vector3D normal; Point3D v0, v1, v2; }; /// Auto-detect format (binary or ASCII) and read. std::vector read_stl(const std::string& filepath); /// Always write binary STL. void write_stl(const std::string& filepath, const std::vector& tris); /// Write ASCII STL (human-readable). void write_stl_ascii(const std::string& filepath, const std::vector& tris); } // namespace vde::foundation