Reputation: 73
I have generated a Voronoi tessellation for N number of points in 2D space using the deldir
R package.
Now I want to divide each Voronoi cell into three Voronoi cells according to given azimuth described as below:
Azimuth is given as an input. E.g.: azimuth = 0 means an area should be separated by 2 lines at angle = 0 to angle = 120. Next area by angle = 120 to angle = 240 and last area is the remainder.
Azimuth is the starting angle from north for this separation and always it spans 120 degrees. In more detail, from each point Voronoi is generated exactly three lines are drawn dividing previous Voronoi cell into three Voronoi cells.
Can this be achieved using the deldir
package? if not can anyone suggest a extension for this?
Upvotes: 2
Views: 533
Reputation: 78
I don't know any easy/implemented way of doing this. However, you could try creating those lines manually.
I would try something along the lines of:
This may well be a very clumsy solution, but it is the only workaround I could come up with ;)
Upvotes: 2