insidePLELdelaunay
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 3.7, Creation date: 2017-03-28, Last change: 2025-09-14
returns whether a point is inside/outside a contour
Description
This function use delaunayTriangulation and makes sense only for larger grid point list not for individual Points. Works only with 2D point list and a correct contour edge list.
SINCE REL 4.5 it makes more sense to used polyshape's isinterior or insideCPS.
See Also: , insideCPS
Example Illustration
Syntax
[ki,XVL,XFL,XEL]=insidePLELdelaunay(PL,EL,GPL,[csplit])
Input Parameter
PL: | | 2D Point list |
EL: | | Contour edge list |
GPL: | | Grid point list or Point list |
csplit: | | false=no split points allowed; true=split points allowed; default is false |
Output Parameter
ki: | | +1==inside, -1==outside, 0== on the contour |
XVL: | | Point List |
XFL: | | Face List |
XEL: | | Edge list |
Examples
CPL=CPLaddauxpoints(CPLsample(12),1);
[PL,EL]=PLELofCPL(CPL);
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