I wrote some NGons extension methods. I have quite a lot of them. And I would like to organize my code better.
For now one of extension methods looks like this: public static int[][] GetNgonsConnectedToNGonsEdges(this Mesh mesh, HashSet<int> allNGonsEdges, bool flag = true){...}
It means each time I use meshes I can type mesh.ExtensionMethod().
Since it is all about ngons, I would like not type to mesh.ExtensionMethod(),
but mesh.NGons.ExtensionMethod()
How can I properly do this? Is it possible?
Because in extension methods I still use mesh functions, but it is all about ngons.
I don’t think it is possible to do that kind of namespacing. You’d best make sure your extension method naming scheme is clear enough. Instead of looking for a NGon namespace you could just always start your extension methods for them with Ngon, i.e. NgonGetNgonsConnectedToNgonsEdges. It will be quite a bit to type, but with a good editor that has proper autocompletion that shouldn’t be a problem.