inside2C

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analyzing function
Introduced first in SolidGeometry 1.0, Creation date: 2012-05-12, Last change: 2025-09-14

analyzes the crossings of two vertex lists

Description

returns a X=[a b c d e] vector that has the following elements
a: number of PL vertices which are on the contour VL
b: number of PL vertices which are outside of the contour VL
c: number of PL vertices which are inside of the contour VL
d: crossings of the edges of contour PL with contour VL
e: only real crossings

See Also: FLcoverVLEL , crossC2P , CPLofPLcrossCPL

Example Illustration

 missing image of inside2C(VL,PL,debug)

Syntax

[X,CCL,EPL]=inside2C(VL,PL,[debug])

Input Parameter

VL: Vertex list of the contour
PL: 2nd contour to be analyzed
debug: shows text if debug is true, default is false

Output Parameter

X: Result vector
CCL: Crossing contour lines list
EPL: Result matrix for each point of PL

Examples

How to used inside2C
inside2C(PLcircle(10,8),[-15 -15;15 15])
n=size (PL,1); X=inside2C (VL,PL);
if X(3)==n; disp 'fully inside'; end;
if X(2)==n; disp 'fully outside'; end;
CPLofPLcrossCPL(PLcircle(10,8),[-15 -15;15 15])




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