| Check2D | R Documentation |
Plot the 2D footprint triangles and their vertices used in the RFI 2D area calculation, as a visual QA step to detect spurious triangles inside the footprint. The result is an HTML widget (no Quartz/X11 window) with an optional legend, suitable for RStudio Viewer, Quarto/HTML, and browsers.
Check2D(
RFI_Output,
FootColor = "red",
TriPointsColor = "black",
main = "",
cex = 1,
legend = TRUE,
widget_size_px = 768,
scene_zoom = 1.5,
leftOffset = 0,
fieldofview = 0,
title_font_size_px = 30,
legend_magnify = 1,
point_size = 5,
alpha = 0.35
)
RFI_Output |
An object that stores the output of |
FootColor |
Character; fill color for the footprint triangles (default |
TriPointsColor |
Character; point color for footprint triangle vertices (default |
main |
Character; plot title (default |
cex |
Numeric; relative size multiplier for legend text (default |
legend |
Logical; show a right-hand legend (default |
widget_size_px |
Integer; square size of the widget in pixels (default |
scene_zoom |
Numeric; initial zoom of the 3D scene (default |
leftOffset |
Numeric (-1..1); small horizontal camera nudge (default |
fieldofview |
Numeric; field of view in degrees; 0 = isometric (default |
title_font_size_px |
Integer; title font size in pixels (default |
legend_magnify |
Numeric; additional legend scale factor (default |
point_size |
Numeric; size for triangle vertex points (default |
alpha |
Numeric between 0 and 1; transparency for the footprint fill (default |
This reproduces the same intent as the classic Check2D(): it draws the triangles
from RFI_Output$Footprint_Triangles and the corresponding 2D coordinates in
RFI_Output$Flattened_Pts. The triangles are plotted in the XY plane (z = 0).
If you see points/triangles inside the footprint that shouldn’t be there,
it typically indicates an alpha value that is too small in the RFI step, leading
to an inflated 2D footprint.
The function uses a headless rgl device and returns an rglwidget embedded in an
HTML layout (title atop, legend on the right)—matching the approach used in DNE3d().
An htmltools-browsable object containing the title, 3D widget, and legend.
# RFI_out <- RFI(Tooth, alpha = 0.5)
# Check2D(RFI_out, FootColor = "tomato", TriPointsColor = "black",
# main = "RFI 2D Footprint QA")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.