aerosandbox.geometry.openvsp_io.asb_to_openvsp._utilities#

Module Contents#

Functions#

wrap_script(script[, set_geom_draw_type_to_shade])

Wraps the internal parts of a VSPScript file with a main() function.

Attributes#

aerosandbox.geometry.openvsp_io.asb_to_openvsp._utilities._openvsp_version = '3.36.0'[source]#
aerosandbox.geometry.openvsp_io.asb_to_openvsp._utilities.wrap_script(script, set_geom_draw_type_to_shade=True)[source]#

Wraps the internal parts of a VSPScript file with a main() function.

Example:
>>> print(wrap_script("hello
world”))

// This file was automatically generated by AeroSandbox 4.2.0 // using syntax tested on OpenVSP 3.36.0.

void main() {

hello world

}

Args:

script: The script to wrap.

Returns: The script, wrapped with a main() function.

Parameters:
  • script (str) –

  • set_geom_draw_type_to_shade (bool) –

Return type:

str