Preventing selection of room geometry in the Forge viewer

Some of you may remember this post, which talks about the ability to export to Navisworks from Revit to bring room information into the Forge viewer. One of the side effects of using this technique is that there’s a bunch of semi-transparent room boundary geometry in the resultant model, which can make navigation a little tricky.

For instance, here’s what happens when I try to select the wall at the end of a corridor (you can’t see the cursor, but you should get the idea – the invisible room geometry gets selected rather than the wall).

To help improve the user experience in Dasher 360, we’ve been working on reducing the impact of this room geometry on the selection mechanism. The first step was to make sure the room geometry doesn’t get selected: very often it will get selected when the user actually wants to select something behind it. The way I worked around this was to check for the “on selection changed” event and then – if a highly transparent solid (which…

Read more