FILofrangez

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CVLz/Slices
Introduced first in SolidGeometry 2.1, Creation date: 2015-01-07, Last change: 2025-09-14

returns an facet index list for facets crossing a plane

Description

Very fast function for slicer tasks to select facets that cross a z-plane
Similar to VLFLofrangez but FILofrangez is about 10 times faster than VLFLofrangez

See Also: VLFLofrangez , SGslicer

Example Illustration

 missing image of FILofrangez(VL,FL,z1,z2)

Syntax

FIL=FILofrangez(VL,FL,[z1,z2])

Input Parameter

VL: Vertex list
FL: Facet list
z1: z-plane for crossing
z2: upper z-plane for crossing; default is z1

Output Parameter

FIL: +1 = above plane, -1 under plane, 0=crosses plane

Examples

SG=SGsphere(10); FILofrangez (SG.VL,SG.FL,0);
VLFLfigure; view(-30,30);
FIL=FILofrangez (SG.VL,SG.FL,7);
FIL
VLFLplot(SG.VL,SG.FL(FIL<0,:),'w')
VLFLplot(SG.VL,SG.FL(FIL==0,:),'r')
VLFLplot(SG.VL,SG.FL(FIL>0,:),'b')




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