how can i add mesh like entity

how can i add mesh() like entity object?
like. scene:add(mymesh)

@q313923011 - you can build a texture up in an image() and then use that as the texture for a .obj or a table of vertices. There are a few examples recently fro @dave 1707 where he builds up a table and uses tiling for the terrain - but you can build your texture as above - that uses Craft.

Also, @LoopSpace - has some routines which convert a mesh into an obj file in situ - search recent posts for that.

@q313923011 this discussion is quite good:

It creates a mesh-like object as an entity in Craft in the shape of a circle with a shader attached. But once you get to this point you can create the mesh however you like