CPLregionsholes
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 4.7, Creation date: 2019-06-22, Last change: 2025-09-14
separates CPLs into Surfaces and Holes
Description
This functions works different than the hole method of polyshape. It is not sorting the contours but really create full shape outside contours (to be added) and inside hole contours to be substracted.
This is the correct version for the function simplify = true;
This function is required for overlapping contours with holes before Boolean operations
See Also: CPLadd
, CPLremoveregionsholes
Example Illustration
Syntax
[CPLo,CPLi]=CPLregionsholes(CPL)
Input Parameter
Output Parameter
CPLo: | | Outside Conturs to add (RED) |
CPLi: | | Hole Contours to substact (GREEN) |
Examples
CPLregionsholes(CPLsample(15));
CPLregionsholes(CPLsample(26));
Copyright 2019-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