Union() operation adds hole to polyshape

조회 수: 10 (최근 30일)
Matt J
Matt J 2020년 4월 17일
답변: Matt J 2020년 6월 1일
I have attached a file containing a vector of 11 polyshape objects
>> load('polyshape_vector.mat')
>> whos pgon
Name Size Bytes Class Attributes
pgon 1x11 3080 polyshape
When these polyshapes are plotted, they form an agglomeration of triangles which, to the eye at least, has 2 holes
>> plot(pgon)
However, when I plot the union of this polyshape vector, a 3rd hole forms (this is in R2018a). It defies my intuition that taking the union of a collection of polygons could introduce more holes. Can anyone think why this might occur?
>> plot(union(pgon))
  댓글 수: 5
Jyotsna Talluri
Jyotsna Talluri 2020년 4월 24일
Seems to be a bug.I have brought this to the notice of our developers.They will look into it and investigate further
Matt J
Matt J 2020년 4월 29일
Thank you!

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

채택된 답변

Matt J
Matt J 2020년 6월 1일

추가 답변 (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