NPEtetra | R Documentation |
Returns the vertices of the PE proximity region (which is itself a tetrahedron) for a point in the
tetrahedron th
.
PE proximity region is defined with respect to the tetrahedron th
with expansion parameter r \ge 1
and vertex regions based on the center M
which is circumcenter ("CC"
) or
center of mass ("CM"
) of th
with default="CM"
.
Vertex regions are labeled as 1,2,3,4
rowwise for the vertices of the tetrahedron th
.
rv
is the index of the vertex region p
resides, with default=NULL
.
If p
is outside of th
, it returns NULL
for the proximity region.
See also (\insertCiteceyhan:Phd-thesis,ceyhan:comp-geo-2010;textualpcds).
NPEtetra(p, th, r, M = "CM", rv = NULL)
p |
A 3D point whose PE proximity region is to be computed. |
th |
A |
r |
A positive real number which serves as the expansion parameter in PE proximity region;
must be |
M |
The center to be used in the construction of the vertex regions in the tetrahedron, |
rv |
Index of the vertex region containing the point, either |
Vertices of the tetrahedron which constitutes the PE proximity region with expansion parameter
r
and circumcenter (or center of mass) for a point p
in the tetrahedron
Elvan Ceyhan
NPEstd.tetra
, NPEtri
and NPEint
A<-c(0,0,0); B<-c(1,0,0); C<-c(1/2,sqrt(3)/2,0); D<-c(1/2,sqrt(3)/6,sqrt(6)/3)
set.seed(1)
tetra<-rbind(A,B,C,D)+matrix(runif(12,-.25,.25),ncol=3)
n<-3 #try also n<-20
Xp<-runif.tetra(n,tetra)$g
M<-"CM" #try also M<-"CC"
r<-1.5
NPEtetra(Xp[1,],tetra,r) #uses the default M="CM"
NPEtetra(Xp[1,],tetra,r,M="CC")
#or try
RV<-rel.vert.tetraCM(Xp[1,],tetra)$rv
NPEtetra(Xp[1,],tetra,r,M,rv=RV)
P1<-c(.1,.1,.1)
NPEtetra(P1,tetra,r,M)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.