sma | R Documentation |
Calculates the 2nd moment of surface area about the origin by multiplying the surface area of each triangle in the mesh by its distance from the origin (should be set to the attachment point of the mesh). The sum of these values is the 2nd moment of area.#' This metric is size-dependent so to compare moments in terms of shape only, set scale = TRUE.
sma(mesh, axis = "z", scale = FALSE, origin = TRUE)
mesh |
A triangular mesh of class mesh3d. |
axis |
The axis along which to calculate the second moment of area. z is the default. |
scale |
Logical. Scale the object to have a volume = 1? Default = FALSE |
origin |
Logical. Set the origin to the bottom left corner of bounding box? Default = TRUE. |
SMA value.
sma(mcap)
sma(mcap, scale = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.