# Converting .csv Files to 3D Plots (stuck!!)

**URL:** https://discourse.paraview.org/t/converting-csv-files-to-3d-plots-stuck/7560
**Category:** ParaView Support
**Created:** [July 6, 2021, 3:33pm UTC](https://discourse.paraview.org/t/converting-csv-files-to-3d-plots-stuck/7560 "2021-07-06T15:33:44Z")
**Posts on this page:** 1
**Showing post:** 21

<div class="post-metadata">

### Author: ![\_selah](https://discourse.paraview.org/user_avatar/discourse.paraview.org/_selah/32/6392_2.png) [@\_selah](https://discourse.paraview.org/u/_selah)
#### Post date: [September 9, 2022, 3:44pm UTC](https://discourse.paraview.org/t/converting-csv-files-to-3d-plots-stuck/7560/21 "2022-09-09T15:44:28Z")

</div>

Thanks guys,

You are right @Kenneth_Moreland the discussion has moved from the original topic, I think that I was searching for something similar to [this](https://discourse.paraview.org/t/how-to-color-unstructured-grid-vtu/10140) an original post by @graysuit. @Rodrigo_Rocha asked the same [here](https://discourse.paraview.org/t/block-model-view/6965/3)

My dataset is a geological block model: a table where every row represents a point with xyz location and a set of variables like gold, silver, copper, density, name of the rock, etc (only Au\_SGS included here)

![image](https://discourse.paraview.org/uploads/default/original/2X/b/b73d87b6ff93ab778e3d646916fc2e28e0d13485.png)

The goal is to represent these points like cubes where every cube can take a different color based upon its variable value

 ![image](https://discourse.paraview.org/uploads/default/original/2X/d/dc1db6e6f33e0c192e169022a905cb0e18a7c69a.jpeg)

Then separate some cubes based upon a range of variable values (eg: Au SGS\>4)

 ![image](https://discourse.paraview.org/uploads/default/original/2X/d/dd49a3a5260904a05c777accff74525fff5554c0.jpeg)

I thought that the _point data to cell data filter_ will work but I did not know that paraview uses the point like a grid vertex, my best approach for now is this:

To use the _table to structured grid filter_

 ![image](https://discourse.paraview.org/uploads/default/original/2X/7/705caede77f29eb527723990dc04ce62fe621796.jpeg)

_Threshold filter_ based upon a variable range (here Au\_SGS \> 4)

 ![image](https://discourse.paraview.org/uploads/default/original/2X/7/7eda8a7a15c0387ac21d467f9481becec48da1dd.jpeg)

_Cell Center Filter_ to get the centroid of the cubes

 ![image](https://discourse.paraview.org/uploads/default/original/2X/f/fbf96d162196c337a27d1d63612265ac2cb749ed.jpeg)

_Resample with datase filter_ to assign the cubes values to the centroid points

 ![image](https://discourse.paraview.org/uploads/default/original/2X/1/18e0fb7dc25d3e32a7de2bc23c1c5f2dd5108541.jpeg)

_Point data to cell data filter_ to assign the centroid point value to the cube and get a unique color by cube

 ![image](https://discourse.paraview.org/uploads/default/original/2X/e/e106e6d6e07b313cd0cd4e906bd41edce80e8cd6.png)

It looks nice and very similar graphically to what I expected, like the [block.vtu](https://discourse.paraview.org/t/how-to-color-unstructured-grid-vtu/10140) example of @graysuit

 ![image](https://discourse.paraview.org/uploads/default/original/2X/a/a39377f5f9781a248bed0801b97114e8eb30085c.jpeg)

However if I use the original points and apply an _extraction selection filter_ to Au\_SGS \> 4 and compare them with the cubes they do not match

 ![image](https://discourse.paraview.org/uploads/default/original/2X/a/a61a2002137d5d319537b412fc3fae10ead00b96.jpeg)

---

_[View the full topic](https://discourse.paraview.org/t/converting-csv-files-to-3d-plots-stuck/7560)._
