Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
afb2510d
Commit
afb2510d
authored
Nov 30, 2009
by
Alexander Wiebel
Browse files
[CHANGE
#115
] made it possible for the used WMMarchinCubes to use
shared_from_this
parent
34ae4103
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/modules/distanceMap/WMDistanceMap.cpp
src/modules/distanceMap/WMDistanceMap.cpp
+5
-4
No files found.
src/modules/distanceMap/WMDistanceMap.cpp
View file @
afb2510d
...
...
@@ -27,11 +27,11 @@
#include <vector>
#include "WMDistanceMap.h"
#include "../marchingCubes/WMMarchingCubes.h"
#include "../../kernel/WKernel.h"
#include "../../dataHandler/WSubject.h"
#include "../../dataHandler/WGridRegular3D.h"
#include "../marchingCubes/WMMarchingCubes.h"
WMDistanceMap
::
WMDistanceMap
()
:
WModule
()
...
...
@@ -86,13 +86,14 @@ void WMDistanceMap::moduleMain()
dataSet
=
boost
::
shared_dynamic_cast
<
const
WDataSetSingle
>
(
(
*
subject
)[
0
]
);
boost
::
shared_ptr
<
WValueSet
<
float
>
>
distanceMapValueSet
=
createOffset
(
dataSet
);
boost
::
shared_ptr
<
WMMarchingCubes
>
mc
=
boost
::
shared_ptr
<
WMMarchingCubes
>
(
new
WMMarchingCubes
()
);
WMMarchingCubes
mc
;
mc
.
generateSurface
(
dataSet
->
getGrid
(),
distanceMapValueSet
,
.
6
);
mc
->
connectToGui
()
;
mc
->
generateSurface
(
dataSet
->
getGrid
(),
distanceMapValueSet
,
.
4
);
WLogger
::
getLogger
()
->
addLogMessage
(
"Rendering surface ..."
,
"Distance Map"
,
LL_INFO
);
mc
.
renderSurface
();
mc
->
renderSurface
();
WLogger
::
getLogger
()
->
addLogMessage
(
"Done!"
,
"Distance Map"
,
LL_INFO
);
}
...
...
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