VIL=SGisinternalframe(SG,T,[])
SG : | Solid Geometry | |
T : | 4x4 Frame |
VIL : | 1 internal, 0 = external |
load ADAM_Aframes.mat; SG=ADAM_Aframes
SGTcut(SG,'KL',0.1); X=ans
SGisinternalframe(X,SGTget(SG,'KL')) % KL is outward frame for one solid
SGisinternalframe(X,SGTget(SG,'AL')) % AL is an internal frame
This function, SGisinternalframe
, determines whether a given frame is internal to a solid geometry. It is part of the SolidGeometry library and was introduced in version 5.0.
SGisInterior
with SG
and T
to determine if the frame is internal. This function returns a cell array.SGisInterior
to a matrix using cell2mat
and cell2cellarray
.nargout==0
), proceed to visualization:SGfigure
and plot the frame using tplot
.SG
is a cell array, iterate over each solid:SGplotalpha
to plot each solid with transparency, using green for internal frames and other colors for external frames.SG
is a single solid, plot it with SGplotalpha
using green for internal and red for external frames.Load a set of frames from a file and check if specific frames are internal or external:
load ADAM_Aframes.mat; SG=ADAM_Aframes SGTcut(SG,'KL',0.1); X=ans SGisinternalframe(X,SGTget(SG,'KL')) % KL is outward frame for one solid SGisinternalframe(X,SGTget(SG,'AL')) % AL is an internal frameAlgorithm explaination created using ChatGPT on 2025-08-19 08:22. (Please note: No guarantee for the correctness of this explanation)