std-inside-poly-p


Synopsis

(std-inside-poly-p <pt> <pts>) ; point strictly inside polygon? UCS!

Description

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.

Arguments

pt: A 2d or 3d point in the current UCS.

pts: A list of 2d or 3d points in the current UCS.

Return Value

T or nil

Side Effects

Creates a temporary point and if the current layer is invisible a temporary layer.

Module

(std-require 'STDPOINT)

Defined in STDPOINT since v0.4007.