how to fill polygone with circles without intersect with each other

조회 수: 3 (최근 30일)
Hamza
Hamza 2013년 12월 9일
댓글: Hamza 2013년 12월 10일
I need help with the code, I want to make a polygone and fill it circles ,but the circles shouldn't intersect with the polygon or with other circles ,please help me with the code

답변 (1개)

Jan
Jan 2013년 12월 10일
I would assume, that your problem is not the actual coding, but the algorithm to use for solving this non-trivial task. Especially as you do not have (or at least did not state) any additional boundary conditions for acceptable solutions. E.g. are you looking for the minimum number of circles that cover the maximum area inside the polygon? In any case, I would start by looking into algorithms at least roughly concerned with the matter. E.g. how to construct the maximum inscribed circle in a convex polygon (this is much harder than it looks at a first glance). Maybe you can gather ideas from there, that help you solve your problem. E.g. by splitting the (non-convex) polygon into a number of convex polygons and applying the solution obtained above.
  댓글 수: 3
Jan
Jan 2013년 12월 10일
I just noticed, that Image Analyst provided a very neat answer to the same question just a few days ago. Did you try to implement his approach? If so, where exactly did you get stuck?
Hamza
Hamza 2013년 12월 10일
Actually I don't know how to use the image analyst

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Computational Geometry에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by