# a problem of 3d data

**URL:** https://discourse.vtk.org/t/a-problem-of-3d-data/13740
**Category:** Support
**Created:** [April 18, 2024, 12:13pm UTC](https://discourse.vtk.org/t/a-problem-of-3d-data/13740 "2024-04-18T12:13:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![czgchd](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@czgchd](https://discourse.vtk.org/u/czgchd)
#### Post date: [April 18, 2024, 12:13pm UTC](https://discourse.vtk.org/t/a-problem-of-3d-data/13740/1 "2024-04-18T12:13:30Z")

</div>

dear everyone 🙂  
i have a txt file, data is following 🙂  
x y z color  
0 2 3 0.5  
1 2 4 0.2  
3 2 5 0.1  
i want to build the 3d heatmap with VTK  
but i do not know to perform it.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [April 18, 2024, 12:36pm UTC](https://discourse.vtk.org/t/a-problem-of-3d-data/13740/2 "2024-04-18T12:36:49Z")

</div>

This is three points. Just a triangle with color for each point. Where is the 3D heatmap coming from ?

---

<div class="post-metadata">

### Author: ![czgchd](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@czgchd](https://discourse.vtk.org/u/czgchd)
#### Post date: [April 18, 2024, 12:40pm UTC](https://discourse.vtk.org/t/a-problem-of-3d-data/13740/3 "2024-04-18T12:40:55Z")

</div>

actually , x ,y,and z range is from 0 to 199  
x y z color  
0 0 0 0.5  
1 0 0 0.2  
0 1 0 0.2  
…  
199 199 199 0.8

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [April 18, 2024, 12:41pm UTC](https://discourse.vtk.org/t/a-problem-of-3d-data/13740/4 "2024-04-18T12:41:42Z")

</div>

Open the file with ParaView then using TableToRectilinearGrid filter.

---

<div class="post-metadata">

### Author: ![czgchd](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@czgchd](https://discourse.vtk.org/u/czgchd)
#### Post date: [April 18, 2024, 12:46pm UTC](https://discourse.vtk.org/t/a-problem-of-3d-data/13740/5 "2024-04-18T12:46:15Z")

</div>

> [@mwestphal](#):
>
> TableToRectilinearGrid

thanks , i will try it based on your advice.
