CPLbool

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Boolean
Introduced first in SolidGeometry 4.3, Creation date: 2018-10-27, Last change: 2025-09-14

Boolean Fncts based on the polyshape class or polygon class

Description

This function calls either CPLpolybool (up to 2017) or CPLpolyshape (from 2018), as Matlab occasionally changes concepts, this function should be used permanently.
case {'+','PLUS','OR','UNION'}
case {'X','AND','INTERSECT'}
case {'A','A\B'}
case {'B','B\A', 'REM'}
case 'XOR'
2013 CPL bool function by Tim Lueth based on Delaunay concept
2014 CPL bool functions based on polybool concept
2018 CPL bool functions based on polyshape concept

See Also: CPLbool , CPLboolpshape

Example Illustration

 missing image of CPLbool(flag,CPLA,CPLB,s)

Syntax

[CPLN]=CPLbool(flag,CPLA,CPLB,[s])

Input Parameter

flag: Operator
CPLA: Contour A
CPLB: Contour B
s:

Output Parameter

[CPLN]: Final CPL

Examples


CPLboolpshape('+',PLcircle(10), flipud(PLcircle(8)+4))




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