polybool error because of invalid polygon

4 visualizaciones (últimos 30 días)
Daniel
Daniel el 28 de Nov. de 2014
Respondida: Rob Comer el 28 de En. de 2020
Hello,
i am having trouble with handling polygons with the polybool function. In some cases i get an error that my polygons are invalid, although they look fine in my opinion. Furthermore the calculation of the intersection (same two polygons) does not give the right result. I have added the files with the coordinates of the polygons that cause trouble and the result of the intersection, which has an error in the upper part of the polygons. I hope someone has a solution to this problem.
Thanks in advance
--------------- I'm sorry, i added the files now.
  1 comentario
Geoff Hayes
Geoff Hayes el 28 de Nov. de 2014
Daniel - the files have not been attached. After choosing the file, make sure you press the Attach File button.

Iniciar sesión para comentar.

Respuestas (2)

Daniel
Daniel el 8 de Dic. de 2014
no one having an idea to handle this issue?

Rob Comer
Rob Comer el 28 de En. de 2020
Errors like these can easily arise from small defects in the topology of the input polygons. The MATLAB polyshape class (with methods including intersect, subtract, etc.) is available in R2017b and later and is recommended over polybool. polyshape includes automated data correction/clean-up by default. (See the 'Simplify' name-value option.)

Categorías

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

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by