필터 지우기
필터 지우기

Coarsening a triangulation that defines a surface in 3d

조회 수: 6 (최근 30일)
Daniel
Daniel 2013년 2월 6일
Hi,
I have a triangulation in 3d that represents an open manifold (it actually represents part of a cell membrane, i.e a surface in 3d).
This (unstructured) triangulation is defined as a TriRep object and has a very fine mesh parameter (~ mean triangle length)... I'm trying to extract a regularly spaced distribution of points on this membrane, and my first thought was: "ok, I run a coarsening of this fine mesh, and just takes the triangles centers in the the coarsened mesh".... but I discovered that there is no obvious way to coarsen a given triangulation (or I missed it).
What could be the most straightforward way to get a coarsener version of this triangulation?
thanks, Daniel
  댓글 수: 3
Walter Roberson
Walter Roberson 2013년 2월 6일
I seem to recall there being a routine for thinning a triangular mesh. I have never used it, and have not looked at it often enough to remember its name.
Daniel
Daniel 2013년 2월 7일
An example: for instance the second one that you get with the help of TriRep, I just cut and paste it here:
% to compute the free boundary; the surface of the triangulation.
load tetmesh
% This loads triangulation tet and vertex coordinates X
trep = TriRep(tet, X);
[tri, Xb] = freeBoundary(trep);
%Plot the surface mesh
trisurf(tri, Xb(:,1), Xb(:,2), Xb(:,3), 'FaceColor', 'cyan', 'FaceAlpha', 0.8);
Note that you can get a new TriRep object from tri and Xb, which gets you a compact representation of the manifold coded in the mesh.

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

채택된 답변

Walter Roberson
Walter Roberson 2013년 2월 7일
You might be able to make use of reducepatch
  댓글 수: 4
Daniel
Daniel 2013년 2월 7일
oh, right! I was confused about the syntax (thought that the input was a graphic handle), but this is actually what I needed... many thanks!!
Walter Roberson
Walter Roberson 2013년 2월 7일
In all but that syntax, the input is a graphics handle.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Condensed Matter & Materials Physics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by