Delaunay Triangulation with a hole in the domain

조회 수: 8 (최근 30일)
Lockenlui
Lockenlui 2018년 11월 8일
편집: Bruno Luong 2018년 11월 8일
Hi everyone,
I did some temperature measurments on a rectangular plate with a hole in the middle. The matrix with the temperature measurements is therefore of the following form (The indices of the matrix elements are proportional to the spatial coordinates of the measurement positions). 'a' represents some temperature value. '0' means that no temperature was recorded at this spatial point:
  • 0000000000000
  • 00aaaaaaaaa00
  • 00aaaaaaaaa00
  • 00aaa000aaa00
  • 00aa00000aa00
  • 00aaa000aaa00
  • 00aaaaaaaaa00
  • 00aaaaaaaaa00
  • 0000000000000
I would like to create a mesh of the 'a' entries omitting the '0' entries - using Delaunay triangulation - without the hole in the middle and the margins (the zero entries of the matrix). The mesh should represnt the shape of the plate, which should like this in the end:
Can someone pls suggest a solution or share his/her ideas with me, that would be nice. Thanks

답변 (1개)

Bruno Luong
Bruno Luong 2018년 11월 8일
편집: Bruno Luong 2018년 11월 8일
Why reinvent the wheel? This FEX will do.
  댓글 수: 6
Lockenlui
Lockenlui 2018년 11월 8일
Yeah okay, but this is not a trivial task. I could identify all boundary nodes as those nodes, that have a '0' entry as a neighbouring element. Any clue how to proceed then?
I found a workaround: if coords is the (n,2)-coordinate matrix of the n measurement points, then:
shp = alphaShape(coords)
tri = alphaTriangulation(shp)
will give something link this:
Bruno Luong
Bruno Luong 2018년 11월 8일
편집: Bruno Luong 2018년 11월 8일
Look at the code corresponds to
> tridemo(8)
that does much more than what you asked.

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

카테고리

Help CenterFile Exchange에서 Delaunay Triangulation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by