RenderKit / ospray

An Open, Scalable, Portable, Ray Tracing Based Rendering Engine for High-Fidelity Visualization
http://ospray.org
Apache License 2.0
1.02k stars 186 forks source link

Converter from .raw to .vtu #262

Closed jakubhendrich closed 6 years ago

jakubhendrich commented 6 years ago

Hi, I got tired of manually creating unstructured volumes via ParaView, so I wrote a simple CLI converter which does the job in a fraction of time and with minimal user interaction. It can also perform basic thresholding of the scalar field.

It has at least these downsides:

  1. only hexahedra (cubes) can be generated so far;
  2. doesn't stream, the entire output is generated in memory and dumped afterwards;
  3. doesn't parallelize very well.

I will add the support for tets & wedges at some point. However, I don't expect I will ever need to deal with performance here (the conversion of Magnetic Reconnection Volume dataset takes ~3 minutes on my machine), so that is left for others to improve.

jakubhendrich commented 6 years ago

Now the converter supports creation of tetrahedra and wedges, too.

jeffamstutz commented 6 years ago

Looks good, thanks!