Model.hm_ispointinsidesolid#
- Model.hm_ispointinsidesolid(x, y, z, solidEntity)#
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.
- 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.
solidEntity (Entity) – The object describing the solid entity.
- Returns:
hwReturnStatus- Status objectHmQueryResult- Result object containing the output values:isInside (int)
Example#
Check whether the point with coordinates 10 , 20 , 30 is inside the solid with ID 1#import hm import hm.entities as ent model = hm.Model() _, result = model.hm_ispointinsidesolid(x=10, y=20, z=30, solidEntity=ent.Solid(model, 1)) print("isInside", result.isInside)