# Makie: Draw two meshes in one scene: Struggling with positioning

**URL:** https://discourse.julialang.org/t/makie-draw-two-meshes-in-one-scene-struggling-with-positioning/29651
**Category:** General Usage
**Created:** [October 8, 2019, 12:18pm UTC](https://discourse.julialang.org/t/makie-draw-two-meshes-in-one-scene-struggling-with-positioning/29651 "2019-10-08T12:18:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zsoerenm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zsoerenm/32/664_2.png) [@zsoerenm](https://discourse.julialang.org/u/zsoerenm)
#### Post date: [October 8, 2019, 12:18pm UTC](https://discourse.julialang.org/t/makie-draw-two-meshes-in-one-scene-struggling-with-positioning/29651/1 "2019-10-08T12:18:04Z")

</div>

I tried to draw two boxes in one scene. Both should be centered, but it appears, that there is something else going on:

```julia
using Makie
scene = mesh(Rect3D(((1,1,0), (-1,-1,0.1))), color = "green")
mesh!(scene, Rect3D(((.25,.25,0), (-.25,-.25,0.11))), color = "yellow")

```

![Makie_2Meshes](https://global.discourse-cdn.com/julialang/original/3X/f/2/f23efc82c9ae15a4723c1d70efaf3e393b1ee70d.png)  
I’d like the yellow mesh to be in the center of the green one.  
Am I right in the assumtion, that `Rect3D(((1,1,0), (-1,-1,0.1)))` draws a box from `(1,1,0)` to `(-1,-1,0.1)`?

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [October 8, 2019, 12:43pm UTC](https://discourse.julialang.org/t/makie-draw-two-meshes-in-one-scene-struggling-with-positioning/29651/2 "2019-10-08T12:43:37Z")

</div>

If you assume, that it is not draw box from-to, but draw a box with start-coordinates and 3 length values of the edges it would be for your values:

```julia
julia> scene = mesh(Rect3D(((-1,-1,0), (2,2,0.1))), color = "green")
julia> mesh!(scene, Rect3D(((-.25,-.25,0), (0.5,0.5,0.11))), color = "yellow")

```

 ![makie](https://global.discourse-cdn.com/julialang/original/3X/e/a/ea2912de03cdf357fafb15826b8c1280ce3acd12.jpeg)

Bit I didn’t look for details, just tried it.
