Jump to content

[SOLVED] How to triangulate in UnigineScript


photo

Recommended Posts

Posted

Hi all,

I'm creating some functions to create simple 2D primitives, one of them is to create a polygon.

This polygon is defined by user tracing the contour, so I have to implement an algorithm to define the triangulation.

My question is if there is already functions in UnigineScript for this.

 

In case there isn't any function for this, I'm going to implement incremental construction in 2D using Delaunay triangulation. If anyone has experience with this I'll appreciate all your good advices.

 

Thanks in advance.

Iván.

Posted

At the moment there is NO UnigineScript code for 2D polygon triangulation as far as I know.

Posted

If anyone is interested, I found this link about different triangulation methods.

I used this one because it fits my needs and it was very easy to implement in enigine.

×
×
  • Create New...