# unstructured to structured data?

**URL:** https://discourse.paraview.org/t/unstructured-to-structured-data/2817
**Category:** ParaView Support
**Created:** [October 21, 2019, 9:53pm UTC](https://discourse.paraview.org/t/unstructured-to-structured-data/2817 "2019-10-21T21:53:15Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Gary](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@Gary](https://discourse.paraview.org/u/Gary)
#### Post date: [October 21, 2019, 9:53pm UTC](https://discourse.paraview.org/t/unstructured-to-structured-data/2817/1 "2019-10-21T21:53:15Z")

</div>

I have a closed surface (unstructured) can I use paraview to convert it to a solid voxel (image/structured) dataset? How is this achieved?

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [October 22, 2019, 1:28pm UTC](https://discourse.paraview.org/t/unstructured-to-structured-data/2817/2 "2019-10-22T13:28:26Z")

</div>

The **Resample to Image** filter can resample data from a structured grid to an Image Data dataset.

---

<div class="post-metadata">

### Author: ![Gary](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@Gary](https://discourse.paraview.org/u/Gary)
#### Post date: [October 22, 2019, 1:44pm UTC](https://discourse.paraview.org/t/unstructured-to-structured-data/2817/3 "2019-10-22T13:44:21Z")

</div>

I should have been more specific, the unstructured data is in a vector format, so not a structured grid.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [October 22, 2019, 2:16pm UTC](https://discourse.paraview.org/t/unstructured-to-structured-data/2817/4 "2019-10-22T14:16:27Z")

</div>

I mistyped. The **Resample To Image** filter can resample data from an **un** structured grid to an Image Data dataset.

> [@Gary](#):
>
> I should have been more specific, the unstructured data is in a vector format, so not a structured grid.

I’m not sure what you mean by “vector format”.

---

<div class="post-metadata">

### Author: ![Gary](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@Gary](https://discourse.paraview.org/u/Gary)
#### Post date: [October 22, 2019, 2:24pm UTC](https://discourse.paraview.org/t/unstructured-to-structured-data/2817/5 "2019-10-22T14:24:42Z")

</div>

I’m coming from a GIS background, so vector, point-line-polygon, polyhedral (3D), a 3D closed surface - so unstructured data. This is the opposite of raster (image), voxel, or in paraview speak structured data.

I’ll experiment with the Resample to Image filter, and report back if it works, thanks.

---

<div class="post-metadata">

### Author: ![Gary](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@Gary](https://discourse.paraview.org/u/Gary)
#### Post date: [October 22, 2019, 2:28pm UTC](https://discourse.paraview.org/t/unstructured-to-structured-data/2817/6 "2019-10-22T14:28:19Z")

</div>

The Resample to Image gives a wireframe bounding 3D box

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [October 22, 2019, 2:42pm UTC](https://discourse.paraview.org/t/unstructured-to-structured-data/2817/7 "2019-10-22T14:42:24Z")

</div>

You can change the **Representation** type from “Outline” to “Volume” under the _Display_ section of the _Properties_ panel. “Outline” is just the default view of the generated image data.

---

<div class="post-metadata">

### Author: ![Gary](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@Gary](https://discourse.paraview.org/u/Gary)
#### Post date: [October 22, 2019, 9:56pm UTC](https://discourse.paraview.org/t/unstructured-to-structured-data/2817/8 "2019-10-22T21:56:30Z")

</div>

I get the error “This OpenGL implementation does not support the required texture size of 2097152, falling back to maximum allowed, 16384.” The dataset I have is a polygonia closed mesh with 27448 cells, it is one of the smaller ones I have and I cannot really reduce it through pre-sampling.

I guess my system is not capable of this?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 23, 2019, 6:14am UTC](https://discourse.paraview.org/t/unstructured-to-structured-data/2817/9 "2019-10-23T06:14:49Z")

</div>

I suspect that your GPU is quite old with only 1Gb of memory. You may want to use a CPU based solution for volume rendering. Switch the volume rendering mode to RayCast or OSPray.

---

<div class="post-metadata">

### Author: ![Gary](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@Gary](https://discourse.paraview.org/u/Gary)
#### Post date: [October 23, 2019, 6:39am UTC](https://discourse.paraview.org/t/unstructured-to-structured-data/2817/10 "2019-10-23T06:39:13Z")

</div>

I have a 1 year old MSI laptop with 32GB RAM with NVIDIA GTX 1070 graphics card/GPU.  
I tried your suggestion and paraview crashed.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 23, 2019, 6:42am UTC](https://discourse.paraview.org/t/unstructured-to-structured-data/2817/11 "2019-10-23T06:42:48Z")

</div>

Something is wrong with your drivers.

what is the output of glxinfo ?

---

<div class="post-metadata">

### Author: ![Gary](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/839c29/32.png) [@Gary](https://discourse.paraview.org/u/Gary)
#### Post date: [October 23, 2019, 7:04am UTC](https://discourse.paraview.org/t/unstructured-to-structured-data/2817/12 "2019-10-23T07:04:02Z")

</div>

Not sure how to run glxinfo (I’m using windows) but in ‘about’ OpenGL states 3.2.0

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 23, 2019, 7:05am UTC](https://discourse.paraview.org/t/unstructured-to-structured-data/2817/13 "2019-10-23T07:05:12Z")

</div>

I missed the fact that you are using Windows. Did you install nvidia drivers ? Which version do you have ? Is you system fully up to date ?

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [October 23, 2019, 1:00pm UTC](https://discourse.paraview.org/t/unstructured-to-structured-data/2817/14 "2019-10-23T13:00:13Z")

</div>

> [@Gary](#):
>
> I get the error “This OpenGL implementation does not support the required texture size of 2097152, falling back to maximum allowed, 16384.” The dataset I have is a polygonia closed mesh with 27448 cells, it is one of the smaller ones I have and I cannot really reduce it through pre-sampling

It is complaining **not** about the total RAM on the GPU, but the size of one dimension of a texture. 2 million texels is quite high in one dimension. By default the resampling dimensions are 100x100x100, so did you modify those somehow?

It might help us get a better idea of what you are trying to do if you can provide the small sample dataset, or at least posting an image of what the input data looks like.
