Renders a three-dimensional model of the mesh surface and a footprint of the
two-dimensional area side-by-side for visual comparison. The RFI() function
must be performed prior to using RFI3d().
RFI3d(
RFI_File,
displacement = -1.9,
SurfaceColor = "gray",
FootColor = "red",
FootPts = FALSE,
FootPtsColor = "black",
Opacity = 1,
legend = TRUE,
main = "",
cex = 1,
widget_size_px = 768,
scene_zoom = 1.5,
leftOffset = 0,
fieldofview = 0,
title_font_size_px = 30,
title_font_family =
"system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif",
legend_magnify = 1,
fileName = NA,
binary = FALSE
)An object that stores the output of the RFI function
Numeric that moves the surface footprint some proportion of the height of the mesh. 0 is vertical center; negative values displace the footprint downward. Default -1.9.
Color for the 3D surface mesh
Color for the 2D surface footprint
Logical; if TRUE, plot the flattened points used for the footprint
Color of plotted footprint points when FootPts = TRUE
Numeric from 0 to 1 controlling the opacity of the 3D surface
Logical; draw a legend (right side of the widget)
Plot title
Base scaling for legend/ticks (relative multiplier)
Square widget size in pixels (default 768)
Initial zoom for the 3d scene (default 1.5)
Horizontal camera nudge (-1..1 recommended)
Field of view in degrees (0 = isometric)
Title font size in pixels (default 30)
CSS font-family list for the title
Additional scale factor for the legend text
Optional file base name to save a colored *.ply (no legend)
Binary PLY if TRUE (smaller files)
This function helps visualize the 3D surface area (numerator) and the 2D
projected area (denominator) that comprise the relief index, by displaying
both at once. Adjust Opacity to make the footprint more visible through
the surface. The footprint plane can be moved along Z via displacement.
The plotting window is an HTML widget. The legend is rendered in HTML/CSS and aligned vertically at the right of the scene.
if(interactive()){
rfi <- RFI(Tooth, alpha = 0.5)
RFI3d(rfi)
}
Run the code above in your browser using DataLab