Skip to main content

core.geometry_library_obj

GeometryLibraryCategory Objects

class GeometryLibraryCategory(str, Enum)

Available categories for geometry library.

GeometryLibraryObj Objects

class GeometryLibraryObj()

Object used for representing geometries from the geometry library.

download_geometry

def download_geometry(destination_directory: str) -> str

Download geometry to destination file.

Arguments:

  • destination_directory (str): Directory to download to.

Returns:

str: Path to downloaded file.

calculate_sabine_estimate

def calculate_sabine_estimate(material_assignments: List[Union[
MaterialAssignment, MaterialAssignmentDto]],
model_volume: float = None) -> List[float]

Calculates the sabine estimate of the reverberation time based on layer material assignment.

Arguments:

  • material_assignment (List[MaterialAssignment|MaterialAssignmentDto]): Layer material assignment for model to calculate the estimate on.
  • model_volume (float): Optional, If no model volume is input the model volume will be computed from the input objects. If a geometry without a closed shell is input the model_volume has to be specified.

Returns:

List[float]: List of the sabine estimated RT for each frequency range valid for materials (63, 125, 250, 500, 1k, 2k, 4k, 8k).

as_tree

def as_tree()

Uses the display_data module to display geometry library object as tree.