[vtk-developers] vtkUGrid InsertNextCell throws error

Gerrick Bivins Gerrick.Bivins at halliburton.com
Tue May 28 12:38:15 EDT 2013


That method doesn't work (at least for me and one other) for polyhedron. You have to use the "face stream" method described here:
http://www.vtk.org/Wiki/VTK/Polyhedron_Support

Not sure if it's a bug or "works as designed".
See wiki entry for example of how to make it work:
http://www.vtk.org/Wiki/VTK/Examples/Broken/Cxx/GeometricObjects/Cell3DDemo

Gerrick

-----Original Message-----
From: vtk-developers-bounces at vtk.org [mailto:vtk-developers-bounces at vtk.org] On Behalf Of David Doria
Sent: Tuesday, May 28, 2013 6:51 AM
To: shinpei
Cc: VTK Developers
Subject: Re: [vtk-developers] vtkUGrid InsertNextCell throws error

On Sat, May 25, 2013 at 7:48 PM, shinpei <noro_shinpei at web.de> wrote:
> Hi,
>
> I try to insert a new Cell into a vtkUGrid with the Function 
> "InsertNextCell"
>
> vtkIdType pts[5];
> pts[0] = e13;
> pts[1] = e23;
> pts[2] = e24;
> pts[3] = e14;
> pts[4] = e12;
> UGrid->InsertNextCell(VTK_POLYHEDRON, 5, pts);
>
> e** are vertex ids. These ids were generated by a vtkPointLocator.
>
> But I get an error at runtime. Where is my mistake?


This question is more appropriate for the vtk-users mailing list.

David
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtk-developers

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient.  Any review, use, distribution, or disclosure by others is strictly prohibited.  If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.



More information about the vtk-developers mailing list