_powerConeSpiral script by Brian McMillin, January, 2022.
This script builds models of Teeth, Horns, Claws, and other structures.
References:
The script is based upon the paper:
https://bmcbiol.biomedcentral.com/articles/10.1186/s12915-021-00990-w
The paper is Open Access, licensed under Creative Commons Attribution.
There is also a supplement, with a Mathematica implementation which required extensive study. The morpho site has more organism files.
The Wikipedia entry "Logarithmic spiral" is very good.
Allometric growth, was also studied extensively.
The paper, program, math, and models, were very confusing, but can be understood with a lot of study. So the script has a lot of verbose comments. The two pdf papers contain a lot of explanations also.
Usually the straight powerCone, with its modified cross section, is FLOWed to a segment of a 3D logarithmic spiral. Study notes are contained in the two PDF files, "Logarithmic spirals" and "PowerConespiral", which may be posted eventually.
The attached version is a Rough Draft Alpha, which needs to be cleaned up and finished. I posted the ALPHA script, because time for finishing up the script is swiftly vanishing. Scripting the objectlists was particularly difficult, but Max's cMorph, and previous Michael help, including chain.js helped a lot.
Flow is not working yet, but can be done manually. The baseline is along the y-axis. The log spiral is the target curve. The straight powerCone loft is the object to be flowed.
Each creature structure has its own preset parameters. The matching baseline length is the same as the matching log spiral arc length.
- Brian
Note, deleted script 3/5/22, for repairs :-)