[IGSTK-Users] [Insight-users] from vtk to msh : Mising itk::Mesh with igstk::MeshObject

Luis Ibanez luis.ibanez at kitware.com
Thu Mar 12 12:38:10 EDT 2009


Hi Luca,

Thanks for trying the change.

Yes, I forgot that the SetMesh method is private in IGSTK.

This is actually to enforce the safety of the application.

The official way of loading meshes in IGSTK is to use the
igstk::MeshReader class.


See the examples in:

    IGSTK/Testing/
      igstkMeshObjectTest2.cxx
      igstkMeshReaderTest.cxx



    Regards,


       Luis



---------------------
Luca Ramundo wrote:
> 
> Now I changed m_Mesh= m_VtkPolyDataReader->GetOutput(); with 
> m_Mesh->SetMesh( m_VtkPolyDataReader->GetOutput() );
> 
> but I receive this error:
> 
>  error C2248: 'igstk::MeshObject::SetMesh' : cannot access private 
> member declared in class 'igstk::MeshObject'
> 
> mmmmhhh... is that you said me about
> 
>  > A) typedef igstk::MeshObject MeshObjectType;
>  > typedef MeshObjectType::MeshType MeshType;
>  > typedef ::itk::VTKPolyDataReader< MeshType > VtkPolyDataReaderType;
>  >
>  > and in another section:
>  >
>  >
>  > B) MeshType::Pointer m_Mesh;
>  >
>  >
>  > It seems that the typedef that defined the MeshType in (B) is not
>  > the same that we see in (A).
>  >
>  > From the error message it looks like MeshType in (B) was declared
>  > as
>  >
>  > "typedef igstk::MeshObject MeshType;"
> 
> 
> I don't know why this happens!!! Do you have any idea????
> 
> 
> ------------------------------------------------------------------------
> Organizza, modifica e condividi le tue foto. Scarica Raccolta foto! 
> <http://clk.atdmt.com/GBL/go/136430508/direct/01/>



More information about the IGSTK-Users mailing list