Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

edges

Class: TriRep

(Not recommended) Triangulation edges

Note

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

TriRep is not recommended. Use triangulation instead.

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.

Input Arguments

TRTriangulation representation.

Output Arguments

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);
Was this topic helpful?