From 3d matching to Bool

Hello Mech Mind Community!

I’m facing an issue where I want to output a boolean value if there is an object that matches my 3D model. If no matches are found, it should return false. My current problem is that when I run my program, I don’t get any matching score (using 3D coarse matching), so I can’t perform my boolean operation.
Do You guys have any tips or tricks for my case.

If there are no matching result, the “3D Coarse Matching V2” will not output anyting. You can try with this method.




Hi Dihao.
Thank you for your reply.
I Think my question is: is there a way to activate a bool if there is a match, and if there is not - then the bool will be false ?

I found a solution.
The step I wanted was the “Dichotomize values by threshold”
Thank you for your time.
-Magnus

The method for determining there is a match is similar:

Another method:

1 Like

Hello Magnus,

I would advise you to not only use the 3D coarse Matching step but also use a fine matching step.
The coarse matching step creates a lot of candidate matches (which often can be incorrect) which are then validated and refined in the fine matching step (i would only use both steps together).
Fine matching also gives you the option to specify a validation threshold.

Further, you can then count the number of models found (as dihao suggested already) and then use "“Dichotomize values by threshold” or “Convert Data Type” from NumberList to BoolList. (count > 0 → True, count = 0 → False)