Rendering a Mesh

Hi,
What is the current best way to render pragmatically created Mesh?
I’ve tried this solution http://www.cocos2d-x.org/wiki/3D_Graphics#Building-a-Mesh , but it seems to be no longer up to date.

There is a suggestion to extends Node and there in draw() method render the mesh. It’s no longer possible that way as for ex. mesh->getMeshCommand() is now protected and not visible to Node

What is the best solution for this in v3.6 or 3.7?

Not sure if this is too late… but this might help…

Thanks for the reply, the post you linked looks very good.

I faced this problem when was trying to have a randomly generated terrain in my game, but I abandoned this idea for now. However, your post will be useful when I get back to it.