Advertisement

Progression Trouble

Started by July 12, 2002 09:22 AM
1 comment, last by Arion 22 years, 7 months ago
Don''t know why I''m having trouble with this, anyway: Trying to make a line tree ( for limb mechanics ) using a progression method coupled with a pixel explosion algo. My steps: Draw Trunk Draw 04 limbs clamped to top of trunk Draw 16 limbs clamped to the previous four limbs ( groups of four ) Draw 64 limbs clamped to previous 16 limbs Progression seems simple enough. The above represents 3 levels. The number of limbs per level is 4 ^ number of levels. How can I calculate the total number of limbs ? I need this so I can calulate the number of verticies which is number_limbs * 2 Thanks, Guy My Home Page
quote:
Original post by Arion
Draw 04 limbs clamped to top of trunk
Draw 16 limbs clamped to the previous four limbs ( groups of four )
Draw 64 limbs clamped to previous 16 limbs

Progression seems simple enough.
The above represents 3 levels.
The number of limbs per level is 4 ^ number of levels.

How can I calculate the total number of limbs ?


I might be misunderstanding you: how about adding up the number of leaves per level for all the levels you have? Like 4+16+64 = 84. This is a geometric progression, with a multiplicative factor of 4, so in general there will be:

(4n+1 - 1)/(4 - 1) limbs (including the original trunk) for n levels.

Do you think this is what you''re after?

Miles
Advertisement
Thank You, that was the one alright, works perfectly.

Guy


My Home Page

This topic is closed to new replies.

Advertisement