This function returns a list containing the areas of each triangle of a triangulation object created by tri.mesh.

area(tri.obj)

Arguments

tri.obj

object of class triSht

Details

This function acesses the cclist component of a triangulation object returned by tri.mesh and extracts the areas of the triangles contained in this triangulation.

Value

A vector containing the area values.

Author

Albrecht Gebhardt <albrecht.gebhardt@aau.at>, Roger Bivand <roger.bivand@nhh.no>

See also

Examples

data(franke)
tr <- tri.mesh(franke$ds3)
area(tr)
#>  [1] 0.02187500 0.03281250 0.02421875 0.02656250 0.03656250 0.02492188
#>  [7] 0.03906250 0.02429687 0.03546875 0.02523438 0.02015625 0.02023437
#> [13] 0.02585937 0.01914063 0.01539063 0.02125000 0.01875000 0.01968750
#> [19] 0.04265625 0.02437500 0.02468750 0.02203125 0.05703125 0.03984375
#> [25] 0.02109375 0.01703125 0.01757812 0.02234375 0.03218750 0.01968750
#> [31] 0.03281250 0.01640625 0.05038281 0.06343750 0.02921875 0.02203125
#> [37] 0.03222656 0.02135156 0.03540625 0.00850000