# Out of memory error in \`viz\` of 3D \`RectilinearGrid\` from Meshes.jl

**URL:** <https://discourse.julialang.org/t/out-of-memory-error-in-viz-of-3d-rectilineargrid-from-meshes-jl/128643>\
**Category:** Visualization\
**Tags:** hdf5, memory, glmakie, meshes\
**Created:** [May 2, 2025, 9:46pm UTC](https://discourse.julialang.org/t/out-of-memory-error-in-viz-of-3d-rectilineargrid-from-meshes-jl/128643 "2025-05-02T21:46:04Z")\
**Posts on this page:** 1\
**Showing post:** 34

<div class="post-metadata">

**Author:** ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Post date:** [May 31, 2025, 7:30pm UTC](https://discourse.julialang.org/t/out-of-memory-error-in-viz-of-3d-rectilineargrid-from-meshes-jl/128643/34 "2025-05-31T19:30:03Z")

</div>

There are many ways of downsampling as mentioned in [Plotting image data in Julia is much slower than MATLAB - #17 by stevengj](https://discourse.julialang.org/t/plotting-image-data-in-julia-is-much-slower-than-matlab/79660/17)  
What are best ways of downsampling for my case? See grid points of my data in scatter plot below. 👇

 ![image](https://global.discourse-cdn.com/julialang/original/3X/f/c/fcc4c8814ac42b8300fe6586377a181db666c842.jpeg)  
and also other photo viewed from top of sphere.  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/6/766771346927ef9d01e30685e76c5108a7167d8c.jpeg)  
In my case i have points in 3D space having x, y and z coordinates. Each point have associated values like Density or Pressure or Velocity in x,y and z directions etc. in different arrays. If i remove a point in 3D space by downsampling then i have to downsample that point associated value in arrays having Density or Pressure or Velocity in x, y and z directions.

---

_[View the full topic](https://discourse.julialang.org/t/out-of-memory-error-in-viz-of-3d-rectilineargrid-from-meshes-jl/128643)._
