[vtkusers] Compilation problem of BalloonForceFilter

Pavel Kats pavka at cs.huji.ac.il
Wed May 26 12:08:05 EDT 2004


Hi all. 

I have come across a weird problem when compiling test programs. I have minimized the problematic code.
The following code does not compile:

#include <itkMesh.h>

#include "itkBalloonForceFilter.h"

int main()

{

typedef itk::Mesh<double, 3, itk::DefaultStaticMeshTraits< double, 3, 3, double, double, double > > MeshType; 

typedef itk::BalloonForceFilter<MeshType, MeshType> FilterType; 

FilterType::Pointer f = FilterType::New();

return 0;

}



among other it reports cast problems in the file itkBalloonForceFilter.h itself.

When changing fourth template parameter of DefaultStaticMeshTraits to its default value (float), everything compiles.

I will appreciate any help. 

By the way, was not the concept of generic programming with templates invented to avoid such troubles?



thx,

Pavel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040526/70cdc29e/attachment.htm>


More information about the vtkusers mailing list