# Create sphere with designated center point

**URL:** <https://discourse.slicer.org/t/create-sphere-with-designated-center-point/33153>\
**Category:** Support\
**Created:** [November 30, 2023, 8:42pm UTC](https://discourse.slicer.org/t/create-sphere-with-designated-center-point/33153 "2023-11-30T20:42:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![lccmyers](https://avatars.discourse-cdn.com/v4/letter/l/848f3c/32.png) [@lccmyers](https://discourse.slicer.org/u/lccmyers)\
**Post date:** [November 30, 2023, 8:42pm UTC](https://discourse.slicer.org/t/create-sphere-with-designated-center-point/33153/1 "2023-11-30T20:42:58Z")

</div>

I’d like to know how to create a sphere with customizable size with the centroid of the sphere being a designated markup point, any ideas?

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [November 30, 2023, 10:06pm UTC](https://discourse.slicer.org/t/create-sphere-with-designated-center-point/33153/2 "2023-11-30T22:06:01Z")

</div>

> [@lccmyers](#):
>
> customizable size with the centroid of the sphere being a designated markup point

You may install the ‘ExtraMarkups’ extension using the ‘Extensions manager’. It provides the ‘Shape’ custom markups that does that.

---

<div class="post-metadata">

**Author:** ![lccmyers](https://avatars.discourse-cdn.com/v4/letter/l/848f3c/32.png) [@lccmyers](https://discourse.slicer.org/u/lccmyers)\
**Post date:** [November 30, 2023, 10:15pm UTC](https://discourse.slicer.org/t/create-sphere-with-designated-center-point/33153/3 "2023-11-30T22:15:56Z")

</div>

Great, thank you! If I have a point that I want to be the center of the sphere, how do I designate that point as the center? I took a look at the documentation for the extension but wasn’t able to figure it out.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [December 1, 2023, 8:19am UTC](https://discourse.slicer.org/t/create-sphere-with-designated-center-point/33153/4 "2023-12-01T08:19:15Z")

</div>

Control points of markups nodes are [movable](https://slicer.readthedocs.io/en/latest/user_guide/modules/markups.html#edit-control-point-positions-in-existing-markups) using the mouse. Just place the centre of the sphere on your target point.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [December 1, 2023, 4:57pm UTC](https://discourse.slicer.org/t/create-sphere-with-designated-center-point/33153/5 "2023-12-01T16:57:55Z")

</div>

> [@lccmyers](#):
>
> If I have a point

If you mean that you know the coordinates of the point as [r, a, s], just enter these values in the ‘Markups’ module’s widget, for the first point if the sphere is in ‘Centered mode’.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 3, 2023, 2:14am UTC](https://discourse.slicer.org/t/create-sphere-with-designated-center-point/33153/6 "2023-12-03T02:14:24Z")

</div>

There are also several examples for this in the [script repository](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#define-edit-a-circular-region-of-interest-in-a-slice-viewer).

---

<div class="post-metadata">

**Author:** ![philippepellerin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/philippepellerin/32/16062_2.png) [@philippepellerin](https://discourse.slicer.org/u/philippepellerin)\
**Post date:** [December 3, 2023, 10:59am UTC](https://discourse.slicer.org/t/create-sphere-with-designated-center-point/33153/7 "2023-12-03T10:59:44Z")

</div>

Great, this markup add is very usefull, thanks again.

---

<div class="post-metadata">

**Author:** ![lccmyers](https://avatars.discourse-cdn.com/v4/letter/l/848f3c/32.png) [@lccmyers](https://discourse.slicer.org/u/lccmyers)\
**Post date:** [December 4, 2023, 7:11pm UTC](https://discourse.slicer.org/t/create-sphere-with-designated-center-point/33153/8 "2023-12-04T19:11:17Z")

</div>

Thank you everyone for the help! I’m attempting to download the “ExtraMarkups” extension and it doesn’t seem to be working. Here’s a photo of what my markups view should look like first, and then what mine looks like after installing the extension second.

What it should be:

 ![Screenshot 2023-12-04 at 12.59.01 PM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/6/062cf81d2db1ad95bd3f0ea674fb611bc109a795.png)

What mine is:

 ![Screenshot 2023-12-04 at 12.59.06 PM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/2/22c97534133730a6d1688161edb75147a2e8063c.png)

I’ve tried to install the extension manually but slicer says it is already installed, I’m hoping I’m just missing something really simple but I’m not sure. I’m on version 5.4 and on a 2020 M1 MacBook Air that’s on Ventura 13.4.1.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [December 4, 2023, 7:53pm UTC](https://discourse.slicer.org/t/create-sphere-with-designated-center-point/33153/9 "2023-12-04T19:53:15Z")

</div>

> [@lccmyers](#):
>
> but slicer says it is already installed,

Well the extra markups are clearly not loaded; the extension is available and operational with 5.4.

You may

- uninstall 5.4 and reinstall 5.4 and extensions,
- uninstall 5.4 and install 5.6 or Preview, and extensions.

Software do not work unexpectedly, they must perform similarly on your machine. Now yours is an outlier since it executes x86\_64 code via an emulator on an ARM CPU. I don’t know how far this may affect Slicer, there have been multiple reports unexpected behaviour on this forum. Other people using the M1 and M2 processors may share their experience about the ExtraMarkups extension.
