I’ve added a V5-equivalent.
https://github.com/mcneel/rhino-developer-samples/blob/5/cpp/SampleCommands/cmdSampleGumballCylinder.cpp
– Daler