Main Content

edges

(Not recommended) Triangulation edges

edges(TriRep) is not recommended. Use edges(triangulation) instead.

TriRep is not recommended. Use triangulation instead.

Description

example

E = edges(TR) returns the edges in the triangulation in an n-by-2 matrix. n is the number of edges. The vertices of the edges index into TR.X, the array of points representing the vertex coordinates.

Examples

collapse all

Load a 2-D triangulation and create a TriRep object.

load trimesh2d
trep = TriRep(tri,x,y);

Find all the edges in the triangulation.

e = edges(trep);

Create a 2-D DelaunayTri triangulation.

X = rand(10,2);
dt = DelaunayTri(X);

Find all edges in the triangulation.

e = edges(dt);

Input Arguments

collapse all

Triangulation representation, specified as a TriRep or DelaunayTri object.

Version History

Introduced in R2009a