Description Usage Arguments Value Examples
Iteratively find the area of a polygon on the surface of the egg
1 | egg.polygon.area(egg, vertices, N = 6)
|
egg |
an object of class |
vertices |
points describing the vertices of the polygon in spherical coordinates, as obtained from |
N |
number of triangle subdivisions |
The area of the polygon in pixels^2
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# Determine egg shape and plot
egg.image(egg)
fit = egg.fit()
egg.plot(fit, lwd = 3, col = "red")
# Interactively select a series of points (at least 3)
vertices = egg.coords(fit, type = "polygon", pch = 16, lwd = 3, col = "green")
# Determine the area of the polygon region
egg.polygon.area(fit, vertices, N = 6)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.