<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-07-01 9:09 GMT+02:00 Remi Charrier <span dir="ltr"><<a href="mailto:remi.charrier@gmail.com" target="_blank">remi.charrier@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear all,<div>Thanks for your answer, it solved my problem. In fact, I did not included the vtkFiltersModeling in my CMakeList.txt. Now that it is done it solved my problem. Anyway I will try the script you mentioned as it is not always obvious which module to include ... </div></div></blockquote><div><br></div><div>Glad it worked out.<br><br></div><div>Elvis<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thanks again for such prompt answers. Please find my CMakeList.txt after this message. </div><div><br></div><div><div>CMAKE_MINIMUM_REQUIRED(VERSION 2.8.5 FATAL_ERROR)</div><div>if(POLICY CMP0020)</div><div>  cmake_policy(SET CMP0020 NEW)</div><div>endif()</div><div>if(POLICY CMP0025)</div><div>  cmake_policy(SET CMP0025 NEW) # CMake 3.0</div><div>endif()</div><div>if (POLICY CMP0043)</div><div>  cmake_policy(SET CMP0043 NEW) # CMake 3.0</div><div>endif()</div><div>if(POLICY CMP0053)</div><div>  cmake_policy(SET CMP0053 NEW) # CMake 3.1</div><div>endif()</div><div><br></div><div>#############################################</div><div># PROJECT: Reagix#</div><div>#############################################</div><div>PROJECT(Reagix)</div><div><br></div><div><br></div><div># Find includes in corresponding build directories</div><div>set(CMAKE_INCLUDE_CURRENT_DIR ON)</div><div># Instruct CMake to run moc automatically when needed.</div><div>set(CMAKE_AUTOMOC ON)</div><div><br></div><div><br></div><div>#####################################</div><div># FIND PACKAGES IF BUILDING OUTSIDE #</div><div>################################-line 20#####</div><div><br></div><div>find_package (VTK COMPONENTS</div><div>  vtkCommonCore</div><div>  vtkFiltersSources</div><div>  vtkInteractionStyle</div><div>  vtkRenderingCore</div><div>  vtkIOCore</div><div>  vtkIOGeometry</div><div>  vtkIOPLY</div><div>  vtkRenderingCore</div><div>#  vtkRenderingVolume</div><div>  vtkFiltersModeling</div><div>  vtkRenderingVolumeOpenGL2</div><div>  vtkRenderingOpenGL2${VTK_RENDERING_BACKEND}</div><div>  vtkRenderingVolume${VTK_RENDERING_BACKEND}</div><div><br></div><div><br></div><div>    </div><div>#for qt app</div><div>  vtkGUISupportQt</div><div>  vtkIOImage</div><div>)</div><div><br></div><div><br></div><div><br></div><div>include ( ${VTK_USE_FILE} )</div><div><br></div><div>include_Directories (${CMAKE_CURRENT_BINARY_DIR})</div><div><br></div><div>#############################################</div><div># SOURCE FILE SPECIFICATION                 #</div><div>#############################################</div><div><br></div><div> </div><div>SET(LOGIC_SOURCE</div><div>    main.cxx</div><div>    RemiRenderer.cxx </div><div>    LoadHeartModel.cxx</div><div>    LoadMR.cxx</div><div>    CreateCatheterModel.cxx</div><div>    ReagixApp.cxx</div><div>    ReagixQtApp.cxx </div><div>    DataCenter.cxx</div><div>#    RemiSTLReader.cxx.</div><div>   # vtkSTLReader.cxx</div><div>)</div><div><br></div><div>#SET(LOGIC_QT_SOURCE</div><div> # QHello.cxx)</div><div><br></div><div><br></div><div># The headers for the Logic code</div><div>SET(LOGIC_HEADERS   </div><div>   ReagixQtApp.h</div><div>    RemiRenderer.h</div><div>    LoadHeartModel.h</div><div>    LoadMR.h</div><div>    DataCenter.h</div><div>    CreateCatheterModel.h</div><div>    ReagixApp.h</div><div>)</div><div><br></div><div><br></div><div>find_package(Qt5 COMPONENTS Core REQUIRED QUIET)</div><div><br></div><div><br></div><div>#############################################</div><div># LIBRARIES AND EXTERNAL CODE               #</div><div>#############################################</div><div><br></div><div>ADD_EXECUTABLE(Reagix ${LOGIC_HEADERS} ${LOGIC_SOURCE})</div><div>qt5_use_modules(Reagix Core Gui Widgets)</div><div>TARGET_LINK_LIBRARIES(Reagix  ${VTK_LIBRARIES} )</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-07-01 9:01 GMT+02:00 Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span>2016-06-30 17:32 GMT+02:00 Remi Charrier <span dir="ltr"><<a href="mailto:remi.charrier@gmail.com" target="_blank">remi.charrier@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I would like to try the following filters: </div><div><div>"vtkButterflySubdivisionFilter.h"</div><div>"vtkLoopSubdivisionFilter.h"</div><div>"vtkLinearSubdivisionFilter.h"</div></div><div>in order to increase the number of cells in my 3D models. <br></div><div><br></div><div>I have the source files but they didn't compile as I probably did not include them in the CMake process. However I still don't understand where to find to which vtkmodule a specific file is linked. I thought it was based on the folders name but in this case, the path is : </div><div>VTK-7.0.0\Filters\Modeling</div><div>in the cmakelist.txt of this folder I find that it may be associated with vtkFiltersModeling </div><div>But I don't have this module or entry in the Cmake window. </div><div>Any help would be welcome. </div><div>Thanks in advance</div></div></blockquote><div><br></div></span><div>David Gobbi recently pointed me at a handy script included in the VTK source. You can run it on your files/directories an it will try to determine which modules you need besed on the headers you include.<br><br></div><div>Running it on just those three headers, I get:<br><br>estan@newton:~/orexplore/VTK$ cat test.cpp <br>#include <vtkButterflySubdivisionFilter.h><br>#include <vtkLoopSubdivisionFilter.h><br>#include <vtkLinearSubdivisionFilter.h><br>estan@newton:~/orexplore/VTK$ Utilities/Maintenance/WhatModulesVTK.py . test.cpp <br>Modules and their dependencies:<br>find_package(VTK COMPONENTS<br>  vtkCommonComputationalGeometry<br>  vtkCommonCore<br>  vtkCommonDataModel<br>  vtkCommonExecutionModel<br>  vtkCommonMath<br>  vtkCommonMisc<br>  vtkCommonSystem<br>  vtkCommonTransforms<br>  vtkFiltersCore<br>  vtkFiltersGeneral<br>  vtkFiltersModeling<br>  vtkFiltersSources<br>  vtkkwiml<br>)<br>Your application code includes 13 of 189 vtk modules.<br><br>All modules referenced in the files:<br>find_package(VTK COMPONENTS<br>  vtkFiltersModeling<br>)<br>Your application code includes 1 of 189 vtk modules.<br><br>Minimal set of modules:<br>find_package(VTK COMPONENTS<br>  vtkFiltersModeling<br>)<br>Your application code includes 1 of 189 vtk modules.<br><br><br>estan@newton:~/orexplore/VTK$<br><br></div><div>I don't know why you don't have the vtkFiltersModeling module, but it would help to see your CMakeLists.txt and CMake output I think.<span><font color="#888888"><br><br></font></span></div><span><font color="#888888"><div>Elvis<br><br></div></font></span><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Rémi</div><div><br></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></span></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>