Create sphere with designated center point

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?

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

1 Like

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.

Control points of markups nodes are movable using the mouse. Just place the centre of the sphere on your target 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’.

There are also several examples for this in the script repository.

1 Like

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

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:

What mine is:

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.

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.