Skip to content

Add options to disable some MRMesh features#529

Merged
oitel merged 31 commits intomasterfrom
minimal_build
Sep 23, 2022
Merged

Add options to disable some MRMesh features#529
oitel merged 31 commits intomasterfrom
minimal_build

Conversation

@oitel
Copy link
Contributor

@oitel oitel commented Sep 21, 2022

No description provided.

@oitel oitel requested review from Fedr and Grantim September 21, 2022 07:29
#else
std::string systemToUtf8( const char* system )
{
return system;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return type may be std::string here, but the conversion inside must remain (for Windows)

#include "MRProgressReadWrite.h"
#include <fstream>

#ifndef MRMESH_NO_OPENCTM
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full source of OpenCTM is in MRMesh, what is wrong with it?


return fromCtm( in, colors, callback );
#else
return tl::make_unexpected( "This build has no OpenCTM support" );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably completely remove fromCtm function and the like if MRMESH_NO_OPENCTM?

Comment on lines +152 to +156
#ifndef MRMESH_NO_OPENCTM
MRMESH_API virtual tl::expected<std::future<void>, std::string> serializeModel_( const std::filesystem::path& path ) const override;

MRMESH_API virtual tl::expected<void, std::string> deserializeModel_( const std::filesystem::path& path, ProgressCallback progressCb = {} ) override;
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mb better to export in other format then not export at all

@oitel oitel merged commit c60ab0f into master Sep 23, 2022
@oitel oitel deleted the minimal_build branch September 23, 2022 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants