Skip to content
Snippets Groups Projects
Commit 6cfbd373 authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

Corrected path. Alternative settings. New TF.

parent dea9eb45
No related branches found
No related tags found
No related merge requests found
...@@ -130,9 +130,9 @@ std::int32_t main(std::int32_t argc, char** argv) ...@@ -130,9 +130,9 @@ std::int32_t main(std::int32_t argc, char** argv)
volume_reader ->SetFileName (settings.data_file_paths[slice].volume .c_str()); volume_reader ->SetFileName (settings.data_file_paths[slice].volume .c_str());
volume_reader ->SetInputArrayToProcess (0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, settings.data_file_paths[slice].scalar.c_str()); volume_reader ->SetInputArrayToProcess (0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, settings.data_file_paths[slice].scalar.c_str());
volume_reader ->Update (); volume_reader ->Update ();
volume_reader ->GetOutput ()->GetPointData()->SetActiveScalars(settings.data_file_paths[slice].volume.c_str()); volume_reader ->GetOutput ()->GetPointData()->SetActiveScalars(settings.data_file_paths[slice].scalar.c_str());
volume_mapper ->SetInputData (volume_reader->GetOutput()); volume_mapper ->SetInputData (volume_reader->GetOutput());
volume_mapper ->SetInputArrayToProcess (0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, settings.data_file_paths[slice].volume.c_str()); volume_mapper ->SetInputArrayToProcess (0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, settings.data_file_paths[slice].scalar.c_str());
volume ->SetMapper (volume_mapper); volume ->SetMapper (volume_mapper);
volume_property->SetScalarOpacity (transfer_function.opacity_function); volume_property->SetScalarOpacity (transfer_function.opacity_function);
volume_property->SetColor (transfer_function.color_function ); volume_property->SetColor (transfer_function.color_function );
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
"loop" : true, "loop" : true,
"image_size" : [1920, 1080], "image_size" : [1920, 1080],
"step_size" : 0.0001, "step_size" : 0.05,
"samples" : 32, "samples" : 32,
"ambient_samples" : 4, "ambient_samples" : 4,
"shadows" : false, "shadows" : true,
"update_rate" : 16.0, "update_rate" : 16.0,
"key_frames" : "key_frames" :
......
[ [
{ {
"ColorSpace" : "Lab", "ColorSpace" : "Lab",
"Name" : "Oxy Red White", "Name" : "Oxy Red Orange White",
"Points" : "Points" :
[ [
0.0, 0.0,
0.0, 0.0,
0.5, 0.5,
0.0, 0.0,
0.0,
0.0,
0.5,
0.0,
0.01,
0.0062500000931322575,
0.5,
0.0,
0.5,
0.10000000149011612,
0.5,
0.0,
1.0, 1.0,
1.0, 1.0,
0.5, 0.5,
...@@ -28,73 +16,73 @@ ...@@ -28,73 +16,73 @@
"RGBPoints" : "RGBPoints" :
[ [
0.0, 0.0,
0.403922, 0.49803900000000001,
0.0,
0.0, 0.0,
0.050979999999999998,
0.062744999999999995, 0.062744999999999995,
0.52596699999999996, 0.60040000000000004,
0.029527000000000001, 0.0,
0.066727999999999996, 0.0,
0.12548999999999999, 0.12548999999999999,
0.64764299999999997, 0.70251399999999997,
0.058962000000000001, 0.00073800000000000005,
0.082475999999999994, 0.00047699999999999999,
0.1882355, 0.1882355,
0.722445, 0.77337900000000004,
0.076677999999999996, 0.095225000000000004,
0.098224000000000006, 0.061498999999999998,
0.2509805, 0.2509805,
0.79718599999999995, 0.84387500000000004,
0.095194000000000001, 0.18986500000000001,
0.114187, 0.12282999999999999,
0.31372549999999999, 0.31372549999999999,
0.86805100000000002, 0.89111899999999999,
0.16409099999999999, 0.29419499999999998,
0.14371400000000001, 0.203537,
0.37647049999999999, 0.37647049999999999,
0.937809, 0.93785499999999999,
0.233541, 0.397924,
0.173933, 0.28313700000000003,
0.43921549999999998, 0.43921549999999998,
0.96143000000000001, 0.963445,
0.32605899999999999, 0.476663,
0.232987, 0.31660100000000002,
0.50196078499999996, 0.50196078499999996,
0.984375, 0.98829699999999998,
0.41814699999999999, 0.55577100000000002,
0.292657, 0.35166500000000001,
0.56470600000000004, 0.56470600000000004,
0.986344, 0.99026499999999995,
0.49688599999999999, 0.64632100000000003,
0.371396, 0.436309,
0.62745099999999998, 0.62745099999999998,
0.98823499999999997, 0.99215699999999996,
0.57570200000000005, 0.73525600000000002,
0.45067299999999999, 0.51964600000000005,
0.69019600000000003, 0.69019600000000003,
0.98823499999999997, 0.99215699999999996,
0.65640900000000002, 0.78446800000000005,
0.54319099999999998, 0.57082699999999997,
0.75294100000000008, 0.75294100000000008,
0.98841999999999997, 0.99224900000000005,
0.73674700000000004, 0.83321800000000001,
0.63589399999999996, 0.62348300000000001,
0.81568649999999998, 0.81568649999999998,
0.99235700000000004, 0.99421800000000005,
0.809581, 0.872587,
0.73234900000000003, 0.70615899999999998,
0.87843150000000003, 0.87843150000000003,
0.99618600000000002, 0.99618600000000002,
0.88069200000000003, 0.91141899999999998,
0.82675900000000002, 0.78818900000000003,
0.94117650000000008, 0.94117649999999997,
0.99815500000000001, 0.99815500000000001,
0.92203000000000002, 0.94094599999999995,
0.88581299999999996, 0.85905399999999998,
1.0, 1.0,
1.0, 1.0,
0.96078399999999997, 0.96862700000000002,
0.94117600000000001 0.92549000000000003
] ]
} }
] ]
......
[
{
"ColorSpace" : "Lab",
"Name" : "Oxy Red Orange White",
"Points" :
[
0.0,
0.0,
0.5,
0.0,
1.0,
1.0,
0.5,
0.0
],
"RGBPoints" :
[
0.0,
0.49803900000000001,
0.0,
0.0,
0.062744999999999995,
0.60040000000000004,
0.0,
0.0,
0.12548999999999999,
0.70251399999999997,
0.00073800000000000005,
0.00047699999999999999,
0.1882355,
0.77337900000000004,
0.095225000000000004,
0.061498999999999998,
0.2509805,
0.84387500000000004,
0.18986500000000001,
0.12282999999999999,
0.31372549999999999,
0.89111899999999999,
0.29419499999999998,
0.203537,
0.37647049999999999,
0.93785499999999999,
0.397924,
0.28313700000000003,
0.43921549999999998,
0.963445,
0.476663,
0.31660100000000002,
0.50196078499999996,
0.98829699999999998,
0.55577100000000002,
0.35166500000000001,
0.56470600000000004,
0.99026499999999995,
0.64632100000000003,
0.436309,
0.62745099999999998,
0.99215699999999996,
0.73525600000000002,
0.51964600000000005,
0.69019600000000003,
0.99215699999999996,
0.78446800000000005,
0.57082699999999997,
0.75294100000000008,
0.99224900000000005,
0.83321800000000001,
0.62348300000000001,
0.81568649999999998,
0.99421800000000005,
0.872587,
0.70615899999999998,
0.87843150000000003,
0.99618600000000002,
0.91141899999999998,
0.78818900000000003,
0.94117649999999997,
0.99815500000000001,
0.94094599999999995,
0.85905399999999998,
1.0,
1.0,
0.96862700000000002,
0.92549000000000003
]
}
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment