<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div style="font-family:times, serif;font-size:12pt;"><div><span class="Apple-style-span" style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse;color:rgb(51, 51, 51);">Hi<div><br></div><div>I have a file with a dataset of structured points. I'd like to convert this to a dataset of unstructured points and/or unstructured grid. How can I do this?</div><div><br></div><div>So far, this is what I have: </div><div><br></div><div><div>int main()</div><div>{</div><div><span style="white-space:pre;">        </span>//get all data from the file</div><div><span style="white-space:pre;">        </span>vtkSmartPointer< vtkStructuredPointsReader> reader = vtkSmartPointer< vtkStructuredPointsReader>:: New();</div><div><span style="white-space:pre;">
        </span>reader->SetFileName("geometry. vtk");</div><div><span style="white-space:pre;">        </span>reader->Update();</div><div><br></div><div><span style="white-space:pre;">        </span>vtkStructuredPoints* structuredPoints = reader->GetOutput();</div><div><br></div><div><span style="white-space:pre;">        </span>//get the number of points the file contains</div><div> <span style="white-space:pre;">        </span>vtkIdType numPoints = structuredPoints-> GetNumberOfPoints();</div><div> </div><div><span style="white-space:pre;">        </span>std::cout << "There are " << numPoints << " points." << std::endl;</div><div><br></div><div><span style="white-space:pre;">        </span>vtkSmartPointer< vtkUnstructuredGrid> unstructuredGrid = vtkSmartPointer< vtkUnstructuredGrid>::New();</div><div><br></div><div>}</div><div><br></div><div>It's incomplete and I'm not sure how to
proceed.</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Theodore</div><div><br></div></div></span></div><div style=""></div>
</div><div style="position:fixed"></div>
</div><br>
</body></html>