16 lines
440 B
C++
16 lines
440 B
C++
|
|
#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
|