28 template <
typename Po
intIt>
34 begin->WriteDetection(out);
39 template <
typename Po
intIt>
44 std::ofstream out(path);
59 "element vertex " << std::to_string(
static_cast<size_t>(std::distance(
begin,
end))) <<
"\n";
61 begin->WritePlyHeaderInfo(out);
63 out <<
"\nend_header\n";
65 out << std::fixed << std::setprecision(4u);
auto end() const noexcept
auto begin() const noexcept
名称范围迭代支持
#define DEBUG_ASSERT(predicate)
static void ValidateFilePath(std::string &filepath, const std::string &default_extension="")
在创建文件之前验证路径的方便函数。
static void WriteHeader(std::ostream &out, PointIt begin, PointIt end)
static std::string SaveToDisk(std::string path, PointIt begin, PointIt end)
static void Dump(std::ostream &out, PointIt begin, PointIt end)