Hi Is there a vtkIsoVolume example that I can refer to? When I open a vtu file in ParaView and apply the "Iso Volume" filter to it, I am able to see the Iso Volume. I tried to replicate that in my VTK application but I ran into "Unable to allocate memory" error. Here's the code snippet ( I verified using the debugger that ParaView uses the same values for the SetInputArrayToProcess):
vtkXMLUnstructuredGridReader* reader = vtkXMLUnstructuredGridReader::New(); reader->SetFileName("C://MyFile.vtu"); vtkIsoVolume* myIsoVolume = vtkIsoVolume::New(); myIsoVolume ->SetInput((vtkDataSet*)reader->GetOutput()); myIsoVolume ->SetInputArrayToProcess(0,0,0,vtkDataObject::FIELD_ASSOCIATION_POINTS,"Pressure"); myIsoVolume ->ThresholdBetween(-100,100); myIsoVolume ->Update(); -- Regards, Alexis <http://alexisylchan.wordpress.com/>
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview