showrf

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Visualization
Introduced first in SolidGeometry 1.0, Creation date: 2012-08-11, Last change: 2025-09-14

returns or shows only the reverse facets from the current view point

Description

If this function is called without an output parameter, we see on the screen for a second reverse facets in black. If there is an output argument RIL (reverse facets index list), we can simply plot the reverse facets by
RIL=showrf(VL,FL);
VLFLplots (VL,FL(RIL<0,:),'k'); VLFLplots (VL,FL(RIL>0,:),'r');

Example Illustration

 missing image of showrf(VL,FL)

Syntax

varargout=showrf([VL,FL])

Input Parameter

VL: Vertex list of a solid; default is VLFLofgca
FL: Facet list of a solid; default is VLFLofgca

Output Parameter

[0]: index list of facet normal vectors for the current view point
[FL) - returns or shows only the reverse facets from the current view point % (by Tim Lueth, SG-Lib, 2012-AUG-11 as class: VISUALIZATION) % % If this fnctn is called without an output parameter, we see on the screen for a % second reverse facets in black. If there is an output argument RIL (reverse % facets index list), we can simply plot the reverse facets by % RIL=showrf(VL,FL)]:

Examples

Plot only the unvisible facets of a body (if the facet orientation is correct)
[VL,FL]=VLFLbox(30,20,10); VLFLplots(VL,FL);
view (-30,30); showrf(VL,FL) ;
FL(1:4,:)=FLswap(FL(1:4,:))
RIL=showrf(VL,FL)
VLFLplot(VL,FL(RIL<0,:),'k')




Copyright 2012-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21