SGsortcollVLFL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 4.9, Creation date: 2020-01-21, Last change: 2025-09-14

returns a collision index list of all SG in the SG cell list and considers all VLFL

Description

In contrast to SGsortcollVLFLBB, which considers the Bounding Boxes of all Facets of two solids, this function checks afterwards real intersections of all facets if necessary. It includes the code of
SGsortcollBB and SGsortcollVLFL to save time.

See Also: SGsortfitinBB , SGsortcollBB , SGsortisinsideBB , SGsortcollVLFLBB

Example Illustration

 missing image of SGsortcollVLFL(SGc)

Syntax

[ELcoll,CIL,SG]=SGsortcollVLFL(SGc)

Input Parameter

SGc: Bounding Box List or Solid Geometry cell list with n entries

Output Parameter

ELcoll: Collision pair list | It is an undirected graph
CIL: logical collision index list, size n
SG: Solid Geometry list

Examples


A=SGbox; B=SGsphere(4); SGfigure; C={A,B}; SGsurfaces(C); SGsortcollVLFL(C)
BB=rounddiv(randminv(20,3,[1 10]),2) % Create 10 Bounding boxes
SGbox(BB,30,'randxy'); SG=ans % Create 10 Boxes in random distance
SGsortcollVLFL(SG) % Collision pair list
[a,b]=SGsortcollBB(SG)
SG=SGsurfaces(SGdumbbell), SGsortcollVLFLBB(SG)
SG=SGsurfaces(SGdumbbell), SGsortcollVLFL(SG)
SG=SGsurfaces(SGdumbbell); SGsortisinsideBB(SG)




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

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