# Need help with vpython fractals!

Page 1 of 1

## 1 Replies - 1152 Views - Last Post: 10 December 2013 - 06:03 PMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'https://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=336208&amp;s=e725a96dad97fd66a2bf1f173d3b74b5&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 wildfire12

Reputation: 0
• Posts: 1
• Joined: 09-December 13

# Need help with vpython fractals!

Posted 09 December 2013 - 11:43 PM

I want to use vpython to generate a pyramid fractal using algorithms. So basically once i have the fractal pyramid i need to also generate more pyramids in a similar manner. I'm really struggling with this and would like some help.

So something like this for examble

Set up initial pyramid

def subdivide(big_pyramid, subdivisions_remaining)
if subdivisions_remaining < 1:
draw big_pyramid
Create 5 small pyramids based on big_pyramid
for each small pyramid:
subdivide(the small pyramid, subdivisions_remaining - 1)

subdivide(initial pyramid, number of subdivisions)

Obviously this isn't right and i'm missing a lot of parts. For the pyramid i need 5 points, so in vypthon i basically need to draw lines going from each point creating the 3d figure and then create the fractal which i believe copies it. If anyone can help me out with this that would be great. I can provide much more information if this is lacking.

I am also willing to pay.

Is This A Good Question/Topic? 0

## Replies To: Need help with vpython fractals!

### #2 jon.kiparsky

• Beginner

Reputation: 11073
• Posts: 18,911
• Joined: 19-March 11

## Re: Need help with vpython fractals!

Posted 10 December 2013 - 06:03 PM

I don't know anything about vpython, so I'm probably not the best person to advise you on this, but I would suggest that if you go into some more detail about your fractal algorithm, that would probably help draw in more responses.
This is a pretty sketchy problem description.