McCulloughRT / Revit2glTF

An open source glTF format exporter for Autodesk Revit.
181 stars 67 forks source link

Reuse the same familyinstance to optimize performance #16

Closed XiaoChenDan closed 3 years ago

XiaoChenDan commented 3 years ago

There are many reusable family instances in the Revit model, and it is possible to have an impact on memory and performance by meshing each instance. Threejs GLTFloader has methods that reference shared node resources. Wouldn't it be better to reuse a mesh for the same family instances and use matrices to differentiate renders? This is my first time to learn GLTF and THREEJS. Please advise if there is anything wrong. Thank you