This feature is supported in the latest release of MATLAB (R2009a)
Take a look at examples 5 and 6 in the following overview;
http://www.mathworks.com/products/matlab/demos.html?file=/products/demos/shipping/matlab/demoDelaunayTri.html
For more information check out these links.
Video highlighting new CG features (Mathematics heading)
http://www.mathworks.com/products/matlab/whatsnew.html
Function reference pages
http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/matlab.html&http://www.mathworks.com/access/helpdesk/help/helpdesk.html
Bottom of the left hand column
Release Notes->Version 7.8->Mathematics,MATLAB Version 7.8 (R2009a)->Upgrade
to Computational Geometry
TriRep, DelaunayTri, TriScatteredInterp
Best regards,
Damian
"Melissa Stein" <rikki...@gmail.com> wrote in message
news:h0u48p$24q$1...@fred.mathworks.com...
Thanks for the quick response. The problem with the constrain edges method is that although it connects the specified points, it continues to connect outside of the polygon also. Is there a way to specify the order of connection and also constrain to only connecting within the boundaries or your specifications?
What about a "simple" meshing code:
http://www.mathworks.com/matlabcentral/fileexchange/10307
It would fulfill what you asked for.
Bruno
The constrained DelaunayTri will produce a triangulation that fills
the convex hull of your pointset. If you wish to compute the domain
triangulation that represents your polygon, you simply filter out the
triangles that are outside of the domain.
Example 6 shows how to do this;
http://www.mathworks.com/products/matlab/demos.html?file=/products/demos/shipping/matlab/demoDelaunayTri.html
You just compute the in/out status of each triangle as follows;
io = dt.inOutStatus();
This computation is based on Jordan curve parity where your constraints
define the curve.
The set of triangles inside your polygon are given by, dt(io,:)
If this does not address your usecase please let me know.
Thanks,
Damian
"Melissa " <rikki...@gmail.com> wrote in message
news:h0u612$ec$1...@fred.mathworks.com...
You can find the inpolygon test fro Darren Engwirda (or similar)