<div>The third method below is implemented and supports polyhedron. Comments welcome.</div><div><br></div><div> // Description:</div><div> // Insert/create cell in object by type and list of point ids defining</div><div>
// cell topology. Most cells require just a type which implicitly defines</div><div> // a set of points and their ordering. However, some cells like</div><div> // vtkPolyhedron require points plus a list of faces. Note when inserting</div>
<div> // faces, the standard vtkCellArray format is assumed (n,i,j,k,n,i,j,k,...).</div><div> vtkIdType InsertNextCell(int type, vtkIdType npts, vtkIdType *pts);</div><div> vtkIdType InsertNextCell(int type, vtkIdList *ptIds);</div>
<div> vtkIdType InsertNextCell(int type, vtkIdType npts, vtkIdType *ptIds, </div><div> vtkIdType nfaces, vtkIdType *faces);</div><div> </div><div><br></div><br><div class="gmail_quote">On Tue, Feb 23, 2010 at 12:09 PM, Mark Olesen <span dir="ltr"><<a href="mailto:Mark.Olesen@faurecia.com">Mark.Olesen@faurecia.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Thu, 2010-02-18 at 11:38 -0500, Will Schroeder wrote:<br>
</div><div class="im">> Hua and I have made progress on adding a vtkPolyhedron cell to VTK. We<br>
> have a wiki page describing the tasks (which will take some time<br>
> to implement depending on our funding and<br>
> schedule <a href="http://www.vtk.org/Wiki/VTK/Polyhedron_Support" target="_blank">http://www.vtk.org/Wiki/VTK/Polyhedron_Support</a>). We are using<br>
> the interpolation method of mean value coordinates which Hua has<br>
> already implemented, thus far it is a super algorithm. Comments are<br>
> welcome.<br>
><br>
><br>
> We are now starting the integration into vtkUnstructuredGrid. If you<br>
> are interested let me know and at the appropriate point we can make<br>
> our git repository available.<br>
<br>
</div><div><div></div><div class="h5">A sneak preview of the API would be useful (eg, how the InsertNextCell<br>
would look).<br>
I have a freshly written proSTAR reader that needs polyhedral support --<br>
I could also offer it for miscellaneous testing purposes.<br>
<br>
/mark<br>
<br>
<br>
<br>
<br>
DISCLAIMER:<br>
This electronic transmission (and any attachments thereto) is intended solely for the use of the addressee(s). It may contain confidential or legally privileged information. If you are not the intended recipient of this message, you must delete it immediately and notify the sender. Any unauthorized use or disclosure of this message is strictly prohibited. Faurecia does not guarantee the integrity of this transmission and shall therefore never be liable if the message is altered or falsified nor for any virus, interception or damage to your system.<br>
<br>
<br>
<br>
DISCLAIMER:<br>
This electronic transmission (and any attachments thereto) is intended solely for the use of the addressee(s). It may contain confidential or legally privileged information. If you are not the intended recipient of this message, you must delete it immediately and notify the sender. Any unauthorized use or disclosure of this message is strictly prohibited. Faurecia does not guarantee the integrity of this transmission and shall therefore never be liable if the message is altered or falsified nor for any virus, interception or damage to your system.<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>William J. Schroeder, PhD<br>Kitware, Inc.<br>28 Corporate Drive<br>Clifton Park, NY 12065<br><a href="mailto:will.schroeder@kitware.com">will.schroeder@kitware.com</a><br>
<a href="http://www.kitware.com">http://www.kitware.com</a><br>(518) 881-4902<br>