Function squiggles::deserialize_pathfinder_path

Function Documentation

std::optional<std::vector<ProfilePoint>> squiggles::deserialize_pathfinder_path(std::istream &left, std::istream &right)

Converts CSV data from the Pathfinder library’s format to a Squiggles path.

NOTE: this code is copied almost exactly from Jaci Brunning’s Pathfinder library. The source for this code can be found at: https://github.com/JaciBrunning/Pathfinder/blob/master/Pathfinder-Core/src/io.c