Structured Triangular Mesh Generation

August 18, 2009 by Luigi Giaccari 
Filed under: Computational Geometry 
Leave a Comment
VN:F [1.8.8_1072]
Rating: 0 (from 0 votes)
VN:F [1.8.8_1072]
Rating: 6.0/10 (1 vote cast)
Structured triangular mesh

STRUCTTRIMESH:
StructTriMesh is a tool to build structured triangular mesh on rectangle
shaped dataset. This is useful in avoiding delaunay 2D triangulation in
order to improve speed performances.
It can be used for graphical purposes, fem analysis, sedata structures…

INPUT:
x,y must be vectors, they represent the axis of the rectangle. It is
also very important they need to be sorted. To improve performances, there
is no check for sorted vectors so you have to check yourself.

OUTPUT:
The mesh described as:

  • p: N x 2 array, points of the triangular mesh
  • t: Ntri x 3 array.  Triangles indexes referring to p array. First point is flagged with index one.

EXAMPLE:

x=1:4;
y=1:6;

[p,t]=StructTriMesh(x,y);
figure(1)
axis equal
hold on
title('Triangular Mesh','fontsize',14);
trimesh(t,p(:,1),p(:,2),'color','g');

Author: Giaccari Luigi
Created: 22/04/2009

For info/questions/suggestions : giaccariluigi@msn.com

Download Now

VN:F [1.8.8_1072]
Rating: 6.0/10 (1 vote cast)
VN:F [1.8.8_1072]
Rating: 0 (from 0 votes)
Structured Triangular Mesh Generation6.0101

Popularity: 4% [?]

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Live
  • PDF
  • Technorati
  • Twitter
  • Yahoo! Bookmarks
  • Add to favorites
  • email
  • MySpace
  • RSS

Related Posts

Comments

Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!


Include MATLAB code in your comment by doing the following:

<pre lang="MATLAB">

%insert code here

</pre>