There's probably something out there that will optimize the problem (it's a
localization problem, minimizing tris for comparison), but I think you have
to compare triangles against each other and determine if they share verts.

You know how tris in the same tri strip share an edge
You don't know how tris in strips are shared between tri strips
You don't know how tris in strips are shared between individual tris
You don't know how individual tris are shared between individual tris

Brian

[EMAIL PROTECTED] wrote: -----


To: [email protected]
From: "Edgar Moraes Diniz" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
Date: 04/21/2008 11:14AM
Subject: [osg-users] Edge sharing

Hello,

I built a volume using MarchingCubes algorithm.

Now I need to get information about which vertices share an edge with each
vertex. The problem is: since MarchingCubes generates lots of doubled
vertices, I made a triangle stripfication to fix this. Now my Geometry is
composed by a mix of TRIANGLE_STRIP and TRIANGLES PrimitiveSets.

Obs. 1: I used an Optimizer with full optimization, wich does, among
several other things, triangle stripfication, right?
Obs. 2: My geode uses a single Geometry which, before optimization,
contained a single, huge primitive set with all the triangles generated by
MarchingCubes; after optimization, it is divided into several
TRIANGLE_STRIPs and one last (still big) TRIANGLES primitive set.

How can I find the neighbors of each vertex?

Thanks in advance.

--
/*
* Edgar Moraes Diniz
* Universidade Federal do Maranhão
* Departamento de Informática
* Laboratório de Processamento e Análise de Imagens
* e-mail: [EMAIL PROTECTED]
*/ _______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to