automatically creating triangles

Hi,

I want to know if there is a way to automatically creating triangles in a mesh.

For example, I set the vertices and do a “magic” command :slight_smile:

I’m making a applications that the user can draw lines, these lines will be transformed in walls (a closed room) but I’m having the problem to figure How can I make the floor, depending the form the user draws the room, I say, If the form drawed is Convex, it’s ok, but if the form is concave, i don’t know how to make the vertices links, ensuring the form shape.

You can see the project here:

widemedia.com.br/projetos/homebuilder

Thanks,

Borgo

There is no magic about it. You have to set the vertices first. Then use mesh.triangles to specify which vertices form a triangle.

I found a script in UnifyCommunity: