필터 지우기
필터 지우기

Intersection between two 3D flat polygon

조회 수: 5 (최근 30일)
HSO
HSO 2013년 5월 27일
댓글: Matt J 2017년 12월 22일
Hello, I Just trying to compute the result polygon on the intersection of two 3D flat convex polygons defined by their vertices.
They are in the same plane, but this one is in 3D coordinates, and i need to compute the resulting 3d points the define the intersection between the two.
lets say polygon 1 is defines by n vertices(x,y,z) and polygon 2 also, result the points that define the new intersected polygon.
Thanks

답변 (1개)

Matt J
Matt J 2013년 5월 27일
편집: Matt J 2013년 5월 27일
You can use this
If V1 and V2 are the two sets of vertices
[A1,b1,Aeq1,beq1]=vert2lcon(V1);
[A2,b2]=vert2lcon(V2);
V_intersection=lcon2vert([A1;A2],[b1;b2],Aeq1,beq1),
  댓글 수: 1
Matt J
Matt J 2017년 12월 22일
The same FEX package now contains a function to do this more simply:
I=intersectionHull('vert',V1,'vert',V2);

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

카테고리

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