0

I have 3D Points array.each 3D point have x,y,z data. I want to generate delaunay triangulation.I am new in delaunay triangulation. My array as below.
-256.24 85.35 5.0
-262.24 84.35 15.0
-263.24 87.35 25.0
................
I am working in c++ with Visual studio IDE. I want to generate indexes of triangulation. As well as array of triangles points.

  • What software do you have? – Jakub Sisak GeoGraphics Nov 27 '14 at 14:08
  • I am using visual studio IDE and working in C++. – kalpesh Nov 28 '14 at 6:03
3

Using scipy and numpy:

import numpy as np
from scipy.spatial import Delaunay

#do triangulation
points = np.random.rand(4, 3)
tri = Delaunay(points)

#indices
tri.simplices

#points
tri.points

See the documentation here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.