# Makie meshscatter positioning and rotation of non-spherical markers

**URL:** https://discourse.julialang.org/t/makie-meshscatter-positioning-and-rotation-of-non-spherical-markers/71660
**Category:** New to Julia
**Tags:** question, plotting, makie
**Created:** [November 17, 2021, 1:56pm UTC](https://discourse.julialang.org/t/makie-meshscatter-positioning-and-rotation-of-non-spherical-markers/71660 "2021-11-17T13:56:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hacklint](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hacklint/32/25568_2.png) [@hacklint](https://discourse.julialang.org/u/hacklint)
#### Post date: [November 17, 2021, 1:56pm UTC](https://discourse.julialang.org/t/makie-meshscatter-positioning-and-rotation-of-non-spherical-markers/71660/1 "2021-11-17T13:56:44Z")

</div>

Hi,  
I have assumed (bad idea…) that for a non-spherical marker (eg a box) in meshscatter the position and center of rotation would be the center of the box. That seems not to be the case but rather one of the corners of the box is used. Is this intentional? If it is - can the center be used as reference point for positioning and rotation in a simpler way than skipping meshscatter and explicitly drawing all box objects?  
@sdanisch

---

<div class="post-metadata">

### Author: ![lazarusA](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lazarusa/32/6571_2.png) [@lazarusA](https://discourse.julialang.org/u/lazarusA)
#### Post date: [November 17, 2021, 2:01pm UTC](https://discourse.julialang.org/t/makie-meshscatter-positioning-and-rotation-of-non-spherical-markers/71660/2 "2021-11-17T14:01:22Z")

</div>

if you do:

```julia
rectMesh = FRect3D(Vec3f(-0.5), Vec3f(1))

```

and then:

```julia
meshscatter(.... marker = rectMesh)

```

it will be centred.

---

<div class="post-metadata">

### Author: ![hacklint](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hacklint/32/25568_2.png) [@hacklint](https://discourse.julialang.org/u/hacklint)
#### Post date: [November 18, 2021, 7:39am UTC](https://discourse.julialang.org/t/makie-meshscatter-positioning-and-rotation-of-non-spherical-markers/71660/3 "2021-11-18T07:39:19Z")

</div>

Julia/Makie in a nutshell: Helpful community and solutions that  
look so obvious once you see them 😉  
Thanks!
