[vtkusers] creating a solid object from 3D points
Clare Fitzpatrick
clare.fitzpatrick at ucd.ie
Mon Sep 11 09:24:46 EDT 2006
Hi,
I have a set of x,y,z points which i want to convert to a solid object.
I am reading them into vtk using vtkParticleReader:
vtkParticleReader reader
reader SetFileName "C:/points3D.txt"
reader SetDataByteOrderToBigEndian
vtkPolyDataMapper mapper
mapper SetInputConnection [reader GetOutputPort]
vtkActor actor
actor SetMapper mapper
[actor GetProperty] SetPointSize 1
ren1 AddActor actor
The points in my .txt file are in a random order. Is it possible to create a solid object (the shape you'd get if you shrink-wrapped something around all the points) directly from these points, or do i have to arrange them into a particlar order so that i can use vtkDelaunay2D or vtkCellArray and vtkPolyData to create the surface?
Thanks
Clare
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060911/4e6686c6/attachment.htm>
More information about the vtkusers
mailing list