parameters: (tigl_handle)
return_statement: return fused_shape
docstring: This example uses the opencascade fusing algorithm to fuse wing
      and fuselage and writes the resulting geometry to a step file
docstring_summary: This example uses the opencascade fusing algorithm to fuse wing
      and fuselage and writes the resulting geometry to a step file
docstring_tokens: This example uses the opencascade fusing algorithm to fuse wing and fuselage and writes the resulting geometry to a step file
function: def get_fused_shape(tigl_handle):
      """
      This example uses the opencascade fusing algorithm to fuse wing
      and fuselage and writes the resulting geometry to a step file
      """
      print ("Computing fused geometry...")
  
      # get the configuration manager
      mgr = CCPACSConfigurationManager_get_instance()
  
      # get the CPACS configuration, defined by the tigl handle
      # we need to access the underlying tigl handle (that is used in the C/C++ API)
      config = mgr.get_configuration(tigl_handle._handle.value)
  
      fuselage_shape = config.get_fuselage(1).get_loft()
      wing_shape = config.get_wing(1).get_loft()
      wing_m_shape = config.get_wing(1).get_mirrored_loft()
  
      # fuse the shapes
      fused_shape = CFuseShapes(fuselage_shape, [wing_shape, wing_m_shape]).named_shape()
  
      print ("Done!")
  
      return fused_shape
function_tokens: def get_fused_shape ( tigl_handle ) : print ( "Computing fused geometry..." ) # get the configuration manager mgr = CCPACSConfigurationManager_get_instance ( ) # get the CPACS configuration, defined by the tigl handle # we need to access the underlying tigl handle (that is used in the C/C++ API) config = mgr . get_configuration ( tigl_handle . _handle . value ) fuselage_shape = config . get_fuselage ( 1 ) . get_loft ( ) wing_shape = config . get_wing ( 1 ) . get_loft ( ) wing_m_shape = config . get_wing ( 1 ) . get_mirrored_loft ( ) # fuse the shapes fused_shape = CFuseShapes ( fuselage_shape , [ wing_shape , wing_m_shape ] ) . named_shape ( ) print ( "Done!" ) return fused_shape