Chandrashekhar P. Kaushik emailed the following on 05/08/08 19:20:
> Dr Gerard Gorman said:
>> Hi folks
>>
>> I have been playing about with parallel vtk files (specifically pvtu's).
>> After some searching about and pointers from Berk Geveci I can write out
>> pvtu's now with ghost levels set correctly. If I use the surface mapper
>> in paraview I don't see internal surfaces - see
>> http://paraview.org/Wiki/images/5/51/SC07_tut107_ParaView_Handouts.pdf
>> pages 38-39 to see exactly what I'm talking about. However, I do see
>> these internal surfaces when I use SurfaceMap in mayavi.
> 
> Are you passing your dataset through a vtkDataSetSurfaceFilter ?
> I think that is what extracts the external surfaces properly using
> the level 1 ghost cells( this information from the SOURCE quaterly of Jul
> 2006).
> The SurfaceMap module of mayavi just seems to be passing the dataset to
> the vtkDataSetMapper.
> 

Thanks for your reply - I have a much better feel for for parallel is
implemented in VTK now. Below is a patch for SurfaceMap.py. Similar
patches will be need for many modules and filters. I'm guessing the same
is true for MV2.

$ cvs diff Modules/SurfaceMap.py
Index: Modules/SurfaceMap.py
===================================================================
RCS file: /cvsroot/mayavi/mayavi/Modules/SurfaceMap.py,v
retrieving revision 1.12
diff -r1.12 SurfaceMap.py
42c42,45
<         self.map.SetInput (mod_m.GetOutput ())
---
>         internal_surface_filter = vtk.vtkDataSetSurfaceFilter ()
>         internal_surface_filter.SetInput (mod_m.GetOutput ())
>         internal_surface_filter.SetPieceInvariant (1)
>         self.map.SetInput (internal_surface_filter.GetOutput ())

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to