Skip to content

Commit

Permalink
[processing] missing functions in ActionManager
Browse files Browse the repository at this point in the history
  • Loading branch information
alemuntoni committed Mar 8, 2025
1 parent f1d9997 commit 3ef165d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vclib/processing/include/vclib/processing/functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ std::pair<std::any, MeshTypeId> loadMeshBestFit(
std::any res;
std::string ext = FileInfo::extension(filename);

PolyEdgeMesh mesh = ActionManager::loadMeshAction<PolyEdgeMesh>(ext)->load(
PolyEdgeMesh mesh = ActionManager::loadMeshActions(ext)->load<PolyEdgeMesh>(
filename, parameters, logger);

if (isTriangleMesh(mesh)) {
Expand Down
10 changes: 10 additions & 0 deletions vclib/processing/include/vclib/processing/manager/action_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ class ActionManager
return instance().loadMeshFormats();
}

static ParameterVector loadMeshParameters(FileFormat fmt)
{
return instance().loadMeshParameters(fmt);
}

static std::shared_ptr<MeshIOActions> loadMeshActions(FileFormat fmt)
{
return instance().loadMeshActions(fmt);
Expand All @@ -94,6 +99,11 @@ class ActionManager
return instance().saveMeshFormats();
}

static ParameterVector saveMeshParameters(FileFormat fmt)
{
return instance().saveMeshParameters(fmt);
}

static std::shared_ptr<MeshIOActions> saveMeshActions(FileFormat fmt)
{
return instance().saveMeshActions(fmt);
Expand Down

0 comments on commit 3ef165d

Please sign in to comment.