Skip to content

Commit

Permalink
Add Precomputed Normal policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Schellenberg3 committed Nov 1, 2023
1 parent ca9c16d commit c59d3fa
Show file tree
Hide file tree
Showing 6 changed files with 575 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/ForgeScan/Policies/Constructor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

#include "ForgeScan/Policies/Heuristic/Occplane.hpp"

#include "ForgeScan/Policies/Precomputed/Normal.hpp"

#include "ForgeScan/Utilities/Strings.hpp"


Expand Down Expand Up @@ -44,6 +46,10 @@ struct Constructor
{
return Occplane::create(reconstruction, parser);
}
if (iequals(policy_type, NormalInfo::type_name))
{
return Normal::create(reconstruction, parser);
}

throw ConstructorError::UnkownType(policy_type, Policy::type_name);
}
Expand All @@ -69,6 +75,11 @@ struct Constructor
/// TODO: Return and implement this.
return "TODO: Write occplane help.";
}
if (iequals(policy_type, NormalInfo::type_name))
{
/// TODO: Return and implement this.
return "TODO: Write normal help.";
}
std::stringstream ss;
ss << Policy::helpMessage() << "\nPossible Policies are: "
<< Sphere::type_name << ", "
Expand Down
Loading

0 comments on commit c59d3fa

Please sign in to comment.