GPLdistancetoCPL
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PL/Point Lists
Introduced first in SolidGeometry 4.7, Creation date: 2019-07-24, Last change: 2025-09-14
returns for a grid point list the point distance insider or outside of a contour
Description
This function is required for path planning with maximal distance to contour walls
For Solid Geometries use VMdistancetoSG instead
See Also: GPLauxgridpointsCPS
, VMdistancetoSG
Example Illustration
Syntax
[GPL,k,x,y]=GPLdistancetoCPL(CPL,[GPL,k,x,y,cdown,cins])
Input Parameter
CPL: | | Contour to use |
GPL: | | grid distance or Grid point list |
k: | | inside outside analysis if existing |
x: | | x mesh grid |
y: | | y mesh grid |
cdown: | | distance to wall or distance to center |
cins: | | inside or outside contour |
Output Parameter
GPL: | | Grid point list |
k: | | distance list; nan for prohibited areas |
x: | | x mesh grid |
y: | | y mesh grid |
Examples
CPL=PLsquare(40,10)
GPLdistancetoCPL(CPL,.05,'','','','',true);
CPL=CPLsample(13);
GPLdistancetoCPL(CPL,.1,'','','','',true);
GPLdistancetoCPL(CPLsample(13),.1,'','','',true);
GPLdistancetoCPL(CPLsample(13),.1,'','','',false);
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