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.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.