subdivided plane

Hi all! :slight_smile:

I really want to generate subdivided rectangles, i want to know if there is any library to perform it in an easy way. If there is not, can anyone help me to know how to do it?

for example, generate a rectangle using the vertex v1…v4 with 4 horizontal subdivisions and 6 vertical subdivisions.

Thanks a lot!!! :slight_smile:

What kind of subdivision?
I assume it’s not about just splitting rectangle into smaller parts, but your rectangle is part of smoothed surface and you want these new vertices to approximate smoothed geometry.
You could try Catmull-Clark subdivision. I don’t know any library for it but it’s simple enough to implement.