[Insight-users] Visualization of Mesh from DeformableMesh3DFilter with VTK

Luis Ibanez luis.ibanez@kitware.com
Fri, 27 Sep 2002 14:17:10 -0400


Hi Samuel,


The construction shouldn't be a problem.

This is just initializing the SmartPointer to the Mesh.
You can equally do it like

     1) MeshType::Pointer mesh(  MeshType::New() );

or

     2) MeshType::Pointer mesh = MeshType::New();


There should be some notation problem in the declarations
that you are using.

If it isn't a huge piece of code, you could post it to the list...


Thanks


    Luis


====================================================

Samuel Rodríguez Bescos wrote:

> Hello again Luis:
> 
> I have modified my example but there is an error in the compilation proccess
> related with itkMesh.txx
> 
> :\Archivos de
> programa\InsightLastVersion\CVS\Insight\Code\Common\itkMesh.txx(1028) :
> error C2144: syntax error : missing ')' before type 'Mesh<double,3,class
> itk::DefaultStaticMeshTraits<double,3,3,double,double,double>
> 
>>::BoundariesContainerVector'
>>
> 
> in the line 1028 in the file itkMesh.txx:
> 
> 
> m_BoundariesContainers(BoundariesContainerVector(MaxTopologicalDimension)),
> 
> 
> 
> Any Idea what is happening?. I think that is related to how I create the itk
> Mesh.
> 
> I do:
> 
>         typedef itk::Mesh<double, 3, itk::DefaultStaticMeshTraits< double,
> 3, 3, double, double > > DoubleMeshType;
>         DoubleMeshType::Pointer         m_ITKMesh;
>         m_ITKMesh=DoubleMeshType::New();
> 
> But in the example you posted to me it is created by:
>         typedef itk::Mesh<double, 3, itk::DefaultStaticMeshTraits< double,
> 3, 3, double, double > > doubleMesh;
>         doubleMesh::Pointer mesh(doubleMesh::New());
> 
> Thanks,
> 
> Sam
> 
> 
> 
>