visualize boxes in paraview

Bug #1026474 reported by Christian Jakob on 2012-07-19
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

VTKRecorder should export boxes for post processing with Paraview.

Changed in yade:
importance: Undecided → Wishlist
Christian Jakob (jakob-ifgt) wrote :

I would try to implement, if it is not too complicated ... Surely need some help on it!

Hi Christian,

I would recommend you to have a look, how facets are exporting [1], [2].
It should be something similar.

Be careful, VTKRecorder is a little messy.



Christian Jakob (jakob-ifgt) wrote :

I already started ...

for facets vtkTriangle is used, but boxes are cuboids. There is no vtkCuboid for that, so what to do?
Divide the cuboid into rectangles and use vtkRectangle?

Christian Jakob (jakob-ifgt) wrote :

Do we need this boxesCells for vtk?
It should contain id of the body and id of the points (in this case 8 points per body). I dont know how to implement it, in interactions intrsCells is based on vtkLine (2 points), while in facets facetsCells is based on vtkTriangle (3 points). So what to do with the 8 points from a cuboid?

Please give me a hint how to proceed in lines 406,413,418 and 514 here:

Thanks in advance,


Christian Jakob (jakob-ifgt) wrote :
Anton Gladky (gladky-anton) wrote :

It seems, there is something wrong with an order of setting points.


Anton Gladky (gladky-anton) wrote :

It should be fixed in f01916a9.

Christian, I have applied your patches, but decided to fix the issue with rectangles.
If you are not agreed, feel free to provide a patch.



Changed in yade:
status: New → Fix Released
Christian Jakob (jakob-ifgt) wrote :

Great job Anton!

I think it is the best way to handle boxes with vtk exporter.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions