I travelled home last night from the Barcelona Forge accelerator and continued working on the room volume exporter.
As described yesterday, I generate generic model
DirectShape elements to represent the room volume in the Forge viewer.
I initially generated them using solids returned by the Revit API
However, these not work properly in the Forge viewer.
Therefore, I implemented a triangulation of those solids and generate new ones from that. They work fine.
While I have the triangulation at hand, it is easy to also generate data for glTF.
It still needs some final tweaks to feed it straight into a glTF viewer, e.g., magicien's GLTFQuickLook for Mac, but we're getting there.
A few more little items to wrap up the Barcelona topic:
- Kean Walmsley's report on this year's Forge Accelerator in Barcelona
- My two favourite restaurants in Barcelona, both in Poblenou, 20 minutes' walk from the Autodesk office: