bladex.blade.Blade.generate_stl

Blade.generate_stl(min_length=None, max_length=None, outfile_stl=None)[source]

Generate and export the .STL surface mesh for the blade as a whole, including the upper face, lower face and tip. The method utilizes modules from OCC SMESH which is standalone mesh framework based on SALOME mesher project. Please refer to https://github.com/tpaviot and http://docs.salome-platform.org/7/gui/SMESH/index.html for further details.

This method requires PythonOCC and SMESH to be installed.

Parameters:
  • min_length (double) – smallest distance between two nodes. Default value is None
  • max_length (double) – largest distance between two nodes. Default value is None
  • outfile_stl (string) – if string is passed then the method exports the generated 2D surface mesh into .stl file holding the name <outfile_stl>.stl. Default value is None

We note that since the current implementation performs triangulation based on a topological compound that combines the blade 3 generated shapes without “fusion”, it may happen that the generated triangulation of the upper and lower blade faces do not share the same exact nodes on the joint edge/wire resulting from the faces intersection. The current implementation can be enough for visualization purpose. However if the generated mesh is intended for computational analysis then a manual mesh healing is recommended by the user (e.g. see “Repair > Sewing” in SALOME GUI) for a proper mesh closure.