Logo by bib - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. April 25, 2024, 06:49:07 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Folding around a rectangle  (Read 277 times)
0 Members and 1 Guest are viewing this topic.
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« on: July 23, 2012, 09:21:31 AM »

I found this solution while trying to replicate objects around a rectangle. Because folding is much faster than "make" objects one by one then take the minimum DE. embarrass

It should be something like this. I literally report my assembly solution that works. Surely there are much better ones to be found angel

Code:
// fold, user float that defines the space between objects
// where p,q,r modify the shape, user floats
// where n tells how much you need to fold (slows down, use the minimum needed!)
x = abs(x); y = abs(y);
t = x-y-p; y = x+y-q; x = t;
x = -abs(x);
t = (-(x+y)-r)*0.5; y = (y-x-r)*0.5; x = t;
repeat (2*n) times {
x = abs(fold-x);
}

// creates a double list of objects
// y = abs(fold2-y); y = abs(fold2-y);

Let me know what you think. A Beer Cup
Logged

No sweat, guardian of wisdom!
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Rectangle Spiral Mandelbulb3D Gallery bib 0 686 Last post January 20, 2011, 07:35:35 AM
by bib
help - round rectangle - for metaballs... Mathematics cKleinhuis 4 978 Last post October 07, 2013, 09:07:23 AM
by jehovajah
Hybrid 02 - rectangle hieroglyphs Mandelbulber Gallery zebastian 0 499 Last post February 06, 2016, 11:19:30 PM
by zebastian
hybrid 02 animation - rectangle hieroglyphs Animations Showcase (Rate My short Animation) zebastian 1 924 Last post April 06, 2016, 10:53:28 PM
by quaz0r
Folding Menger Images Showcase (Rate My Fractal) 3dickulus 5 1026 Last post December 04, 2016, 10:47:46 PM
by DarkBeam

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.16 seconds with 24 queries. (Pretty URLs adds 0.008s, 2q)