[vtkusers] vtkDelaunay3D - Integer division by zero

Bill Lorensen bill.lorensen at gmail.com
Wed Feb 19 15:41:39 EST 2014


Please post your code.


On Tue, Feb 18, 2014 at 8:11 AM, Susanne Schmalkalt
<Susanne.Schmalkalt at gmx.de> wrote:
> Dear vtkusers,
>
> I encounter a problem using the vtkDelaunay3d Algorithm.
> What I am doing is quite simple. I want to obtain the convex Hull of several
> 3D points. I followed this example:
> http://www.itk.org/Wiki/VTK/Examples/Boneyard/Cxx/PolyData/ConvexHullDelaunay3D
>
> I add the points to a vtkPolyData object, and then use vtkDelaunay3d to
> compute the convex Hull.
> But when I do so, it returns the error:
> Unhandled exception at 0x05c6a084 in GUIWindowApplication.exe: 0xC0000094:
> Integer division by zero.
>
>   vtkSmartPointer<vtkPolyData> delaunayPolyData =  vtkSmartPointer<
> vtkPolyData>::New();
>
>  delaunayPolyData->SetPoints(somePoints);   // somePoints is a
> vtkSmartPointer<vtkPoints>
>
>   vtkSmartPointer<vtkDelaunay3D> delaunay = vtkSmartPointer< vtkDelaunay3D
>>::New();
>   delaunay->SetInput(delaunayPolyData);
>   delaunay->Update();
>
>
> Do i have to change some settings in the beginning? Does anybody know where
> this error comes from?
> I mean, integer division by zero should be handeld by the vtkDelaunay3D
> algorithm, right?
>
> Thank you a lot!
> Susi
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list