differt_core.geometry.SionnaScene

differt_core.geometry.SionnaScene#

class SionnaScene#

Bases: object

A scene as loaded from a Sionna-compatible XML file.

Only a subset of the XML file is actually used.

This scene acts as a bridge between Sionna and DiffeRT, and is essentially used to quickly load scenes from Sionna and export them as a Scene.

Warning

We are still open to better ways to parse those XML files, please reach out us if you would like to help!

Attributes

materials

A mapping between material IDs and actual materials.

shapes

A mapping between shape IDs and actual shapes.

Methods

load_xml(file)

Load a Sionna scene from a XML file.

Detailed documentation

classmethod load_xml(file)#

Load a Sionna scene from a XML file.

Parameters:

file (str) – The path to the XML file.

Returns:

The corresponding scene.

Return type:

SionnaScene

materials#

A mapping between material IDs and actual materials.

Currently, only BSDF materials are used.

Type:

dict[str, Material]

shapes#

A mapping between shape IDs and actual shapes.

Currently, only shapes from files are supported.

Also, any face normals attribute is ignored, as normals are recomputed using JAX arrays in the differt module.

Type:

dict[str, Shape]