VLDLBBofVLFL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 4.0, Creation date: 2017-07-31, Last change: 2025-09-14

Fundamental fnct to return for a facet list the vertex coordinates, the edge vectors, and the bounding box of the facets

Description

This function returns for a facet list the vertex coordinates, the edge vectors, and the bounding box of the facets. Is also used in some other function with global variables.
The bounding box list can be used for fast comparison of facets before a crossing check

See Also: crossingfacets2VLFL , collofBBs , VLisInteriorofBBlist , BBaddtolerance

Example Illustration

 missing image of VLDLBBofVLFL(VL,FL,thr)

Syntax

[v1,v2,v3,d1,d2,d3,bb]=VLDLBBofVLFL(VL,FL,[thr])

Input Parameter

VL: Vertex list
FL: Facet List
thr: supplement to bounding boxes; default is 1e-12

Output Parameter

v1: List of first vertex of facet list: v1=VL(FL(:,1),:);
v2: List of second vertex of facet list: v2=VL(FL(:,2),:);
v3: List of thried vertex of facet list: v3=VL(FL(:,3),:);
d1: d1=v2-v1;
d2: d2=v3-v2;
d3: d3=v1-v3;
bb: bounding box of all facets;

Examples


A=SGsample(18); VLDLBBofVLFL(A.VL,A.FL);
A=SGsample(19); VLDLBBofVLFL(A.VL,A.FL);
A=SGsample(27); VLDLBBofVLFL(A.VL,A.FL);




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