main
Brett 2024-01-25 14:51:36 -05:00
parent 8f04baeb65
commit 4abc4ef4e4
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,3 @@
Start testing: Jan 25 14:42 EST Start testing: Jan 25 14:48 EST
---------------------------------------------------------- ----------------------------------------------------------
End testing: Jan 25 14:42 EST End testing: Jan 25 14:48 EST

View File

@ -126,11 +126,16 @@ struct node
std::cout << function_name_map[to_underlying(type)] << " "; std::cout << function_name_map[to_underlying(type)] << " ";
else else
{ {
evaluate();
if (type == function_t::SCALAR) if (type == function_t::SCALAR)
{
evaluate();
std::cout << img->get().x() << " "; std::cout << img->get().x() << " ";
else } else if (type == function_t::COLOR)
{
evaluate();
std::cout << '{' << img->get().x() << ", " << img->get().y() << ", " << img->get().z() << "} "; std::cout << '{' << img->get().x() << ", " << img->get().y() << ", " << img->get().z() << "} ";
} else
std::cout << function_name_map[to_underlying(type)] << " ";
} }
for (size_t i = 0; i < argc; i++) for (size_t i = 0; i < argc; i++)
sub_nodes[i]->print_tree(); sub_nodes[i]->print_tree();