Hi,
I’ll try to keep it brief:
I want to create a mesh, dynamically at runtime.
What I have is an Array (A Vector.<Vector3d>) with vertices that create a path. The path is 2-dimensional, aligned at the y-axis.
What I want to do now is create a flat polygon from it.
As I see, I can create a Mesh out of different triangles. Thing is, my path is not a 3-gon, but an n-gon.
Are there any methods in Away3d 4.x that help me achieving this? Maybe a method that takes my vertices (the path) and return an Array of triangular paths, which I then pass on to the MeshHelper.build method?
If not, I’ll try to write such an algorithm on my own, but if there already is a solution, I don’t want to waste valuable time on that topic.