computeVertAreas: Compute 3D mesh vertices associated areas.

View source: R/computeVertAreas.R

computeVertAreasR Documentation

Compute 3D mesh vertices associated areas.

Description

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.

Usage

computeVertAreas(triangles, coord)

Arguments

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.

Value

A V-dimensional vector containing vertices areas.

Examples

vertAreas <- computeVertAreas(triangles, coord)

UK-Digital-Heart-Project/mutools3D documentation built on April 7, 2024, 8:04 a.m.