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

Function fromPly

source/MRMesh/MRPointsLoad.cpp:267–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267Expected<PointCloud> fromPly( const std::filesystem::path& file, const PointsLoadSettings& settings )
268{
269 std::ifstream in( file, std::ifstream::binary );
270 if ( !in )
271 return unexpected( std::string( "Cannot open file for reading " ) + utf8string( file ) );
272
273 return addFileNameInError( fromPly( in, settings ), file );
274}
275
276Expected<PointCloud> fromPly( std::istream& in, const PointsLoadSettings& settings )
277{

Callers

nothing calls this directly

Calls 7

utf8stringFunction · 0.85
addFileNameInErrorFunction · 0.85
errorMethod · 0.80
unexpectedFunction · 0.70
loadPlyFunction · 0.70
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected