Delaunay Triangulation

Hi Guys,

Anyone know how to use Delaunay Triangulation with touchdesigner.?

I am a beginner it seems near impossible to me. Anyone can help (like the picture below)?

best regards

Any idea On that?

take a look at this example-

a combination of the convert SOP and the facet SOP can probably help you achieve the effect.
triangulation_example.toe (6.17 KB)

Thanks .

it seems to be a solution.

Sorry to ask you too much but it is hard to find learning material about this.

Is it hard to adapt it to a picture of a face? Would you mind sharing a toe changing the sphere to a Movieinfile?

PS:I connected a movieinfile to a convert sop than connected to the sphere, and the form does not seems to be face

Thanks

Guys

Please any help for this?

tks

Hey,

check out jonathanpuckey.com/projects/delaunay-raster/ for the original idea and process.

There is a delaunay class that comes with scipy. I followed this
derivative.ca/forum/viewtopic.php?f=4&t=6757
and then used a script SOP to generate delaunay solutions for random point clouds:

import numpy as np
import scipy.spatial as sc
def cook(scriptOp):
	scriptOp.clear()
	points = [[i.x,i.y] for i in scriptOp.inputs[0].points]
	tri = sc.Delaunay(points)
	
	for ia,ib,ic in tri.vertices:
		poly = scriptOp.appendPoly(3)
		list = [ia,ib,ic]
		for i in poly:
			i.point.P = (points[list[i.index]][0],points[list[i.index]][1],0.0)
		
	return

But to do this with video or images you would have to figure out how to do meaningful mesh reconstruction.

Cheers
Markus

2 Likes