# Recreating gif style figure on Spherical Harmonics read me

**URL:** <https://forum.allencell.org/t/recreating-gif-style-figure-on-spherical-harmonics-read-me/766>\
**Category:** Other Discussions\
**Created:** [June 3, 2025, 6:25pm UTC](https://forum.allencell.org/t/recreating-gif-style-figure-on-spherical-harmonics-read-me/766 "2025-06-03T18:25:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![msforman](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@msforman](https://forum.allencell.org/u/msforman)\
**Post date:** [June 3, 2025, 6:25pm UTC](https://forum.allencell.org/t/recreating-gif-style-figure-on-spherical-harmonics-read-me/766/1 "2025-06-03T18:25:00Z")

</div>

I am looking to recreate this figure and was curious what tools were used to generate it, and how the ‘error’ is found/calculated here (MSE?) Thank you!

 ![Screenshot 2025-06-03 at 11.24.20 AM](https://canada1.discourse-cdn.com/flex027/uploads/allencell/original/1X/ca682043f2c51d89ceef4feee50684d342bcc88a.png)

---

<div class="post-metadata">

**Author:** ![vianamp](https://avatars.discourse-cdn.com/v4/letter/v/919ad9/32.png) [@vianamp](https://forum.allencell.org/u/vianamp)\
**Post date:** [June 26, 2025, 8:30pm UTC](https://forum.allencell.org/t/recreating-gif-style-figure-on-spherical-harmonics-read-me/766/2 "2025-06-26T20:30:39Z")

</div>

Hi! Meshes are generated in Python and saved as `.vtk` files. These files are open in Paraview for the final 3D visualization. The error is computed as follows. For each point in the reconstructed mesh we find the nearest point in the original mesh and compute the distance between them. The process is repeated for all points and the error corresponds to the average distance between all pairs of points. Let us know if you have more questions.
