Add more than one Analysis_Geometry to the pollination-viewer in streamlit

I am exploring how to build Streamlit apps that integrate with the Ladybug Tools ecosystem, focusing on creating a single Streamlit-VTK.js viewer capable of displaying multiple Analysis Geometries simultaneously.

Specifically, I want to combine the following in a single viewer:

  • Model View: Surfaces categorized by type.
  • Daylight Results: Colored grid meshes. [DA150, DA200, DA300]
  • Window Solar Radiation: Colored window meshes. [Different Seasons]
  • Any other combination of meshes and data.

So far, I have successfully added multiple datasets to a specific Analysis Geometry using ladybug_display.visualization (e.g., multiple datasets for daylight analysis). However, I haven’t found a way to display multiple Analysis Geometries within the same VTK.js container. Currently, I’m forced to create a separate viewer for each Analysis Geometry, which significantly slows down my app.

I have reviewed most of the sample apps in the Pollination Apps GitHub repository, but I haven’t found a solution to this issue.

I’d appreciate any guidance on whether combining multiple Analysis Geometries in a single VTK.js viewer is possible. If it’s not feasible, are there alternative methods for visualizing these results efficiently?

Hi @pabloarango, welcome to the forum. It’s possible to add several Analysis Geometry to a visualization set. If you share a sample code that shows your current process, I’ll be happy to help you with editing the code.

You can find several samples for the apps here: