hm_ispointinsidesolid

Checks whether a point is inside the volume of a solid geometry.

Syntax

hm_ispointinsidesolid x y z solid_id

Type

HyperMesh Tcl Query

Description

This command returns 1 if the point is found to be inside the solid, -1 if the point is outside the solid and 0 if the point is on the solid’s boundary.

Inputs

x
y
z
The (x,y,z) coordinates of the point.
solid_id
The ID of the solid geometry.

Example

To check whether the point with coordinates 10, 20, 30 is inside the solid with ID 1:

hm_ispointinsidesolid 10 20 30 1

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}