You need to be more specific. If it is a rectangular planar surface, then yes this can be implemented fairly easily, if it is something else (for example flat surface with rounded edges, or a curved surface) it’s not impossible but it would require a lot more coding to get that to work.
Yes, for instance a pentagone flat surface.
I don’t know how you coded it, but for a flat surface with curves, In grasshopper I would make a bounding box, generate the floor on the buttom rectangle of the bounding box, then trim it with the curve surface. Then cap planks. with it be as simple in your code ?
It’s probably not too difficult, but still requires quite a bit of spare time that I currently don’t have. I’m not sure if trimming meshes will work that well though, and it needs to be meshes in order to apply mapping to it. In short: don’t expect anything soon
How made a random material in new vray 5?