(Will be removed) Circumcenters of specified simplices
CC = circumcenters(TR, SI)
[CC RCC] = circumcenters(TR, SI)
CC = circumcenters(TR, SI) returns the
coordinates of the circumcenter of each specified simplex
n matrix, where
length(SI), the number of specified simplices,
n is the dimension of the space where the triangulation
[CC RCC] = circumcenters(TR, SI) returns
the circumcenters and the corresponding radii of the circumscribed
circles or spheres.
|Column vector of simplex indices that index into the triangulation
|Vector of length |
A simplex is a triangle/tetrahedron or higher-dimensional equivalent.
Load a 2-D triangulation.
load trimesh2d trep = TriRep(tri, x,y)
Compute the circumcenters.
cc = circumcenters(trep); triplot(trep); axis([-50 350 -50 350]); axis equal; hold on; plot(cc(:,1),cc(:,2),'*r'); hold off;
The circumcenters represent points on the medial axis of the polygon.
Query a 3-D triangulation created with
DelaunayTri. Compute the circumcenters
of the first five tetrahedra.
X = rand(10,3); dt = DelaunayTri(X); cc = circumcenters(dt, [1:5]')