Model.hm_ispointinsidesolidelem#

Model.hm_ispointinsidesolidelem(x, y, z, element)#

Returns 1 if the point is found to be inside the solid element and 0 otherwise.

Parameters:
  • x (double) – The x coordinate of the point.

  • y (double) – The y coordinate of the point.

  • z (double) – The z coordinate of the point.

  • element (Entity) – The object describing the solid element entity.

Returns:

Example#

Check whether the point with coordinates 10 , 20 , 30 is inside the solid element with ID 1#
import hm
import hm.entities as ent

model = hm.Model()

_, result = model.hm_ispointinsidesolidelem(x=10, y=20, z=30, element=ent.Element(model, 1))

print("isInside", result.isInside)