Re: overlapping area of two ellipses
- From: John Nagle <nagle@xxxxxxxxxxx>
- Date: Fri, 05 Sep 2008 18:15:06 -0700
Kaba wrote:
In article <b16cb342-c4ad-4349-82e5-dfefa4998e73
@y38g2000hsy.googlegroups.com>, info@xxxxxxxxxxx says...
2) Find out the intersection of the convex polygons (which is again a
convex polygon).
A sweep-algorithm works for 2).
Hi Kaba,
Can you help me to find a paper on this subject? I need to find
intersection of a polygon an a rectangle.
See the Sutherland-Hodgman algorithm. Google helps, for example:
http://www.cs.drexel.edu/~david/Classes/CS430/Lectures/L-05
_Polygons.6.pdf
As the paper reads, the same idea can be generalized to clipping inside a convex polygon. However, for the convex-convex (polygon) clipping I would use a sweep-based algorithm instead for increased performance (at least asymptocally):
http://en.wikipedia.org/wiki/Sweep_line_algorithm
Yes, that's a common problem. I've coded it at least twice.
It's all bookkeeping, not math. Plenty of examples in the
literature.
Ellipse vs. ellipse is more of a puzzle-like cute problem.
It might even be possible to develop a closed form solution,
but it's going to have multiple regions to be integrated
separately. Why do you need one?
I once spent months trying to develop a closed form solution
for the distance between two Pentland deformed superquadrics,
then gave up and went with convex polyhedra.
John Nagle
Animats
.
- References:
- overlapping area of two ellipses
- From: fatih . arslan . koc
- Re: overlapping area of two ellipses
- From: Alberto Bencivenni
- Re: overlapping area of two ellipses
- From: Kaba
- overlapping area of two ellipses
- Prev by Date: Re: raytracing
- Next by Date: Re: overlapping area of two ellipses
- Previous by thread: Re: overlapping area of two ellipses
- Next by thread: Re: overlapping area of two ellipses
- Index(es):
Relevant Pages
|
Loading