SGisinternalframe

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Kinematics and Frames
Introduced first in SolidGeometry 5.0, Creation date: 2020-10-18, Last change: 2025-09-15

returns weather a frame is an internal frame of a solid

Description

Will be improved
SGissurfaceframe - finds frames without feature surface list that are near a surface
SGisinternalframe - finds frames without feature surface list that are inside a solid

See Also: SGisInterior , SGissurfaceframe

Example Illustration

 missing image of SGisinternalframe(SG,T,)

Syntax

VIL=SGisinternalframe(SG,T,[])

Input Parameter

SG: Solid Geometry
T: 4x4 Frame

Output Parameter

VIL: 1 internal, 0 = external

Examples


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




Copyright 2020-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

Algorithm (Workflow)

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.

Input Parameters

Output

Algorithm Steps

  1. Call the function SGisInterior with SG and T to determine if the frame is internal. This function returns a cell array.
  2. Convert the cell array result from SGisInterior to a matrix using cell2mat and cell2cellarray.
  3. If no output is requested (nargout==0), proceed to visualization:

Example Usage

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 frame
Algorithm explaination created using ChatGPT on 2025-08-19 08:22. (Please note: No guarantee for the correctness of this explanation)

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