BHoM / Revit_Toolkit

A set of tools enabling exchange of information between BHoM and Revit.
GNU Lesser General Public License v3.0
27 stars 13 forks source link

MeshedGeometry query returns null meshes in edge case scenarios #1473

Closed pawelbaran closed 5 months ago

pawelbaran commented 5 months ago

Description:

In very rare circumstances, MeshedGeometry method returns a collection containing null objects, causing exceptions downstream. Simple fix to cull out nulls before returning the collection.