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

I have overlaping circle, triangle & rect. I need 2 come up with algorithm 2 draw the outline of their union.?
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-08 17:45:51 · 3 answers · asked by dj 1 in Science & Mathematics Mathematics

i need an algo to traverse the path formed by the outline of the union of these shapes. for eg u had 2 overlapping circles. the final outline would be an eight shaped figure. i need to develop logic to draw that.

2006-08-08 20:59:13 · update #1

3 answers

As much as I can picture what you're trying to do, I'd start with the circle, then draw the triangle with one of the angles at the center of the circle. Finally, I'd add the overlapping rectangle, having one corner at the center of the circle, and one side collinear with one side of the triangle (which also happens to be a radius of the circle).

2006-08-08 20:50:34 · answer #1 · answered by bpiguy 7 · 0 0

It seems to be more a matter of angles, the rectangle will always be 90, the circle will always be circular but nothing else will be and the triangle will always have at least two angles that aren't right

If angle is 90 then is next angle 90 if not it's a triangle, etc.

2006-08-08 17:52:58 · answer #2 · answered by Anonymous · 0 0

It would help if you gave more background and info on the problem

2006-08-08 19:01:46 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers