Hilbert Curve Sierpinsky, Triangle Euler's Spiral (Clothoid), Releaux Triangle..

TSt's icon

Has somebody here for these 4 curves
Hilbert Curve, Sierpinski Curve (Triangle), Euler's Spiral (Clothoid),Releaux Triangle
a numerical solution? The target is to plot the curves in a lcd, or (perhaps
it looks like better) with the help of jit.gl

thank you for serious solutions

woyteg's icon
Max Patch
Copy patch and select New From Clipboard in Max.

hey, i don't think that will help you a lot but here's one approach to draw a sierpinsky triangle in an lcd

TSt's icon

thank you for this 1st hint

TSt's icon

one suggestion: is it also possible to use this algorithm to drawing the triangles like an oscilloscope?
this would be more useful for my project

thanks

volker böhm's icon

not sure what you want to do with an oscilloscope, but here are recursive versions of sierpinski and hilbert.
i thinks it's a pain doing recursions in max, so i chose js for this.

4196.SierpinskiHilbert.zip
zip
TSt's icon

sure in max to do recurcions is difficult,
these curves, figures deals as a source to control several parameters -
the "scope" is only a kind of an "indicator"
and; perhaps using of jit.gl could be one choice
to show 3D figures, torus etc

TSt's icon

but again: for what I'm looking for is this:
the triangles (in hilbert) should only be "outlined" in the lcd like a lineto command
the coordinates (x,y) of the lined triangles deals as source for parameters

williamjturkel's icon

Peter Elsea shows how to make a Sierpinksi Triangle using LCD in one of his great Max tutorials:

He is plotting points rather than using lines.

TSt's icon

thank you for this hint William,
the symmetric variant of Sierpinki's Triangle could be a useful choice

what else about with Euler's Spiral (Clothoid), Releaux Triangle?
have somebody here some solutions?

btw: I'm looking else for a practicable solution of a chu-attractor

of course, I know that examples. of Lorenz, Roessler exists under MaxMsp

TSt's icon

to the Hilbert Curve, Sierpinski Triangle:

which modus is useful to get the recursive coordinates of these curves etc
the target is to output the "lined way" as a list etc
or better unpacked to x, y (and: for 3d curves as z values)

thanks for further help and suggestions

TSt's icon

after some time: exists an example (javascripts are also welcome) for the following curves, phenomenas etc

eulers spiral (clothoid)
reuleaux (correct spelled now) triangle and other polygons
minkowski space
mach's cone
conical spiral
concho spiral
chua_attractor
maxwell-bloch equation (or oscillator?)
maxwells demon
nordstrand
elliptical-, figure8-, standard-torus
planet orbiting in a binary star system
van der pol oscillator

another question: exists a solution to include the scripts by jsxgraph into the MaxMsp environment?

thanks for hints and suggestions

TSt's icon

related to this topic:
has somebody a suggestion or solution what are the rules to using an integral (the euler's spiral, clothoid, cornu need this) in MaxMsp?
some new phenomenas, curves what I'm looking for has been added here

eulers spiral (clothoid) cornu
devils staircase (cantor function)
koch curve
reuleaux triangle and reuleaux polygon
minkowski space
mach's cone
conical spiral
concho spiral
chua_attractor
maxwell-bloch equation (or oscillator?)
maxwells demon
nordstrand
elliptical-, figure8-, standard-torus
planet orbiting in a binary star system
van der pol oscillator

thanks for your help and solutions

Ali-i-truc's icon

Hi Tst

Did you finally find the way with the eulers spiral?

TSt's icon

V. Böhm gave me some suggestions, you could him send a pm to solve your problem
TSt

volker böhm's icon

before i answer the private messages individually, i rather send an example to the list (oh, sorry, forum).
so here goes an implementation of euler's spiral (clothoid) in a JSUI.
you can also get some interesting artefacts when using extreme values.

4704.clothoid.zip
zip
TSt's icon

in the next time I've been looking for a solution to output the corners of hilbert and sierpinski as MIDI-Messages e.g.
I'm agree with Volker Böhm that the using of js could be a step to realize this
thank you for help and solutions

TSt's icon

now after few weeks ago I repeat this:
exists a solution to output the corner-points of hilbert and sierpinski as MIDI-Messages e.g.?

thanks

TSt's icon

@V.Böhm
after some time, we need now a variant for sierpinski, hilbert or similar fractals but more a recursive output by the knots (gemeint sind die Eckpunkte welche als x,y Paare weiterverarbeitet werden sollen) btw, not only the variant as code but also a patcher under MaxMsp could be useful

thx and happy maxing