Research Article
Effects of Wind on Virtual Plants in Animation
Algorithm 2
The general algorithm for growth and movement of one leaf.
Global Initialize: | Choose a random type of leaf motion | Input: Time , old leaf parameters (), wind speed | Output: New leaf parameters (), thickness (), and radius () | If or , that is, if the wind exceeds the maximum tensile strengths of the | petiole () or blade (), then exit because the leaf is no longer attached. | , , , and | If | If ≤ , | Bend the petiole at the petiole center of rotation | (See (10) and (11)) | else | Bend the leaf blade at the leaf center of rotation | ((11) with β instead of θ) | else if | Twist the leaf (see (12) and (13)) | else if | Vibrate the leaf at the leaf center of rotation (see (14) and (15)) | Calculate the leaf thickness (see (16)) | Calculate the leaf radius (see (17)) |
|