CSGsample

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Samples
Introduced first in SolidGeometry 4.1, Creation date: 2017-08-06, Last change: 2025-09-14

Cross-Pair Samples returns two solids as examples for crossing solids

Description

This is more or less an testing function for SGbool and the supporting functions:
SGintersectFacetPoints, VLFLinsertFacetPoints
The spatial relations are used from SGtransrelSG.


See Also: CPLoftext , CPLsample , SGsample , VLsample , PLsample , VLFLsample , SGfischertechniksample , SGcmdsample , testfunctTL , permutevector , VLsampletriangles

Example Illustration

 missing image of CSGsample(Nr,spatrel)

Syntax

[A,B]=CSGsample([Nr,spatrel])

Input Parameter

Nr: Nr of Example
spatrel: spatial relations such as 'ontop',-15

Output Parameter

A: Solid A
B: Solid A

Examples


CSGsample
[A,B]=CSGsample(3,'ontop',-15); SGintersectFacetPoints(A,B); NPL=ans,
VLFLinsertFacetPoints(B.VL,B.FL,NPL(:,[2 1 3:end])); copyfig; VLFLinsertFacetPoints(A.VL,A.FL,NPL);




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