Rank: 237014 based on 0 downloads (last 30 days) and 0 file submitted
photo

Song Chen

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Song Chen
Updated File Comments Rating
17 Jul 2012 MESH2D - Automatic Mesh Generation Generates unstructured triangular meshes for general 2D geometry. Author: Darren Engwirda

Find the following line:

p = node;
e = edge;
i = tsearch(ph(:,1),ph(:,2),th,p(:,1),p(:,2));
Change it to

p = node;
e = edge;
dt = DelaunayTri(ph);
i = pointLocation(dt,p);

These two codes should be equivalent.

Contact us