Main Content

size

年代ize of triangulation connectivity list

年代yntax

Description

example

sz= size(TR)returns the size of the triangulation connectivity list in the propertyTR.ConnectivityList. The outputszis a two-element row vector. The first element is the number of triangles or tetrahedra in the triangulation, and the second element is the number of vertices per triangle (three) or tetrahedron (four).

Examples

collapse all

创建一个二维三角。

P = [ 2.5 8.0 6.5 8.0 2.5 5.0 6.5 5.0 1.0 6.5 8.0 6.5]; C = [5 3 1; 3 2 1; 3 4 2; 4 6 2]; TR = triangulation(C,P)
TR = triangulation with properties: Points: [6x2 double] ConnectivityList: [4x3 double]

Get the size of the connectivity list. The triangulation has 4 triangles, and each triangle has 3 vertices.

size(TR)
ans =1×24 3

Input Arguments

collapse all

Triangulation representation, specified as a scalartriangulationordelaunayTriangulationobject.

Data Types:triangulation|delaunayTriangulation

Extended Capabilities

Version History

Introduced in R2013a