Commit afb2510d authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[CHANGE #115] made it possible for the used WMMarchinCubes to use

shared_from_this
parent 34ae4103
......@@ -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 );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment