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
d4dddf05
Commit
d4dddf05
authored
Jan 10, 2019
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applying major changes in directivity and material managers
parent
b4876295
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
src/ITAPropagationPathSim/ConvexDiffraction/EngineImpl.cpp
src/ITAPropagationPathSim/ConvexDiffraction/EngineImpl.cpp
+3
-3
tests/ImageModel/SimpleImageModelTest.cpp
tests/ImageModel/SimpleImageModelTest.cpp
+2
-2
tests/ImageModel/SimpleUrbanImageModelTest.cpp
tests/ImageModel/SimpleUrbanImageModelTest.cpp
+2
-2
No files found.
src/ITAPropagationPathSim/ConvexDiffraction/EngineImpl.cpp
View file @
d4dddf05
...
...
@@ -689,7 +689,7 @@ void CEngineImpl::GetCombinedDiffractionGradientVisualization( ITAGeo::Halfedge:
int
iFromReceiverOrder
=
pVisMesh
->
property
(
tDiffractionFaceProp
,
hFace
).
iFromReceiverDiffractionOrder
;
int
iCombinedOrder
=
iFromSourceOrder
+
iFromReceiverOrder
;
auto
pVisMaterial
=
std
::
make_shared
<
ITAGeo
::
CVisualizationMaterial
>
();
auto
pVisMaterial
=
std
::
make_shared
<
ITAGeo
::
Material
::
CVisualizationMaterial
>
();
if
(
iFromSourceOrder
==
DIFFRACTION_ORDER_INF
||
iFromReceiverOrder
==
DIFFRACTION_ORDER_INF
)
{
pVisMaterial
->
SetBlack
();
// dark side
...
...
@@ -730,7 +730,7 @@ void CEngineImpl::GetFromSourceDiffractionGradientVisualization(Halfedge::CMeshM
pVisMesh
->
property
(
tDiffractionFaceProp
,
hFace
)
=
m_pGeoModel
->
GetMesh
()
->
pTopLevelMesh
->
property
(
tDiffractionFaceProp
,
hFace
);
int
iFromSourceOrder
=
pVisMesh
->
property
(
tDiffractionFaceProp
,
hFace
).
iFromSourceDiffractionOrder
;
auto
pVisMaterial
=
std
::
make_shared
<
ITAGeo
::
CVisualizationMaterial
>
();
auto
pVisMaterial
=
std
::
make_shared
<
ITAGeo
::
Material
::
CVisualizationMaterial
>
();
if
(
iFromSourceOrder
==
DIFFRACTION_ORDER_INF
)
{
pVisMaterial
->
SetWhite
();
...
...
@@ -764,7 +764,7 @@ void CEngineImpl::GetFromTargetDiffractionGradientVisualization(Halfedge::CMeshM
pVisMesh
->
property
(
tDiffractionFaceProp
,
hFace
)
=
m_pGeoModel
->
GetMesh
()
->
pTopLevelMesh
->
property
(
tDiffractionFaceProp
,
hFace
);
int
iFromReceiverOrder
=
pVisMesh
->
property
(
tDiffractionFaceProp
,
hFace
).
iFromReceiverDiffractionOrder
;
auto
pVisMaterial
=
std
::
make_shared
<
ITAGeo
::
CVisualizationMaterial
>
();
auto
pVisMaterial
=
std
::
make_shared
<
ITAGeo
::
Material
::
CVisualizationMaterial
>
();
if
(
iFromReceiverOrder
==
DIFFRACTION_ORDER_INF
)
{
pVisMaterial
->
SetWhite
();
...
...
tests/ImageModel/SimpleImageModelTest.cpp
View file @
d4dddf05
...
...
@@ -43,10 +43,10 @@ int main( int iNumInArgs, char* pcInArgs[] )
if
(
iNumInArgs
>
1
)
sInFile
=
string
(
pcInArgs
[
1
]
);
CMaterialDirectory
oMaterialDir
(
"./"
);
auto
pMaterialDirectory
=
std
::
make_shared
<
Material
::
CDirectory
>
(
"./"
);
SketchUp
::
CModel
oGeoModel
;
oGeoModel
.
SetMaterialManager
(
&
oMaterialDir
);
oGeoModel
.
SetMaterialManager
(
pMaterialDirectory
);
if
(
oGeoModel
.
Load
(
sSubFolder
+
sInFile
)
)
{
cout
<<
"Succesffully loaded '"
<<
sInFile
<<
"'"
<<
endl
;
...
...
tests/ImageModel/SimpleUrbanImageModelTest.cpp
View file @
d4dddf05
...
...
@@ -48,12 +48,12 @@ int main( int iNumInArgs, char* pcInArgs[] )
if
(
iNumInArgs
>
1
)
sInFile
=
string
(
pcInArgs
[
1
]
);
CMaterialDirectory
oMaterialDir
(
"./"
);
auto
pMaterialDirectory
=
std
::
make_shared
<
Material
::
CDirectory
>
(
"./"
);
SketchUp
::
CModel
oGeoModel
;
ITAGeo
::
Urban
::
CModel
oUrbanModel
;
oUrbanModel
.
SetMaterialManager
(
&
oMaterialDir
);
oUrbanModel
.
SetMaterialManager
(
pMaterialDirectory
);
if
(
oUrbanModel
.
Load
(
sSUFolder
+
sInFile
+
".skp"
))
...
...
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