[vtkusers] How to insert points to construct a 3d object

David Doria daviddoria at gmail.com
Mon Mar 5 13:33:59 EST 2012


On Mon, Mar 5, 2012 at 9:33 AM, Melissa Goh <melissagoh27 at gmail.com> wrote:
> I have almost 20,000 data points (X,Y,Z) to construct a 3d object. Is there
> any order that I have to follow to insert the data points?

Do your points have any structure? That is, are they on a grid or
anything like that? You can take a look at this information:
http://www.vtk.org/Wiki/VTK/Tutorials/3DDataTypes - perhaps your data
fits one of those models. If you just have "unorganized points", I'd
use a vtkPolyData for storage, and the order is unimportant (unless
you have topology/cells (like polygons, etc) which reference the
points, then you just have to make sure your cells reference the
correct point ids).

David



More information about the vtkusers mailing list