Re: outline polygon of overlapping triangles
- From: "Dave Eberly" <dNOSPAMeberly@xxxxxxxxxxxxxxx>
- Date: Mon, 24 Jul 2006 17:17:39 GMT
"Martin Henne" <martin.henne@xxxxxx> wrote in message
news:ea0gcj$kjv$1@xxxxxxxxxxxx
can someone help me with an url or something
where I can get an algorithm that creates
an outline polygon from overlapping triangles?
If you want the polygon that is the union of the
triangles, the suggestion to use Alan Murtha's
library is a good one.
If all you want is the *outermost bounding polygon*
(which is not the union), take a look at my sample
application "MeshEnvelope". At my web site, select
the "Source Code" tab, then the "Applications" tab,
and then the "Miscellaneous Samples" link. Scroll
down to the item "Compute the envelope...".
All of the intersections between triangle edges are
computed using a sort-and-sweep algorithm for
speed. A graph of edges/subedges is created.
Starting with the leftmost-bottommost vertex of
this graph, a traversal is made around the bounding
polygon. This amounts to examining each vertex for
the appropriate edge to continue the traversal, which
involves sorting the edges by angle about the vertex.
I use this algorithm for computing the boundary
polygons of obstacles in pathfinding systems. The
3D obstacles are triangle meshes. The triangles are
projected to the ground plane. Because I can afford
no topological errors due to numerical round-off
errors, the code uses exact rational arithmetic.
--
Dave Eberly
http://www.geometrictools.com
.
- References:
- outline polygon of overlapping triangles
- From: Martin Henne
- outline polygon of overlapping triangles
- Prev by Date: Re: gif grayscale
- Next by Date: Re: gif grayscale
- Previous by thread: Re: outline polygon of overlapping triangles
- Next by thread: Re: outline polygon of overlapping triangles
- Index(es):
Relevant Pages
|