The figure generated like this recently appeared in Nature. ZDnet shamelessly lifted the figures. http://blogs.zdnet.com/emergingtech/?m=20060706
---- Original message ---- >Date: Thu, 3 Aug 2006 12:36:29 -0500 >From: <[EMAIL PROTECTED]> >Subject: Re: [MayaVi-users] Plotting scalars on an isosurface >To: [email protected] > >I did something like this but the solution was not >at all general. It consists of a modified Isosurface >module, about three lines starting at roughly line 60, >and an additional array added to the imagedata passed >to mayavi. >I've attached the modified isosurface module and the >python script that makes the dataset. > >Hope it helps, >ross > > >---- Original message ---- >>Date: Thu, 3 Aug 2006 20:10:47 +0530 >>From: Prabhu Ramachandran <[EMAIL PROTECTED]> >>Subject: Re: [MayaVi-users] Plotting scalars on an isosurface >>To: "Noel O'Boyle" <[EMAIL PROTECTED]> >>Cc: MayaVi Users Mailing List <[email protected]> >> >>>>>>> "Noel" == Noel O'Boyle <[EMAIL PROTECTED]> writes: >> >> Noel> Dear all, I'm using the MayaVi debian stable package, MayaVi >> Noel> 1.4. >> >> Noel> I have two Rectilinear Grids of Scalar data covering the >> Noel> same volume. I can plot the isosurface of either using >> Noel> MayaVi (the Isosurface module), but I would like to plot the >> Noel> isosurface of one and color using the Scalar Values of the >> Noel> other (at those same isosurface positions). >> >> Noel> Is this possible using the standard MayaVi modules? Or is it >> Noel> possible to tweak the isosurface module from Python somehow >> Noel> to do this? >> >>You can't with the standard module but you can tweak the module if you >>are using a recent enough VTK. I guess 4.2 or 4.4 will do. You need >>to select the scalar you want to color with in the data file and then >>use the contour filters SetInputArrayToProcess(...) method to set the >>specific data array you want to contour with. Then your coloring will >>be based on the input scalars and the contouring with the one you >>pick. I haven't tried it so you should use this as a guideline and >>experiment to see what works best for you. >> >>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 >________________ >________________ >________________ >------------------------------------------------------------------------- >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 ------------------------------------------------------------------------- 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
