volSR: Calculate the volume of a simple solid of revolution

Description Usage Arguments Value Examples

Description

Given a left or right-hand half of the interior of a simple (no reversions) vessel shape, calculate the likely capacity if it were swept 360 degres about its middle axis, via the piecewise cylinders methods

Usage

1
volsr(intprofile, left = TRUE)

Arguments

intprofile

An object of class SpatialPolygons* delineating the outline of the left- or right-hand side of the interior of an object.

left

Is it the left or the right-hand side.

Value

A single numeric value for the capacity in the cubed units of the input.

Examples

1
2
3
4
data(dolium)
plot(dolium, col="grey", border=NA, axes=TRUE)
plot(doliumint, border="red", add=TRUE)
volsr(doliumint) ##Input units are metres, capacity is 0.128 m3 or 128L

ahb108/rtefact documentation built on Jan. 27, 2021, 10:47 a.m.