Homec4science

Updated the Python interface of the material.

Description

Updated the Python interface of the material.

The material is parsable, and as such it offers the functions set() and get() to change and retrieve internal variables.
However, when the parameter changes some internal values might need to be recomputed, which is done by Material::updateInternalParameters() function.
But the set() function does not do this.
For that reason the C++ interface of the material offers the setParam() function, which basically does this.

This commit now modifies the Python interface of the material and redirects the set*() functions, that are defined with by the parameter registry, to the setParam() function.
Thus, if a material property is changed by a call to set*() the internal values are recomputed.

Details

Committed
richartFeb 10 2022, 09:52
Pushed
gitlab-richartFeb 18 2022, 12:26
Parents
rAKA0f10ebd6aa4f: Updated the Python interface of the parser.
Branches
Unknown
Tags
Unknown

Event Timeline

richart committed rAKAa9e5d4c6350f: Updated the Python interface of the material. (authored by Philip Mueller, HS <philip.paul.mueller@bluemail.ch>).Feb 10 2022, 09:52