| DNE3dDiscard | R Documentation |
Produces a three-dimensional rendering that highlights the faces discarded from the DNE calculation—boundary faces and statistical outliers—along with optional concavity marking. The plot is returned as an HTML widget with a simple, readable legend panel to the right.
DNE3dDiscard(
DNE_File,
baseCol = "gray",
boundCol = "red",
outlierCol = "lawngreen",
concaveCol = baseCol,
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,
legendTextCol = "black",
legendLineCol = "black",
fileName = NA,
binary = FALSE
)
DNE_File |
An object that stores the output of |
baseCol |
Base color for typical faces (default |
boundCol |
Color for boundary faces discarded from DNE (default |
outlierCol |
Color for faces discarded as outliers (default |
concaveCol |
Color for concave faces; when left equal to |
main |
Character; plot title (default |
cex |
Numeric; relative size multiplier for legend text (default |
legend |
Logical; show legend panel (default |
widget_size_px |
Integer; square size of the 3D widget in pixels (default |
scene_zoom |
Numeric; initial zoom on 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 |
legendTextCol |
Color for legend text (default |
legendLineCol |
Color for legend swatch borders/lines (default |
fileName |
Character or |
binary |
Logical; write PLY as binary (default |
Run DNE() first to compute per-face values and discard sets.
What this shows
Boundary faces (e.g., with >=1 boundary vertex) and outlier faces (top extreme
tail) that were excluded from DNE are colored distinctly; all other faces get
baseCol. If concaveCol differs from baseCol, concave regions are tinted
accordingly and labeled in the legend.
HTML widget
Uses a headless rgl device and returns an rglwidget embedded beside a simple HTML
legend (no Quartz window). Layout and centering mirror the updated DNE3d.
Saving a PLY
If fileName is provided, a colorized PLY is written. For ascii PLY, a comment
line noting the generator/version is inserted (as in the updated DNE3d).
An htmltools-browsable object containing the title, 3D widget, and legend.
# DNE_out <- DNE(Tooth)
if(interactive()){DNE3dDiscard(DNE_out, main = "DNE -- Discarded Faces")}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.