matrixdistanceofCPL
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PL/Point Lists
Introduced first in SolidGeometry 4.8, Creation date: 2019-12-10, Last change: 2025-09-14
returns a simple matrix containing the distance to the contour CPL
Description
GPLpotentialpointsCPS
GPLdistancegridpointsofCPL
GPLdistancetoCPL
matrixdistanceofCPL
See Also: GPLofmatrix
, ELofmatrixneigbors
, matrixneighbors
, ELofmatrixneigborweight
, matrixlocalminmax
Example Illustration
Syntax
[M,GPL,insout,ax]=matrixdistanceofCPL(CPL,[nrc])
Input Parameter
CPL: | | Closed Polygon Line |
nrc: | | [nx ny] or [dx dy] if [dx,dy]<10 mm |
Output Parameter
M: | | Matrix containing distance values |
GPL: | | Grid point list for matrix values |
insout: | | inside outside values of matrix values |
ax: | | [xmin xmax ymin ymax] |
Examples
matrixdistanceofCPL(CPLsample(3),100); M=ans, whos M
matrixdistanceofCPL(CPLsample(3),1); M=ans, whos M
[M,GPL,~,ax]=matrixdistanceofCPL(CPLsample(3),100); whos M, whos GPL, SGfigure; matrixplot(M,'',ax)
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