powered by
This function returns a matrix of the three component vector of the normal of each facet.
compute_facets_normal(vertici_tr, indici_tri)
matrix of the three component of the normal vector and area of each face
list of facets vertexes coordinates ("vb property of mesh3d object")
list of facets indexes ("it property of mesh3d object")
if (FALSE) indici_tri<-t(mesh3d[['it']]) vertici_tr<-t(mesh3d[["vb"]]) normals<-compute_facets_normal(vertici_tr,indici_tri)
Run the code above in your browser using DataLab