GPLauxgridpointsCPS
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 4.5, Creation date: 2019-03-01, Last change: 2025-09-14
returns for a given 2D contour point list auxiliary points to define a plane surface
Description
This function replaces GPLauxgridpointsCL and GPLauxgridpointsPLEL!
The function is based on a cartesian meshgrid that us reshaped to form a new points list. The function uses insideCPS to generate the final index list
1=inside CPL 0=on CPL -1=Outside CPL
See Also: RLaddauxpoints
, RLdelauxpoints
, PLELaddauxpoints
, GPLauxgridpointsCPS2
Example Illustration
Syntax
[GPL,k,X,Y]=GPLauxgridpointsCPS(CL,dx,[dy])
Input Parameter
CL: | | Contour list 2D [x y] |
dx: | | Maximum auxiliary points in x |
dy: | | Maximum auxiliary points in y |
Output Parameter
GPL: | | Grid point list |
k: | | index whether k is inside or outside; use k=reshape(k,size(X)) |
X: | | X grid used for calucaltion |
Y: | | Y grid used for calucaltion |
Examples
CPL=[PLsquare(6,4);nan nan;PLsquare(3,2)];
GPLauxgridpointsCPS(CPL,0.5)
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