throwstd::runtime_error("PLY file's data section is wrong size");
}
}
} else {
throwstd::runtime_error("PLY file failed sanity check: iteration count should not begin at 0");
}
} elseif (line.rfind("comment Generated by opensplat")){
throwstd::runtime_error("PLY file does not contain iteration count metadata. You can edit the file to add this metadata manually, by changing \"comment Generated by opensplat\" to \"comment Generated by opensplat at iteration 12345\", changing 12345 to the desired value.");