[vtkusers] Which Vtk Module to build to have access to "vtkButterflySubdivisionFilter.h" , "vtkLoopSubdivisionFilter.h" and "vtkLinearSubdivisionFilter.h"

Elvis Stansvik elvis.stansvik at orexplore.com
Fri Jul 1 03:01:18 EDT 2016


2016-06-30 17:32 GMT+02:00 Remi Charrier <remi.charrier at gmail.com>:

> Hi,
>
> I would like to try the following filters:
> "vtkButterflySubdivisionFilter.h"
> "vtkLoopSubdivisionFilter.h"
> "vtkLinearSubdivisionFilter.h"
> in order to increase the number of cells in my 3D models.
>
> 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 :
> VTK-7.0.0\Filters\Modeling
> in the cmakelist.txt of this folder I find that it may be associated with
> vtkFiltersModeling
> But I don't have this module or entry in the Cmake window.
> Any help would be welcome.
> Thanks in advance
>

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.

Running it on just those three headers, I get:

estan at newton:~/orexplore/VTK$ cat test.cpp
#include <vtkButterflySubdivisionFilter.h>
#include <vtkLoopSubdivisionFilter.h>
#include <vtkLinearSubdivisionFilter.h>
estan at newton:~/orexplore/VTK$ Utilities/Maintenance/WhatModulesVTK.py .
test.cpp
Modules and their dependencies:
find_package(VTK COMPONENTS
  vtkCommonComputationalGeometry
  vtkCommonCore
  vtkCommonDataModel
  vtkCommonExecutionModel
  vtkCommonMath
  vtkCommonMisc
  vtkCommonSystem
  vtkCommonTransforms
  vtkFiltersCore
  vtkFiltersGeneral
  vtkFiltersModeling
  vtkFiltersSources
  vtkkwiml
)
Your application code includes 13 of 189 vtk modules.

All modules referenced in the files:
find_package(VTK COMPONENTS
  vtkFiltersModeling
)
Your application code includes 1 of 189 vtk modules.

Minimal set of modules:
find_package(VTK COMPONENTS
  vtkFiltersModeling
)
Your application code includes 1 of 189 vtk modules.


estan at newton:~/orexplore/VTK$

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.

Elvis

Rémi
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160701/603abeb2/attachment.html>


More information about the vtkusers mailing list