Skip to content
Discussion options

You must be logged in to vote

Hello!
Please note that many of meshlib functions return values are Expected<T>

/// loads mesh from stream in the format detected from given extension-string (`*.ext`);
/// important on Windows: in stream must be open in binary mode
MRMESH_API Expected<Mesh> fromAnySupportedFormat( std::istream& in, const std::string& extension, const MeshLoadSettings& settings = {} );

which is https://github.com/MeshInspector/MeshLib/blob/master/source/MRMesh/MRExpected.h (tl::expected<T> which is a lot like std::expected<T>)

So are valid operations for this type

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Fedr
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants