differt_core.scene.sionna module#

TODO.

class Material#

Bases: object

A basic material, that can be linked to EM properties.

id#

The material ID.

This can be, e.g., an ITU identifier.

# type: str

rgb#

The material color, used when plotted.

class Shape#

Bases: object

A shape, that is part of a scene.

file#

The path to the shape file.

This path is relative to the scene config file.

id#

The shape ID.

It should be unique (in a given scene).

material_id#

The material ID attached to this object.

type#

The type of the shape file.

E.g., ply for Stanford PLY format.

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 class is useless unless converted to another scene type, like TriangleScene.

Warning

Currently, the 'etoile' scene from Sionna cannot be loaded properly, as the material properties are encoded differently.

We are still thinking of a better way to parse those XML files, please reach out us if you would like to help!

load_xml()#

Load a Sionna scene from a XML file.

Parameters:

file – The path to the XML file.

Returns:

The corresponding scene.

materials#

A mapping between material IDs and actual materials.

Currently, only BSDF materials are used.

shapes#

A mapping between shape IDs and actual materials.

Currently, only shapes from files are supported.

Also, face normals attribute is ignored, as normals are always recomputed.