Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

edges - Class: TriRep

Triangulation edges

Syntax

E = edges(TR)

Description

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.

Inputs

TRTriangulation representation.

Outputs

EEdge matrix.

Examples

Example 1

Load a 2-D triangulation.

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

Return all edges.

e = edges(trep); 

Example 2

Query a 2-D DelaunayTri-generated triangulation.

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

See Also

TriRep.edgeAttachments
  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS