The definition above should have worked with your file.
Attached is a internalized version.
R8-RiR-Toposolid-Internalized.gh (23.6 KB)
When creating a Toposolid via the Revit UI you create a profile (bottom crv)
then add points, the Revit API creation is no different.

