View source: R/computeVertAreas.R
computeVertAreas | R Documentation |
Given a Tx3 matrix (T = number of triangles in the triangular mesh) containing vertices IDs of each triangle, and a Vx3 matrix (V = number of vertices in the triangular mesh) containing vertices coordinates, this function computes the Voronoi area associated to each vertex.
computeVertAreas(triangles, coord)
triangles |
a Tx3 matrix (T = number of triangles in the triangular mesh) containing vertices IDs of each triangle. |
coord |
a Vx3 matrix (V = number of vertices in the triangular mesh) containing vertices coordinates. |
A V-dimensional vector containing vertices areas.
vertAreas <- computeVertAreas(triangles, coord)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.