MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / fromText

Function fromText

source/MRMesh/MRPointsLoad.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20{
21
22Expected<PointCloud> fromText( const std::filesystem::path& file, const PointsLoadSettings& settings )
23{
24 std::ifstream in( file, std::ifstream::binary );
25 if ( !in )
26 return unexpected( std::string( "Cannot open file for reading " ) + utf8string( file ) );
27
28 return addFileNameInError( fromText( in, settings ), file );
29}
30
31Expected<PointCloud> fromText( std::istream& in, const PointsLoadSettings& settings )
32{

Callers 1

fromPtsFunction · 0.85

Calls 15

utf8stringFunction · 0.85
addFileNameInErrorFunction · 0.85
readCharBufferFunction · 0.85
hasBomFunction · 0.85
reportProgressFunction · 0.85
splitByLinesFunction · 0.85
parseTextCoordinateFunction · 0.85
BitSetParallelForAllFunction · 0.85
subprogressFunction · 0.85
errorMethod · 0.80
noneMethod · 0.80

Tested by

no test coverage detected