CPLoutercontour
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 3.5, Creation date: 2017-02-28, Last change: 2025-09-14
returns for a CPL the outer contour wrt cw/ccw-orientation
Description
Is used after simple growing of self crossing contours exist. Use CPLbuffer and CPLofouterregionboundary in other cases.
Uses PLoutercontour but returns only the outer CPL. The outer/inner contoru decision is made by selecting the cw/ccw-orientation of each contour.
See also CPLofouterregionboundary which returns for embedded contours the outer one
See Also: CPLofouterregionboundary
, PLoutercontour
, CPLgrow
Example Illustration
Syntax
NCPL=CPLoutercontour([CPL,out])
Input Parameter
CPL: | | Closed Polygon Line; separated using NaN NaN |
out: | | returns the FIRST outer contour if true; if false the first inner; default is true |
Output Parameter
Examples
PLoutercontour(CPLgrow(CPLsample(19),4))
CPLoutercontour(CPLgrow(CPLsample(13),2))
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