Meshes: Build facets from edge and point information only

조회 수: 4 (최근 30일)
Ziruela
Ziruela 2015년 7월 13일
답변: TED MOSBY 2025년 3월 18일
Is there a way to build the facet information of a mesh (triangular, quadrangular, voronoi, mixed) having only the edge and nodal information?

답변 (1개)

TED MOSBY
TED MOSBY 2025년 3월 18일
Hi Ziruela,
To reconstruct face connectivity from a set of edges and nodes in MATLAB, you generally implement a graph or half‐edge–type algorithm that walks your edges and assembles closed loops representing each facet. This will be similar to finding cycles in a graph. There is no single built‐in MATLAB command that will recover all facets from just edge and node data.
The core idea is to:
  1. Build adjacency information for each node (which edges connect there, and how do we move from one edge to the next around a node).
  2. Identify boundary vs. interior edges if necessary (e.g., edges with only one incident face are boundary edges).
  3. Trace out faces by walking the boundary/mesh in a consistent orientation until you come back to the start.
Hope this helps!

카테고리

Help CenterFile Exchange에서 Voronoi Diagram에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by