Returns Nx1 vector surf, the surfaces [in Ám2] of all segments of tree intree from the X, Y, Z and D coordinates and the adjacency matrix.

TREES cylinder-based

TREES frustum-based

Example:

>> surf_tree (sample2_tree)'

[0, 114, 91, 78, 64, 47, 48, 47, 33, 71, 61, 37, 39, 51, 38]

TREES

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License