Task

Given a STEP assembly and a set of faces selected on one part in it, find every place in the assembly where those faces fit or mate, and highlight all of them.

Two example cases to keep in mind while building this:

Inputs

Single Key-part with faces-to-be-mated selected (green)

Single Key-part with faces-to-be-mated selected (green)

image.png

Example assembly:

WM290V_RedrawStart.stp

CAD-model page link; if the attached-file doesn’t download.

<aside> 💡

You can split this assembly into smaller sub-assemblies while testing; to ease any iterative runs.

It is encouraged to test your algorithm on more assemblies to fully validate your solution !

</aside>

Output

for the selection in img1; 3 candidate parts are highlighted. These have faces that the key’s selection-faces can mate with.

for the selection in img1; 3 candidate parts are highlighted. These have faces that the key’s selection-faces can mate with.

Approach

Your call. whatever fits (no pun intended). Take inspiration from assembly-mating modules across CAD software. Justify your approach, and why it felt like the best soln.

What makes it hard