# Permutedims of a mesh (swapping the order of axes )

**URL:** <https://discourse.julialang.org/t/permutedims-of-a-mesh-swapping-the-order-of-axes/106042>\
**Category:** New to Julia\
**Tags:** question, mesh\
**Created:** [November 10, 2023, 3:59pm UTC](https://discourse.julialang.org/t/permutedims-of-a-mesh-swapping-the-order-of-axes/106042 "2023-11-10T15:59:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gltchr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gltchr/32/35322_2.png) [@gltchr](https://discourse.julialang.org/u/gltchr)\
**Post date:** [November 10, 2023, 3:59pm UTC](https://discourse.julialang.org/t/permutedims-of-a-mesh-swapping-the-order-of-axes/106042/1 "2023-11-10T15:59:43Z")

</div>

Hello,  
I want to read several geometries for visualisation from a list of .obj files, however their axes are arranged in the wrong order (y,z,x) in my frame of reference.  
**Goal** : _permute dimensions of a mesh._  
The mesh loads OK and can be visualized with Makie,  
After naively attempting permutedims, which did not work, I tried searching for Meshes.jl docs Transformations section. The only applicable one is rotation, but seems like that might be actually computing all those transforms which is undesirable (these a quite large meshes).  
I have a feeling that there should be a straightforward solution that I am missing?

Thanks!

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [November 10, 2023, 5:54pm UTC](https://discourse.julialang.org/t/permutedims-of-a-mesh-swapping-the-order-of-axes/106042/2 "2023-11-10T17:54:56Z")

</div>

I have a similar issue, but I addressed it by modifying the points before the mesh was constructed.

I think we should be able to rebuild thr faces with the dimensions swapped directly.
