Hi there,
I need to store points of a STL file in a container,
I found this class: itkSTLMeshIO,
But I’m not able to store point of the input STL file in a container. Should I use ReadDataPoint?
I don’t understand how it works, where can I find some examples?
const unsigned int Dimension = 3;
typedef float PixelType;
typedef itk::QuadEdgeMesh<PixelType, Dimension> QEMeshType;
itk::STLMeshIOFactory::RegisterOneFactory();
typedef itk::MeshFileReader< QEMeshType > ReaderType;ReaderType::Pointer reader = ReaderType::New();
std::vectoritk::STLMeshIO::PointType test;
reader->SetFileName( argv[1] );
itk::STLMeshIO pointer=itk::STLMeshIO::New();
pointer=reader->GetOutput();
pointer.ReadPointData();