<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content="MSHTML 5.00.3103.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>
<DIV><FONT size=2>Dear users:</FONT></DIV>
<DIV> <FONT size=2>I used the below code to contour a
delaunay2D:</FONT></DIV>
<DIV><FONT size=2> </FONT></DIV>
<DIV><FONT size=2>
this->points=vtkPoints::New();<BR> for(int
i=0;i<100;i++) <BR> {<BR>
this->points->InsertPoint(i,this->math->Random(0,1),this->math->Random(0,1),0.0);<BR>
}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>
this->profile=vtkPolyData::New();<BR>
this->profile->SetPoints(points);<BR>
</FONT></DIV>
<DIV><FONT size=2>
this->del=vtkDelaunay2D::New();<BR>
this->del->SetInput(profile);<BR>
this->del->BoundingTriangulationOn();<BR>
this->del->SetTolerance(0.00001);<BR>
this->del->SetAlpha(0.1);<BR>
this->del->Update();</FONT></DIV>
<DIV><FONT size=2><BR>
this->shrink=vtkShrinkPolyData::New();<BR>
shrink->SetInput(del->GetOutput());</FONT></DIV>
<DIV><FONT size=2> </FONT></DIV>
<DIV><FONT size=2>
this->contours=vtkContourFilter::New();<BR>
contours->SetInput(shrink->GetOutput());<BR> float
range[1];<BR> range[0]=0.0;range[1]=10;<BR>
contours->GenerateValues(5,range);<BR> </FONT></DIV>
<DIV><FONT size=2>
this->Contourmap=vtkPolyDataMapper::New();<BR>
Contourmap->SetInput(contours->GetOutput());<BR>
Contourmap->SetScalarRange(0.0,1.2);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>
this->dgx=vtkActor::New();<BR>
dgx->SetMapper(Contourmap);</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT size=2> But the vtkContourfilter reported:"no data to contour".
How can I use the vtkCountourFilter to do it?</FONT></DIV>
<DIV><FONT size=2> Thanks any help!</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>zhangyu</FONT> </DIV></FONT></DIV></BODY></HTML>