[Insight-users] Reading MeshSpatialObjects from file
Richard van der Put
r.w.vanderput at azu.nl
Tue Aug 2 07:16:21 EDT 2005
Hi,
I am trying to read the MeshSpatialObject that I have put in a metafile
using the itk::SpatialObjectWriter. When I use:
reader->GetScene();
it returns a std::list (in my case it has size 1) of pointers to
itk::SpatialObject objects. My question is how to turn this into an
object of type itk::MeshSpatialObject so that I can have access to the
mesh? When I print the object it tells me it is a MeshSpatialObject, but
I do not know how to cast it to this type. I have looked at the guide
and tutorials but have not been able to find an answer.
Thank you in advance for your help.
Richard van der Put
More information about the Insight-users
mailing list