Dear all,<br><br> Recently I want to triangulate the unorganized points and visualize it, the source code is as follows:<br><br>//////////////////////////////<div style="direction: ltr;">////////////////////////////////////////////////////////////////////////////////////////////////////////////////
<br> for (int n=0;n<numOfPoints;n++)<br> {<br> libraryFile.Read(p,24);<br> m_ppoints->InsertPoint(n,p[0],p[1],p[2]);<br> m_pPtsId[n] = n;<br> }<br> <br> m_libraryPolydata->SetPoints(m_ppoints);
<br> m_cellArray->InsertNextCell(numOfPoints, m_pPtsId);<br> m_libraryPolydata->SetVerts(m_cellArray);<br><br> m_pDelaunay2D->SetInput(m_libraryPolydata);<br> m_pEdges->SetInput(m_pDelaunay2D->GetOutput());
<br> <br> m_pTubeFilter->SetInput(m_pEdges->GetOutput());<br> m_pTubeFilter->SetRadius(0.0050);<br><br> libraryMapper->SetInput(m_pTubeFilter->GetOutput());<br><br> <br> this->libraryActor->SetMapper(libraryMapper);
<br> <br> libraryActor->GetProperty()->SetColor(1.0,0.0,0.0);<br> <br> this->ren->AddActor(this->libraryActor);<br><br> ////////////////////////////////////////////////////////////////////////////////////////////////////////////
<br><br><br><br> but when I compiled and executed the program I only
found the black screen,in other words, I didn't get the triangulated
mesh.<br><br> who can tell me why? And give me some detailed source code about how to use the vtkDelaunay2D. Thanks a lot!
<br><br><br> BHS<br></div>