Determining the new faces (subpolygons) when vertical lines intersect polygon

조회 수: 1 (최근 30일)
Hi everyone,
If a polygon is inside a rectangle, and a set of vertical parallel lines where each of them pass through one vertex creating new faces.
Is there algorithm to determining the points of the new faces, when a vertical parallel lines cut polygon that lies inside rectangle?

채택된 답변

Image Analyst
Image Analyst 2014년 3월 22일
If you want to do it numerically, sure. Just turn it into an array (an image) and use find() to find the intersections in each column. If you want to do it analytically, then it seems to be a theoretical math or geometry problem - not sure it's a MATLAB problem.
  댓글 수: 7
Image Analyst
Image Analyst 2014년 3월 23일
No, not unless you make it an image - a true color RGB image with pixels.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Elementary Polygons에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by