Delaunay Triangulation
Endpoint: https://studiobitonti.appspot.com/delaunay
The delaunay triangulation function creates triangular connections in 2D and 3D. The input is a point cloud array in any dimensions. (2D/3D/4D…)
Input:
Points: Input the list list of 2d , 3d or high-dimensional points locations to be calculated..
They should be in a .json format. The Structure would be as follows:
For 2D points:
"points":[[x1,y1],[x2,y2],[x3,y3],...]
For 3D Points:
"points":[[x1,y1,z1],[x2,y2,z2],[x3,y3,z3],...]
T: [YOUR SECRET TOKEN]
Output:
The result is a string output of points. It is as follows:
{"delaunay":[[a1,b1,c1,d1],[a2,b2,c2,d2],[a3,b3,c3,d3].....]}
Example:
request input: { "points":[[-28.918442,8.70964,1.0],[-43.438754,-2.261607,0.0],[-42.419287,10.503024,2.0],[-33.557706,-1.216382,5.0],[-36.607761,6.483151,0.0],[-44.044205,4.3235,0.0]] } Full request URL: https://studiobitonti.appspot.com/delaunay?t=[YOUR SECRET TOKEN] Response: {"delaunay":[[1,2,3,5],[4,2,3,5],[4,2,3,0],[4,1,3,5],[4,1,3,0]]}