POINTINBODY - v14


pointinbody               point=<vector>, id=<nvar>, result=<nvar>

Function

Check if a given point is inside, on the boundary or completely outside the given object.

Parameters        

point=

A vector phrase defining the point to be tested.

 

 

id=

The Unique Eagle ID of the object to be tested.

 

 

result=

 

The numeric variable where the output is to be stored

  1            if the point is inside the entity.
  0            if the point is on the entity boundary  
-1            if the point is outside the entity

The above three values are returned both in case of Ufo and Body entities.

Examples:

NUMERIC answer,item_id

item_id = INF(28)
   POINTINBODY  POINT=P1, ID=ITEM_ID, RESULT=ANSWER

Notes

This command is applicable only to Ufo entities [Update X4[OCC])

See also

boolean, pointinshape