Files
ViewDesignEngine/include/vde/foundation/io_ply.h
T

16 lines
440 B
C++
Raw Normal View History

#pragma once
#include "vde/core/point.h"
#include "vde/mesh/halfedge_mesh.h"
#include <string>
namespace vde::foundation {
/// Read PLY file (Stanford Polygon Format)
/// Supports ASCII and binary little-endian, vertex + face elements
mesh::HalfedgeMesh read_ply(const std::string& filepath);
/// Write PLY file (ASCII format)
void write_ply(const std::string& filepath, const mesh::HalfedgeMesh& mesh);
} // namespace vde::foundation