MeshLib
 
Loading...
Searching...
No Matches
MRIOParsing.h File Reference
#include "MRMeshFwd.h"
#include "MRExpected.h"
#include "MRBuffer.h"
#include <istream>

Go to the source code of this file.

Namespaces

namespace  MR
 

Functions

MRMESH_API std::vector< size_t > MR::splitByLines (const char *data, size_t size)
 
MRMESH_API Expected< Buffer< char > > MR::readCharBuffer (std::istream &in)
 
template<typename T >
VoidOrErrStr MR::parseTextCoordinate (const std::string_view &str, Vector3< T > &v, Vector3< T > *n=nullptr, Color *c=nullptr)
 
template<typename T >
VoidOrErrStr MR::parseObjCoordinate (const std::string_view &str, Vector3< T > &v, Vector3< T > *c=nullptr)
 
template<typename T >
VoidOrErrStr MR::parsePtsCoordinate (const std::string_view &str, Vector3< T > &v, Color &c)
 
MRMESH_API VoidOrErrStr MR::parseFirstNum (const std::string_view &str, int &num)
 
MRMESH_API VoidOrErrStr MR::parsePolygon (const std::string_view &str, VertId *vertId, int *numPoints)
 
template<typename T >
VoidOrErrStr MR::parseAscCoordinate (const std::string_view &str, Vector3< T > &v, Vector3< T > *n=nullptr, Color *c=nullptr)
 
template<typename T >
VoidOrErrStr MR::parseSingleNumber (const std::string_view &str, T &num)