Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
ITAPropagationPathSim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Institute of Technical Acoustics (ITA)
ITAPropagationPathSim
Commits
a36a23c3
Commit
a36a23c3
authored
Jan 21, 2019
by
Armin Erraji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small changes in CombinatedModelTest and inverting of faces in SimpleRoom.skp.
parent
a763c07d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
src/ITAPropagationPathSim/CombinatedModel/PropagationEngine.cpp
...APropagationPathSim/CombinatedModel/PropagationEngine.cpp
+3
-3
tests/CombinatedModel/CombinatedModelTest.cpp
tests/CombinatedModel/CombinatedModelTest.cpp
+7
-2
tests/CombinatedModel/SketchUpFiles/SimpleRoom.skp
tests/CombinatedModel/SketchUpFiles/SimpleRoom.skp
+0
-0
No files found.
src/ITAPropagationPathSim/CombinatedModel/PropagationEngine.cpp
View file @
a36a23c3
...
...
@@ -84,7 +84,7 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::ConstructPropagationPa
if
(
pPropagationList
==
nullptr
)
iCounter
++
;
}
std
::
cout
<<
iCounter
<<
" times nullptr after aperture points calced
\n
"
;
std
::
cout
<<
iCounter
<<
" times nullptr after aperture points calc
ulat
ed
\n
"
;
//Thereafter, with the constructed aperture points, construct the image apertures as secondary image sources
//for the faces after each edge
...
...
@@ -96,7 +96,7 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::ConstructPropagationPa
if
(
pPropagationList
==
nullptr
)
iCounter
++
;
}
std
::
cout
<<
iCounter
<<
" times nullptr after image aperture calced
\n
"
;
std
::
cout
<<
iCounter
<<
" times nullptr after image aperture calc
ulat
ed
\n
"
;
//Construct the intersection points of the reflections
Reflection
::
ConstructPointsOfReflection
(
m_vpPropagationLists
,
m_pSensor
);
...
...
@@ -107,7 +107,7 @@ void ITAPropagationPathSim::CombinatedModel::CPathEngine::ConstructPropagationPa
if
(
pPropagationList
==
nullptr
)
iCounter
++
;
}
std
::
cout
<<
iCounter
<<
" times nullptr after points of reflection calced
\n
"
;
std
::
cout
<<
iCounter
<<
" times nullptr after points of reflection calc
ulat
ed
\n
"
;
//Convert pPropagationShapes to pPropagationAnchors
ConvertShapeListsToPropagationPaths
(
oPaths
);
...
...
tests/CombinatedModel/CombinatedModelTest.cpp
View file @
a36a23c3
...
...
@@ -40,6 +40,7 @@ int main( int iNumInArgs, char* pcInArgs[] )
//string sInFile = "NonSimpleRoom - Outside.skp";
string
sInFile
=
"SimpleUrbanEnvironment.skp"
;
sInFile
=
"SimpleRoom.skp"
;
if
(
iNumInArgs
>
1
)
sInFile
=
string
(
pcInArgs
[
1
]
);
...
...
@@ -107,15 +108,19 @@ int main( int iNumInArgs, char* pcInArgs[] )
pMeshModelList
->
FilterVisiblePaths
(
oPathListAll
,
oPathListVisible
);
//Add emitter and sensor to visualization
oGeoModel
.
AddEmitterVisualization
(
*
pEmitter
,
"Emitter A"
);
oGeoModel
.
AddSensorVisualization
(
*
pSensor
,
"Sensor A"
);
for
(
auto
path
:
oPathListVisible
)
{
oGeoModel
.
AddPropagationPathVisualization
(
path
,
"Propagation_Paths"
);
string
sPathName
=
"Propagation_Paths_order_"
+
std
::
to_string
((
long
)
path
.
size
()
-
2
);
oGeoModel
.
AddPropagationPathVisualization
(
path
,
sPathName
);
}
oGeoModel
.
Store
(
sSubFolder
+
"
SimpleImage
ModelTest_"
+
sInFile
);
oGeoModel
.
Store
(
sSubFolder
+
"
Combinated
ModelTest_"
+
sInFile
);
return
0
;
}
tests/CombinatedModel/SketchUpFiles/SimpleRoom.skp
View file @
a36a23c3
B
SketchUp Model{18.0.16975}联뵾䭋煦鮻莚ÿ퉱居噃牥楳湯慍ー䌉䄀爀挀䌀甀爀瘀攀̀䌊䄀琀琀爀椀戀甀琀攀䌓䄀琀琀爀椀戀甀琀攀䌀漀渀琀愀椀渀攀爀䌏䄀琀琀爀椀戀甀琀攀一愀洀攀搀Ā䌐䈀愀挀欀最爀漀甀渀搀䤀洀愀最攀䌇䌀愀洀攀爀愀Ԁ䌊䌀漀洀瀀漀渀攀渀琀䌒䌀漀洀瀀漀渀攀渀琀䈀攀栀愀瘀椀漀爀Ԁ䌔䌀漀洀瀀漀渀攀渀琀䐀攀昀椀渀椀琀椀漀渀䌒䌀漀洀瀀漀渀攀渀琀䤀渀猀琀愀渀挀攀䌕䌀漀渀猀琀爀甀挀琀椀漀渀䜀攀漀洀攀琀爀礀䌑䌀漀渀猀琀爀甀挀琀椀漀渀䰀椀渀攀Ā䌒䌀漀渀猀琀爀甀挀琀椀漀渀倀漀椀渀琀䌆䌀甀爀瘀攀Ѐ䌏䐀攀昀椀渀椀琀椀漀渀䰀椀猀琀䌄䐀椀戀̀䌊䐀椀洀攀渀猀椀漀渀Ā䌐䐀椀洀攀渀猀椀漀渀䰀椀渀攀愀爀䌐䐀椀洀攀渀猀椀漀渀刀愀搀椀愀氀Ȁ䌏䐀椀洀攀渀猀椀漀渀匀琀礀氀攀Ѐ䌏䐀爀愀眀椀渀最䔀氀攀洀攀渀琀ऀ䌅䔀搀最攀Ȁ䌈䔀搀最攀唀猀攀Ā䌇䔀渀琀椀琀礀Ԁ䌅䘀愀挀攀̀䌒䘀愀挀攀吀攀砀琀甀爀攀䌀漀漀爀搀猀Ѐ䌌䘀漀渀琀䴀愀渀愀最攀爀䌆䜀爀漀甀瀀Ā䌆䤀洀愀最攀Ā䌆䰀愀礀攀爀Ȁ䌍䰀愀礀攀爀䴀愀渀愀最攀爀Ѐ䌅䰀漀漀瀀Ā䌉䴀愀琀攀爀椀愀氀ఀ䌐䴀愀琀攀爀椀愀氀䴀愀渀愀最攀爀Ѐ䌉倀愀最攀䰀椀猀琀Ā䌋倀漀氀礀氀椀渀攀㌀搀䌍刀攀氀愀琀椀漀渀猀栀椀瀀䌐刀攀氀愀琀椀漀渀猀栀椀瀀䴀愀瀀䌑刀攀渀搀攀爀椀渀最伀瀀琀椀漀渀猀─䌋匀挀栀攀洀愀䘀椀氀攀Ā䌑匀挀栀攀洀愀䘀椀氀琀攀爀䘀椀氀攀䌎匀挀栀攀洀愀娀椀瀀䘀椀氀攀Ā䌍匀攀挀琀椀漀渀倀氀愀渀攀̀䌋匀栀愀搀漀眀䤀渀昀漀܀䌇匀欀䘀漀渀琀Ā䌉匀欀攀琀挀栀䌀匀䌎匀欀攀琀挀栀唀瀀䴀漀搀攀氀ᰀ䌍匀欀攀琀挀栀唀瀀倀愀最攀Ā䌉匀欀瀀匀琀礀氀攀Ā䌐匀欀瀀匀琀礀氀攀䴀愀渀愀最攀爀Ȁ䌅吀攀砀琀ऀ䌊吀攀砀琀匀琀礀氀攀Ԁ䌈吀攀砀琀甀爀攀䌊吀栀甀洀戀渀愀椀氀Ā䌇嘀攀爀琀攀砀䌉嘀椀攀眀倀愀最攀ఀ䌊圀愀琀攀爀洀愀爀欀Ā䌑圀愀琀攀爀洀愀爀欀䴀愀渀愀最攀爀Ȁ䔒渀搀ⴀ伀昀ⴀ嘀攀爀猀椀漀渀ⴀ䴀愀瀀Ā뀀Ȁ+ϿЀ䌀楄Ѣ嘀褀乐േᨊ
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment