VLsampletriangles
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Samples
Introduced first in SolidGeometry 4.9, Creation date: 2020-01-24, Last change: 2025-09-14
returns pairs of vertex lists for triangle tests
Description
This function creates pairs of triangles and in addition is a test for cross2F and crosspoints2F and ELofcrosspoints2F in case of planar and non planar surfaces.
See Also: cross2F
, CPLsample
, SGsample
, VLsample
, PLsample
, VLFLsample
, CSGsample
, SGfischertechniksample
, SGcmdsample
, CVLzsample
Example Illustration
Syntax
[VLA,VLB,cp,cpa,cpb,EL1]=VLsampletriangles([Nr,cmd])
Input Parameter
Nr: | | Number of traingle test |
cmd: | | such as 'last','flipA','Acirc1','Acirc2','rand','swapAB','rot' |
Output Parameter
VLA: | | 3 Points of VLA or if nargout==1, [VLA;VLB] |
VLB: | | 3 Points of VLB if nargout>=2 |
cp: | | List of unique cross points if nargout>=3 |
cpa: | | points in A |
cpb: | | points in B |
EL1: | | Edge list of crossing constraints |
Examples
VLsampletriangles; % show all
VLsampletriangles(9); % Sample Pair Nr 9
VLsampletriangles('','rand')
VLsampletriangles(10)
VLsampletriangles(10,'rand')
VLsampletriangles(10,'flipA, Acirc1')
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