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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.