Syntax
[XIA,XIL,XIB]=crossingfacets2VLFL(VLA,FLA,VLB,FLB,[first,pwarn])
Input Parameter
VLA : | | Vertex list A |
FLA : | | Facet list A |
VLB : | | Vertex list B |
FLB : | | Facet list B |
first : | | if true; function stops after the first crossing; default is false |
pwarn : | | if true; functions warns in case of in-plane surfaces |
Output Parameter
XIA : | | Crossed facets from Solid A |
XIL : | | Crossing / intersection index matrix |
XIB : | | Crossed facets from Solid B |
Examples
A=SGsample(5); B=SGbox([30,20,10]);
crossingfacets2VLFL(B.VL,B.FL,A.VL,A.FL) % finds all
crossingfacets2VLFL(B.VL,B.FL,A.VL,A.FL,true) % finds first
VLA=[0 0 0; 7 7 0; -7 7 0]; VLB=[-4 2 0; 4 2 0; 0 10 0]; FLA=[3 2 1]; FLB=[1 2 3];
crossingfacets2VLFL(VLA,FLA,VLB,FLB,'',true);
VLA=[0 0 1; 7 7 0; -7 7 0]; VLB=[-4 2 0; 4 2 0; 0 10 0]; FLA=[3 2 1]; FLB=[1 2 3];
crossingfacets2VLFL(VLA,FLA,VLB,FLB,'',true)
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