Hole mates detection

User: "Beta"
New Altair Community Member
Updated by Beta

hi,

 

I am trying to write a hole mates detection tool.

 

Below is the main code I used

 hm_holedetectioninit *createmark elems 1 'displayed' hm_holedetectionsetentities elems 1 hm_holedetectionsetholeparams hole_shape=31 hm_holedetectionfindholes 1 hm_holedetectionfindmates max_distance=10 hm_holedetectiongetmatedetails 1

As you can see, I used option 'max_distance' to limit the maximum distance between holes in a mate to be found. The code run without any issue. 

 

The problem is the returned result includes hole mates with the distance > 10. Even when I tried to translate the mesh to make the distance much greater, the program still returned that hole mate.

<?xml version="1.0" encoding="UTF-8"?>image.thumb.png.cbf16ed619eaaa3b85d4fbcdb5c88031.png

The left hole mate has distance=40, the right one has distance=10. Both are identified as hole mates with option max_distance=10

 

Am I doing anything wrong code??. Appreciate your help!

Find more posts tagged with