<div dir="ltr">Hi Fantasy,<div><br></div><div>If the points are a convex hull, then you can use vtkDelaunay3D to fill the hull with tetrahedrons, followed by vtkDataSetSurfaceFilter to get just the outer surface.</div><div><br></div><div> - David</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 1, 2016 at 12:27 PM, Chen, Lifan <span dir="ltr"><<a href="mailto:LCHEN41@mgh.harvard.edu" target="_blank">LCHEN41@mgh.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div style="word-wrap:break-word;color:rgb(0,0,0)">
<div style="direction:ltr;font-family:Tahoma;color:rgb(0,0,0);font-size:10pt"><font face="Tahoma">I've read the code. In this example, it requires user to define the faces of the polyhedron, however, what I want is to automatically create the polyhedron with
 the given points based on some kind of rules, for example, the closest points rule. I know there is a method in vtkSelectPolyData to finish the similar work, but the method in vtkSelectPolyData does not create a polydata itself.</font>
<div><font face="Tahoma"><br>
</font></div>
<div><font face="Tahoma">Fantasy</font><br>
<div style="font-size:16px;color:rgb(0,0,0)">
<hr>
<div style="font-family:'Times New Roman';direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>发件人:</b> vtkusers [<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>] 代表 Meehan, Bernard [<a href="mailto:MEEHANBT@nv.doe.gov" target="_blank">MEEHANBT@nv.doe.gov</a>]<br>
<b>发送时间:</b> 2016年2月1日 13:22<br>
<b>收件人:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>主题:</b> Re: [vtkusers] How to create a polyhedron(vtkPolyData) from a series of points(Vertex)<br>
</font><br>
</div><div><div class="h5">
<div style="font-family:'Times New Roman'"></div>
<div style="font-family:'Times New Roman'">
<div>I think that this might help:</div>
<div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Polyhedron" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Polyhedron</a></div>
<div><br>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;border-width:1pt medium medium;border-style:solid none none;padding:3pt 0in 0in;border-top-color:rgb(181,196,223)">
<span style="font-weight:bold">From: </span>vtkusers <<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>> on behalf of "Chen, Lifan" <<a href="mailto:LCHEN41@mgh.harvard.edu" target="_blank">LCHEN41@mgh.harvard.edu</a>><br>
<span style="font-weight:bold">Date: </span>Monday, February 1, 2016 at 8:09 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>><br>
<span style="font-weight:bold">Subject: </span>[vtkusers] How to create a polyhedron(vtkPolyData) from a series of points(Vertex)<br>
</div>
<div><br>
</div>
<div dir="ltr">
<div>
<div style="direction:ltr;font-family:Tahoma;color:rgb(0,0,0);font-size:10pt"><font size="3">Hey all,</font>
<div><font size="3"><br>
</font></div>
<div><font size="3">I am new in vtk and here is a simple issue. How could I create a polyhedron from a series of points which are the vertexs of the polyhedron. Of course, these points do not intersect. Does any one know any method in vtk to accomplish this?</font></div>
<div><font size="3"><br>
</font></div>
<div><font size="3">Thanks,</font></div>
<div><font size="3">Fantasy</font></div>
</div>
<p></p>
<p>The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.</p></div></div></span></div></div></div></div></div></div></div>
<br></blockquote></div><br></div></div></div>