CPLboolpshape

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

Boolean Fncts based on the polyshape class

Description

Polyshape class ignore the polygon orientation if 'simplify' is set to false. PREFERABLE
Polyshape class MODIFIES the polygon shape if 'simplify' is set to true. PLEASE AVOID
case {'+','PLUS','OR','UNION'}
case {'X','AND','INTERSECT'}
case {'A','A\B'}
case {'B','B\A', 'REM'}
case 'XOR'

See Also: CPLbool

Example Illustration

 missing image of CPLboolpshape(fflag,CPLA,CPLB);

Syntax

CPLN=CPLboolpshape(fflag,CPLA,CPLB);

Input Parameter

fflag: Operator
CPLA: Contour A
CPLB: Contour B

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