C = circumcenter(TR,ID)
returns the coordinates of the circumcenters for the triangles or tetrahedra indexed
by ID. The identification numbers of the triangles or tetrahedra
in TR are the corresponding row numbers of the property
TR.ConnectivityList.
Load 2-D triangulation data and create a triangulation representation.
load trimesh2d
TR = triangulation(tri,x,y);
Compute the circumcenters of each triangle in TR.
C = circumcenter(TR);
Plot the triangulation along with the circumcenters in red. The -coordinates of the circumcenters are contained in the first column of C and the corresponding -coordinates are contained in the second column.
triplot(TR)
axis([-100 400 -50 350])
hold on
plot(C(:,1),C(:,2),'r.')
hold off
Triangle or tetrahedron identification, specified as a scalar or a column
vector whose elements each correspond to a single triangle or tetrahedron in
the triangulation object. The identification number of each triangle or
tetrahedron is the corresponding row number of the
ConnectivityList property.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.