Learn R Programming

JFM (version 1.0.1)

find_triangles_rcpp: returns the row indexes of the neighbour facets of a target facet (nested in findNeighbourFacets R function)

Description

returns the row indexes of the neighbour facets of a target facet (nested in findNeighbourFacets R function)

Usage

find_triangles_rcpp(indici_tr, r)

Value

returns the row indexes of the neighbour facets of the facet at r row of indici_tr facet indexes matrix

Arguments

indici_tr

matrix of facets ID the "it" property of a mesh3D

r

index of the row of the target facet

Examples

Run this code
indici_tri<-matrix(data = c(1, 2, 3 ,5, 6,
3, 2, 3, 5,7, 8 ,1),
nrow = 4,ncol = 3, byrow = TRUE)
row_index<-1
find_triangles_rcpp (indici_tri,row_index)

Run the code above in your browser using DataLab