Skip to content

Instantly share code, notes, and snippets.

zoox::unique_ptr<FRawMesh> ReadPly(ByteBuffer const & buffer)
{
// read the header
constexpr auto header =
"ply\n\n"
"format binary_little_endian 1.0\n"
"comment This contains a Splatted Point Cloud\n"
"element vertex %d\n"
"property float x\n"
"property float y\n"
@johnmcfarlane
johnmcfarlane / yaml_deep_compare.hpp
Created November 2, 2015 22:59
For yaml-cpp: `bool isEqual(YAML::Node const &lhs, YAML::Node const &rhs)`
bool isEqual(YAML::Node const &lhs, YAML::Node const &rhs) {
if (lhs == rhs) {
return true;
}
YAML::NodeType::value lhs_type = lhs.Type();
if (lhs_type != rhs.Type()) {
return false;
}