ELofcrosspoints2F

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - EL/Edge Lists
Introduced first in SolidGeometry 4.9, Creation date: 2020-02-02, Last change: 2025-09-14

returns the Edge Constraint List from a crosspoint List

Description

This fnctn is an auxiliary fnctn that will finally be part of crosspoint2F.
The challenge is NOT only to find the cross points, but to find the edge constraints which can be different for triangle A and triangle B if some points of A are inside B and vice versa. Fortunately, the intersection points of cross2F or crosspoints2F are already generated in the correct order. It is only possible that sometimes two lines have to be swapped! Afterwards, the points are already available in the correct order. Now, at the end, the points that are located within the intersected triangle must be added. Here the list of the triangle A and B differs. After that the intersection sequence in triangle A and triangle B is fixed. Now you only have to create an edge list using circshift and afterwards edges with identical start and end points can be deleted.


See Also: crosspoints2F

Example Illustration

 missing image of ELofcrosspoints2F(XL,PA,PB,PinA,PinB)

Syntax

ELofcrosspoints2F(XL,PA,PB,PinA,PinB)

Input Parameter

XL: List of cross points of triangle A and triangle B (may include PA and PB)
PA: Three points of triangle A
PB: Three points of triangle B
PinA: index list which points of B are inside A
PinB: index list which points of A are inside B




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