[vtkusers] Fill giant holes in a mesh

daviddoria daviddoria at gmail.com
Mon Feb 9 12:17:03 EST 2009


I saw this: vtkDataSetSurfaceFilter. The description reads like it is exactly
what I want.  I give it a point cloud and it seems to produce exactly the
same point cloud (ie no surface).

This is what I tried:

	vtkXMLPolyDataReader* reader = vtkXMLPolyDataReader::New();
	reader->SetFileName(InputFile.c_str());
	reader->Update();
	
	vtkDataSetSurfaceFilter* DSSF = vtkDataSetSurfaceFilter::New();

	DSSF->SetInputConnection(reader->GetOutputPort());
	//cout << DSSF->GetUseStrips() << endl;
	DSSF->UseStripsOn();
	
	DSSF->Update();

	vtkXMLPolyDataWriter* writer = vtkXMLPolyDataWriter::New();
	writer->SetInputConnection(DSSF->GetOutputPort());
	writer->SetFileName(OutputFile.c_str());
	writer->Update();
-- 
View this message in context: http://www.nabble.com/Fill-giant-holes-in-a-mesh-tp21871947p21917423.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list