Union() operation adds hole to polyshape

10 visualizaciones (últimos 30 días)
Matt J
Matt J el 17 de Abr. de 2020
Respondida: Matt J el 1 de Jun. de 2020
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 comentarios
Jyotsna Talluri
Jyotsna Talluri el 24 de Abr. de 2020
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 el 29 de Abr. de 2020
Thank you!

Iniciar sesión para comentar.

Respuesta aceptada

Matt J
Matt J el 1 de Jun. de 2020

Más respuestas (0)

Categorías

Más información sobre Elementary Polygons en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by