in reality, I've written<br>Threshold->SetInputConnection(0,CellToPoint->GetOutputPort(0)); <br><br>instead of.<br> Threshold ->SetInputConnection(0,<div>RadarSgrid->GetOutputPort(0)); </div><br><br>So the code is<br>
<div class="gmail_quote"><div><br><br>vtkStructuredGridReader* sgridreader = vtkStructuredGridReader::New(); <br>
sgridreader->SetFileName(VtkFile); <br> sgridreader->Update(); <br><br> //CellDataToPointData already defined<br><br> CellToPoint->SetInputConnection(0,sgridreader->GetOutputPort(0)); <br><br> vtkThreshold* Threshold = vtkThreshold::New(); <br>
Threshold->SetInputConnection(0,CellToPoint->GetOutputPort(0)); <br>
<b> </b>Threshold <b>->SetSelectedComponent(0);</b> (I would like to find a method like this)<br> Threshold ->ThresholdBetween(0,1.1);<br>
Threshold ->Update();<br> <br> double pressureValues[2]; <br> Threshold->GetScalarRange(pressureValues); <br><br> ////warp polygons based on elevation<br> Warp->SetInputConnection(0,Threshold>GetOutputPort(0));<br>
Warp->SetInputArrayToProcess(1,0,0,vtkDataObject::FIELD_ASSOCIATION_POINTS, "elevationVar"); <br> <br>//HERE IT DOESN'T WORKS, IT DOESN'T MAKE WARP by ELEVATION VALUES! <br> Warp->SetNormal(0.0, 0.0, 1.0);<br>
Warp->UseNormalOn();<br> Warp->SetScaleFactor(1.05);<br><br><br>BUT THE PROBLEM STILL REMAIN... :(<br></div>
</div><br>