honeybee_display.shademesh module

Method to translate a ShadeMesh to a VisualizationSet.

honeybee_display.shademesh.shade_mesh_to_vis_set(shade, color_by='type')[source]

Translate a Honeybee ShadeMesh to a VisualizationSet.

Parameters:
  • shade – A Honeybee ShadeMesh object to be converted to a VisualizationSet.

  • color_by

    Text for the property that dictates the colors of the Shade geometry. (Default: type). Choose from the following:

    • type

    • boundary_condition

Returns:

A VisualizationSet object that represents the ShadeMesh with a single ContextGeometry.

honeybee_display.shademesh.shade_mesh_to_vis_set_wireframe(shade, color=None)[source]

Get a VisualizationSet with a single ContextGeometry for the ShadeMesh wireframe.

Parameters:
  • shade – A Honeybee ShadeMesh object to be converted to a VisualizationSet.

  • color – An optional Color object to set the color of the wireframe. If None, the color will be black.

Returns:

A VisualizationSet with a single ContextGeometry and a list of DisplayLineSegment3D for the wireframe of the Shade.