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.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: United States.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.