Rank: 138 based on 349 downloads (last 30 days) and 6 files submitted
Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Darren View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Oct 2009 Screenshot MESH2D - Automatic Mesh Generation Generates unstructured triangular meshes for general 2D geometry. Author: Darren Engwirda mathematics, simulation, modeling, fem, fvm, mesh generation 150 18
  • 5.0
5.0 | 12 ratings
03 Dec 2007 Screenshot Fast points-in-polygon test Fast test to determine points located inside general polygon regions. Should be significantly faster Author: Darren Engwirda points inside polygon, inpolygon, image processing, polygon 104 17
  • 4.23077
4.2 | 14 ratings
30 Nov 2006 Screenshot tinterp - an alternative to griddata Linear and quadratic interpolation for scattered data Author: Darren Engwirda 2d, quadratic, scattered interpolati..., linear, interpolation, approximation 15 3
  • 5.0
5.0 | 3 ratings
15 May 2006 Screenshot Contours for triangular grids Generate smooth contours for functions defined on unstructured triangular grids Author: Darren Engwirda contours, specialized, unstructured, mesh, plotting, graphics 67 12
  • 5.0
5.0 | 11 ratings
03 Apr 2006 Fast sparse matrix vector product sparse matrix vector product Author: Darren Engwirda linear algebra, sparse, matrix, vector, product 10 6
  • 4.0
4.0 | 4 ratings
Comments and Ratings by Darren View all
Updated File Comments Rating
09 Aug 2011 MESH2D - Automatic Mesh Generation Generates unstructured triangular meshes for general 2D geometry. Author: Darren Engwirda

Hi Philippe, you may want to have a look at the utility "connectivity" routine. Amongst other things, it will identify the boundary nodes in a mesh.

14 Oct 2009 MESH2D - Automatic Mesh Generation Generates unstructured triangular meshes for general 2D geometry. Author: Darren Engwirda

Author comment: v24 was posted to resolve a licence conflict. The Mathworks no longer allows code to be released under a GNU GPL, so this has been removed for v24.

There are some (minor) revisions to the code, based on user feedback. Specifically, v24 may be slightly slower than v23, but should generally produce higher quality meshes, especially for complex geometries.

Comments/feedback is always welcome - d_engwirda@hotmail.com

Comments and Ratings on Darren's Files View all
Updated File Comment by Comments Rating
20 Aug 2011 MESH2D - Automatic Mesh Generation Generates unstructured triangular meshes for general 2D geometry. Author: Darren Engwirda Bryan

Hello-

Thank you very much for this package, it is exactly what I'm looking for. I do have one question/comment. In Matlab 2011a, I get a warning that tsearch is going to be retired and to use delaunayTri/pointLocation isntead. I subbed in this set of commands (seemingly appropriately), and I cannot get the code to work correctly. Could you possibly advise on this? I'm going to use the code as is for the time being and try to implement and update. I'm not sure if you would be willing to use this update as a newer revision or are currently working on this problem.

Thank you,
Bryan

09 Aug 2011 MESH2D - Automatic Mesh Generation Generates unstructured triangular meshes for general 2D geometry. Author: Darren Engwirda Engwirda, Darren

Hi Philippe, you may want to have a look at the utility "connectivity" routine. Amongst other things, it will identify the boundary nodes in a mesh.

02 Aug 2011 MESH2D - Automatic Mesh Generation Generates unstructured triangular meshes for general 2D geometry. Author: Darren Engwirda N/A, Philippe

Hi and ty for the great toolbox.

I'm using this to make a mesh that I want to use in another modeling tool. This other tool requires me to give nodes that are located on the edge of the mesh figure.

So, once the mesh is generated, is there any way to retrive nodes that have been generated on the contour of the figure?

Regards,
Phil

18 Jul 2011 Contours for triangular grids Generate smooth contours for functions defined on unstructured triangular grids Author: Darren Engwirda Ben

Why I got some artifacts when using my own triangulated mesh? It generated some "contours" at the places where no triangles exist. Does anybody know why?

The mesh is no problem; I double checked.

01 Jul 2011 Fast points-in-polygon test Fast test to determine points located inside general polygon regions. Should be significantly faster Author: Darren Engwirda Luke

Great and fast little tool. Much faster than matlab inpolygon. My only issue is that I wish it natively understood the typical "GIS" format for polygons which includes a NaN separated list of polygons (NaNs separate the major outline from the 'islands').

Of course you can just handle this with the edges field though, so for future reference, here's my simple create edges code for NaN separated GIS objects. 'shp' variable is n Nx2 matrix of latitudes and longitudes.

    shpEnd = find(isnan(shp(:,1)));
    shpEnd = vertcat(0,shpEnd);
    edges = nan(length(shp(:,1))-length(shpEnd),2);
    count = 1;
    for j=1:length(shpEnd)-1
        endCount = count+length((shpEnd(j)+1:shpEnd(j+1)-2));
        edges(count:endCount,:) = [(shpEnd(j)+1:shpEnd(j+1)-2)' ...
        (shpEnd(j)+2:shpEnd(j+1)-1)';shpEnd(j+1)-1 shpEnd(j)+1];
        count = endCount+1;
    end

Top Tags Applied by Darren
linear algebra, mathematics, 2d, approximation, contours
Files Tagged by Darren View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Oct 2009 Screenshot MESH2D - Automatic Mesh Generation Generates unstructured triangular meshes for general 2D geometry. Author: Darren Engwirda mathematics, simulation, modeling, fem, fvm, mesh generation 150 18
  • 5.0
5.0 | 12 ratings
03 Dec 2007 Screenshot Fast points-in-polygon test Fast test to determine points located inside general polygon regions. Should be significantly faster Author: Darren Engwirda points inside polygon, inpolygon, image processing, polygon 104 17
  • 4.23077
4.2 | 14 ratings
30 Nov 2006 Screenshot tinterp - an alternative to griddata Linear and quadratic interpolation for scattered data Author: Darren Engwirda 2d, quadratic, scattered interpolati..., linear, interpolation, approximation 15 3
  • 5.0
5.0 | 3 ratings
15 May 2006 Screenshot Contours for triangular grids Generate smooth contours for functions defined on unstructured triangular grids Author: Darren Engwirda contours, specialized, unstructured, mesh, plotting, graphics 67 12
  • 5.0
5.0 | 11 ratings
03 Apr 2006 Fast sparse matrix vector product sparse matrix vector product Author: Darren Engwirda linear algebra, sparse, matrix, vector, product 10 6
  • 4.0
4.0 | 4 ratings

Contact us at files@mathworks.com