Hi,

>>>>> "AL" == Anders Lyckegaard <[EMAIL PROTECTED]> writes:

    AL> Dear list, I hope that you accept newbie questions.

That is not a problem so long as you'll put up with my slow
responses. :-)

    AL> My goal is to draw a circular cylinder or some other embedded
    AL> manifold with some objects moving on top of the cylindrical
    AL> surface.
[...]
    AL> The first thing I have tried is to generate a VTK file with
    AL> the points of the cylinder using pyVTK. (I have attached the
    AL> file). I have generated these as unstructured data.

    AL> Next I opened the file with mayavi, used a Delaunay3D filter
    AL> and a SurfaceMap module.  My problem is that the surface I get
    AL> is not completely filled out. There are some open triangles in
    AL> the surface which are not rendered. I have tried tweaking the
    AL> settings of the Delaunay filter, but I haven't been able to
    AL> close the open triangles.

The delaunay3D filter is not the best choice for this.  If your
manifold is something for which you have a suitable set of points you
can work with (i.e. a suitable atlas) then you'd be better off
explicitly generating the points and connectivity for the data.  If
your manifold is a cylinder embedded in 3D then you could also use
vtkCylinderSource to generate the points and polydata for you.  For
example (untested):

 import vtk
 cs = vtk.vtkCylinderSource()
 cs.Set<YourFavoriteProperties>
 cs.Update()
 pd =  cs.GetOutput()
 w = vtk.vtkPolyDataWriter()
 w.SetInput(pd)
 w.SetFileName('foo.vtk')
 w.Write()

You could also take a look at tvtk if you are interested in scripting
from Python and using VTK
 https://svn.enthought.com/enthought/wiki/TVTK

HTH.

cheers,
prabhu

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to