<font color="#000000"><font size="2"><font face="tahoma,sans-serif">Hi</font></font></font><div><font color="#000000"><font size="2"><font face="tahoma,sans-serif"><br></font></font></font></div><div><font color="#000000"><font size="2"><font face="tahoma,sans-serif">Is there a vtkIsoVolume example that I can refer to? </font></font></font><span class="Apple-style-span" style="font-family: tahoma, sans-serif; ">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.</span></div>
<div><font class="Apple-style-span" face="tahoma, sans-serif">Here's the code snippet (</font><span class="Apple-style-span" style="font-family: tahoma, sans-serif; "> I verified using the debugger that ParaView uses the same values for the </span><span class="Apple-style-span" style="font-family: tahoma, sans-serif; ">SetInputArrayToProcess):</span></div>
<div><font class="Apple-style-span" face="tahoma, sans-serif"><br></font></div><div><font color="#000000"><font size="2"><font class="Apple-style-span" face="'courier new', monospace">vtkXMLUnstructuredGridReader* reader = vtkXMLUnstructuredGridReader::New();<br>
reader->SetFileName("C://MyFile.vtu");<br><br>vtkIsoVolume* myIsoVolume = vtkIsoVolume::New(); <br>myIsoVolume ->SetInput((vtkDataSet*)reader->GetOutput()); <br>myIsoVolume ->SetInputArrayToProcess(0,0,0,vtkDataObject::FIELD_ASSOCIATION_POINTS,"Pressure");<br>
myIsoVolume ->ThresholdBetween(-100,100);<br>myIsoVolume ->Update();</font><br clear="all"><br><font class="Apple-style-span" face="tahoma, sans-serif">-- </font><br><font class="Apple-style-span" face="tahoma, sans-serif">Regards,</font><br>
<font class="Apple-style-span" face="tahoma, sans-serif">Alexis</font><br><br>
<font class="Apple-style-span" face="tahoma, sans-serif"><a href="http://alexisylchan.wordpress.com/" target="_blank"></a></font><br>
</font></font></div>