[vtkusers] Polyhedral Cells

Mathieu Malaterre mathieu.malaterre at kitware.com
Mon Mar 7 09:47:54 EST 2005


Kent Eschenberg wrote:
> I'd like to write the unstructured cell output of a simulation to a file 
> for viewing by VTK/ParaView and to restart the simulation, if needed.
> 
> The problem is that a fair percentage of the simulation's cells are 
> polyhedral which aren't now supported by VTK. When the file is used to 
> restart the sim, the polyhedral cells in their original form will be 
> needed.

	Do you have access to the library the handle those type of polyhedral 
cells ? In this case I suggest you download VTK CVS, and look carefully at:
		http://www.vtk.org/doc/nightly/html/classvtkGenericAdaptorCell.html
http://www.vtk.org/doc/nightly/html/classvtkGenericDataSet.html

	This is an abstraction layer on top of any kind of cells -hopefully 
generic enough- that will allow you to plug your lib in VTK painlessly.


	And an example of implementation (back to VTK) is:

	http://www.vtk.org/doc/nightly/html/classvtkBridgeCell.html
	http://www.vtk.org/doc/nightly/html/classvtkBridgeDataSet.html

	Based on those examples this should give you a quick start.

> I'd appreciate any thoughts on ways to deal with this problem.

	Let me know how this works.

Mathieu



More information about the vtkusers mailing list