Hi Naim, thank you for your help, but the the example you give is for unstructured data and the data I have is unorganized point data. I am attaching my program and data file for you to review. I have been stuck here for 2 days, I just couldn't map the color to scalar value. Your help are greatly appreciated!<br> <br> YM<br><b><i>Naim <naim@electromagneticworks.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi YM,<br><br>I'm using this example:<br><br> // clipping using input scalar data<br> vtkClipDataSet* IsoClipper = vtkClipDataSet::New(); <br> IsoClipper->SetInput(m_pMyUnstructuredGrid);<br> double value = myValue; // myValue ª [MinValue, MaxValue]<br> IsoClipper->GenerateClipScalarsOff(); // OFF<br> IsoClipper->SetValue(value);<br><br> vtkDataSetMapper* myMapper = vtkDataSetMapper::New();<br>
myMapper->SetInputConnection(IsoClipper->GetOutputPort());<br><br> vtkActor* myActor = vtkActor::New();<br> myActor->SetMapper(myMapper);<br><br> IsoMapper->SetScalarRange(MinValue, MaxValue);<br> IsoMapper->SetLookupTable(myVtkLookupTable);<br> IsoMapper->InterpolateScalarsBeforeMappingOn();<br><br> myRenderer->AddViewProp(myActor);<br><br>You can use vtkClipPolyData if u are using point data.<br> <br>If you want generate many iso use: vtkContourGrid or vtkContourFilter.<br><br> vtkContourGrid *mycontourGrid = vtkContourGrid::New();<br> mycontourGrid->SetInput(m_pMyUnstructuredGrid); ;<br> mycontourGrid->GenerateValues(n, MinValue, MaxValue);<br><br><br>Naim Himrane<br>ElectromagneticWorks inc.<br><br><br><br>-----Original Message-----<br>From: vtkusers-bounces+naim=electromagneticworks.com@vtk.org<br>[mailto:vtkusers-bounces+naim=electromagneticworks.com@vtk.org] On Behalf Of<br>yi mu<br>Sent: September 12, 2006 9:41 PM<br>To:
VTK<br>Subject: [vtkusers] color isosurface<br><br>Is there anyone has an example shows how to color an<br>isosurface generated from point data? I am desperated.<br>Any help will be appriciated!<br><br>YM<br><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com <br>_______________________________________________<br>This is the private VTK discussion list. <br>Please keep messages on-topic. Check the FAQ at:<br>http://www.vtk.org/Wiki/VTK_FAQ<br>Follow this link to subscribe/unsubscribe:<br>http://www.vtk.org/mailman/listinfo/vtkusers<br><br></blockquote><br><p> 
                <hr size=1>How low will we go? Check out Yahoo! Messenger’s low <a href="http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com"> PC-to-Phone call rates.