English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

It is a logic problem. i can get all intersection points which i finally need to connect. i am stuck as to how do i join them. i can't simply join the points. they might follow an arc or a triangular shape etc. kindly help

2006-08-07 01:25:22 · 2 answers · asked by dj 1 in Science & Mathematics Engineering

2 answers

1. Draw all interior points of the circle red.
2. For each interior point of the triangle :
if the point is red : point is in interior of Union

Done.

3. if you only want the outline of the union :
Remove all red points that only has red neighbours

You can also use an algebraic algorithm
what algorithm is best for you depends on the representation of your circle / triangle.

2006-08-07 01:39:33 · answer #1 · answered by gjmb1960 7 · 1 0

convex hull algorithms

http://en.wikipedia.org/wiki/Convex_hull

have fun

PS: make sure not to put false intersections in them... ie: if 2 line intersect, it doesn't mean that 2 segments will intersect (sorry if the demonimation is incorect: not native english speaker. hope you get the point, though)

2006-08-07 08:35:55 · answer #2 · answered by Anonymous · 0 1

fedest.com, questions and answers