<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi all,<div><br></div><div>I have spent the past few days trying to figure out how to use vtkDelaunay3D properly and decided I'd better seek out some help.  My goal is relatively straight-forward:  Given a set of points in 3D, generate a tetrahedral mesh, and use the results to determine which tetrahedron contains an arbitrary point.</div><div><br></div><div>In its simplest form I am doing the following:</div><div><div><br></div><div>vtkSmartPointer<vtkDelaunay3D> tets = vtkSmartPointer<vtkDelaunay3D>::New();</div><div>tets->SetInput(points);</div></div><div>tets->Update();</div><div><div>printf("Number of tets: %d\n", tets->GetOutput()->GetNumberOfElements(VTK_TETRA));<br></div></div><div><br></div><div>The output claims there are zero tetrahedrons.  However if I render an actor from tets->GetOutput(), I am able to visualize a wireframe surface mesh, so I know it's doing something.</div><div><br></div><div>So I guess my questions are the following:  Why does the output not contain any tetrahedrons?  Why does the mesh only show surface triangles?  Ultimately what is the proper way to construct a tetrahedral mesh such that I can query which tetrahedron contains an arbitrary point?</div><div><br></div><div>Thanks.</div><span><font color="#888888"><div><br></div><div>--Matt</div></font></span></div>
</div><br></div>