<br>hi...<br><br>as far as my knowledge is concerned, unstructured grid must contain atleast one cell.. Thus, you need to create a cell array of containing min one element and allocate it to the UGrid.. then set the points.. see this example<br><br>http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Rendering/Testing/Cxx/TestOrderedTriangulator.cxx?root=VTK&amp;content-type=text/plain<br><br>Thanks<br><br>Regards<br>Rakesh Patil<br><blockquote><br>---------- Original message ----------<br>From:superzz&lt; jxdw_zlf@yahoo.com.cn &gt;<br>Date: 10 Mar 10 14:16:45<br>Subject:  [vtkusers]Empty mesh from Delaunay3D<br>To: vtkusers@vtk.org<br><br><br>Hello<br>I get an empty mesh from Delaunay3D. vtkPoints is used as source data. Am I<br>using Delaunay3D in a wrong way?<br><br>Thanks!<br><br>superZZ<br><br>vtkPoints pts = new vtkPoints();<br><br>//points x-y-z<br>pts.InsertPoint(0, 188, 377, 1);<br>pts.InsertPoint(1, 195, 385, 1);<br>pts.InsertPoint(2, 207, 393, 1);<br>pts.Inser
 tPoint(3, 221, 395, 1);<br>pts.InsertPoint(4, 230, 396, 1);<br>pts.InsertPoint(5, 241, 396, 1);<br>pts.InsertPoint(6, 211, 399, 1);<br>pts.InsertPoint(7, 223, 399, 1);<br>pts.InsertPoint(8, 201, 392, 1);<br>pts.InsertPoint(9, 248, 394, 1);<br>pts.InsertPoint(10, 264, 394, 1);<br>pts.InsertPoint(11, 269, 385, 1);<br>pts.InsertPoint(12, 256, 390, 1);<br>pts.InsertPoint(13, 245, 399, 1);<br>pts.InsertPoint(14, 225, 399, 1);<br>pts.InsertPoint(15, 251, 393, 1);<br>pts.InsertPoint(16, 274, 376, 1);<br>pts.InsertPoint(17, 288, 365, 1);<br>pts.InsertPoint(18, 269, 375, 1);<br>pts.InsertPoint(19, 244, 393, 1);<br>pts.InsertPoint(20, 176, 367, 1);<br>pts.InsertPoint(21, 176, 352, 1);<br>pts.InsertPoint(22, 193, 248, 1);<br>pts.InsertPoint(23, 191, 223, 1);<br>pts.InsertPoint(24, 209, 219, 1);<br>pts.InsertPoint(25, 210, 243, 1);<br>pts.InsertPoint(26, 210, 245, 1);<br>pts.InsertPoint(27, 233, 242, 1);<br>pts.InsertPoint(28, 228, 208, 1);<br>pts.InsertPoint(29, 228, 206, 1);<br>pts.In
 sertPoint(30, 223, 223, 1);<br>pts.InsertPoint(31, 223, 228, 1);<br>pts.InsertPoint(32, 245, 387, 1);<br><br>vtkUnstructuredGrid profile = new vtkUnstructuredGrid();<br>profile.SetPoints(pts);<br><br>vtkDelaunay3D delny = new vtkDelaunay3D();<br>delny.SetInput(profile);<br>delny.Update();<br><br>vtkDataSetMapper delnyDataSetMapper = new vtkDataSetMapper();<br>delnyDataSetMapper.SetInputConnection(delny.GetOutputPort());<br><br><br>vtkActor delnyActor = new vtkActor();<br>delnyActor.SetMapper(delnyDataSetMapper);<br>-- <br>View this message in context: <a target=\"_blank\" href="http://old.nabble.com/Empty-mesh-from-Delaunay3D-tp27846934p27846934.html" target="_blank">http://old.nabble.com/Empty-mesh-from-Delaunay3D-tp27846934p27846934.html</a><br>Sent from the VTK - Users mailing list archive at Nabble.com.<br><br>_______________________________________________<br>Powered by <a target=\"_blank\" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit o
 ther Kitware open-source projects at <a target=\"_blank\" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a target=\"_blank\" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br>http://www.vtk.org/mailman/listinfo/vtkusers<br></blockquote>