# Makie hypersphere with radius other than 1?

**URL:** <https://discourse.julialang.org/t/makie-hypersphere-with-radius-other-than-1/21460>\
**Category:** Visualization\
**Created:** [March 4, 2019, 2:59pm UTC](https://discourse.julialang.org/t/makie-hypersphere-with-radius-other-than-1/21460 "2019-03-04T14:59:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmhaeren](https://avatars.discourse-cdn.com/v4/letter/k/6de8d8/32.png) [@kmhaeren](https://discourse.julialang.org/u/kmhaeren)\
**Post date:** [March 4, 2019, 2:59pm UTC](https://discourse.julialang.org/t/makie-hypersphere-with-radius-other-than-1/21460/1 "2019-03-04T14:59:57Z")

</div>

Hi

I’m using Makie to display a physics engine, and I’m trying to draw 3D spheres of different radii,  
however, when I try to display “Sphere(Point3(0),5)” for example, it still shows a sphere with a radius of 1. I looked at the source code and I believe the second argument should be the radius, however, no matter what value I enter there, the sphere remains unchanged. I’m still learning, so chances are I’m doing something completely wrong.  
Any clues?

thanks in advance

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [March 4, 2019, 4:42pm UTC](https://discourse.julialang.org/t/makie-hypersphere-with-radius-other-than-1/21460/2 "2019-03-04T16:42:50Z")

</div>

Can you give the full code you tried?

```julia
using Makie
mesh(Sphere(Point3(0),9))

```

Works just fine for me.

Note, that you can also do:

```nohighlight
meshscatter(rand(Point3f0, 100), markersize = LinRange(0.01, 0.03, 100))

```

For lots of spheres 😉 You can also use other geometries via the `marker` argument, and also color them etc 😉

---

<div class="post-metadata">

**Author:** ![kmhaeren](https://avatars.discourse-cdn.com/v4/letter/k/6de8d8/32.png) [@kmhaeren](https://discourse.julialang.org/u/kmhaeren)\
**Post date:** [March 4, 2019, 5:22pm UTC](https://discourse.julialang.org/t/makie-hypersphere-with-radius-other-than-1/21460/3 "2019-03-04T17:22:25Z")

</div>

Thanks for responding so quickly!  
The first example also gives me a unit sphere, if I can trust the gridlines provided in the plot.  
The second example does work.

```julia
using Makie
scene = Scene()

for radius in [1,2,3,4]
    #plot multiple spheres w/ different radii and centers
    wireframe!(scene, Sphere(Point3(2*radius),radius),limits=FRect3D([0,0,0],[10,10,10]))
    s = scene[end]
end

record(scene, "interaction.mp4", collect(0:60)) do i
    #perform translations and rotations on spheres
end

```

This is a minimal example of what I currently use, which for me plots only unit spheres, all of them having the origin as center (I plot them seperatly to be able to store the “scene[end]”, to apply rotations and translations to each individual sphere while running the simulation, if that makes sense)

---

<div class="post-metadata">

**Author:** ![kmhaeren](https://avatars.discourse-cdn.com/v4/letter/k/6de8d8/32.png) [@kmhaeren](https://discourse.julialang.org/u/kmhaeren)\
**Post date:** [March 5, 2019, 5:12pm UTC](https://discourse.julialang.org/t/makie-hypersphere-with-radius-other-than-1/21460/4 "2019-03-05T17:12:47Z")

</div>

Hi, I recompiled Makie and now it suddenly works, thanks for the response, sorry to bother!
