You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromtixi3importtixi3wrapperfromtigl3importtigl3wrapperimporttigl3.configuration# Create a handle to the tixi documenttixi_handle=tixi3wrapper.Tixi3()
tixi_handle.open("simpletest.cpacs.xml")
# get dihedral using TiXIxpath='/cpacs/vehicles/aircraft/model/wings/wing[1]/positionings/positioning[1]/dihedralAngle'print(tixi_handle.getDoubleElement(xpath))
# get dihedral using TiGLconfig_handle=tigl3wrapper.Tigl3()
config_handle.open(tixi_handle, "")
config_mgr=tigl3.configuration.CCPACSConfigurationManager_get_instance()
config=config_mgr.get_configuration(config_handle._handle.value)
wing=config.get_wing(1)
wing_uid='Wing'help(wing.get_positionings()) # <-- no getter, i.e. wing.get_positionings().get_positioning(i) is not implemented in CCPACSPositioningshelp(wing.get_positionings().get_positionings()) # <-- SwigPyObject, should be vector of unique_ptr to CCPACSPositioning
The text was updated successfully, but these errors were encountered:
@merakulix and I discussed this and we prefer to implement getters in CCPACSPositionings for the cpacs traversal in Python. Exposing std::vector and std::unique_ptr via swig to Python adds an unnecessary level of complexity, see RISCSoftware/cpacs_tigl_gen#59.
The text was updated successfully, but these errors were encountered: