p-chambers / occ_airconics

Aircraft Configuration through Integrated Cross-disciplinary Scripting, Python package built on PythonOCC
http://occ-airconics.readthedocs.io/en/latest/index.html
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

Scaling and fitting algorithm in Topology class needs improvement #12

Open p-chambers opened 7 years ago

p-chambers commented 7 years ago

The scaling and fitting algorithms used to 'fit' a sub component to its parent not intuitive, and quite often ends in tweaking numbers until a 'decent' looking aircraft is obtained.

A better method would be to use scaling factors as actual percentages of a reference length, e.g. a wing with an x scaling factor of 0.2 would have 20% of its parents reference x length (wing chord, or fuselage x length).

This should also fix #8.