PDA

View Full Version : subdivided plane



asdf asdf
12-01-2006, 09:16 PM
Hi all! :)

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!!! :)

k_szczech
12-02-2006, 08:32 AM
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.