>>>>> "Steve" == Steve Juranich <[EMAIL PROTECTED]> writes:

    Steve> I'm trying to get my head around how the Volume module is
    Steve> working.  I saw in the documentation that the module
    Steve> requires the scalar data to be either chars or shorts (Is
    Steve> that right?  What is the reason for this restriction?).

Earlier VTK's Volume code supported only such data structured points
data.  The work around with mayavi1 is to use the
StructuredPointsProbe filter before you use the volume module.  This
filter will convert the data to a suitable datatype and also convert
the dataset to a structured points one given any input dataset.

Incidentally, MayaVi2 supports fixed point rendering and also supports
unstructured grid rendering but does not yet support structured grids.

    Steve> So can anybody tell me what I'm doing wrong?  Like I said,
    Steve> my visualization window is blank, so something is
    Steve> definitely going awry.  I just don't have enough experience
    Steve> with MayaVi's volume visualization to diagnose this
    Steve> problem.

In your case you have created a structured grid data set and not a
structuredpoints/image data dataset this causes your error.  Just try
this instead:

 mayavi -d simple_cube.vts -f StructuredPointsProbe -m Volume

This will not work with mayavi2 since I haven't ported the
structuredPointsProbe filter yet to mv2 and VTK does not AFAIK support
structured grid volume rendering.

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