PDA

View Full Version : Mesh Merging



DarkOne
02-01-2012, 04:27 PM
Hi,
I'm looking for a tutorial, or codeblock, that will combine two meshes. For example, I define an area on one mesh where I'd like to attach it to the surface of another mesh. Then I drag the first mesh onto the surface of the other mesh, and it combines them. I've read that Delaunay Triangulation can be used for this, I'm searching for a good example/tutorial.

baerentzen
02-08-2012, 01:29 AM
This is completely off topic, and Delaunay triangulation is for something else, but the interactive program meshmixer will probably do what you need.
- Andreas

rms80
02-08-2012, 01:43 PM
You may be interested in this source code:

http://www.dgp.toronto.edu/~rms/software/DragDropTool/index.html

which does in fact use Delaunay triangulation...

However it is much longer than what could be considered a 'codeblock'. What you are describing is rather complicated.

DarkOne
02-09-2012, 05:11 PM
Yes, I've spoken with the man who made Mesh-Mixer. It is open-source, but there's so much code, I don't even know where to begin.

I'm not trying to reinvent the wheel here, but I thought that if I could learn how to merge meshes myself, it might be easier than chopping up his program.

baerentzen
02-11-2012, 03:44 PM
I think it is an inherently difficult problem you are trying to solve, which is why I rejected Delaunay triangulation although I can see it can be part of the solution. No single algorithm will work. You need to cut both meshes and stitch the boundaries.

Probably the example linked to above by RMS is your best bet...