POINTINSHAPE - v14


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

Function

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

Parameters        

point=

A vector phrase defining the point that is to be tested.

 

 

id=

The Unique Eagle ID of the object that is to be tested.

 

 

result=

The numeric variable where the output is to be stored.
The possible values returned in case of  a Body or a Shell entity are:

  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

 In case of Curve entities the possible values are:

  1            if the point is in the same direction of the normal.
  0            if the point is on the curve boundary
-1            if the point is in the opposite direction of the normal.

 In case of a Surface entity the possible values are:

  1     if the point is in the same direction of the normal.

  0     if the point is on the entity

 -1     if the point is in the opposite direction of the normal.

Examples:

NUMERIC ANSWER,ITEM_ID

ITEM_ID = INF(28)

POINTINSHAPE  POINT=P1, ID=ITEM_ID, RESULT=ANSWER

Notes

This command is applicable only to NURBs entities, i.e. Body, Shell, Surface and Curve entities. [Update X4[OCC])

See also

import