std-inside-poly-p | ![]() |
STD-INSIDE-POLY-P
returns T if the point lies strictly inside the closed polygon defined by the list of points pts or nil otherwise, if it lies outside or on one of the segments.
It calls SSGET "_WPolygon"
with the pointlist, so you must take care that the list conatins no zero-length or self-crossing segments, AutoCAD will fail otherwise.
All points must be in the current UCS, otherwise command ZOOM might fail and therefore SSGET "_WPolygon"
No numeric tolerance is used.
pt: A 2d or 3d point in the current UCS.
pts: A list of 2d or 3d points in the current UCS.
T or nil
Creates a temporary point and if the current layer is invisible a temporary layer.
(std-require 'STDPOINT)
Defined in STDPOINT since v0.4007.