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
varargout=showrf([VL,FL])
VL: | Vertex list of a solid; default is VLFLofgca | |
FL: | Facet list of a solid; default is VLFLofgca |
[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)]: |
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')