Cleaning up, scene 5 & 6 ready

parent 54b01563
......@@ -14,7 +14,7 @@
*
* ----------------------------------------------------------------
*
* Tests the image (source) model algorithm.
* GRAS scene 5
*
*/
......@@ -135,6 +135,8 @@ int main( int iNumInArgs, char* pcInArgs[] )
{
sw.start();
cout << " #### " << scene.sName << " #### " << endl;
auto pPathEngine = make_shared<CombinedModel::CPathEngine>();
cout << "Calculation time initialization path engine: " << timeToString( sw.stop() ) << endl;
......
%% Load
json_file_path = 'GRAS_scene5_propagation_paths.json';
txt = fileread( json_file_path );
json_content = jsondecode( txt );
N = numel( json_content.propagation_paths );
fprintf( 'Imported %i propagation paths\n', N )
%%
pps = json_content.propagation_paths;
for n = 1 : numel( pps )
path = pps( n );
anchors = path.propagation_anchors;
for a = 1 : numel( anchors )
anchor = anchors{ a };
switch( anchor.class )
case 'specular_reflection'
case 'outer_edge_diffraction'
ita_diffraction_utd(
end
end
end
{
"class" : "PropagationPathList",
"identifier" : "",
"propagation_paths" : [
{
"class" : "propagation_path",
"identifier" : "",
"propagation_anchors" : [
{
"name" : "LS02_Genelec8020c",
"orientation" : [
0,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "source",
"interaction_point" : [
2.487,
2.985,
2,
1
]
},
{
"face_normal" : [
0,
0,
1,
1
],
"class" : "propagation_anchor",
"anchor_type" : "specular_reflection",
"interaction_point" : [
3.961277,
2.984994,
0,
1
]
},
{
"vertex_start" : [
5.487153,
5.360212,
2.07,
1
],
"vertex_end" : [
5.487153,
0.610212,
2.07,
1
],
"main_wedge_face_normal" : [
0,
0,
1,
1
],
"opposite_wedge_face_normal" : [
-1,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "outer_edge_diffraction",
"interaction_point" : [
5.487153,
2.984989,
2.07,
1
]
},
{
"vertex_start" : [
5.512153,
0.610212,
2.07,
1
],
"vertex_end" : [
5.512153,
5.360212,
2.07,
1
],
"main_wedge_face_normal" : [
0,
0,
1,
1
],
"opposite_wedge_face_normal" : [
1,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "outer_edge_diffraction",
"interaction_point" : [
5.512153,
2.984989,
2.07,
1
]
},
{
"name" : "MP01_FABIAN",
"orientation" : [
0,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "receiver",
"interaction_point" : [
8.512,
2.985,
1.235,
1
]
}
]
},
{
"class" : "propagation_path",
"identifier" : "",
"propagation_anchors" : [
{
"name" : "LS02_Genelec8020c",
"orientation" : [
0,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "source",
"interaction_point" : [
2.487,
2.985,
2,
1
]
},
{
"face_normal" : [
0,
0,
1,
1
],
"class" : "propagation_anchor",
"anchor_type" : "specular_reflection",
"interaction_point" : [
3.961277,
2.984992,
0,
1
]
},
{
"vertex_start" : [
5.487153,
5.360212,
2.07,
1
],
"vertex_end" : [
5.487153,
0.610212,
2.07,
1
],
"main_wedge_face_normal" : [
0,
0,
1,
1
],
"opposite_wedge_face_normal" : [
-1,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "outer_edge_diffraction",
"interaction_point" : [
5.487153,
2.984983,
2.07,
1
]
},
{
"vertex_start" : [
5.512153,
0.610212,
2.07,
1
],
"vertex_end" : [
5.512153,
5.360212,
2.07,
1
],
"main_wedge_face_normal" : [
0,
0,
1,
1
],
"opposite_wedge_face_normal" : [
1,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "outer_edge_diffraction",
"interaction_point" : [
5.512153,
2.984983,
2.07,
1
]
},
{
"face_normal" : [
0,
0,
1,
1
],
"class" : "propagation_anchor",
"anchor_type" : "specular_reflection",
"interaction_point" : [
7.391028,
2.984994,
0,
1
]
},
{
"name" : "MP01_FABIAN",
"orientation" : [
0,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "receiver",
"interaction_point" : [
8.512,
2.985,
1.235,
1
]
}
]
},
{
"class" : "propagation_path",
"identifier" : "",
"propagation_anchors" : [
{
"name" : "LS02_Genelec8020c",
"orientation" : [
0,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "source",
"interaction_point" : [
2.487,
2.985,
2,
1
]
},
{
"vertex_start" : [
5.487153,
5.360212,
2.07,
1
],
"vertex_end" : [
5.487153,
0.610212,
2.07,
1
],
"main_wedge_face_normal" : [
0,
0,
1,
1
],
"opposite_wedge_face_normal" : [
-1,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "outer_edge_diffraction",
"interaction_point" : [
5.487153,
2.985005,
2.07,
1
]
},
{
"vertex_start" : [
5.512153,
0.610212,
2.07,
1
],
"vertex_end" : [
5.512153,
5.360212,
2.07,
1
],
"main_wedge_face_normal" : [
0,
0,
1,
1
],
"opposite_wedge_face_normal" : [
1,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "outer_edge_diffraction",
"interaction_point" : [
5.512154,
2.985005,
2.07,
1
]
},
{
"name" : "MP01_FABIAN",
"orientation" : [
0,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "receiver",
"interaction_point" : [
8.512,
2.985,
1.235,
1
]
}
]
},
{
"class" : "propagation_path",
"identifier" : "",
"propagation_anchors" : [
{
"name" : "LS02_Genelec8020c",
"orientation" : [
0,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "source",
"interaction_point" : [
2.487,
2.985,
2,
1
]
},
{
"vertex_start" : [
5.487153,
5.360212,
2.07,
1
],
"vertex_end" : [
5.487153,
0.610212,
2.07,
1
],
"main_wedge_face_normal" : [
0,
0,
1,
1
],
"opposite_wedge_face_normal" : [
-1,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "outer_edge_diffraction",
"interaction_point" : [
5.487153,
2.985004,
2.07,
1
]
},
{
"vertex_start" : [
5.512153,
0.610212,
2.07,
1
],
"vertex_end" : [
5.512153,
5.360212,
2.07,
1
],
"main_wedge_face_normal" : [
0,
0,
1,
1
],
"opposite_wedge_face_normal" : [
1,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "outer_edge_diffraction",
"interaction_point" : [
5.512153,
2.985004,
2.07,
1
]
},
{
"face_normal" : [
0,
0,
1,
1
],
"class" : "propagation_anchor",
"anchor_type" : "specular_reflection",
"interaction_point" : [
7.391028,
2.985001,
0,
1
]
},
{
"name" : "MP01_FABIAN",
"orientation" : [
0,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "receiver",
"interaction_point" : [
8.512,
2.985,
1.235,
1
]
}
]
},
{
"class" : "propagation_path",
"identifier" : "",
"propagation_anchors" : [
{
"name" : "LS02_Genelec8020c",
"orientation" : [
0,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "source",
"interaction_point" : [
2.487,
2.985,
2,
1
]
},
{
"vertex_start" : [
5.487153,
0.610212,
2.07,
1
],
"vertex_end" : [
5.487153,
0.610212,
0,
1
],
"main_wedge_face_normal" : [
0,
-1,
0,
1
],
"opposite_wedge_face_normal" : [
-1,
0,
0,
1
],
"class" : "propagation_anchor",
"anchor_type" : "outer_edge_diffraction",
"interaction_point" : [
5.487153,
0.610212,
1.618731,
1
]
},