Learn R Programming

JFM (version 1.0.1)

compute_facets_normal: compute_facets_normal

Description

This function returns a matrix of the three component vector of the normal of each facet.

Usage

compute_facets_normal(vertici_tr, indici_tri)

Value

matrix of the three component of the normal vector and area of each face

Arguments

vertici_tr

list of facets vertexes coordinates ("vb property of mesh3d object")

indici_tri

list of facets indexes ("it property of mesh3d object")

Examples

Run this code
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